# GenStage

> Producer and consumer stages with back-pressure for Elixir

Source: https://talira.ai/catalog/genstage-dg8zhfdn
Every listing: https://talira.ai/catalog.md

- Kind: Commercial software
- Types: Library
- Categories: [data / stream processing](https://talira.ai/categories/data/stream-processing), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: proprietary[^1][^2]
- Pricing: Free[^2]
- Free tier: yes[^2]
- Made by: [Elixir team](https://talira.ai/orgs/elixir-lang.md)

GenStage is the Elixir team's library for exchanging events between producer and consumer processes with back-pressure: consumers send demand upstream, and producers emit events only as that demand arrives, so a slow stage never floods a fast one. It provides the GenStage behaviour for producer, producer-consumer and consumer stages, dispatchers that decide how events reach several consumers, and ConsumerSupervisor, which starts a child process per event. Flow and Broadway are built on it. It runs on [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md).

## Links

- GitHub: https://github.com/elixir-lang/gen_stage
- Docs: https://hexdocs.pm/gen_stage/

## Problems it solves

- stop a fast Elixir producer from overwhelming slow consumer processes
- build a multi-step processing pipeline of Elixir processes with back-pressure
- start one supervised process per job pulled from a queue in Elixir

## Features

- GenStage behaviour for producer, producer-consumer and consumer stages
- Demand-driven back-pressure between stages
- DemandDispatcher and BroadcastDispatcher for sending events to several consumers
- ConsumerSupervisor, which starts a child process per event
- Examples for pipelines, rate limiting and a GenEvent replacement

## Limitations

- Its repository has no LICENSE file and its source files carry no licence notice; only mix.exs and the README name Apache-2.0 ("Same as Elixir")[^1][^2]

## Trust

Overall: 0.45 out of 1.
Signals: maintenance 0.45, adoption 0.64, momentum 0.33, community 0.81, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- 1.6k GitHub stars
- 106 contributors
- made by Elixir team

## Related

- Works with [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md)

## Alternatives

- [Broadway](https://talira.ai/catalog/broadway-yh6tn1et.md): Concurrent, multi-stage data ingestion and processing pipelines in Elixir

## Sources

[^1]: https://github.com/elixir-lang/gen_stage/blob/main/mix.exs (checked 27 Nov 2026)
[^2]: https://github.com/elixir-lang/gen_stage/blob/main/README.md (checked 27 Nov 2026)
