# event-source-cqrs-sample **Repository Path**: hdgjun_gitee/event-source-cqrs-sample ## Basic Information - **Project Name**: event-source-cqrs-sample - **Description**: Sample ES/CQRS application - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Conference recommends](https://devternity.com/shields/recommends.svg)](https://devternity.com) # Sample event sourced application with Command Query Responsibility Segregation ** Event sourcing ** Shop item can be bought, paid, and marked as payment timeout. Aggregate root (ShopItem) emits 3 different types of domain events: ItemBought, ItemPaid, ItemPaymentMissing. All of them are consequences of commands. Event store is constructed in database as EventStream table with collection of EventDescriptors. EventStream is fetched by unique aggregate root uuid. ** CQRS ** Read model is constructed by listening to domain events mentioned before. This task is performed by ReadModelOnDomainEventUpdater