Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64017

Re: Python Scalability TCP Server + Background Game

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'cache': 0.07; 'rest,': 0.07; 'subject: + ': 0.07; 'assuming': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; '(without': 0.16; 'caching': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'implies': 0.16; 'rough': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'fit': 0.20; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'instance,': 0.24; 'test.': 0.24; 'cc:2**0': 0.24; 'mention': 0.26; 'player': 0.26; 'second': 0.26; 'header:In- Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'requests': 0.31; 'serve': 0.31; 'you?': 0.31; 'connection': 0.35; 'received:google.com': 0.35; 'server': 0.38; 'handle': 0.38; 'expect': 0.39; 'supporting': 0.39; 'enough': 0.39; 'how': 0.40; "you'll": 0.62; 'high': 0.63; 'size.': 0.65; 'within': 0.65; 'limit': 0.70; 'each,': 0.84; 'response,': 0.91; 'smoke': 0.91; 'subject:Game': 0.91; 'subject:Server': 0.91; 'to:none': 0.92; 'responses': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=LHLiiArs95lv5P8Th6eLrU67QTz7/kO8kSFWk4uYsbQ=; b=cBRxq7PRsQgTrR/6/F4t45bHRzFC6MeW4mqdO908BBZfcCx7pL3Q+GQXmWjFSSACvR iN/fkMeHs8m8IZUvWZ7mOJvQhPAzrlqa/V6kBRpm8ovh/4spvMoU91E3uaDJpHMsJNat 3RAtca9m3zgo8zXNK5Ofj0q1RhuHkh2aBl5nvlk7IqlMm0xx7C2vnayhWxXeNEi7Uocw jgf5mhzC1U+bISP5MOmHRQ/TiLQ4rmsaIO74BFf4hcaos6rTeGrAfT4w+6JEr7zHN+UU BaN9Fh4LJhJ4QS6FhPY+qsyvu0QAT2CvuOrBA1LvhRLtTCrhu0lQoqVKFkuTWjSVT8D/ VPVg==
MIME-Version 1.0
X-Received by 10.66.129.133 with SMTP id nw5mr5371503pab.98.1389820100191; Wed, 15 Jan 2014 13:08:20 -0800 (PST)
In-Reply-To <27bae268-20a6-4ac3-a0dc-bd5be04d1da1@googlegroups.com>
References <27bae268-20a6-4ac3-a0dc-bd5be04d1da1@googlegroups.com>
Date Thu, 16 Jan 2014 08:08:19 +1100
Subject Re: Python Scalability TCP Server + Background Game
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5544.1389820104.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389820104 news.xs4all.nl 2938 [2001:888:2000:d::a6]:60748
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64017

Show key headers only | View raw


On Thu, Jan 16, 2014 at 5:37 AM,  <phiwer@gmail.com> wrote:
> 3) The game server has a player limit of 50000. My requirement/desire is to be able to serve 50k requests per second (without any caching layer, although the game server will cache data), so people don't get a poor user experience during high peaks.

Quick smoke test. How big are your requests/responses? You mention
REST, which implies they're going to be based on HTTP. I would expect
you would have some idea of the rough size. Multiply that by 50,000,
and see whether your connection can handle it. For instance, if you
have a 100Mbit/s uplink, supporting 50K requests/sec means your
requests and responses have to fit within about 256 bytes each,
including all overhead. You'll need a gigabit uplink to be able to
handle a 2KB request or response, and that's assuming perfect
throughput. And is 2KB enough for you?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Scalability TCP Server + Background Game phiwer@gmail.com - 2014-01-15 10:37 -0800
  Re: Python Scalability TCP Server + Background Game Chris Angelico <rosuav@gmail.com> - 2014-01-16 08:08 +1100
    Re: Python Scalability TCP Server + Background Game phiwer@gmail.com - 2014-01-17 23:44 -0800
      Re: Python Scalability TCP Server + Background Game Chris Angelico <rosuav@gmail.com> - 2014-01-18 19:01 +1100
        Re: Python Scalability TCP Server + Background Game phiwer@gmail.com - 2014-01-18 03:54 -0800
  Re: Python Scalability TCP Server + Background Game Asaf Las <roegltd@gmail.com> - 2014-01-18 04:13 -0800
    Re: Python Scalability TCP Server + Background Game phiwer@gmail.com - 2014-01-18 04:40 -0800
      Re: Python Scalability TCP Server + Background Game Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-18 13:19 +0000
        Re: Python Scalability TCP Server + Background Game Philip Werner <phiwer@gmail.com> - 2014-01-19 12:53 -0600
          Re: Python Scalability TCP Server + Background Game Chris Angelico <rosuav@gmail.com> - 2014-01-20 05:58 +1100
            Re: Python Scalability TCP Server + Background Game Philip Werner <phiwer@gmail.com> - 2014-01-21 03:59 -0600

csiph-web