Java Magazine, Jan/Feb 2018
void placeOrder Co eeOrder getOrder CommandService QueryService DB DB ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2018 74 beyond CRUD an event store The command and query components maintain their own domain object representations by consuming the events from the hub and updating the state of their internal model The storage representations of each side can difer and be optimized according to their best fit When an update command placeOrder Order reaches the command side the service performs the action using the domain object representations in its internal storage and publishes events OrderPlaced When the client reads at the query side this service returns the current state from its internal storage The services are coupled only by the event store and can operate and be deployed independently from each other The events that are published from the event store are consumed by all subscribed consum Figure 3 Example of a CQRS implementation EventStore OrderPlaced OrderPlaced
You must have JavaScript enabled to view digital editions.