Entreprise level python tcp server
Terry Reedy
tjreedy at udel.edu
Wed Jul 9 15:18:06 EDT 2014
> 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
More information about the Python-list
mailing list