MySQL for Messaging
summary
Facebook moves mobile messaging onto a three-tier queue that keeps recent items in memory, weeks of data on flash, and long term on disk, using iris queue fronting a MySQL flash layer. It runs millions of messages per second, targets single-digit millisecond reads and writes, and relies on MySQL 5.6 GTIDs and semi-synchronous replication plus multi threaded slaves and lightweight “log tailors” to get under 30 second automated failover with no data loss.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:37Traditional messages
- 1:51Mobile-to-mobile
- 4:16Queue
- 6:26Tiered Storage
- 7:27Backend needs
- 8:21Options
- 9:53Why not
- 11:17MySQL Replication
- 12:22Multithreaded Slave
- 14:20Semi-sync
- 16:03Master commit path
- 19:03Fast Failover
- 20:27Big Picture
related talks
25mData in the Cloud
01h 01mPanel: Facebook's Distributed Database Evolution
43mMulti-tenant HBase Solutions at Facebook
23mScaling Memcache
55mThe Future of MySQL
47mLessons Learned from Our Main Database Migrations at Facebook
50mInnoDB to MyRocks Migration in Main MySQL Database
43mHow WhatsApp moved 1.5B users across data centers
