Tripadvisor's identity mapping at 20M visitors/day: why they ended up with two databases
arpit_bhayani · x · 2026-12-03
In 2018 Tripadvisor needed to map cookies, device IDs, and user IDs to a common visitor ID for 20M+ daily visitors with a 30ms p99 target and local reads/writes in every region.
- Familiar PostgreSQL was costly across regions: streaming WAL changes, resolving cross-region write conflicts, recovering from replication breaks, plus heavy custom machinery.
- A Cassandra PoC fit multi-region replication better, but traded away consistency — conflicts required keeping the oldest visitor ID and remapping others.
- They ended up with two databases: PostgreSQL for strong-consistency relational workloads, Cassandra for high-volume multi-region identity mapping. No database is universally better.
The author shares an 8-step selection checklist: define actual needs, latency targets, consistency guarantees, optionals, failure modes, operational overhead, custom infra, and future evolution. A database that benchmarks well may be an operational nightmare.
More from Infra
- SealKV: 2-bit KV cache compression cuts memory 6.6x, lifts 64K decode throughput 3.44x — AccBalanced · 2026-12-03
- Deep dive: how SambaNova's three-tier memory and dataflow architecture shapes inference — AccBalanced · 2026-12-03
- DeepSeek's shallow-network obsession: infra economics make serial depth a TPOT killer — teortaxesTex · 2026-12-03
- LlamAmpere v0.8: fastest Ampere runtime hits 200+ TPS on a single RTX 3090, cuts error 20% — Brief-Tap-6616 · 2026-12-03
- RTX 5090 at 3-4x MSRP: image-to-video hobbyist weighs R9700 vs 5080 vs 4090 — jetroar17 · 2026-12-03
- Cloudflare Turnstile now works in mainland China with local endpoints, 10x faster validation — lipeng0820 · 2026-12-03