1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 13:52:46 +02:00

Add rate-limiting content (#3364)

* Update 101-rate-limiting.md

* Update src/roadmaps/angular/content/101-rxjs-basics/104-operators/101-rate-limiting.md

---------

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
mohd-e-mustafa
2023-02-10 23:27:15 +05:00
committed by GitHub
parent 39866117a6
commit 8068face54

View File

@@ -1 +1,10 @@
# Rate limiting
# Rate limiting
Rate limiting in RxJS refers to the practice of restricting the rate at which events or data can be emitted from an observable. This can be useful in situations where the rate of incoming data is higher than the rate at which it can be processed, or where there are limits on the number of requests that can be made to a server. There are a few different operators in RxJS that can be used for rate limiting, such as throttleTime and sampleTime. These operators can be used to limit the rate of emissions from an observable by discarding emissions that occur too frequently. Another operator is auditTime it emits the last value from the source Observable during periodic time windows.
Visit the following resources to learn more:
- [throttleTime](https://rxjs.dev/api/operators/throttleTime)
- [sampleTime](https://rxjs.dev/api/operators/sampleTime)
- [auditTime](https://rxjs.dev/api/operators/auditTime)
- [Blogs and tutorials on RxJS](https://blog.angular-university.io/rxjs-better-performance-with-the-rxjs-audittime-operator/)