473,473 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

High speed web services

Hello!

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.

thanks,
Herb
Dec 14 '07 #1
3 1307
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.
--
Dec 14 '07 #2
Il Fri, 14 Dec 2007 11:07:49 -0800, herbasher ha scritto:
Hello!

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.
I'm developing a mod_wsgi module for Nginx (http://www.nginx.net).
Nginx is a very fast asynchronous and multiprocess web server.

The development is still in alpha status:
http://hg.mperillo.ath.cx/nginx/mod_wsgi/
If your application is not I/O bound mod_wsgi for nginx can be a good
solution, otherwise you should look for mod_wsgi for Apache.

Manlio Perillo
Dec 14 '07 #3
herbasher pisze:
How do I built highly available and lighting fast Python webservice?
Write optimized code and use it in conjunction with twisted.web.

--
Jarek Zgoda
http://zgodowie.org/
Dec 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: YeeCN | last post by:
Hi, I need to write an application that requires HUGH volume of number crunching (tens of billions of calculations). Speed is the single most important factor for me. I am wondering is .NET...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
6
by: Alexander Muylaert | last post by:
Hi Does anyone know a good starting point about high speed string processing in C#? What I need is a very fast routine for a case insensitive "contains". e == E == é == ë == ... Kind...
1
by: Nirupam Gupta | last post by:
Hi I have been assigned a Project to develope the interface of DLP Projector the interface should be able to control the functions of Projector lik Contrast Brightness, Volume Mute,
12
by: PD | last post by:
I am currently making a dating website. I want to have some information on how to structure the database and the php files so that I can achieve speed and efficiency. Can some one please give...
1
by: sp_who2 | last post by:
i have high cpu problem. i don't know why many .net sqlclinet data provider and IIS hold so much cpu resource. by the way, memery condition is normal. when i restart sqlserver, from windows task...
1
by: mae2x | last post by:
Web design High-quality web & graphics Designs. That eye catching multimedia and web design developments highly skilled web programmers and designers that have extensive experience in website...
4
by: cefrancke | last post by:
In an effort to optimize and speed up applications..... (I have a minimum 15,000 record (20+ fields) database, multi-user(<5) over WAN) In theory... Is there a technique out there where...
1
by: Tommaso Caldarola | last post by:
I need to transfer big files (up to 10 Gb), now I'm using IIS via Remoting with chunk of bytes (up to 500Kb). In the following article: Middle-Tier Hosting: Enterprise Services, IIS, DCOM, Web...
7
by: Andrew Wan | last post by:
I found this excellent High Speed Timer (in Pascal). I compiled it (using Turbo Pascal 7 and it runs fine): http://www.sorucevap.com/bilisimteknolojisi/programcilik/pascal/ders.asp?207995 and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.