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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read