The Artima Developer Community
Sponsored Link

Python Buzz Forum
Threads & Events

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Aaron Brady is lead developer for Crestsource
Threads & Events Posted: Nov 10, 2003 4:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Aaron Brady.
Original Post: Threads & Events
Feed Title: insom.me.uk
Feed URL: http://feeds2.feedburner.com/insommeuk
Feed Description: Posts related to using Python. Some tricks and tips, observations, hacks, and the Brand New Things.
Latest Python Buzz Posts
Latest Python Buzz Posts by Aaron Brady
Latest Posts From insom.me.uk

Advertisement

Threading vs. event driven asynchronous applications

I'm beginning to think that there is no framework in Python that suits me, so I'm doomed to write my own. Badly.

I had a brief affair with Medusa, with it's Chain-of-Responsability style selection, stackable handlers, and snappy response. Then I tried to do any non-trivial processing. Oops. I could, as Georg has, use thread queues, but that sounds like hackery to me.

I'm currently implementing an application using (wait for it) CGI. It works out of the box, I don't have to lock resources, and while it performs poorly, it's better than you might think.

I've encapsulated things in a 'Context' object that I pass around, and I use one CGI to route things to handlers via C-o-R. When I deploy it, if the load is great enough, I can write a shim to replace CGI with mod_scgi or mod_python or even Medusa if I decide to work around the event driven model.

Read: Threads & Events

Topic: It had to start sometime... Previous Topic   Next Topic Topic: More alike than different...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use