Phoenix.PubSub.PG2
module.
Behaviours: supervisor.
References
This is an Erlang clone of the original Phoenix.PubSub.PG2
module.
Copyright (c) 2014 Chris McCord
Phoenix PubSub adapter based on PG2. To use it as your PubSub adapter, simply add it to your Endpoint's config file (see e.g.: test/test.config):
[ {ebus, [ {pubsub, [ {adapter, ebus_ps_pg2}, {pool_size, 5}, {name, ebus_ps_test} ] } ] } ].Options:
name
: The name to register the PubSub processes,
ie: ebus_ps
.pool_size
: Both the size of the local pubsub server pool and
subscriber shard size. Defaults 1
. A single pool is often enough
for most use cases, but for high subscriber counts on a single
topic or greater than 1M clients, a pool size equal to the number
of schedulers (cores) is a well rounded size.start_link/2 |
start_link(Name::atom(), Opts::[term()]) -> supervisor:startlink_ret()
Generated by EDoc