DEV Community

Brian
Brian

Posted on

2

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.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay