Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
root
Creator II
Creator II

tRestRequest - Rate Limiting

I am currently using TOS ESB 6.3.1. Is there any inbuilt capability to achieve rate limiting on the requests received by tRestRequest? 

 

Something to the effect that I do not process the requests if more than 1 request comes in every minute? 


How can one achieve such a functionality?


Thanks.

Labels (3)
3 Replies
Anonymous
Not applicable

Hello,

We have redirected your issue to our ESB experts and will keep you posted.

Thanks for your time.

Best regards

Sabrina

Anonymous
Not applicable

Hi, 

there is not an direct option in tRESTRequest  but you have at least to quick once using either e.g. our Routes or a Reverse Proxy:

1) Using a Route with the cThrottle component (https://help.talend.com/reader/94r2oXE1HkgazV8BInnTCQ/_VdW3DCr9PbSxm9MYesW6w ) but this is a route you have to put in-front of your tRESTRequest service. So you need the ESB REST DataService + and ESB Route

2) something also quite popular is to use a reverse proxy like NGInx (https://www.nginx.com/blog/rate-limiting-nginx/

 

HTH,

Dietmar

root
Creator II
Creator II
Author

@dlenzen: Thank you for the suggestions. I guess I have to re-write my code as a route to use this.

Will this also be able to handle scenarios like:
Limit requests per IP (or any other identifier within the payload) per minute?

What I am trying to achieve is if a client sends multiple requests within a specified time frame, it should be rejected saying "Rate Limit exceeded" or similar.