From: Adam Tauno Williams <awilliam@whitemice.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: Asynchronous Trigger?
Date: Fri, 27 Apr 2018 15:57:43 -0400
Message-ID: <1524859063.3334.3.camel@whitemice.org> (raw)
In-Reply-To: <CAHDg04sckCAWdVbepAkYrFzjV8ukORCCTqXzpim2hSWXaUw9QA@mail.gmail.com>
References: <CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com>
<8172161524825989@web45j.yandex.ru>
<CAHDg04sckCAWdVbepAkYrFzjV8ukORCCTqXzpim2hSWXaUw9QA@mail.gmail.com>
On Fri, 2018-04-27 at 11:25 -0600, Michael Loftis wrote:
> As suggested, note in ToDo table, also maybe look at LISTEN and
> NOTIFY and have a job runner process LISTENing
We use a simple python process to listen with a PostgreSQL cursor for
NOTIFY events, and push them into RabbitMQ (message broker). From
there you can do a lot of asynchronous work; it will store messages,
optionally with expiration, you have point-to-point or broadcast,
etc... It is a very durable, scalable, and flexible way to built up an
event driven system.
--
Meetings Coordinator, Michigan Association of Railroad Passengers
537 Shirley St NE Grand Rapids, MI 49503-1754 Phone: 616.581.8010
E-mail: awilliam@whitemice.org GPG#D95ED383 Web: http://www.marp.org
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: awilliam@whitemice.org
Subject: Re: Asynchronous Trigger?
In-Reply-To: <1524859063.3334.3.camel@whitemice.org>
References: <CAG_=8kAdbc_DoJWy11xh5J8b+v-ZWSt3Ty-1Ffdn4scgq3wK6Q@mail.gmail.com> <8172161524825989@web45j.yandex.ru> <CAHDg04sckCAWdVbepAkYrFzjV8ukORCCTqXzpim2hSWXaUw9QA@mail.gmail.com> <1524859063.3334.3.camel@whitemice.org>
* 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