~/talk

Final Class Aggregate

Talkat PHP fwdays'20 online · 2020-05-30..05-31· [php]
slides:none on file

Defines an aggregate as a bounded object graph that enforces rules and transactional consistency via a root entity, shows a meeting-with-registrations aggregate and explains why large aggregates (think hundreds or thousands of registrations) hurt performance and persistence. Uses plain SQL, in-memory repositories and mocks to demonstrate testing tradeoffs, and proposes context objects (pure use‑case classes) to make implicit context explicit and let unit tests avoid brittle mocks.

AI-written summary · about

  1. 0:00Start
  2. 2:15What Exactly Is an Aggregate
  3. 6:37Common Patterns
  4. 7:13Can Value Objects Implement Behavior
  5. 16:10Rules for Working with a Grits
  6. 19:30Storing Aggregates
  7. 23:45Context Functions
  8. 25:10Unit Test
  9. 25:53Registering for a Meeting
  10. 30:06White Box Testing
  11. 32:10Downsides of Aggregates
  12. 39:42Conclusion
  13. 43:24Keep Your Aggregates Small
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.