All,

I am evaluating Camel to be a proxy/gateway to REST internal end points. I have set it up as a servlet on Tomcat and configured for http proxy and it is working. I also wanted to implement throttling rules using throttler. So, I have used the sample available in documentation to restrict 3 requests in 10 seconds. The behavior that I have noticed is that it would "delay" the response after reaching the limit. However, I am wondering if there is a way to "block" the client for a certain period of time by sending a JSON response that the access is blocked as limits exceeded. Should I need to customize (or extend) the throttle to achieve this or somebody already got this requirement working? Thanks in advance.

Reply via email to