Skip to main content
  1. System Design Components/

Bounded Mechanism Families And Canonical Realizations

Bounded Mechanism Families And Canonical Realizations #

Use this to keep mechanism study bounded.

The rule:

  • keep the number of top-level mechanism families small
  • treat longer phrases as composed realizations, not new primitives

So:

  • claim + lease + fencing is a realization of ownership control
  • watch + local snapshot is a realization of state propagation
  • manifest + blob publish is a realization of immutable publication
  • batched matching is a realization of selection / assignment

How To Use This #

For any concrete mechanism phrase:

  1. identify the family
  2. name the realization
  3. say what invariant it is protecting
  4. map it to a real system or paper

Template:

  • family:
  • realization:
  • protects:
  • canonical systems/specs:

Core Families #

FamilyWhat It DoesCanonical RealizationsRepresentative Systems / Specs
Guarded Writeprotects a truth update from duplicate, stale, or conflicting mutationCAS, conditional insert, unique constraint, multi-row transactionPostgres INSERT/UPDATE ... WHERE version, DynamoDB conditional write / TransactWriteItems, Spanner transactions
Ownership Controlgives one actor temporary authority to act and rejects stale actorsclaim, lease, fencing token, heartbeat, reaperChubby, ZooKeeper, etcd leases
Append + Replayrecords immutable progress/events and lets consumers resume from positionappend log, offset, cursor, checkpoint, replayKafka, WAL/CDC logs, Pulsar
Projection + Catch-Upbuilds read models asynchronously from source truth and repairs lag/driftCDC projector, materialized view updater, reindex, tombstone propagationDebezium, Kafka Streams, Flink, Elasticsearch indexing pipelines
State Propagationmoves authoritative state from a source of truth to many consumerspoll, watch, push, push-version/pull-snapshot, local snapshot applyxDS, Kubernetes watch/resourceVersion, etcd watch
Immutable Publicationpublishes immutable content safely through versioned metadata or referencesblob/chunk upload, manifest/version record, head/ref publish, reachability GCGit, OCI Distribution Spec, package registries
Time Gatingmakes work or state eligible only after a time boundarydue-time index, delay queue, timing wheel, expiry scanQuartz, timing wheel systems, delayed job queues
Frontier Progressionadvances through a large workset while tracking what is covered and resumableprogress cursor, range claim, checkpoint, resumable scancrawlers, backfill scanners, ETL/frontier systems
Selection / Assignmentchooses winners, candidates, or assignments from a larger setcandidate retrieval, scoring, nearest-match, batched matching, top-kUber matching, marketplace dispatch, Redis ZSET, ANN retrieval
Delivery + Acknowledgmentdelivers work or notifications with retry, replay, and uncertainty handlingoutbox, ack/retry, replay window, inbox dedup, recent-message bufferwebhook delivery systems, message brokers, WebSocket replay windows
Aggregation / Approximationmaintains summaries instead of scanning raw truth every timecounters, windows, sketches, heavy hitters, approximate distinctstreaming top-k systems, Count-Min Sketch, HyperLogLog, Flink windows
Placement / Schedulingdecides where work should run and how capacity is consumedqueue dispatch, scoring/bin-pack, fair scheduling, work stealing, warm poolsBorg, Kubernetes scheduler, Mesos, execution fleets

Canonical Phrase Mapping #

Use this table to keep concrete anchor phrases bounded.

Concrete PhraseFamilyWhy It Is Not A New Primitive
claim + lease + fencingOwnership Controlit is one safe ownership realization, not a new top-level family
watch + local snapshotState Propagationit is one propagation realization into a local applied view
manifest + blob publishImmutable Publicationit is one publish discipline for immutable content plus reference advance
delta sync + conflict materializationState Propagation or Immutable Publicationit is synchronization plus divergence handling, not a new base family
batched matchingSelection / Assignmentit is assignment with a batch optimization window
outbox + idempotent receiverDelivery + Acknowledgmentit is a delivery/uncertainty realization
timing wheel + claim workerTime Gating + Ownership Controlit is a composition of time eligibility and exclusive claim
log + offset commitAppend + Replayit is the standard resume discipline for append logs
CDC + projector + rebuildProjection + Catch-Upit is one projection maintenance realization
top-k heap + windowAggregation / Approximationit is one aggregation realization under a windowing policy

Best Representative Studies #

If you want a bounded serious study plan, one representative per family is enough at first.

FamilyFirst Thing To Study
Guarded WritePostgres transactions and conditional updates
Ownership ControlChubby or etcd leases
Append + ReplayKafka protocol and consumer offsets
Projection + Catch-UpDebezium or Elasticsearch indexing pipeline
State PropagationxDS and Kubernetes watch/resourceVersion
Immutable PublicationGit and OCI Distribution Spec
Time Gatingtiming wheel paper and one delayed-job system
Frontier Progressioncrawler/backfill checkpoint-and-claim system
Selection / AssignmentUber marketplace matching
Delivery + Acknowledgmentoutbox pattern and webhook retry model
Aggregation / ApproximationRedis ZSET plus one sketch family
Placement / SchedulingKubernetes scheduler or Borg

Practical Rule #

When you hear a new concrete mechanism phrase, do not add a new top-level category first.

Ask:

  1. Which family does this belong to?
  2. Is it one realization or a composition of two families?
  3. What invariant is it protecting?

Only add a new family if it repeatedly explains many systems that do not fit the existing ones.

That should be rare.


Interview Shortcut #

Good answer shape:

The concrete mechanic here is watch + local snapshot, but I’d classify that under state propagation: the control plane owns truth, clients watch for version changes, then apply a local snapshot with monotonic version checks.

That keeps the language concrete without letting the taxonomy explode.