Sunday, May 8, 2016

Avoiding denied of service with rate limits

There is a lot of guides to help us to define a good Restful services. Mainly they talk about the following points:

  • Restful URLs and actions
  • Usability
  • Security
  • Versioning
  • Hateoas
  • Documentation
  • Cache
  • Pagination
  • Filtering
  • Response envelopes
  • Rate limit
  • ...... and so on

In this case we are going to focus on rate limit aspect. In the next screencast, it is presented an approach to implement a rate limit by IP client, based on RateLimiter class provided by guava library.



See you in the next post!

2 comments: