Sample education project for demonstrating various approaches to implementing concurrent requests limit and requests queue in ASP.NET Core.
lock statement based implementation is available in lock-statement-based-synchronization branch and has been described here:
Since that time there's been a number of bug fixes and improvements.
There is also a second,
SemaphoreSlim based, implementation available in semaphoreslim-based-synchronization branch.
My blog and open source projects are result of my passion for software development, but they require a fair amount of my personal time. If you got value from any of the content I create, then I would appreciate your support by buying me a coffee.