#cqrs #event-sourcing #serverless

cqrs-es

A lightweight, opinionated CQRS and event sourcing framework targeting serverless architectures

34 releases

Uses new Rust 2021

0.4.3 Jun 2, 2022
0.4.0 Apr 28, 2022
0.3.0 Mar 18, 2022
0.2.4 Dec 14, 2021
0.0.18 May 5, 2020

#448 in Development tools

Download history 153/week @ 2022-03-14 112/week @ 2022-03-21 21/week @ 2022-03-28 85/week @ 2022-04-04 120/week @ 2022-04-11 116/week @ 2022-04-18 142/week @ 2022-04-25 355/week @ 2022-05-02 95/week @ 2022-05-09 638/week @ 2022-05-16 232/week @ 2022-05-23 298/week @ 2022-05-30 211/week @ 2022-06-06 75/week @ 2022-06-13 59/week @ 2022-06-20 50/week @ 2022-06-27

467 downloads per month
Used in 3 crates

Apache-2.0

130KB
2.5K SLoC

cqrs

A lightweight, opinionated CQRS and event sourcing framework targeting serverless architectures.

Command Query Responsibility Segregation (CQRS) is a pattern in Domain Driven Design that uses separate write and read models for application objects and interconnects them with events. Event sourcing uses the generated events as the source of truth for the state of the application.

Together these provide a number of benefits:

  • Removes coupling between tests and application logic allowing limitless refactoring.
  • Greater isolation of the aggregate.
  • Ability to create views that more accurately model our business environment.
  • A horizontally scalable read path.

Things that could be helpful:

Three backing data stores are supported:

Crates.io docs CodeBuild

Dependencies

~2.5–3.5MB
~61K SLoC