← Graph

Handlers Must Control Their Dependencies

takeaway 2 connections

Handlers must be able to control the projection (for caching, snapshotting, or to skip it entirely) and the writer (to apply expected-version selectively, deal with external side-effects correctly, and test via substitute writers that never touch the database). Hiding these dependencies behind framework magic is an anti-pattern; controlling dependencies is also fundamental good software practice that gems like VCR and global database mocks have eroded.

type
recommendation
takeaway Handlers Must Control Their Dependencies
about
Directly addresses the third anti-pattern.
takeaway Handlers Must Control Their Dependencies
from_talk
Recommendation from the third anti-pattern.

Provenance

Read by
8 extractions