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

Scalable Aggregates: Reducing Complexity in Command Handlers

by Maxime Gélinas5mOctober 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!

Company Mentioned

Mention Thumbnail
featured image - Scalable Aggregates: Reducing Complexity in Command Handlers
Maxime Gélinas HackerNoon profile picture
Maxime Gélinas

Maxime Gélinas

@maximegel

Fullstack developer, code lover, freelancer and blogger DDD • CQRS • Event-Sourcing • Angular • NgRx

About @maximegel
LEARN MORE ABOUT @MAXIMEGEL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Maxime Gélinas HackerNoon profile picture
Maxime Gélinas@maximegel
Fullstack developer, code lover, freelancer and blogger DDD • CQRS • Event-Sourcing • Angular • NgRx

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