Concurrent, multi-stage data ingestion and processing pipelines in Elixir
open sourceApache-2.0free
Broadway is Dashbit's Elixir library for building concurrent, multi-stage data ingestion and processing pipelines. It consumes events from producers such as Amazon SQS, Apache Kafka, Google Cloud Pub/Sub and RabbitMQ, and from a simple configuration it sets up the GenStage topology underneath: concurrent producers and processors, batchers, back-pressure, acknowledgements at the end of the pipeline, fault tolerance, graceful shutdown, ordering and partitioning, rate limiting, metrics and built-in testing. It's meant for continuous, long-running pipelines; Dashbit's Flow, also on GenStage, is the more general tool for aggregations, joins and windows.
Problems it solves
- consume messages from SQS in Elixir with batching and back-pressure
- build a long-running Kafka ingestion pipeline on the BEAM
- process a queue concurrently in Elixir without writing GenStage by hand
Features
- producers for Amazon SQS, Apache Kafka, Google Cloud Pub/Sub, RabbitMQ and more
- concurrent processors and batchers from one configuration
- back-pressure, automatic acknowledgements and custom failure handling
- ordering and partitioning, rate limiting and metrics
- graceful shutdown and built-in testing
Alternatives
The same job
These do what Broadway does.
- Flow (Elixir) Parallel computations on collections for Elixir, on top of GenStage
- GenStage Producer and consumer stages with back-pressure for Elixir