network servers

S

Sridhar R

We're planning to write a server for handling atleast 1000 and atmost
4000 clients. The connection is basically (TCP)
connect-send-disconnect type. So no client will open up its
connection forever, except for the small time duration of sending the
message. This is something like online programming contest, where
clients will submit their programs for evaluation and server will
return the results (after sometime). I though of writing the server
part in C and use Python for client.

Is it possible to use python for that high performance serving? Note:
There is only one physical machine.
 
C

Cameron Laird

We're planning to write a server for handling atleast 1000 and atmost
4000 clients. The connection is basically (TCP)
connect-send-disconnect type. So no client will open up its
connection forever, except for the small time duration of sending the
message. This is something like online programming contest, where
clients will submit their programs for evaluation and server will
return the results (after sometime). I though of writing the server
part in C and use Python for client.

Is it possible to use python for that high performance serving? Note:
There is only one physical machine.

Yes. It's even realistic, and advisable.
 
J

Josiah Carlson

Sridhar said:
We're planning to write a server for handling atleast 1000 and atmost
4000 clients. The connection is basically (TCP)
connect-send-disconnect type. So no client will open up its
connection forever, except for the small time duration of sending the
message. This is something like online programming contest, where
clients will submit their programs for evaluation and server will
return the results (after sometime). I though of writing the server
part in C and use Python for client.

Is it possible to use python for that high performance serving? Note:
There is only one physical machine.


To expand on Cameron's reply stating "yes, do it", I'll advise you of
asyncore, most notably its use of the select module.

- Josiah
 
P

Patrick Useldinger

We're planning to write a server for handling atleast 1000 and atmost
4000 clients. The connection is basically (TCP)
connect-send-disconnect type. So no client will open up its
connection forever, except for the small time duration of sending the
message. This is something like online programming contest, where
clients will submit their programs for evaluation and server will
return the results (after sometime). I though of writing the server
part in C and use Python for client.

Is it possible to use python for that high performance serving? Note:
There is only one physical machine.

Look at Twisted (http://www.twistedmatrix.com).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,969
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top