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


Groups > de.comp.lang.python > #5066

Re: [Python-de] select.epoll() vs async framework (PostgreSQL)

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Diez B. Roggisch" <deets@web.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] select.epoll() vs async framework (PostgreSQL)
Date Mon, 15 Jan 2018 17:07:28 +0100
Lines 62
Message-ID <mailman.60.1516032456.2620.python-de@python.org> (permalink)
References <29ce1adc-0fea-e23c-e321-858e0d52dc1c@thomas-guettler.de> <a1669a00-b66c-6cce-8546-570a857e77aa@behnel.de> <71ab86cc-0e21-da2f-9577-8b6ccbe707ba@thomas-guettler.de> <2915505E-9237-40C4-A2BF-A4A22D00A216@web.de>
Mime-Version 1.0 (Mac OS X Mail 10.3 \(3273\))
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de IZuQ0EMqyYYaBLGbJyS/AwgcOpaRu28dD1Kf9zSvan0g==
Return-Path <deets@web.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
In-Reply-To <71ab86cc-0e21-da2f-9577-8b6ccbe707ba@thomas-guettler.de>
X-Mailer Apple Mail (2.3273)
X-Provags-ID V03:K0:LSXLSxVu9gy8m6LAUGDEAWVn+wvEAe893J+x6nhMv6Faz82EMbc bYSPGzyfhnDwkSbD6+uEHKy/IZ5ShcOrba3IW5sQhYIy8Z27BBl9bX+TquZ0vfCabxK0Ogc HYoAGuyhMR9GgV0UFoCg4K4gUNihdvyADVJ9dERAMSZVghVsXmSOHc0i/Ik8B35ZOTzOkI2 j6NNfRhHSLXKlrdIYgVAw==
X-UI-Out-Filterresults notjunk:1;V01:K0:DroY77/dk/I=:MoYrAcCwxxVb8HOZiPw9Xq a4/WRqhMZYDyEg636ZUPEoiKaGWz/n6i3bk3UPAXkPc5LAwhuPyqZ+oa/yf6cijkHQhUIf/RG B/hatrAXcQigtgtm3Pq8EM4WOoqhTHQvVFY0BVNxDbDOMJ2XEkPvd9IiKLjw1qJ6WRGOuaAtA KLPwAy5WZPbC+wBLbYVQeuruH1oyKBzFnkez6+ErsnUB8uGf5O/9kilmj2DCwZWb9JxS/4mk6 eJKcoVY0INtUeXcBV5RJP4kUTbuy2XXIMb5Maus6x9yT/xXZoHJcHq7RRdpZI7tSxgUOokriG mp3dKuiGTVeV1FucFL9fQiXzuYyVeHgABpaZHdVCO1KeLy/kdl6VXlQhax6lMjFbrNGf8VhK5 Yjl2oNbjTMbiffmPS8XRZiBQrBvSzjNI57pb0ywPaoKcvoQMuV2BVafOF4v2z64jjhjH/5udq YffussTKregeXxArkiy3GRj5/Co9vfYpGw97N2oyjJC3JwOIwdWIp7cQesmUlrZpzXx5U0MBP mla/BVqalPSbi2uTuMSRF6cxexikP2rOtA2daWgxv7PJS8rbhcwlxTen08fALQ4H9MBcqrRZ4 S8Sa+TDbKKkpGYAE1pchjfomEL7AXo5I17mAShzGF6s/dIJE7ccj71r+UtZf3Lkg4q8MdUAw+ 0u3rms6x9ENAlHSp4sK9VuphBiLGa+Ut7StE+ZuPPR15NLfyjmZPWd2doePdc7RO8hCLpxbrv gF0ODdRWCFB60RsVuRsIndJ1ckdyxunBpOY1leuojDOeY17NogwfVJ/POs54sM5xvkrwwizsM 83pIOCcwhdTOfdsf/XsL5628lL6pjdBfGrfJBZVquAe8ZA3fJs=
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.25
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <2915505E-9237-40C4-A2BF-A4A22D00A216@web.de>
X-Mailman-Original-References <29ce1adc-0fea-e23c-e321-858e0d52dc1c@thomas-guettler.de> <a1669a00-b66c-6cce-8546-570a857e77aa@behnel.de> <71ab86cc-0e21-da2f-9577-8b6ccbe707ba@thomas-guettler.de>
Xref csiph.com de.comp.lang.python:5066

Show key headers only | View raw


> On 15. Jan 2018, at 16:46, Thomas Güttler <guettliml@thomas-guettler.de> wrote:
> 
> Was ist aus deiner Sicht das, was alle nehmen?
> 

Ich rate mal: asyncio. Die Chance, das du zB http-clients da einfach einpluggen kannst, und damit schon auf einem deutlich besseren Abstraktionsniveau unterwegs bist, als mit rohen Filedeskriptoren und epoll zu arbeiten laesst mich vermuten, dass es sich dabei um das Alufelgenrad handelt.

Diez

> Am 12.01.2018 um 11:23 schrieb Stefan Behnel:
>> Thomas Güttler Lists schrieb am 03.01.2018 um 22:07:
>>> bisher nutze ich psycopg (PostgreSQL) zusammen mit Linux select.epoll()
>>> 
>>> und das klappt eigentlich ganz gut. Bisher nutze ich kein async IO framework.
>>> 
>>> 
>>> Jetzt soll neben der Datenbank Connection auch noch N URLs geholt werden.
>>> 
>>> Aktuell ist N < 1000. Also weniger als 1000 URLs die gleichzeitig geholt
>>> werden.
>>> 
>>> 
>>> Jetzt bin ich unsicher, ob ich:
>>> 
>>> 
>>> Variante1: die N URLs auch per select.epoll()  hole.
>>> 
>>> Variante2: auf ein async IO Framework umsteige.
>>> 
>>> 
>>> Hat hier jemand Erfahrung und kann ggf etwas aus dem Nähkästchen plaudern?
>> Deine Frage ist doch eigentlich, ob du an dein selbst erfundenes
>> Sperrholzrad noch Spikes anmontieren sollst, oder statt dessen das voll
>> erweiterbare, luftgepolsterte Alufelgenrad einbauen sollst, das alle
>> anderen auch nehmen.
>> Ich lasse die Antwort mal offen.
>> Stefan
>> _______________________________________________
>> python-de maillist  -  python-de@python.org
>> https://mail.python.org/mailman/listinfo/python-de
> 
> -- 
> Thomas Guettler http://www.thomas-guettler.de/
> I am looking for feedback: https://github.com/guettli/programming-guidelines
> _______________________________________________
> python-de maillist  -  python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
> 

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] select.epoll() vs async framework (PostgreSQL) "Diez B. Roggisch" <deets@web.de> - 2018-01-15 17:07 +0100

csiph-web