~/talk

What the heck is gevent?

Talkat Scale By the Bay 2021 · 2021-10-28..10-29· [python, concurrency]
links:none on file
links:none on file
slides:none on file

Gevent is a coroutine-based concurrency layer that uses greenlets and runtime monkey patching to make blocking libraries yield, letting Python microservices increase throughput (Lyft measures ~12x in benchmarks) but creating hidden correctness and scheduling risks. Specific failures: bike/scooter offers flicker because a pricing endpoint hits a 500 ms per-mode deadline and 0.5% of requests drop; isolating the endpoint to dedicated hosts raises reliability from ~2.5 nines to ~4.5 nines. Beware mixing CPU work and I/O — p99s can triple as greenlet count rises.

AI-written summary · about

  1. 0:00Intro
  2. 1:21What is gevent
  3. 4:40Core routines
  4. 6:21Cooperative multitasking
  5. 7:23Monkey patching
  6. 8:08Cooperative routines
  7. 8:50Code examples
  8. 16:51Performance
~/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.