Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
/ Its.Cqrs Public archive

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

License

Notifications You must be signed in to change notification settings

jonsequitur/Its.Cqrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Its.Cqrs

Build Status Join the chat at https://gitter.im/jonsequitur/Its.Cqrs

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

  • Its.Domain: NuGet Status NuGet Pre Release
  • Its.Domain.Api: NuGet Status NuGet Pre Release
  • Its.Domain.Sql: NuGet Status NuGet Pre Release
  • Its.Domain.Testing: NuGet Status NuGet Pre Release

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.

Read more in the wiki.

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