A curated list of awesome Elixir, Command Query Responsibility Segregation (CQRS), and event sourcing resources.
Chronik - A lightweight event sourcing micro framework for Elixir.
Commanded - Use Commanded to build your own Elixir applications following the CQRS/ES pattern. Provides support for command registration and dispatch, hosting and delegation to aggregate roots, event handling, and long running process managers.
Commanded audit middleware - Command auditing middleware for Commanded CQRS/ES applications using Ecto for persistence.
Commanded Ecto projections - Read model projections for Commanded using Ecto.
Commanded scheduler - Schedule one-off and recurring commands for Commanded CQRS/ES applications .
Commanded Swarm registry - Distributed process registry using Swarm for Commanded.
Disco - Simple, opinionated yet flexible library to build CQRS/ES driven systems.
Eidetic - An event sourcing library for Elixir.
ES - Event Sourcing for Ecto and Postgresl/Dynamodb events storage.
EventBus - Traceable, extendable and minimalist event bus implementation for Elixir with built-in event store and event watcher based on ETS.
Eventlog - A simple event log backed by dynamodb and dynamodb streams.
EventStore - An Elixir event store using PostgreSQL for persistence.
Fable - An Elixir event sourcing library.
Helios.Aggregate - Elixir library defining Aggregate behaviour and providing extendable facility for aggregate command pipeline.
Incident - Event Sourcing and CQRS in Elixir abstractions.
Maestro - An Elixir event store + CQRS library.
Pachyderm - A virtual/immortal/durable/resilient/global actor "always exists" and "never fails".
Perhap - Purely functional event store and service framework inspired by domain driven design and reactive architectures.
Seven Otters - A CQRS/ES Starter Kit for the BEAM.
TeaVent - TeaVent allows you to perform event-dispatching in a style that is a mixture of Event Sourcing and The "Elm Architecture" (TEA).
Awesome Domain-Driven Design - A (non language specific) curated list of Domain-Driven Design (DDD), Command Query Responsibility Segregation (CQRS), Event Sourcing, and Event Storming resources.
DDD/CQRS/ES Slack - A Slack team for those who want to chat about domain-driven design, CQRS, event Sourcing, and sometimes random things. Main channel is language and framework agnostic. Join ddd-cqrs-es on Slack to get an invite.
Building a CQRS/ES web application in Elixir using Phoenix by Ben Smith - Case study describing how a web application was built using CQRS/ES.
CQRS with Elixir and Phoenix by Jean-François Cloutier - Implementing the CQRS pattern in Elixir.
Event Sourcing in Elixir by Derek Kraan - Explore how we can use some of Elixir’s more interesting features to implement event sourcing.
Creating a single-node Elixir/Phoenix web app with Commanded & Postgres by Ben Moss - A blog post series to walk the reader through installing and configuring Commanded for use in a single-node Phoenix web app backed by Postgres.
Building an event-sourced game with Phoenix Liveview by Charles Desneuf - A series on building an event-sourced game in Elixir with Phoenix Liveview.
Getting started with Elixir and EventStoreDB with the Spear gRPC client by Michael Davis.
Building beautiful systems with Phoenix contexts by Andrew Hao @ ElixirDaze 2018 - Learn about Phoenix contexts from their origins in domain-driven design and how they help you to organise an Elixir application by providing rules around communication, boundary enforcement and testing. [ slides ]
CQRS and Event Sourcing by Bernardo Amorim @ Code Beam SF 2018 - A look into what Event Sourcing and Command Query Responsibility Segregation are and how they fit together, followed by a tutorial on how to implement an application using these concepts with Commanded (a framework for Elixir).
Event Sourcing in Elixir by Pedro Assumpção @ ChicagoElixir Meetup, November 2018 - In this talk, Pedro quickly introduces Event Sourcing and CQRS, but the main part is about FootBroker, an online soccer fantasy game that it is running in production in a beta stage, and has its main pieces using Event Sourcing and CQRS patterns.
Event Sourcing in Real World Applications Challenges, Successes and Lessons Learned by James Smith @ ElixirConf 2018 - Building a real time auction application for supplying fuel to ships using event sourcing.
An event-driven approach to building Elixir applications by Ben Smith @ Code Elixir LDN 2019 - We experience the real world by reacting to events that have occurred, what if we modelled our Elixir applications in the same way? [ slides ]
Building Event Sourced Apps by Leif Gensert @ London BEAM User Group, January 2019 - Instead of defining a global data model that fits all of your use cases think about the things your system does. Record the events that occur and then build multiple data models that fit your individual use cases.
CQRS/ES & Elixir by Bertrand Dubaut @ Amsterdam Elixir Meetup, September 2019 - An introduction to the CQRS/ES architecture pattern and how to implement it in your application in Elixir with the Commanded framework.
Elixir + CQRS - Architecting for Availability, Operability, and Maintainability At PagerDuty by Jon Grieman @ ElixirConf 2019 - This talk looks at the service that powers PagerDuty’s timeline entries, a critical component for understanding what happens during an incident and covers how the service is architected for Command Query Responsibility Segregation and the benefits of those choices.
Event sourcing in practice - Using Elixir to build event-driven applications by Ben Smith @ Elixir London user group, March 2019 - Practical example of event sourcing in Elixir.
Event sourcing/CQRS in Elixir with Commanded: Where the rubber hits the road by Ben Moss @ Toronto Elixir meetup, May 2019. [ source code ]
gen_persistence: persist the state of your processes by Benoît Chesneau @ Code BEAM STO 2019 - This talk describes the usage of
gen_persistence and how to create custom plugins to store events and snapshots. [ slides ]
Conduit - A blogging platform, an exemplary Medium.com clone, built as a Phoenix web application.
To the extent possible under law, Ben Smith has waived all copyright and related or neighbouring rights to this work.