Wiki: Googlies! Grubbers! Lollies! How cricket helped us improve our throughput by 200%

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

This talk explains how a software engineering team improved their service throughput by 200% under sudden massive traffic spikes during a major sports event. The speaker introduces a simple methodology for scale adaptation based on Little’s law from queuing theory, allowing teams to diagnose bottlenecks systematically. By applying these principles and using profiling tools like flame graphs, the team identified and resolved hidden resource constraints without altering core business logic. Ultimately, the audience learns a practical, first-principles framework for optimizing system performance and handling high-scale traffic.

Key points

  • 0:10 A major streaming client secured exclusive rights to stream cricket matches, causing incoming events to spike by over 50% overnight.
  • 9:02 The speaker introduces Little’s law, stating that capacity equals throughput multiplied by latency, which helps break down large systems into manageable subsystems.
  • 13:22 Queuing theory dictates that when arrival rate exceeds system throughput, latency approaches infinity, requiring throughput to be increased to match arrival rate.
  • 14:24 The rule of thumb for optimization is to prioritize increasing capacity through configuration changes before attempting to decrease latency through code modifications.
  • 16:28 In a multi-subsystem architecture, the overall system throughput is constrained by the subsystem with the lowest throughput, defining a bottleneck.
  • 20:10 The team used flame graphs to profile their CPU usage and discovered that a third-party networking library was consuming unexpected amounts of resources.
  • 20:10 Deep investigation revealed that SSL encryption and decryption during HTTP requests were the actual hidden drivers of high CPU consumption.

Takeaways

  • Apply Little’s law to mathematically model system capacity, throughput, and latency.
  • Always look to increase capacity before rewriting code when addressing scalability bottlenecks.
  • Use profiling tools like flame graphs to uncover hidden performance drains rather than guessing.
  • Recognize that overall system throughput is limited by its weakest subsystem.

Questions this talk answers

  • How can I apply queuing theory and Little’s law to identify bottlenecks in my microservices architecture?
  • When facing unexpected traffic spikes, should I focus on optimizing code latency or scaling system capacity?
  • How can flame graphs help diagnose high CPU utilization caused by third-party libraries and SSL?

Technologies

Kafka, Clojure

Tags

architecture, latency, performance optimization, profiling, queuing theory, scalability, throughput