/EventSourcing_Dotnet5

Sample ASP.NET Core application based on Event Sourcing and CQRS patterns

Primary LanguageC#MIT LicenseMIT

Event Sourcing starter template

Current framework version: .NET 5

Based on: https://github.com/VenomAV/EventSourcingCQRS


Features

Performance

  • In a system under heavy load, event sourcing is useful thanks to natural sharding and separating read and write models.

Data modelling

  • Event sourcing gives more flexibility, thanks to the separation of the action from effect. This approach grants flexibility in reacting to events happening in other parts of the system and creating multiple read models.

Maintnance, bug fixing and auditing

  • It's easy to reproduce state of aplication in given time, with helps reproducing bugs and audit trailing

Setup

Eventstore

  1. Download and install Docker
  2. Execute command: docker-compose -f docker-compose-mssql.yml up -d in order to run Eventstore instance in docker container

WebApi

  1. Run WebApi project
  2. Go to app url: http://localhost:5000