Web-services that store data in RAM
summary
Argument: put all hot data in RAM on one beefy machine, use in-memory processing, replication and simple front-line validators to hit dramatic latency and throughput gains — authors report 100x speedup over MySQL on TPC-like workloads and 100000 tx/sec on one core (LMAX-style). Implementation notes: fork-based snapshots or transactional memory for rollback, Raft-style replication for failover, and a Disruptor-like ring for inter-thread handoff. Failures: hard manual sharding, custom recovery/undo logs, and language overhead (Python wastes memory and cache locality).
AI-written summary · about
chapters (14)
- 0:00Introduction by speaker
- 3:44Classic web service architecture
- 7:58CPU performance limitations
- 11:32Data volume challenges
- 14:36In-memory data processing idea
- 16:02Handling server failures
- 19:42Transaction management in RAM
- 23:50Scaling beyond single server
- 24:55Example: LMAX system
- 27:20Example: Chat assistant system
- 31:56Q&A session part 1
- 34:49Q&A session part 2
- 39:24Q&A session part 3
- 41:12Q&A session final
