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>
pull/3440/head
mohd-e-mustafa 2 years ago committed by GitHub
parent 39866117a6
commit 8068face54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/roadmaps/angular/content/101-rxjs-basics/104-operators/101-rate-limiting.md

@ -1 +1,10 @@
# 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/)

Loading…
Cancel
Save