Aggregates: An In-depth Examination by Thomas Coopman Gien Verschatse
summary
Argues aggregates are needed only when a concrete invariant plus concurrency exists, demonstrates with an access‑control domain where the invariant is never one person in a high‑security zone and concurrent badge scans must be serialized. Uses example mapping and event‑storming, splits work into two bounded contexts (draft/validator and enforcer), models commands/events like Enter/Exit and AccessGranted/AccessDenied, discusses a feedback loop to hardware and a “close the books” pattern for event sourcing and long‑lived aggregates.
AI-written summary · about
chapters (17)
- 0:00Introduction to Aggregates
- 1:05What is an Aggregate
- 3:34Common Aggregate Mistakes
- 5:45Why Aggregates are Needed
- 7:57Access Control Domain Setup
- 10:00Identifying Aggregate Boundaries
- 15:41Zones vs Real Aggregates
- 16:43Configuring Access Rules
- 17:06Enforcing Access Rules
- 18:53Bounded Contexts vs Aggregates
- 22:24When Aggregates Aren't Needed
- 23:06High Security Zone Rules
- 29:49Designing Aggregate Boundaries
- 33:04Refining the High Security Aggregate
- 38:45Finalizing the Aggregate Design
- 45:10Key Takeaways on Aggregates
- 48:19Q&A Session
