elixir-lang/gen_stage
elixir-lang/gen_stage has 1,593 GitHub stars and 200 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 04:13 UTC. Last push 2026-08-05.
Producer and consumer actors with back-pressure for Elixir
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGenStage
GenStage is a specification for exchanging events between producers and consumers.
This project currently provides the following functionality:
GenStage(docs) - a behaviour for implementing producer and consumer stagesConsumerSupervisor(docs) - a supervisor designed for consuming events from GenStage and starting a child process per event
You may also be interested in two other projects built on top of GenStage:
Flow for building computational flows using map-reduce, partitions, windows, and more that run concurrently. See the documentation for Flow or José Valim's keynote at ElixirConf 2016 introducing the main concepts behind GenStage and Flow
Broadway for building concurrent and multi-stage data ingestion and data processing pipelines to consume events from Amazon SQS, RabbitMQ, and others. See Broadway's documentation or José Valim's introduction to Broadway
Examples
Examples for using GenStage and ConsumerSupervisor can be found in the examples directory:
ProducerConsumer - a simple example of setting up a pipeline of
A -> B -> Cstages and having events flowing through itConsumerSupervisor - an example of how to use one or more
ConsumerSupervisoras a consumer to a producer that works as a counterGenEvent - an example of how to use
GenStageto implement an alternative toGenEventthat leverages concurrency and provides more flexibility regarding buffer size and back-pressureRateLimiter - an example of performing rate limiting in a GenStage pipeline
Installation
GenStage requires Elixir v1.5. Just add :gen_stage to your list of dependencies in mix.exs:
def deps do
[{:gen_stage, "~> 1.0"}]
end
License
Same as Elixir under Apache License 2.0. Check NOTICE and LICENSE for more information.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,790 starspublic-apis/public-apis
A collective list of free APIs
497,012 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,923 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,145 stars