←Back to Tutorials

Database Selection Guide

Master the art of choosing the right database for any system design scenario.

45 minutes
11Detailed Sections
Senior Level

A comprehensive comparison of popular databases across key system design dimensions.

Comparison Table

DB / SystemRoleScale (ops/sec)ConsistencyLatencyBest For
PostgreSQLOLTP10k–1M+Strong ACIDLow msCore transactional systems, payments, ledgers
MySQLOLTP10k–100k+Strong ACIDLow msWeb backends, payments, legacy fintech
OracleOLTP/OLAP100k+Strong ACIDLow msCore banking, card processing, data hubs
CockroachDBOLTP (Dist)Hundreds of kStrong ACIDLow ms (Net)Global consistency, regional residency
ClickHouseOLAPMillionsAnalyticalSub-secondTrade analytics, risk, dashboards
kdb+OLAP (TS)Millions+Strong (Proc)MicrosecondHFT tick data, real-time market analytics
CassandraOLTP (Wide)MillionsTunable / APSingle msEvent logs, telemetry, risk/fraud events
MongoDBOLTP (Doc)100k+Strong (Majority)Low msCustomer data, content, microservices
RedisOLTP (KV)1M+Strong (Key)Sub-msCaching, sessions, rate-limiting
KafkaLog/StreamMillions+Durable logLow msEvent pipelines, CDC, audit logs
Geohash/S2IndexingHighEventualLow msUber/Lyft, proximity search at scale
QuadtreeIndexingVery HighStrong (In-Mem)MicrosecondYelp, real-time spatial discovery
DgraphGraph (Dist)HighStrong ACIDLow msSocial graphs, GraphQL-native apps

Sign in to unlock

Sign In Free