Stackless Python/Twisted example Re: [Twisted-Python] Advice sought on application evolution

Hi Don and Colleagues:
I'll be very interested to learn more about the melding of the two paradigms.
...
for a commercial application?
Sorry for the wait - I have been very busy. I will probably update my blog on the weekend. Meanwhile, I have enclosed an example of a Toy WS-BPEL processor prototype that more or less implements the I/O parts of WS-BPEL specification: invoke, reply, receive, wait, event handlers, and daemons! In the process, the programme shows all the integration techniques in action. The main thing I want readers to take away is how *little* Stackless Python and Twisted are needed to implement something complex. To me, this is what Python is all about. In your case Don, I try to show how layering helps model business logic. In the example, think of the Process and AlarmProcess belonging to the business logic layer. I have tried my best to strip away the WS-BPEL specific parts to show how I integrate Stackless with Twisted. Still the architecture is influenced by my need to prototype. I am still experimenting. That said, this little prototype starts up 1001 tasklets. If a web client does a HTTP GET on http://localhost:8080/[0-999], the tasklet will wake up, call a web server (in my case Apache), and return a result. Another tasklets simply ticks. Give me a while, and I will show another example with process serialization (at Pycon 2008 - I demonstrated process serialization to a few folks after my talk - hint Twisted does not like to be pickled). Unfortunately I have not had time to set up stress tests. I really don't have access to large computers. That said, the integration techniques reflect my thinking about November/December 2007. I am eager to find the time to try out Christopher Armstrong's coroutine package. If you have any questions, please don't hesitate to ask. Cheers, Andrew ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com

Andrew Francis wrote:
Thanks much for the example. At a quick scan, it looks like it'll take some digesting to get my head around. I'll give it a closer look when I get the chance. -- Don Dwiggins Advanced Publishing Technology

Andrew Francis wrote:
Thanks much for the example. At a quick scan, it looks like it'll take some digesting to get my head around. I'll give it a closer look when I get the chance. -- Don Dwiggins Advanced Publishing Technology
participants (2)
-
Andrew Francis
-
Don Dwiggins