pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Smith <laconical@gmail.com>
Cc: Rita <rmorgan466@gmail.com>
Cc: Brian Dunavant <dunavant@gmail.com>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: Listen/Notify feedback
Date: Sun, 12 Jul 2020 10:16:52 -0400
Message-ID: <2501819.1594563412@sss.pgh.pa.us> (raw)
In-Reply-To: <CALr=acEZ4Xggp7AUDKwuRVFy=9SyF-kmLtYSpM89HnZ1MN_j2Q@mail.gmail.com>
References: <CAOF-KfjLuhvnJP1-_orvdaQLY=npgw+WzDCn4ZA2+_dHzm3yYg@mail.gmail.com>
	<CAJ2+uGWtZhmikCjEXDroorcq-A7P+uMm4Vum10-vOEDe1rUeFQ@mail.gmail.com>
	<CAOF-KfhEQ-Pqbw6TCRt-4bNAAs0iLR1FQz2b7qmBVbVFae57bA@mail.gmail.com>
	<CALr=acEZ4Xggp7AUDKwuRVFy=9SyF-kmLtYSpM89HnZ1MN_j2Q@mail.gmail.com>

Andrew Smith <laconical@gmail.com> writes:
> A couple of years ago I started looking into listen/notify in PG10 and
> found that the throughput decreased quite a bit as I added more and more
> listeners. Given the number of apps I needed to have listening and the
> number of messages that I expected to be consuming, I ended up writing a
> single listener app which then republished the messages via MQTT. Not sure
> if the performance has improved in subsequent versions (or whether this
> will affect you at all) but it's something to keep in mind.

FWIW, we made some efficiency improvements in v13 for the case of NOTIFY
with a lot of listeners [1].  Can't say of course whether that would
have fixed your problem, and v13 is still in beta anyway.

			regards, tom lane

[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=51004c717





view thread (7+ messages)  latest in thread

Message-ID: <2501819.1594563412@sss.pgh.pa.us>
Permalink:  ../2501819.1594563412@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2501819.1594563412@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laconical@gmail.com, rmorgan466@gmail.com, dunavant@gmail.com
  Subject: Re: Listen/Notify feedback
  In-Reply-To: <2501819.1594563412@sss.pgh.pa.us>
  References: <CAOF-KfjLuhvnJP1-_orvdaQLY=npgw+WzDCn4ZA2+_dHzm3yYg@mail.gmail.com> <CAJ2+uGWtZhmikCjEXDroorcq-A7P+uMm4Vum10-vOEDe1rUeFQ@mail.gmail.com> <CAOF-KfhEQ-Pqbw6TCRt-4bNAAs0iLR1FQz2b7qmBVbVFae57bA@mail.gmail.com> <CALr=acEZ4Xggp7AUDKwuRVFy=9SyF-kmLtYSpM89HnZ1MN_j2Q@mail.gmail.com> <2501819.1594563412@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox