High speed web services

Matt Nordhoff mnordhoff at mattnordhoff.com
Fri Dec 14 14:50:42 EST 2007


herbasher wrote:
> I'm wondering: I'm really not so much into heavy frameworks like
> Django, because I need to build a fast, simple python based
> webservice.
> 
> That is, a request comes in at a certain URL, and I want to utilize
> Python to respond to that request.
> 
> Ideally, I want the script to be "cached" so it doesn't have to be re-
> parsed everytime.
> 
> 
> Phrasing this into a question:
> How do I built highly available and lighting fast Python webservice?
> 
> I'm open to using any kind of server software, and all that under a
> *nix based system.

Well, you could simply use FastCGI/SCGI/mod_python/mod_wsgi without any
framework on top of it. It's not much harder than writing a CGI script.

If you're doing something with multiple actual web pages or something,
just use a framework. It'll be fast enough.
-- 



More information about the Python-list mailing list