Skip to main content

Scenario: Shopify Transactional Outbox

Diagram convention: Arrows and messages are labeled 1, 2, 3… to show processing order. Each diagram is followed by a Step-by-step flow table explaining every numbered step.

1. The Interview Question​

"When a customer places an order, you must update inventory, persist the order, and notify the search index and shipping service. How do you avoid the dual-write problem?"

2. Real-World Context​

DimensionDetail
Company / systemShopify — commerce platform; event-driven architecture at massive Black Friday scale
ScalePeak order spikes (millions/hour); downstream consumers (search, fulfillment, analytics) must stay consistent with orders DB
Why architects care"Write DB then publish to Kafka" causes silent drift — orders exist but search doesn't show them
Public referencesShopify engineering blog; transactional outbox pattern

AWS deployment context​

Typical Shopify-style order platform on AWS: ECS Fargate order service with Amazon Aurora PostgreSQL (orders + outbox table in same DB); Amazon MSK (Kafka) for event bus; ECS/Lambda outbox relay (polling or MSK Connect + Debezium CDC); OpenSearch for search index; SQS for shipping webhooks; CloudWatch for outbox lag metrics; DynamoDB optional for consumer inbox dedup at scale.

Step-by-step flow:

StepActionExplanation
1Place orderCustomer completes checkout; POST /orders.
2Route APICloudFront + ALB route to Order API.
3Create orderOrder service validates inventory reservation.
4Atomic txnSingle Aurora transaction: INSERT orders + INSERT outbox.
5Poll outboxRelay claims unpublished rows (FOR UPDATE SKIP LOCKED).
6Publish eventRelay produces OrderCreated to MSK with key=order_id.
7–9Fan-outSearch, shipping, analytics consume independently — at-least-once.

3. Step-by-Step Interview Answer​

Minutes 0–5: Requirements​

  1. Atomicity: Order row and "something happened" must not diverge.
  2. Delivery: Downstream gets at-least-once events; consumers idempotent.
  3. Ordering: Per order_id, events must be ordered.
  4. Non-goal: Distributed transaction across inventory and search DBs (different services).
  5. Assumption: Single Aurora cluster per order service; MSK for event bus.

Minutes 5–15: Pattern — dual-write problem vs outbox​

The dual-write anti-pattern (say aloud):

Step-by-step flow:

StepActionExplanation
1INSERT orderOrder row written to Aurora.
2Publish eventSeparate network call to MSK — not atomic with step 1.
3aDB commits, Kafka failsOrder exists; search/fulfillment never notified — silent drift.
3bKafka publishes, DB rolls backConsumers act on order that was never committed — ghost event.

The transactional outbox solution:

Step-by-step flow:

StepActionExplanation
1BEGIN transactionOpen local ACID transaction on Aurora.
2INSERT ordersPersist order row with status pending.
3INSERT outboxWrite OrderCreated event payload in same txn.
4COMMITBoth rows durable atomically — no orphan publish possible.
5Poll outboxRelay claims batch of unpublished rows; SKIP LOCKED for concurrency.
6PublishProduce to MSK topic orders with partition key = order_id.
7Mark publishedSet published_at; on crash before step 7, relay retries — duplicate event.

Step 1 — Single DB transaction (SQL):

BEGIN;
INSERT INTO orders (order_id, merchant_id, total_cents, status, created_at)
VALUES ('ord_991', 'shop_42', 24750, 'pending', now());
INSERT INTO outbox (id, aggregate_id, event_type, payload, created_at)
VALUES (
'evt_a1b2',
'ord_991',
'OrderCreated',
'{"order_id":"ord_991","merchant_id":"shop_42","total_cents":24750}',
now()
);
COMMIT;

Minutes 15–30: Relay implementations​

ApproachProsCons
PollingSimple; works everywhere; easy to debugLatency 100–500ms; DB read load
CDC (Debezium + MSK Connect)Near real-time (<100ms); less poll loadOps complexity; schema coupling to WAL
Transactional messagingKafka transactionsBroker + DB coupling; limited portability

Principal pick: Start polling; move to CDC when relay lag becomes SLO risk (p99 > 500ms).

Step-by-step flow:

StepActionExplanation
A1Poll loopRelay wakes every 100ms; queries published_at IS NULL.
A2Claim rowsSKIP LOCKED lets multiple relay instances work in parallel.
A3Publish + markAfter MSK ack, set published_at in same relay txn.
B1WAL streamAurora writes change to write-ahead log on commit.
B2DebeziumConnector tails WAL; emits change events without polling.
B3MSK ConnectStreams directly to Kafka — relay logic in connector.

Minutes 30–45: Failure modes and consumer idempotency​

FailureOutcomeMitigation
Relay crash after publish, before markDuplicate eventConsumer inbox dedup by event.id
Relay stuckGrowing outbox lagAlert on unpublished_count; scale relay
Poison row (bad payload)Relay blocks partitionDLQ + skip policy after N attempts
Consumer slowConsumer lagScale consumers; backpressure
Cross-service inventoryNo atomicity with order DBSaga or reservation pattern

Step-by-step flow:

StepActionExplanation
1First deliveryMSK delivers OrderCreated to search consumer.
2–3Dedup checkQuery processed_events — not seen before.
4Index orderWrite to OpenSearch index.
5Record processedInsert event_id in inbox — same txn as index write.
6Duplicate deliveryRelay retry or MSK redelivery sends same event again.
7–8SkipInbox hit — consumer returns without re-indexing.

Metrics: Outbox lag (p99 age of unpublished rows); consumer lag; duplicate rate; relay throughput.


4. Whiteboard Guide​

Draw left-to-right:

  1. Box: Order Service DB containing orders + outbox tables (single transaction arrow)
  2. Arrow to Relay → MSK Kafka (partition by order_id)
  3. Fan-out to Search, Shipping, Analytics consumers
  4. Each consumer: Inbox dedup → business logic
  5. Label the gap: "dual-write = two separate commits"

AWS whiteboard layout​

Step-by-step flow:

StepActionExplanation
1Single txnOrder + outbox committed atomically in Aurora.
2Poll / CDCRelay reads unpublished outbox rows.
3ProduceEvent published to MSK with ordering key.
4–6Fan-outIndependent consumers with inbox dedup.

5. Principal-Level Signals​

  • Explains why 2PC across DB + Kafka is avoided (blocking, ops complexity, partial failure)
  • States at-least-once + idempotent consumer = effective exactly-once illusion
  • Mentions ordering per aggregate via Kafka partition key (order_id)
  • Operational metric: outbox relay lag (p99 age of unpublished rows)
  • Distinguishes outbox (producer side) from inbox (consumer side dedup)
  • Knows when to graduate from polling to CDC (relay lag SLO breach)

6. Red Flags​

  • "Write to DB then publish to Kafka" without outbox — dual-write guaranteed eventually
  • Expecting Kafka exactly-once without idempotent consumers
  • No event.id for dedup — duplicates cause double-shipments
  • Polling without SKIP LOCKED — relay instances block each other
  • Marking published before MSK ack — event loss on crash

7. Follow-Up Questions​

QuestionStrong answer
What if relay publishes but crashes before marking?Duplicate event — safe if consumers dedupe by event.id
How to order events per order?Kafka partition key = order_id; single partition per key
Outbox vs inbox?Outbox = producer atomicity; inbox = consumer idempotency
When CDC over polling?Relay lag p99 > 500ms or DB poll load > 10% CPU
Inventory in different service?Saga: reserve → order → confirm; outbox per service

Hands-On Lab (Local)​

Run the full outbox pattern on your laptop — no AWS required.

cd labs/lab-009-outbox-pattern
docker compose -p lab009 -f docker/docker-compose.yml up --build -d
curl http://localhost:8092/health
./scripts/demo_outbox.sh
StepAPIProves
POST /v1/ordersOrder + outbox row commit atomicallyNo dual-write
POST /v1/relay/runPublish to brokerAt-least-once relay
POST /v1/consumer/run ×2Second call dedupesIdempotent consumer

Swagger: http://localhost:8092/docs

Chapter deep-dive: Transactional Outbox.

9. Practice Drill​

Whiteboard the outbox flow in 8 minutes with numbered steps 1–7. Answer: "What if relay publishes but crashes before marking published?" Then draw the consumer inbox dedup flow.


10. Production High-Level Design​

Build guide for implementing Shopify-style transactional outbox on AWS.

10.1 Architecture diagram index​

SectionTopic
§2End-to-end AWS deployment
§3Dual-write vs outbox sequence
§10.2C4 logical context
§10.3Full VPC production stack
§10.4MSK topic design + ordering
§11.4Order handler sequence
§11.5Relay polling loop
§11.6CDC alternative
§12Multi-AZ Aurora + MSK
§13Metrics and alerts
§146-week rollout
§15Integration + chaos tests
§16Production readiness

10.2 System context (C4 Level 1)​

Step-by-step flow:

StepActionExplanation
1CheckoutCustomer places order via storefront.
2Admin APIMerchant updates order status — also uses outbox.
3WebhookPartner integrations receive events via outbox fan-out.
4Atomic writeOrder + outbox in single Aurora transaction.
5Read outboxRelay claims unpublished events.
6PublishEvents flow to MSK for downstream consumption.

10.3 AWS production architecture (full stack)​

Step-by-step flow:

StepActionExplanation
1TLS edgeCloudFront terminates TLS for storefront API.
2WAFRate limit checkout; bot protection during Black Friday.
3Create orderALB routes to Order API; validates idempotency key.
4Txn commitAurora: orders + outbox + inventory_reservations in one txn.
5Poll outboxRelay claims rows; multiple relay tasks via SKIP LOCKED.
6ProduceMSK orders topic; key = order_id for ordering.
7IndexSearch consumer reads from MSK; inbox dedup.
8WebhookShipping Lambda triggered by MSK event source mapping.
9Write indexOpenSearch document indexed for merchant search.
AWS componentOutbox responsibility
Aurora PostgreSQLorders + outbox in same DB — atomic local txn
ECS Order APIWrites outbox row on every state change
ECS Outbox RelayPolls + publishes; horizontal scale with SKIP LOCKED
Amazon MSKDurable event log; partition by order_id
OpenSearchSearch projection — eventually consistent with orders DB
CloudWatchoutbox_lag_seconds, relay_throughput, consumer_lag

10.4 Event topology and ordering​

Step-by-step flow:

StepActionExplanation
1ProduceRelay sends event with key=order_id — same order always same partition.
2PartitionMSK hashes key → partition; guarantees order per order_id.
3Poison DLQAfter 5 failed publish attempts, row moves to DLQ for manual review.

Event catalog:

Event typeTopicKeyConsumers
OrderCreatedordersorder_idSearch, Shipping, Analytics
OrderPaidordersorder_idFulfillment, Billing
OrderCancelledordersorder_idInventory (release), Search (remove)
OrderShippedordersorder_idNotifications, Analytics

10.5 Service sizing at 5K orders/sec peak (Black Friday)​

MetricValueReasoning
Peak order QPS5,000Large merchant platform
Outbox rows per order1–3Created + paid + shipped events
Relay batch size100 rowsBalance latency vs DB round-trips
Relay instances105K rows/sec ÷ 500 rows/sec/instance
MSK partitions325K/sec ÷ 32 ≈ 156 msg/sec/partition
Target relay lag p99< 500msSearch index freshness SLO

Step-by-step flow:

StepActionExplanation
1Order rate5K checkout completions per second at peak.
2Outbox growthOne row per order event — 5K rows/sec written.
3Relay capacity10 relays × 100 batch × 5 polls/sec = 5K rows/sec.
4MSK throughput32 partitions distribute load; monitor per-partition lag.

11. Production Low-Level Design​

11.1 API contract​

Endpoint: POST /v1/orders

Required headers:

HeaderRule
AuthorizationBearer <merchant_api_key>
Idempotency-KeyUnique per checkout attempt — prevents duplicate orders
Content-Typeapplication/json

Request body:

{
"merchant_id": "shop_42",
"line_items": [
{"variant_id": "var_991", "quantity": 2, "price_cents": 12375}
],
"customer_id": "cust_8f3a",
"shipping_address": {"country": "US", "zip": "94105"}
}

Response semantics:

HTTPMeaningClient action
201Order created; outbox event queuedPoll GET /orders/{id} or wait for webhook
200Idempotency hit — same key, same responseUse cached order_id
409Same key, different payloadBug — new idempotency key required
422Inventory insufficientDo not retry; show user "out of stock"
503Aurora unavailableRetry with same idempotency key

11.2 Database schema​

Table: orders

CREATE TABLE orders (
order_id VARCHAR(64) PRIMARY KEY,
merchant_id VARCHAR(64) NOT NULL,
customer_id VARCHAR(64) NOT NULL,
total_cents BIGINT NOT NULL,
status VARCHAR(16) NOT NULL DEFAULT 'pending',
idempotency_key VARCHAR(255),
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),

CONSTRAINT uq_merchant_idem UNIQUE (merchant_id, idempotency_key)
);

CREATE INDEX idx_orders_merchant_status ON orders (merchant_id, status, created_at DESC);

Table: outbox

CREATE TABLE outbox (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
aggregate_id VARCHAR(64) NOT NULL, -- order_id
event_type VARCHAR(64) NOT NULL, -- OrderCreated, OrderPaid, etc.
payload JSONB NOT NULL,
topic VARCHAR(128) NOT NULL DEFAULT 'orders',
partition_key VARCHAR(64) NOT NULL, -- order_id for Kafka ordering
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
published_at TIMESTAMPTZ,
publish_attempts SMALLINT NOT NULL DEFAULT 0,
last_error TEXT,

CONSTRAINT chk_publish_state CHECK (
(published_at IS NULL AND publish_attempts >= 0) OR
(published_at IS NOT NULL)
)
);

CREATE INDEX idx_outbox_unpublished ON outbox (created_at ASC)
WHERE published_at IS NULL;

Table: inventory_reservations (same txn)

CREATE TABLE inventory_reservations (
reservation_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
order_id VARCHAR(64) NOT NULL REFERENCES orders(order_id),
variant_id VARCHAR(64) NOT NULL,
quantity INT NOT NULL,
status VARCHAR(16) NOT NULL DEFAULT 'reserved',
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),

CONSTRAINT uq_variant_order UNIQUE (variant_id, order_id)
);

Table: processed_events (consumer inbox — search service DB)

CREATE TABLE processed_events (
event_id UUID PRIMARY KEY,
processed_at TIMESTAMPTZ NOT NULL DEFAULT now()
);

-- TTL cleanup: DELETE WHERE processed_at < now() - interval '7 days'

11.3 Outbox row lifecycle​

Step-by-step flow:

StepActionExplanation
1PENDINGRow inserted in same txn as order — published_at IS NULL.
2PUBLISHINGRelay claims with FOR UPDATE SKIP LOCKED.
3PUBLISHEDMSK ack received; published_at = now().
4Back to PENDINGCrash before mark — relay retries; duplicate delivery OK.
5POISON5 failed attempts — move to DLQ; alert on-call.

11.4 Order placement handler — step-by-step (low level)​

Step-by-step flow:

StepActionExplanation
1POST /ordersClient submits checkout with idempotency key.
2RouteALB picks healthy Order API task.
3BEGINOpen transaction; check (merchant_id, idempotency_key).
4aIdempotency hitReturn cached order — no duplicate outbox row.
4bNew orderInsert order, reserve inventory, write outbox row.
5bCOMMITAll three writes atomic — order exists iff event queued.
6b201 CreatedReturn order_id to client immediately — async publish follows.
7Claim outboxRelay polls unpublished rows; SKIP LOCKED for parallelism.
8ProduceSend OrderCreated to MSK partition keyed by order_id.
9AckMSK confirms durable write to partition leader.
10Mark publishedSet published_at — relay complete for this row.

Handler pseudocode:

def create_order(req: CreateOrderRequest, idempotency_key: str) -> OrderResponse:
with db.transaction() as txn:
# Step 1: Idempotency check
existing = txn.query(
"SELECT order_id, response_body FROM orders "
"WHERE merchant_id = %s AND idempotency_key = %s",
req.merchant_id, idempotency_key,
)
if existing:
return OrderResponse.from_cache(existing.response_body)

# Step 2: Reserve inventory (same txn)
for item in req.line_items:
txn.execute(
"UPDATE inventory SET reserved = reserved + %s "
"WHERE variant_id = %s AND available >= %s",
item.quantity, item.variant_id, item.quantity,
)
if txn.rowcount == 0:
raise InsufficientInventoryError(item.variant_id)

# Step 3: Insert order
order_id = generate_order_id()
txn.execute("INSERT INTO orders (...) VALUES (...)", order_id, ...)

# Step 4: Insert outbox event (same txn)
event_id = str(uuid4())
txn.execute(
"INSERT INTO outbox (id, aggregate_id, event_type, payload, partition_key) "
"VALUES (%s, %s, 'OrderCreated', %s, %s)",
event_id, order_id, json.dumps({...}), order_id,
)

# Step 5: COMMIT — atomic
txn.commit()

return OrderResponse(order_id=order_id, status="pending")

11.5 Outbox relay — polling implementation​

def relay_loop(batch_size: int = 100, poll_interval_ms: int = 100):
while True:
with db.transaction() as txn:
rows = txn.query("""
SELECT id, topic, partition_key, event_type, payload
FROM outbox
WHERE published_at IS NULL
AND publish_attempts < 5
ORDER BY created_at ASC
LIMIT %s
FOR UPDATE SKIP LOCKED
""", batch_size)

for row in rows:
try:
# Step 1: Produce to MSK (wait for ack)
producer.send(
topic=row.topic,
key=row.partition_key.encode(),
value=serialize_avro(row),
headers=[("event_id", str(row.id).encode())],
).get(timeout=5) # blocks until ack

# Step 2: Mark published ONLY after ack
txn.execute(
"UPDATE outbox SET published_at = now() WHERE id = %s",
row.id,
)
except Exception as e:
txn.execute(
"UPDATE outbox SET publish_attempts = publish_attempts + 1, "
"last_error = %s WHERE id = %s",
str(e), row.id,
)
txn.commit()

time.sleep(poll_interval_ms / 1000)

Step-by-step flow (relay):

StepActionExplanation
1Claim batchSKIP LOCKED — multiple relay instances work in parallel.
2ProduceSend to MSK; block until broker ack.
3Mark publishedOnly after ack — prevents event loss.
4On failureIncrement publish_attempts; row retried next poll.
5PoisonAfter 5 attempts → alert + manual DLQ review.
ParameterValueWhy
batch_size100Throughput vs latency tradeoff
poll_interval_ms100Target p99 relay lag < 500ms
FOR UPDATE SKIP LOCKEDRequiredMulti-instance relay without blocking
Mark after ackRequiredPublish-before-mark = event loss on crash

11.6 CDC relay (Debezium + MSK Connect)​

Step-by-step flow:

StepActionExplanation
1CommitOrder + outbox row written to Aurora WAL on commit.
2TailDebezium reads WAL — no polling load on outbox table.
3TransformConnector maps outbox row → Kafka record.
4ProduceDirect stream to MSK — sub-100ms latency.
5Mark publishedOptional: connector updates published_at via sink connector.

When to use CDC:

SignalThresholdAction
Relay lag p99> 500ms sustainedEvaluate CDC migration
Outbox poll CPU> 10% Aurora CPUCDC removes poll load
Event volume> 10K rows/secCDC scales better

11.7 Search consumer — inbox pattern​

def handle_order_created(event: OrderCreatedEvent):
with search_db.transaction() as txn:
# Step 1: Dedup check
exists = txn.query(
"SELECT 1 FROM processed_events WHERE event_id = %s",
event.event_id,
)
if exists:
return # idempotent — already processed

# Step 2: Business logic
txn.execute(
"INSERT INTO search_index (order_id, merchant_id, status, ...) "
"VALUES (%s, %s, %s, ...)",
event.order_id, event.merchant_id, "pending", ...,
)

# Step 3: Record processed (same txn as index write)
txn.execute(
"INSERT INTO processed_events (event_id) VALUES (%s)",
event.event_id,
)
txn.commit()

Step-by-step flow:

StepActionExplanation
1Dedup checkQuery inbox — skip if event_id already seen.
2Business logicIndex order in OpenSearch / search DB.
3Record processedInsert event_id in same txn — atomic with index write.

11.8 Cross-service inventory (saga complement)​

Outbox is per-service. Inventory lives in a separate service — use saga. Hands-on: Sagas §25 — Lab 010 on :8093 (engineer guide).

Step-by-step flow:

StepActionExplanation
1ReserveSync call to inventory — saga step 1 (compensatable).
2ReservedInventory holds stock with TTL.
3Order txnOrder + outbox committed — order exists.
4PublishDownstream notified asynchronously.
5ConfirmInventory consumer confirms reservation on OrderCreated.
6CompensateOrderCancelled event triggers reservation release.

12. HA/DR and Failover​

12.1 Aurora Multi-AZ (write path)​

Step-by-step flow:

StepActionExplanation
1Write txnAll order + outbox writes go to Aurora writer.
2Read idempotencyRead replica OK for idempotency cache hits.
3Sync replicateReader catches up in <100ms — failover ready.

Failover impact: Unpublished outbox rows survive on promoted replica; relay resumes automatically.

12.2 MSK Multi-AZ (publish path)​

ComponentHA configFailover behavior
MSK brokers3 AZs, replication factor 3Automatic leader election
Outbox relayECS service × 3 AZsSKIP LOCKED — no duplicate claim
Consumer groupsRebalance on broker failoverAt-least-once redelivery

12.3 Regional DR​

Step-by-step flow:

StepActionExplanation
1ReplicationAurora Global Database streams outbox rows to DR region.
2PromoteRPO typically <1s; RTO target <15 min.
3DR relayRelay in DR region reads unpublished rows from promoted DB.
4DR MSKEvents published to DR MSK cluster; consumers failover via DNS.

13. Observability and Operations​

13.1 Metrics and alerts​

Required metrics:

MetricAlert thresholdWhy
outbox_unpublished_count> 1000 for 5 minRelay falling behind
outbox_lag_seconds_p99> 500msSearch freshness SLO breach
outbox_poison_count> 0Manual intervention required
relay_publish_error_rate> 1%MSK connectivity issue
msk_consumer_lag> 10,000 messagesDownstream slow
duplicate_event_rateInformationalValidates idempotency working

Structured log (every outbox publish):

{
"event_id": "evt_a1b2",
"order_id": "ord_991",
"event_type": "OrderCreated",
"relay_instance": "relay-task-3",
"publish_latency_ms": 42,
"msk_partition": 7,
"outbox_age_ms": 128
}

13.2 Runbook — outbox lag incident​

StepActionOwner
1Confirm outbox_lag_seconds_p99 alert firingSRE
2Check MSK broker health + relay error rateSRE
3Scale relay ECS tasks (+50%)SRE
4If DB CPU high from polling → evaluate CDC migrationPlatform
5If poison rows → move to DLQ, fix payload, replayOrder team
6Verify consumer lag decreasingSRE
7Post-incident: review relay batch size + poll intervalPlatform

14. Implementation Roadmap (6-Week Rollout)​

WeekDeliverableAWS services
1Outbox schema + atomic order txnAurora, ECS
2Polling relay + MSK topicECS, MSK
3Consumer inbox dedupAurora (search DB), ECS
4Search + shipping consumersOpenSearch, Lambda
5Dashboards + load testCloudWatch, k6
6CDC evaluationMSK Connect, Debezium

15. Testing Strategy​

Test typeToolScenario
Unitpytest / JUnitOutbox insert in mocked txn
IntegrationTestcontainers (Postgres + Kafka)Full order → relay → consumer
IdempotencyCustomDuplicate Idempotency-Key → same response
Relay crashChaosKill relay after MSK ack, before mark → duplicate delivery
Loadk65K orders/sec; verify lag p99 < 500ms
Poison rowManualBad payload → DLQ after 5 attempts

Pass criteria:

MetricThreshold
Outbox lag p99 at 5K QPS< 500ms
Zero lost events (order exists → event eventually published)100%
Duplicate delivery handledConsumer inbox dedup 100%
IdempotencySame key → same order_id

16. Architecture Review Checklist​

#GateStatus
1Order + outbox in single Aurora transaction☐
2Relay marks published_at only after MSK ack☐
3FOR UPDATE SKIP LOCKED for multi-instance relay☐
4Kafka partition key = order_id for ordering☐
5Every consumer has inbox dedup by event_id☐
6Poison row policy (5 attempts → DLQ)☐
7outbox_lag_seconds dashboard + alert☐
8Idempotency key on POST /orders☐
9Load test at peak QPS validates relay lag SLO☐
10Cross-service inventory uses saga (not 2PC)☐
11Aurora Multi-AZ + MSK 3-AZ deployment☐
12DR runbook: relay resumes on promoted replica☐