Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 4.62 KB

README.md

File metadata and controls

69 lines (53 loc) · 4.62 KB

Github Actions

CQRS flow of Event Sourcing with EvenStoreDB

This sample is showing a typical flow of the Event Sourcing pattern with EventStoreDB using CQRS. It uses E-Commerce shopping carts domain.

Prerequisities

Running

  1. Run: docker-compose up.
  2. Wait until all Docker containers are up and running.
  3. Check that you can access each started component the following URLs:
  4. Open, build and run ECommerce.sln solution.

Overview

It uses:

  • Provides the example of the Aggregate,
  • Stores events to EventStoreDB,
  • Builds read models using Subscription to $all.
  • Read models are stored as ElasticSearch documents.
  • CQRS flow example with Command and Query handling,
  • App has Swagger and predefined docker-compose to run and play with samples.

Write Model

Read Model

Tests

Other

Trivia

  1. Docker useful commands
    • docker-compose up - start dockers
    • docker-compose kill - to stop running dockers.
    • docker-compose down -v - to clean stopped dockers.
    • docker ps - for showing running dockers
    • docker ps -a - to show all dockers (also stopped)