Pipeline Design Pattern
Explore the Pipeline design pattern to break lengthy processes into concurrent, manageable steps in Kotlin. Understand how to use coroutines and channels to build a scalable pipeline that efficiently produces and processes streaming data, facilitating easier testing and cancellation.
We'll cover the following...
We'll cover the following...
The Pipeline design pattern allows us to scale heterogeneous work, consisting of multiple steps of varying complexity across multiple CPUs, by breaking the work into smaller, concurrent pieces. Let’s look at the following example to understand it better.
We made an HTML page parser in “Getting Familiar with Behavioral Patterns”. It was assumed that the HTML pages themselves were already fetched for us, though. What we would like to ...