Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Asynchronous Event-driven Architecture - The Twisted Way

Asynchronous Event-driven Architecture - The Twisted Way

This talk is aimed at explaining the event-driven architecture and asynchronous model, the reactor-pattern, and the basic concepts that make understanding and writing Twisted programs easier, and less abstruse and esoteric.

Picking up clues from the numerous attempts in the past to demystify the popular beliefs about the occult nature of Twisted, the talk is designed to help you acquire the “mental model” required to write and comprehend asynchronous code. We will start by developing a basic understanding of the synchronous, threaded, and asynchronous models, then move on to comparing and contrasting the former two with the latter.

Further, we will try and understand the philosophy and motivation behind the asynchronous event-driven model, and discuss the Twisted reactor and event-loop architecture. Finally, we'll try to contemplate and demystify "The Twisted Way" of doing things bolstered by excerpts from Tao Te Ching and The Tao of Programming.

Ashwini Oruganti

October 13, 2013

More Decks by Ashwini Oruganti

Other Decks in Programming


  1. “Twisted softens your brains and makes you feel like your

    head is actually a blender optimized for gray gloop.”
  2. “It was created by a couple of dudes who dropped

    out of school, and a 16-year-old. HOW HARD COULD IT BE?”
  3. When you look for it, there is nothing to see.

    When you listen for it, there is nothing to hear. When you use it, it is inexhaustible.
  4. “The Master does his job and then stops. He understands

    that the universe is forever out of control.”