473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

network servers

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.
Jul 18 '05 #1
3 1152
In article <93**************************@posting.google.com >,
Sridhar R <sr*************@yahoo.com> wrote:
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.
--

Cameron Laird <cl****@phaseit.net>
Business: http://www.Phaseit.net
Jul 18 '05 #2
Sridhar R wrote:
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
Jul 18 '05 #3
On 2 Mar 2004 02:50:32 -0800, sr*************@yahoo.com (Sridhar R)
wrote:
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).

--
http://www.homepages.lu/pu/
Jul 18 '05 #4

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

Similar topics

5
by: SQLDBA | last post by:
Is there any third party s/w that lists SQL servers in a network and query more info about the server?
5
by: Oliver Braun | last post by:
I know this is a very common issue and I found a lot of hints on this topic in www but I did not find a very good solution for this task. Most of the solutions use SQLDMO to list all sql servers...
2
by: Janus Knudsen | last post by:
Hello Im collecting ideas for a piece of software I've in mind. I need to create an application which can be started with some parameters, the application have to be started in many instances...
3
by: Dmitry | last post by:
Hi. I'm interesting how to enumerate available SQL servers in the network from code in C#. It may be done in C++ using WINAPI function NetServerEnum. If there is no way except importing this...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
1
by: Roger | last post by:
I would like to get a list of machines on my network (Workstations and/or Servers). Is there a way to do this in VB.Net? Thanks, Rog
2
by: =?Utf-8?B?V2ViIFNlcnZpY2VzIEd1eQ==?= | last post by:
Can anyone recommend an article that describes the ideal network architecture (from a security perspective) for public-facing web services? For example, do you put the web servers behind the...
14
by: Omar Abid | last post by:
Hi, I'm using my with a program to detect an internet connection. It return true when I'm connected, but even when I 'm disconnected it returns true I don't know why ? Thx Omar Abid
10
by: gary0gilbert | last post by:
An unusual spin to this recurring disk or network error in a Terminal Server environment. Access 2000, Terminal Server 2000, file server is windows 2000. All users have a separate copy of the...
24
by: Asja | last post by:
I have written an application that runs in a kind of peer-to-peer framework. Servers connect to a masterserver, which a client then queries to receive a list of servers. The client selects a server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.