- TypeScript Microservices
- Parth Ghiya
- 58字
- 2021-06-25 21:48:47
Subscription
While an observable is an array that fills over time, a subscription is a for loop that iterates over that array, which happens over time. A subscription provides easy to use and easy to dispose of methods, so there are no memory loading issues. On disposing of a subscription, an observable will stop listening to particular subscriptions.