Re: Listen/Notify feedback

2020-07-12 Thread Andrew Smith
On Sun, 12 Jul 2020 at 21:39, Rita  wrote:

> Thats good to know. Are there some standard patterns or best practices I
> should follow when using messaging and with listen/notify?
>
> On Sat, Jul 11, 2020 at 1:44 PM Brian Dunavant  wrote:
>
>> One aspect is if there is no one listening when a notify happens, the
>> message is lost (e.g. no durability).   If this is important to you, it can
>> be addressed by writing the messages to a table as well when you NOTIFY,
>> and the listener deletes messages after they are processed.  On connection
>> the listener can query the table to catch up on any missed messages, or
>> messages that were mid-process during a crash.  This is trickier with more
>> than one listener.   This isn't a whole lot more efficient than just using
>> the table alone, but it saves you from having to poll so better response
>> times.
>>
>> On Sat, Jul 11, 2020 at 8:58 AM Rita  wrote:
>>
>>> I am investigating various pub/sub tools such as ActiveMQ, Rabbit,
>>> Redis, etc.I came across Postgresql Listen/Notify and was easily able to
>>> write code to listen to messages. For the people who have been using this
>>> for a while: what are its downsides, things to consider when writing good
>>> code that use pub/sub, how do you deal with large messages, can I have
>>> subscribers listen to replica nodes?
>>>
>>> Thanks
>>> --
>>> --- Get your facts first, then you can distort them as you please.--
>>>
>>
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.


Re: BDR and PostgreSQL 12 and Windows support

2018-11-16 Thread Andrew Smith
On Fri., 16 Nov. 2018, 8:39 pm Paul Judson  I've seen that BDR may be rolled into core PostgreSQL version 12 and was
> wondering if anyone knows if that BDR support will be extended to Windows
> or if it will remain a non-WIndows feature.
>

I've been waiting for years for multi master support in PostgreSQL on
Windows. Surely if it's being added to the main code base it'll have to be
supported on every platform? Are there any core features at the moment that
are Linux only?


Re: Sv: Re: Geographical multi-master replication

2019-01-25 Thread Andrew Smith
On Fri., 25 Jan. 2019, 8:40 pm Andreas Kretschmer 
>
> Am 25.01.19 um 10:10 schrieb Andreas Joseph Krogh:
> > To my surprise I'm unable to find downloadable BDR3. I thought it was
> > an open-source extention to vanilla-pg-11, isn't that the case anymore?
>
> yeah, you have to sign a support contract. It works as a extension to
> vanilla-pg-11, but it's not open source.
>

Also, no Windows support, which makes it a non starter for our
organisation.

>