Archives
Part 18: Deferreds En Masse This continues the introduction started here. You can find an index to the entire series here. Introduction In the last Part we learned a new way of structuring sequential asynchronous callbacks using a generator. Thus, including deferreds, we now have two techniques for chaining asynchronous operations together. Sometimes, though, we [...]
Part 17: Just Another Way to Spell “Callback” This continues the introduction started here. You can find an index to the entire series here. Introduction In this Part we’re going to return to the subject of callbacks. We’ll introduce another technique for writing callbacks in Twisted that uses generators. We’ll show how the technique works [...]
Part 16: Twisted Daemonologie This continues the introduction started here. You can find an index to the entire series here. Introduction The servers we have written so far have just run in a terminal window, with output going to the screen via print statements. This works alright for development, but it’s hardly a way to [...]
Part 15: Tested Poetry This continues the introduction started here. You can find an index to the entire series here. Introduction We’ve written a lot of code in our exploration of Twisted, but so far we’ve neglected to write something important — tests. And you may be wondering how you can test asynchronous code using [...]
Although out of date in its technical details, the later chapters contain some excellent examples of distributed software construction in Erlang.
This is a nice complement to the Armstrong book. In particular, it has a great discussion of the Erlang tracing mechanisms.
Part 14: When a Deferred Isn’t This continues the introduction started here. You can find an index to the entire series here. Introduction In this part we’re going to learn another aspect of the Deferred class. To motivate the discussion, we’ll add one more server to our stable of poetry-related services. Suppose we have a [...]
Part 13: Deferred All The Way Down This continues the introduction started here. You can find an index to the entire series here. Introduction Recall poetry client 5.1 from Part 10.The client used a Deferred to manage a callback chain that included a call to a poetry transformation engine. In client 5.1, the engine was [...]
Part 12: A Poetry Transformation Server This continues the introduction started here. You can find an index to the entire series here. One More Server Alright, we’ve written one Twisted server so let’s write another, and then we’ll get back to learning some more about Deferreds. In Parts 9 and 10 we introduced the idea [...]
Part 11: Your Poetry is Served This continues the introduction started here. You can find an index to the entire series here. A Twisted Poetry Server Now that we’ve learned so much about writing clients with Twisted, let’s turn around and re-implement our poetry server with Twisted too. And thanks to the generality of Twisted’s [...]