Guide130.2K views1,574 votes0 replies1,238 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.