An open API service indexing awesome lists of open source software.

https://github.com/cbyad/eventsourcing

Simple Implementation of event sourcing/CQRS pattern on a Power plant system
https://github.com/cbyad/eventsourcing

Last synced: 3 months ago
JSON representation

Simple Implementation of event sourcing/CQRS pattern on a Power plant system

Awesome Lists containing this project

README

        

# Simple Implementation of event sourcing/CQRS pattern on a Power plant system

#### CQRS (Command and Query Responsibility Segregation)

![](./img/cqrs.png)

* Command (_Write_): openTransaction, addPowerPlant, produce, consume

* Query (_Read_): histories, distributionByConsumptionProductionByType

#### Async

![](./img/asyncCQRS.png)

CommandBus
CommandHandler

EventBus
EventHandler