Implementing CQRS in Elixir

Updated a year ago

Implementing CQRS in Elixir

An introduction to implementing the Command Query Responsibility Segregation (CQRS) architecture in Elixir applications.

This guide will help you to build your own Elixir applications following CQRS/ES principles.

  • Building pure functional, event-sourced domain models.
  • Using eventstore to persist event streams to a PostgreSQL database.
  • Command registration and dispatch; delegation to aggregate roots; event handling; and long running process managers using commanded.

The reader should be familiar with the Elixir programming language and the basic principles of domain-driven design.