~/talk

Building and scaling a live event platform with django-channels

Talkat DjangoCon Europe 2023 · on Tuesday, 2023-05-30· at 14:00· Music Hall· [django, web-platform]
slides:none on file

Built a BSL‑licensed virtual event platform called Venueless that runs entirely on django-channels and serves events up to ~5,000 concurrent attendees. Shares concrete tooling and fixes: load testing with k6, profiling with yappi and py‑spy, Redis channel layer using pub/sub and sharding, HAProxy + Daphne/Uvicorn, and a gunicorn max_requests pitfall that killed long‑running consumers. Describes a Redis setnx dedupe pattern for bursty “applause” events and grouped reconnects to avoid mass reconnect storms.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53What is Django Channels
  3. 4:01From Views to Consumers
  4. 5:27Groups and Channel Layers
  5. 7:12Building Venueless Platform
  6. 8:36Defining Wire Protocol
  7. 10:01Code Structure with Modules
  8. 11:49Planning for Failure
  9. 13:13Load Testing Approach
  10. 14:59N Squared Issue in Chat
  11. 16:22Deduplicating Events
  12. 18:50ORM and Async Overhead
  13. 20:17Caching Model Instances
  14. 20:38Infrastructure Instrumentation
  15. 22:26Channels Performance
  16. 23:31Redis Pub Sub vs Sets
  17. 24:12Redis Sharding Fix
  18. 25:1650 Minute Timeout Bug
  19. 26:20Final Infrastructure
  20. 27:03Q&A
~/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.