Posts

Showing posts with the label event

Event Sourcing

Image
The journey to break down the monolith to microservices in order to accelerate software delivery lies many challenges, including defining bounded contexts as DDD aggregates; connecting the contexts with domain events using either orchestration or choreography; and the mechanism to publish these domain events reliably and persist and consume the events consistently. An event-centric way of structuring the business logic and aggregate persistence is called event sourcing. Problem with Traditional Persistence Traditionally, aggregates are represented as classes or objects in applications. It has worked well for monolith systems. Despite being hard to change, maintain and scale, there are also several limitations to this approach. Object-Relational Impedance Mismatch The object-relational impedance mismatch problem describes the conceptual mismatch in serving relational data using an object-oriented programming language. This tends to have a few common symptoms. Relationships are represen...