Guide130.2K views1,810 votes0 replies1,994 following
Scaling Gitter Chat History with MongoDB Sharding and TTL Indexes
Designing a persistent message layer for Gitter that handles 10 M daily messages, 30-day TTL retention, and sub-200 ms latency using MongoDB sharding and automatic expiration.