Architectural pattern: field event

Architectural pattern: field event

Domain Driven Design (DDD) from.
 

Context

Services typically need to publish event when updating its data. For example, you may need to update CQRS view these events. Alternatively, the service may be involved based on choreography-based saga layout, and use the event to coordinate.

problem

How to Publish event service when updating the data?
 

solution

The logical organization of business services for the collection of DDD polymerization, these polymerization issued domains event when creating or updating. The release of these domain service events, so that other services can use them.

Relevance Model

  • Saga and CQRS model creates demand for this model
  • Aggregate mode for constructing the business logic
  • Outbox part of the transaction mode for the event as a database transaction release
  • Sometimes an event source for event publishing domain

 

Guess you like

Origin www.cnblogs.com/paxlyf/p/11293703.html