Every database makes a trade-off between how it indexes data, how it spreads data across machines, and how strictly its replicas must agree before a write is considered "done." This lab renders three real storage architectures side by side so those trade-offs become visible instead of abstract.
mongos router hashes the query's shard key and forwards it directly to the shard holding that range of documents, so only one shard is touched per query.PostgreSQL's default B-tree index keeps lookups at roughly 3-4 hops even for millions of rows, because each internal node fans out to hundreds of children — that's why "logarithmic" index scans stay fast at huge scale.
Switch between PostgreSQL, MongoDB and Redis and watch a live query travel through each engine's real storage structure — a B-tree index walk, sharded document routing, or a flat in-memory hash lookup.
Each engine's architecture is rendered as 3D geometry: PostgreSQL's B-tree index and disk heap, MongoDB's mongos router and shards, and Redis's flat RAM hash grid — with replica nodes syncing behind the primary.
Pick a database engine, then tune query rate, replica count and shard count. Toggle Strong vs Eventual consistency to see replication lag and read latency respond in real time.
Redis reads are typically sub-millisecond because there is no index tree to walk and no disk seek — the entire dataset already lives in RAM as one big hash table.