~/talk

Design and implement a scalable and high performance tcp server with tornado

Talkat PyCon Singapore 2016 · on Thursday, 2016-06-23· [python, networking]
links:none on file
slides:none on file

Uses Tornado as the network layer and splits work into a single-threaded network module that accepts connections and multiple worker processes that handle business logic via a simple command header; packages use a 4-byte length header and three command types (connect, disconnect, relay). Claims a production setup can hit 500k concurrent connections and ~1000 TPS, while the demo sustains 10,000 concurrent clients and about 500 messages/sec; unix domain sockets and per-client IDs speed local worker-to-network transfer.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Agenda
  3. 1:20TCP Server
  4. 1:51Performance Scalability
  5. 3:41Target
  6. 4:23Scaling
  7. 5:00Programming model
  8. 5:55Network library
  9. 6:13Tornado
  10. 7:14Twisted
  11. 8:03Quarantine
  12. 8:49Scalable
  13. 9:39Performance
  14. 10:15System Architecture
  15. 12:18Basic Flow
  16. 12:40Network Modules
  17. 13:00Connection Server
  18. 15:05Cluster
  19. 15:43Architecture
  20. 15:53Network module
  21. 16:21Events
  22. 16:47Global Interpreter Lock
  23. 17:50Partial Data Transmission
  24. 19:43Message Transmission
  25. 22:36Demo
~/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.