Use Commanded to build your own Elixir applications following the CQRS/ES pattern.
Provides support for:
- Command registration and dispatch.
- Hosting and delegation to aggregates.
- Event handling.
- Long running process managers.
Commanded provides a solid technical foundation for you to build on. It allows you to focus on modelling your domain, the most important part of your app, creating a better application at a faster pace.
You can use Commanded with one of the following event stores for persistence:
- EventStore Elixir library using PostgreSQL for persistence
- Greg Young's Event Store.
- In-memory event store included for test use only.
Please refer to the CHANGELOG for features, bug fixes, and any upgrade advice included for each release.
You can help support Commanded by helping to fund its ongoing development, new features, and releases.
- What is CQRS/ES?
- Frequently asked questions
- Getting help
- Latest published Hex package & documentation
This README and the following guides follow the
masterbranch which may not be the currently published version.
- Getting started
- Choosing an event store
- Using Commanded
- Process managers
- Read model projections
- Testing with Commanded
- Used in production?
- Example application
- Learn Commanded in 20 minutes
- Choosing an event store provider
- Need help?
Used in production?
Yes, see the companies using Commanded.
Conduit is an open source, example Phoenix 1.3 web application implementing the CQRS/ES pattern in Elixir. It was built to demonstrate the implementation of Commanded in an Elixir application for the Building Conduit book.
Learn Commanded in 20 minutes
Watch Bernardo Amorim introduce CQRS and event sourcing at Code Beam SF 2018. Including a tutorial on how to implement an Elixir application using these concepts with Commanded.
Pull requests to contribute new or improved features, and extend documentation are most welcome.
Please follow the existing coding conventions, or refer to the Elixir style guide.
You should include unit tests to cover any changes. Run
mix test to execute the test suite.
Commanded exists thanks to the following people who have contributed.
- Adil Yarulin
- Andrey Akulov
- Andrzej Sliwa
- Ben Smith
- Bernardo Amorim
- Brenton Annan
- Chris Brodt
- Chris Martin
- David Carlin
- Danni Friedland
- Florian Ebeling
- Henry Hazan
- Joan Zapata
- João Thallis
- Kok J Sam
- Leif Gensert
- Luís Ferreira
- Matt Doughty
- Miguel Palhas
- Nigel Thorne
- Olafur Arason
- Patrick Detlefsen
- Phil Chen
- Raphaël Lustin
- Tobiasz Małecki
For commercial support, and consultancy, please contact Ben Smith.