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


Groups > comp.lang.python > #74274

Re: Entreprise level python tcp server

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'interpreter': 0.05; 'pypi': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stackless': 0.09; 'python': 0.11; 'jan': 0.12; 'windows': 0.15; 'ftplib': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'users.': 0.18; 'server,': 0.19; 'header:User-Agent:1': 0.23; 'script': 0.25; 'header:X-Complaints-To:1': 0.27; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'am,': 0.29; 'involving': 0.30; 'code': 0.31; 'url:wiki': 0.31; 'servers.': 0.31; 'url:wikipedia': 0.31; 'run': 0.32; 'quite': 0.32; 'could': 0.34; 'something': 0.35; 'convert': 0.35; 'library.': 0.36; 'module.': 0.36; 'similar': 0.36; 'url:org': 0.36; 'tasks': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'improved': 0.60; 'new': 0.61; 'save': 0.62; 'more': 0.64; 'different': 0.65; 'below.': 0.71; 'online': 0.71; 'attention': 0.75; '3.4': 0.84; 'asynchronous': 0.84; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Entreprise level python tcp server
Date Wed, 09 Jul 2014 15:18:06 -0400
References <002b01cf9b61$9cf8d580$d6ea8080$@traxens.com> <lpjt7a$jkq$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-71-175-90-87.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <lpjt7a$jkq$1@ger.gmane.org>
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.11708.1404933516.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404933516 news.xs4all.nl 2954 [2001:888:2000:d::a6]:48142
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74274

Show key headers only | View raw


 > On 7/9/2014 3:36 AM, Arulnambi Nandagoban wrote:

 >> I like to convert the python script to windows application.

The proper way to do asynchronous io on Windows is quite different from 
the proper way to do it on posix systems (more or less everything other 
than Windows). If you plan on using a Windows server, pay no attention 
to benchmarks run on posix servers. More on this below.

On 7/9/2014 1:12 PM, Emile van Sebille wrote:
> EVE online uses stackless python
> (http://highscalability.com/eve-online-architecture) and has seen a max
> of some 40k simultaneous users.  You might want to look into how they do
> it.

Stackless used 'micro threads' managed by the interpreter without 
involving the OS. These are called 'green threads' because they save 
resources. They are available as 'greenlets' on PyPI and used by, among 
others, gevent. See
https://en.wikipedia.org/wiki/Stackless_Python

Python 3.4 comes with something similar -- tasks -- in the new asyncio 
library. On feature of asyncio is that it transparently implementation 
so the same asyncio code works well on Windows as well as posix. I don't 
know if this is true of other alternatives.

Python has an ftplib module. I suspect it could still be improved to 
work better with asyncio.

-- 
Terry Jan Reedy

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


Thread

Re: Entreprise level python tcp server Terry Reedy <tjreedy@udel.edu> - 2014-07-09 15:18 -0400

csiph-web