phoenix_pubsub_eventstore v2.0.0 Phoenix.PubSub.EventStore View Source

Phoenix PubSub adapter backed by EventStore.

An example usage (add this to your supervision tree):

{Phoenix.PubSub,
  [name: MyApp.PubSub,
   adapter: Phoenix.PubSub.EventStore,
   eventstore: MyApp.EventStore]
}

where MyApp.EventStore is configured separately based on the EventStore documentation.

An optional :serializer can be specified that is used for converting messages into structs that EventStore can handle. The default serializer is Phoenix.PubSub.EventStore.Serializer.Base64. Any module that implements serialize/1 and deserialize/1 may be used as long as they produce data that EventStore can handle.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Start the server

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Start the server

This function is called by Phoenix.PubSub