/event-sourcing-sample

Primary LanguageJavaScriptMIT LicenseMIT

event-sourcing-sample

This project is an example for microservices with event sourcing and CQRS.

Technology stack:

  • Node.JS
  • Docker (docker-compose)

CQRS

CQRS architecture

There are the following services:

  • Customers Service - REST API for creating customers
  • Accounts Service - REST API for creating accounts
  • Transactions Service - REST API for transferring money
  • Customers View Service - subscribes to events and updates a MongoDB View, and provides an API for retrieving customers
  • Accounts View Service - subscribes to events and updates a MongoDB View, and provides an API for retrieving accounts

There is also an API gateway service that acts as a Facade in front of the services.

Links