Never double-charge or lose money movement. Prefer durable ledger records, idempotent requests, strong consistency around balances, and reconciliation.
11
New cards
Design metrics/analytics: core components
Event ingestion, queue/stream, processors, time-series or columnar storage, aggregation jobs, dashboards, alerts, and retention policies.
12
New cards
Analytics consistency tradeoff
Analytics can often be eventually consistent. Prioritize high write throughput, cheap storage, deduplication, and late-arriving event handling.