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


Groups > comp.lang.python > #28247

Re: Async client for PostgreSQL?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!hq-usenetpeers.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gandalf@shopzeus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.096
X-Spam-Evidence '*H*': 0.81; '*S*': 0.00; 'see.': 0.07; 'twisted,': 0.07; 'wrapper': 0.07; 'freebsd,': 0.09; 'postgresql.': 0.09; 'thread': 0.11; 'consume': 0.16; 'hardware.': 0.16; 'march,': 0.16; 'suggesting': 0.16; 'threads': 0.16; 'twisted': 0.16; 'driver': 0.17; '(in': 0.18; 'sorry,': 0.22; 'example': 0.23; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'implemented': 0.27; 'replace': 0.27; 'case,': 0.29; "i'm": 0.29; 'connections': 0.30; 'to:no real name:2**1': 0.32; 'running': 0.32; 'could': 0.32; 'safely': 0.33; 'to:addr :python-list': 0.33; 'version': 0.34; 'server': 0.35; 'doing': 0.35; 'received:192.168.0': 0.35; 'subject:?': 0.35; 'thank': 0.36; 'level': 0.37; 'subject:: ': 0.38; 'daily': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'you.': 0.61; 'side': 0.61; 'latest': 0.61; 'received:62': 0.62; 'duration': 0.62; 'close': 0.63; 'production': 0.63; 'worth': 0.63; 'frequency': 0.65; 'day': 0.73; 'atop': 0.84; 'played': 0.84; 'received:192.168.0.101': 0.84; 'received:192.168.13': 0.84; 'received:62.179': 0.84; 'received:62.179.121': 0.84; 'received:upcmail.net': 0.84; '1500': 0.93; 'sitting': 0.93
X-SourceIP 89.134.225.226
Date Sun, 02 Sep 2012 09:56:28 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0
MIME-Version 1.0
To werner@thieprojects.ch, python-list@python.org
Subject Re: Async client for PostgreSQL?
References <50419A55.3080904@shopzeus.com> <5042434B.3010201@thieprojects.ch> <504261E2.5030305@shopzeus.com> <50428B0A.3030403@thieprojects.ch>
In-Reply-To <50428B0A.3030403@thieprojects.ch>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.64.1346572596.27098.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346572596 news.xs4all.nl 6968 [2001:888:2000:d::a6]:50572
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28247

Show key headers only | View raw


> Hmm, I was suggesting that you could replace the whole DB driver with 
> a webservice implemented with twisted, if you rule out threads then 
> with ampoule doing it with a process pool and consume this webservice 
> with the tornado side asynchronously.
I see. I'm sorry, I misunderstood. So this would be a wrapper around 
PostgreSQL. Very interesting idea. (In this case, I'm not sure how to 
safely manage transactions.)
>
> production level example thread pool based DB API:
> Just to give you some ballpark figures, I'm running a game server with 
> a daily peak of about 1500 parallel permanent connections and 50k 
> games played every day (avg game duration 13min, peak request 
> frequency close to 100req/sec) with a lot of statistics going into a 
> MySQL DB on US$2k worth of hardware. Twisted as basis sitting atop 
> FreeBSD, started the latest version in March, its running since then, 
> no restarts, no reboots, no problems.
Thank you.

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


Thread

Re: Async client for PostgreSQL? Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-02 09:56 +0200

csiph-web