Best architecture for proxy?
Steve Holden
steve at holdenweb.com
Tue Jul 10 22:19:56 EDT 2007
Bjoern Schliessmann wrote:
> Andrew Warkentin wrote:
>
>> I am going to write a general-purpose modular proxy in Python. It
>> will consist of a simple core and several modules for things like
>> filtering and caching. I am not sure whether it is better to use
>> multithreading, or to use an event-driven networking library like
>> Twisted or Medusa/ Asyncore. Which would be the better
>> architecture to use?
>
> I'd definitely use an event-driven approach with Twisted.
>
> Generally, multithreading is less performant than multiplexing. High
> performance servers mostly use a combination of both, though.
>
Converselt I'd recommend Medusa - not necessarily because it's "better",
but becuase I know it better. There's also a nice general-purpose proxy
program (though I'd be surprised if Twisted didn't also have one).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
More information about the Python-list
mailing list