🌟 This notifier is available through Oban.Pro
PG Notifier is a notifier implementation that runs with Distributed
Erlang. Out of the box, Oban uses PostgreSQL's
LISTEN/NOTIFY for PubSub. For
most applications, that is fine, but Postgres-based PubSub isn't sufficient in
Note: You must be using Distributed Erlang to use the PG notifier.
PG notifier in your Oban configuration:
config :my_app, Oban, notifier: Oban.Pro.Notifiers.PG, ...
The notifier will use
pgif available (OTP 23+) or fall back to
pg2for older OTP releases.
Like the Postgres implementation, notifications are namespaced by
For compatbility, message payloads are always serialized to JSON before broadcast and deserialized before relay to local processes.