DEV Community

Brian
Brian

Posted on

Event Sourcing Pattern

Event Sourcing Pattern and how it works

I recently learned about the event sourcing pattern while working on a ruby api and as I was learning it I was able to draw a neat little graphic that helped me learn. Here it is and I hope you it helps you.

Alt Text

Top comments (2)

Collapse
 
antoniofalcaojr profile image
Antonio Falcão Jr.

Hi Brian!

Does the GraphQL, Command Bus, and Command Handler are in the same project? Or GraphQL, in your case, is more like a BFF (separate project) that integrate with the Aggregate Root microservice through a message broker (message bus)?

Collapse
 
brianmcoates profile image
Brian

In this project they were in the same project. This was just one of a bunch of microservices that our team manages. We implemented a graphql federation that helped with a lot of developing with graphql.