Click here to Skip to main content
15,890,717 members
Articles / Programming Languages / C#

Throttling Outgoing HTTP Requests in a Distributed Environment Using RavenDB and .NET Core

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
21 Feb 2020Apache9 min read 15.2K   3  
How to use RavenDB to implement throttling in less than 40 lines of code
When working with external services, sometimes you need to ensure you don't call a particular API too often. In a distributed environment like a web farm, this makes things even more hairy. In this post, you will see how RavenDB can help you track requests using distributed counters and sliding time windows.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


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