pgapp db up/down hooks?

11 views
Skip to first unread message

David Welton

unread,
May 25, 2016, 12:15:30 AM5/25/16
to Erlang epgsql Postgres driver use and development
Hi,

Random idea for the pgapp problem we were discussing here:

https://github.com/epgsql/pgapp/pull/6

Perhaps DB up/down events should call some kind of handler so that the
application that uses pgapp can behave accordingly?

Naturally, calls would fail too like they're doing now, but rather
than check each and every call, everywhere, you could just enable some
kind of "oh, the DB is down" thing. For instance a web site could
stop serving regular pages and just put up a "sorry" page.

Just a random idea that occurred to me.

--
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/
Reply all
Reply to author
Forward
0 new messages