Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.28 KB

anatomy.md

File metadata and controls

12 lines (7 loc) · 1.28 KB

Services anatomy

Nexus services are assembled by a series of components

  • Write Model: This component is executed when a customer performs a write API operation (create, update, tag, ...). The business logic is triggered (validation, state computation, Json and Graph manipulations, etc). As a result, an Event gets stored into the Primary Store or a rejection is delivered to the client.
  • Event Stream: This is an asynchronous process that gets triggered as soon as there are elements to be read from the Primary Store. The stream runs several operations that take the stored Events and transform them. The result is then saved into a target index.
  • Read Model: This component gets triggered when a customer performs a read API operation (get, list). A call to the index is performed. The resulting data is transformed if required and delivered to the client.

The service structure and workflow has been designed following the CQRS and [Event sourcing](Event sourcing) strategies. The distinction between the write and read model, as well as the use of event streams is a perfect match to CQRS and Event Sourcing.

Services anatomy