View Source ebus_ps_pg2 (ebus v0.3.0)
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. Defaults1. 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.
Link to this section Summary
Link to this section Functions
-spec start_link(atom(), [term()]) -> supervisor:startlink_ret().