Master RxJs: flatMap vs switchMap vs concatMap vs exhaustMap

Lars Holdaas
7 min readMar 26, 2020
Photo by Nik Shuliahin on Unsplash

After learning the basics of RxJs you’re gonna run into the concept of switching streams and using emissions from inner observables sooner or later. In general there are four operators used for substituting in the emissions of an inner observable in the outer pipe.

  1. flatMap/mergeMap (same operator under two names)
  2. switchMap

--

--

Lars Holdaas

Web developer working in Japan. Passionate about maintanability and clean coding.