Re: Async notifications in psycopg3

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>, psycopg(at)postgresql(dot)org
Subject: Re: Async notifications in psycopg3
Date: 2020-05-28 16:47:44
Message-ID: d125521a-1fad-d963-1128-782cfaa1508e@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On 5/26/20 6:22 AM, Daniele Varrazzo wrote:
> Hello,
>
> I have introduced async notifications handling for psycopg3. At the
> moment it comes in the form of a generator (eventually async - in
> asyncio sense) so that they can be used as simply as:
>
> for notify in conn.notifies():
> # ... process
>
> but notifies may be also received during the normal query processing,
> for which a possible way to receive them can is a callback.
>
> I am not entirely convinced about the design so I'd be happy to
> receive some feedback by anyone who has ideas about how they would use
> the features. There is a more complete description and references in
> <https://github.com/psycopg/psycopg3/issues/5>: happy to have a
> conversation either here or on the github ticket.

When I get a chance I will take a look.
>
> Cheers,
>
> -- Daniele
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse psycopg by date

  From Date Subject
Next Message Hans Ginzel 2020-07-13 15:49:07 register_adapter Json with custom JSONEncoder
Previous Message Rory Campbell-Lange 2020-05-26 14:09:36 Re: Minor issue