network servers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sridhar R

    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.
  • Cameron Laird

    #2
    Re: network servers

    In article <930ba99a.04030 20250.66d3536e@ posting.google. com>,
    Sridhar R <sridharinfinit y@yahoo.com> wrote:[color=blue]
    >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.[/color]

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

    Cameron Laird <claird@phaseit .net>
    Business: http://www.Phaseit.net

    Comment

    • Josiah Carlson

      #3
      Re: network servers

      Sridhar R wrote:
      [color=blue]
      > 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.[/color]


      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

      Comment

      • Patrick Useldinger

        #4
        Re: network servers

        On 2 Mar 2004 02:50:32 -0800, sridharinfinity @yahoo.com (Sridhar R)
        wrote:
        [color=blue]
        >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.[/color]

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

        --

        Comment

        Working...