Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Thomas_G=c3=bcttler_Lists?= Newsgroups: de.comp.lang.python Subject: [Python-de] select.epoll() vs async framework (PostgreSQL) Date: Wed, 3 Jan 2018 22:07:12 +0100 Lines: 34 Message-ID: References: <29ce1adc-0fea-e23c-e321-858e0d52dc1c@thomas-guettler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de w85asYVow8AICLpRrTdxqw+htbAwiqzUz/iCzun7gp8w== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Content-Language: en-US X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <29ce1adc-0fea-e23c-e321-858e0d52dc1c@thomas-guettler.de> Xref: csiph.com de.comp.lang.python:5055 Hallo, 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? Gruß,   Thomas -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines