camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: throttling a restlet endpoint by discarding excess requests
Date Wed, 28 Aug 2013 08:38:23 GMT

Yeah I assume you can configure the restlet server to have X worker
threads. So if the load gets higher it will not accept new incoming
requests. Or maybe a way of returning HTTP 503 as you want.

Though the Camel throttler EIP could have an use-case for having a way
of having a when .. otherwise built in so you can do

from restlet
throttle (10 / sec )
    to backend
    to some more stuff
    setHeader status = 503
    setBody = empty

On Wed, Aug 28, 2013 at 5:53 AM, osupit <> wrote:
> Very much appreciate the quick response and insights.
> Unfortunately the requirement is as originally stated - I need to discard
> excess load by returning excess requests to the caller - so the Throttler
> option doesn't work for me.
> I'll have a poke around the Restlet docs/community and see if this has been
> come up before.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message