Overview
Explore asynchronous I/O programming with gevent in this EuroPython 2014 conference talk. Learn how gevent provides highly scalable asynchronous I/O without relying on complex callback structures or requiring significant code changes. Discover the advantages of gevent's synchronous programming model, which uses coroutines and monkey patching to make both your code and pure Python libraries asynchronous. Understand the differences between gevent and other asynchronous frameworks like Twisted, Tornado, and Tulip/asyncio. Dive into gevent's programming model, examine simple code samples, and gain insights into practical experiences of using gevent. Cover topics such as coroutines, generators, yield statements, and monkey patching. Explore gevent's features and learn how it simplifies error handling in I/O operations. Conclude with a discussion on multiprocessing and a Q&A session to address specific implementation questions.
Syllabus
Introduction
gevent
synchronous IO
problems with asynchronous IO
coolback
callbacks
classes
generators
yield
monkey patching
gevent features
Summary
Multiprocessing
Questions
Taught by
EuroPython Conference