From Reactive Patterns for RxJS with Angular Chapter 7: Transforming Streams
Operator | Use Case |
---|---|
concatMap |
If the order is important and you need to process operations in sequence while waiting for completion. |
mergeMap |
If the order is not important and you need to process operations in parallel to enhance performance. |
switchMap |
If you need to put a cancellation logic to release resources and take always the most recent information. |
exhaustMap |
To ignore new observables while the current one is still ongoing. |