Chapter 6. Coordinating business processes
This chapter covers
- Synchronizing the emission of several observables
- Using observables as signaling devices
- Building complex interactions from multiple inputs
- Spawning streams simultaneously
- Streamlining database storage operations using observables
The previous chapter examined how converting multiple observables into a single one can simplify their consumption and reduce the management overhead. This mechanism is important because it allows you to reuse a single subscription to handle data that’s being transformed or created by the composition of multiple tasks, such as AJAX requests, business logic transformations, timers, and others. The various strategies for how these different types of merging operations (merge(), -concat(), or switch()) occurred, as in whether we cared about the order of the events or cancelled others, was determined by the operator itself—each had a different flavor. We also showed examples like search and drag and drop that use the output of one observable to signal the start or completion of another.