Re: [Jersey] Rate Limiting RESTful Web Services

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 15 Feb 2010 14:16:25 +0100

Hi Dário,

I do not have any experience in this area.

I suppose you could write a Jersey request filter to do such rate
limiting. It should be rather easy, the devil is in the details of
where/how the information is stored.

But perhaps web front end servers and routing hardware may also be
able to perform such functionality before it reaches the application?


On Feb 15, 2010, at 12:58 PM, Dário Abdulrehman wrote:

> What is the recommended approach for rate limiting web services?
> Does Jersey support this?
> Two approaches come to my mind: at the application level, using a
> relation of IP, timestamp and number of calls, which is used to
> register for each IP, the number of calls made in a 24 hour period.
> This count is reset every 24 hours. The other approach is at the OS
> level using for example iptables (UNIX).
> Thanks.