~/talk

Scaling Betfair Exchange to support 160k rps using Apache Kafka

Talkat ApacheCon@Home 2021 · 2021-09-21..09-23· [databases]
links:none on file
slides:none on file

Betfair moves its exchange state onto Kafka, replacing a DB-bound monolith so read APIs scale to about 160k rps across 32 nodes and transactional input scales from ~2.5k/s per DB connection toward ~25k/s using Kafka as the input queue. The event model uses in-band snapshot and delta or out-of-band snapshots for large datasets, encodes messages with Protocol Buffers, and achieves long-running reliability and easy rewind/replay for debugging and replay.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 2:09Betfair exchange and growth
  3. 5:40How betting exchange works
  4. 8:07Load profile and API demands
  5. 9:32Legacy architecture limitations
  6. 12:38Need for new scalable solution
  7. 13:22Designing Kafka-based event stream
  8. 14:49In-band snapshot and delta model
  9. 18:40Out-of-band snapshot strategy
  10. 21:04Data encoding and consumer libraries
  11. 22:29Kafka architecture and prototype
  12. 23:55Kafka cluster setup and reliability
  13. 26:00Migrating customers to new stack
  14. 27:46Scaling to 160k requests per second
  15. 28:29Migration results and benefits
  16. 29:33Expanding to FanDuel with Kafka
  17. 31:20Cross-Atlantic catalog distribution
  18. 33:26Future Kafka use cases
  19. 35:10Kafka as input queue for bid placement
  20. 36:32Operational streams and data lake
  21. 37:34Conclusion and career opportunities
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.