Discussion about this post

User's avatar
Alisher's avatar

Hey, great article and an interesting concept, but I have some practical questions about this approach.

Assuming that there’s a single “event stream” (append only log), it would render the querying step basically into a O(n), that grows with each new event appended.

It must be run every time we call a command and not only that, but we need to run this twice – second time before writing new events to make sure we don’t have a stale model.

If we were to introduce basic optimization used in ES – namely, snapshots, we would get another problem: in old Aggregate approach we had single model per each entity. In the new approach we must store Models per each Command Context and per each entity (e.g. account/device) which is very inconvenient.

How would you tackle this?

Expand full comment
3 more comments...

No posts