Angular · Senior · Question 75 of 75
What is the typical architecture for NgRx effects that handle many concurrent requests to the same endpoint?
- ✓Correct answer: Choose the flattening operator deliberately:
switchMapfor latest-only reads,concatMapfor ordered writes,mergeMapfor independent ones,exhaustMapto ignore repeats - 2Always use
mergeMap - 3Always use
switchMap
Explanation
switchMap on writes can cancel saves and lose data. The operator choice is a business decision about concurrency.