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.
Requires Erlang/OTP v21.0 and Elixir v1.6 or later.
You can help support Commanded by helping to fund its ongoing development, new features, and releases.
- Changelog
- Wiki
- What is CQRS/ES?
- Frequently asked questions
- Getting help
- Latest published Hex package & documentation
MIT License
This README and the following guides follow the
master
branch which may not be the currently published version.Read the documentation for the latest published version of Commanded on Hex.
- Getting started
- Choosing an event store
- Using Commanded
- Deployment
- Testing with Commanded
- Used in production?
- Example application
- Learn Commanded in 20 minutes
- Choosing an event store provider
- Tooling
- Contributing
- Need help?
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.
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
- Dave Lucia
- David Carlin
- Danni Friedland
- Fernando Mendes
- Florian Ebeling
- Henry Hazan
- JC
- Joan Zapata
- João Thallis
- John Wilger
- Joseph Lozano
- Kok J Sam
- Leif Gensert
- Luís Ferreira
- Marcelo Dominguez
- Matt Doughty
- Miguel Palhas
- Nigel Thorne
- Olafur Arason
- Paolo Laurenti
- Patrick Detlefsen
- Phil Chen
- Raphaël Lustin
- Štefan Ľupták
- Tobiasz Małecki
- Yuri de Figueiredo
Please open an issue if you encounter a problem, or need assistance. You can also seek help in the Gitter chat room for Commanded.
For commercial support, and consultancy, please contact Ben Smith.