← Graph

Reservation Pattern

concept 1 connections

Event-sourcing technique Ladd cites for enforcing uniqueness (e.g. of an email address): write a reservation event keyed by the value, so uniqueness is enforced without any entity. Similar in spirit to Rails' uniqueness validation but without its race condition. Mentioned as an example where a command handler needs no entity at all — which is why frameworks that force a projected entity through handlers are problematic.

category
pattern
about
Reservation Pattern concept
Cited as a case where no entity is needed, so framework-forced entities are harmful.

Provenance

Read by
14 extractions