paint-brush
Scalable Aggregates: Reducing Complexity in Command Handlersby@maximegel
173 reads

Scalable Aggregates: Reducing Complexity in Command Handlers

by Maxime GélinasOctober 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Aggregates hold domain logic and are responsible for emitting events that will eventually make your data consistent across multiples data projections and bounded contexts. In this article, I will show you a way to reduce complexity from your aggregates and make them scale better. Using this technique, the aggregate grows for every command we add. Because of this, it is easy to imagine how fast this newly created aggregate will turn into a hard to maintain mess as our domain grows. The trick is to let the commands and events execute/apply themselves!
featured image - Scalable Aggregates: Reducing Complexity in Command Handlers
Maxime Gélinas HackerNoon profile picture
Maxime Gélinas

Maxime Gélinas

@maximegel

L O A D I N G
. . . comments & more!

About Author

Maxime Gélinas HackerNoon profile picture
Maxime Gélinas@maximegel

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite