Using a queue as a rate-limiter

Many public APIs have rate limits. If you are attempting to pull down any substantial amount of data using a particular API that requires many API calls, you'll undoubtedly need to work around those rate limits and find a way to get to your data as fast as possible without exceeding your request quota. In cases such as this, a queue architecture can help out:

I have personally implemented this exact pattern with great success. Here, a third-party API provides an endpoint to /items. The actual data being retrieved is of little importance to explain the details. Here, the challenge is that we can only fetch the ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.