July 2021
Intermediate to advanced
176 pages
4h 14m
English
Broadway is an excellent choice when working with popular message brokers. However, it’s not limited to just that. Broadway could be useful in a wide range of use cases where you need a data-processing pipeline with dynamic batching built-in. All you have to do is bring your own GenStage producer, and Broadway will happily do the work for you. We’re going to see how this works by revisiting the scraper project one last time. We already used GenStage and Flow to implement it, so it will be great to have another version implemented using Broadway, for comparison.
Let’s start by replacing :flow with :broadway in the dependencies list:
| | defp deps do |
| | [ |
| | {:gen_stage, "~> 1.0"}, |
| | {:broadway ... |
Read now
Unlock full access