tRestRequest - Rate Limiting

Eight Stars

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.

Moderator

Re: tRestRequest - Rate Limiting

Hello,

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

Thanks for your time.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: tRestRequest - Rate Limiting

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

Eight Stars

Re: tRestRequest - Rate Limiting

@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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download