Skip to content

yeowgit/Its.Cqrs

 
 

Repository files navigation

Its.Cqrs

Build Status

A set of libraries for CQRS and Event Sourcing, with a Domain-Driven Design flavor.

Here are some useful definitions:

CQRS

Domain Driven Design

Event Sourcing

Ok, why?

Systems built using these patterns can offer some improvements over the "traditional" approach where a single model, generally stored in a relational database, is used for both reads and writes. These improvements include:

  • More cohesive business logic. Commands sent to your domain model are the entry point for all changes to its state. This provides a clear pattern for implementing validation and authorization.
  • Better control over concurrency. The source of truth for your domain model is an incrementing event stream, making concurrency easier to detect and respond to in scenario-specific ways, as well as removing the need for pessimistic locks and explicit transactions.
  • Improved scalability. By decoupling reads and writes, the read and write sides of the application can be scaled independently.
  • Simplified partitioning. Event streams partition naturally on a single key, and there is no partitioning or replication of related data needed.
  • Simplified deployments. Read model databases are projections from one or more event streams. These databases can be treated as disposable, queryable caches. This allows multiple versions of an application with different data schema needs to run at the same time, each with their own read model database.
  • Improved auditability. The event stream is append-only, and captures the important steps in the process you've modeled in your domain. This improves diagnosability, allows you to "debug history" when something unexpected happens, and can provide insights into how the system is being used that are lost in traditional systems where data is being overwritten.

About

A set of libraries for CQRS and Event Sourcing, with a Domain-Driven Design flavor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.1%
  • CSS 0.7%
  • HTML 0.2%
  • JavaScript 0.0%
  • Batchfile 0.0%
  • PowerShell 0.0%