Click here to Skip to main content
15,891,763 members
Articles / Web Development / Node.js

Throttling Outgoing Requests in Node.js

Rate me:
Please Sign up or sign in to vote.
2.33/5 (2 votes)
4 Mar 2020CPOL10 min read 19.1K  
How to track requests across a cluster using distributed counters and sliding time windows
Coordinating counting requests within a time window across a cluster can't be done in-memory, you need a backing store and this article walks through using Node.js and RavenDB to accomplish throttling client-side requests to an API so you don't exceed rate limits.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Target
United States United States
Hi, I'm Kamran Ayub aka Kamranicus. I specialize in helping people build usable, reliable, and resilient technology solutions with a primary focus on web-based technology.

Comments and Discussions