Skip to main content
  1. System Design Components/

Archetype To Mechanics To Solution Family Cheat Sheet

Archetype To Mechanics To Solution Family Cheat Sheet #

Use this when the archetype is clear but the implementation family is not.

The key idea:

  • Archetype = problem shape
  • Mechanics = implementation choices
  • Solution family = the resulting class of systems

Product Archetypes #

ArchetypeCommon MechanicsResulting Solution Families
A01 Current-Value Entityrow/document overwrite, CAS, leader-owned state, WAL, event sourcingCRUD service, metadata store, config store, entity service (user profile, inventory metadata, feature flag row)
A02 Relation / Edgeedge table, adjacency index, fanout projection, uniqueness constraintgraph edge service, follow/share system, membership service (Twitter follows, GitHub stars, group membership)
A03 Append-Only Child Objectappend log, ordered partition, parent-local index, moderation tombstoneschat log, comments, reviews, event-stream-backed write path (Slack messages, YouTube comments, Amazon reviews)
A04 Workflow / Lifecycle Statestate machine table, transactional outbox, saga/orchestrator, timersonboarding flow, approval system, order/payment workflow (bank signup, loan approval, order lifecycle)
A05 Derived ProjectionCDC, projector workers, materialized views, cache, recompute jobsfeed store, dashboard, analytics view, read-optimized serving layer (Facebook feed, order history, driver heatmap)
A06 Inventory / Constrained Resourceguarded decrement, reservation row, partitioned allocator, lock/CASbooking engine, seat allocator, stock reservation system (Ticketmaster, airline seats, hotel rooms)
A07 Critical Transaction Processdouble-entry ledger, idempotency keys, transactional outbox, reconciliationpayment processor, ledgered money movement, settlement workflow (Stripe-like payments, bank transfer, wallet debit/credit)
A08 Time-Bounded Exclusive Allocationhold record, TTL/expiry worker, lease, CAS confirmwaitlist claim system, reservation hold system, temporary slot allocation (restaurant claim window, seat hold, appointment hold)
A09 Future Constraint + Claimable Rundue-time index, polling scanner, timing wheel, delayed queue, runnable queuereminder service, scheduler, delayed execution engine (Google Calendar reminders, marketing campaign scheduler, delayed payment execution)
A10 Frontier + Claimable Runpartitioned frontier, claim leases, checkpoints, coverage scannercrawler, migration scanner, ETL backfill, batch coverage system (web crawler, data backfill, storage migration scanner)
A11 Control Plane + Local Snapshotversioned config, snapshot publication, polling/push apply, monotonic versioningfeature flags, config distribution, policy rollout system (LaunchDarkly-style flags, Envoy xDS, central policy rollout)
A12 Matching / Assignmentcandidate search, scoring, lease/claim, timeout/reassignrideshare dispatch, matchmaking, courier assignment (Uber dispatch, Tinder matching queue, delivery driver assignment)
A13 Ranking / Leaderboardstreaming aggregation, top-k heap, windowed counters, periodic recomputeleaderboard, trending, top-N analytics (gaming leaderboard, Twitter trending, top products dashboard)
A14 Realtime Fanoutwebsocket sessions, broker/pub-sub, append log plus fanout workers, presence registrychat delivery, live comments, realtime notifications (Slack delivery, live sports comments, presence updates)
A15 Search-First Productinverted index, shard fanout, indexing pipeline, cachesearch engine, nearby search, retrieval system (Yelp search, Google Search, RAG retrieval)
A16 Auction / Competitive Windowappend bid log, current-best state, close-time finalizer, fencingauction platform, bidding engine, spot-market allocation (eBay auctions, ad bidding, EC2 spot bidding)
A17 Shared Mutable Subjectsingle sequencer, OT, CRDT, op log plus snapshot, shard ownershipGoogle Docs, whiteboard, collaborative editor (Google Docs, Figma, Miro)
A18 Versioned Namespace + Immutable Content Unitsimmutable blobs, manifests, head-pointer CAS, dedup, sync changelogDrive/Dropbox, artifact registry, object/version store (Google Drive, Dropbox, Docker registry)
A19 Catalog + Scoped Relationdefinition store, scoped attach table, projection/index, policy inheritanceproduct catalog, tagging/policy attachment, scoped config/catalog systems (Instacart catalog, Atlassian tagging, menu-by-store)

Infrastructure Archetypes #

Infra ArchetypeCommon MechanicsResulting Solution Families
I01 Coordination / Consensus Metadataquorum replication, leader election, watches, revisionsetcd/ZooKeeper-style metadata plane, shard ownership service (etcd, ZooKeeper, Consul)
I02 Claim / Lease / Exclusive Ownershiplease table, TTL, renewals, fencing epochsdistributed lock, worker claim service, exclusive-owner control (Chubby lock, Redis lease, scheduler job claim)
I03 Due-Time Release + Claimable Runschedule index, due scanner, delayed queue, runnable materializationscheduler core, retry engine, reminder release service (Quartz, Celery ETA tasks, reminder service)
I04 Frontier Scan + Claimable Runfrontier partitions, checkpoints, batch claims, resumable scanscrawler control plane, migration scanner, backfill engine (Google crawler control, data migration scanner, MapReduce input split scanner)
I05 Append Log + Consumer Progressreplicated log, offsets, consumer groups, replayKafka-like log, CDC transport, durable event backbone (Kafka, Pulsar, Debezium/Kafka CDC)
I06 Projection / Index / Search PipelineCDC/outbox, indexers, rebuild jobs, shard fanoutsearch indexing, feed projection, derived read-model pipeline (Elasticsearch indexing, feed fanout pipeline, materialized view projector)
I07 Cache / Origin Projection / Edge DeliveryTTL cache, write-through/back, invalidation, CDNdistributed cache, edge cache, origin shielding (Redis cache, Memcached tier, Cloudflare CDN)
I08 Rate Limit / Budget / Token Accountingtoken bucket, sliding window, local snapshots, centralized budgetsAPI rate limiter, quota service, spend control (API gateway limiter, Stripe quota, cloud budget enforcement)
I09 Sequence / Identifier Generationcounters, range leasing, worker-id assignment, epochsSnowflake-like ID service, sequence allocator (Twitter Snowflake, DB sequence service, range-leased ID allocator)
I10 Membership / Presence / Registryheartbeats, soft-state expiry, watch streams, registriesservice discovery, presence service, room membership (Consul service registry, Slack presence, chat room membership)
I11 Control Plane + Snapshot Distributionconfig store, snapshot publish, versioned applyfeature-flag infra, control-plane rollout, agent config distribution (LaunchDarkly infra, Envoy xDS, Kubernetes config propagation)
I12 Workflow + External Side Effectoutbox, retries, reconciliation, effect logswebhook engine, external action orchestration, integration workflow (Stripe webhooks, Zapier-style workflow, email delivery workflow)
I13 Shared Subject Coordinationsequencer, op log, versioning, subscriberscollaborative infra core, shared-state coordinator (Docs backend coordinator, Figma multiplayer core, shared whiteboard engine)
I14 Immutable Artifact Namespace + Deliverymanifests, immutable blobs, namespace heads, CDNpackage registry, image registry, artifact distribution (npm, Docker Hub, Maven Central)
I15 Execution Fleet + Worker Substrateplacement, leases, heartbeats, runtime slots, warm poolsLambda/GitHub Actions runner fleet, batch execution substrate, job runner cluster (AWS Lambda, GitHub Actions runners, Kubernetes job workers)

Usage Rule #

For any prompt:

  1. identify the archetype
  2. choose the mechanics that fit the NFRs
  3. draw the resulting solution family

The same archetype can produce very different designs once the mechanics change.