PHP Client library

Roadrunner PubSub interface adds the ability for any storage to implement Publish/Subscribe messaging paradigm. Internally, Roadrunner implements Pub/Sub interface for the Redis and memory storages. Pub/Sub interface has 3 major parts:

  1. Publisher. Should be implemented on storage to give the ability to handle Publish, PublishAsync RPC calls. This is an entry point for a published message.
  2. Subscriber. Should be implemented on a storage to subscribe a particular UUID to topics (channels). UUID may represent WebSocket connectionID or any distinct transport.
  3. Reader. Provide an ability to read Next message from the storage.

Samples of implementation:

  1. Websockets plugin
  2. Redis plugin
  3. In-memory storage plugin
Edit this page