Does Python have the secret sauce to be web scale?
summary
Survey of practical Python options for web scale that hits specifics not slogans it cites the C10K target of 10k concurrent connections and explains the kernel mechanisms epoll and kqueue used via libevent/libev it contrasts callback Twisted, generator/coroutine Tornado and gevent and Stackless/greenlet tasklets it shows a working pattern converting psycopg to nonblocking with a decorator in ~160 lines so synchronous DB calls become async while keeping the same call style and running on a single IO loop despite the GIL
AI-written summary · about
chapters (6)
- 0:00Start
- 9:39What Is a Thread
- 20:58Twisted Code
- 24:40I / O Loop
- 29:41Stack Lists
- 39:47How Do You Handle Errors
related talks
31mHey, Python-Web-Community! What's going on?
55mKeynote: The Natural State of Computers
32mSync vs. Async in Python: Tools, Benchmarks, and ASGI/WSGI Explained
24mDistributed Web Scraping in Python
31mReinventing Django for the Real-Time Web
40mBetter asynchronous code with Tornado and Python 3
31mInside ASGI The Engine Behind Modern Python Web Frameworks
45mThe marvelous world of Python in Browser: a nice surprise
