diff options
Diffstat (limited to 'docs/beep-beep/pubsub.md')
-rw-r--r-- | docs/beep-beep/pubsub.md | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/docs/beep-beep/pubsub.md b/docs/beep-beep/pubsub.md deleted file mode 100644 index b0cc7f44..00000000 --- a/docs/beep-beep/pubsub.md +++ /dev/null @@ -1,14 +0,0 @@ -### Pub/Sub - -Roadrunner PubSub interface adds the ability for any storage to implement [Publish/Subscribe messaging paradigm](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern). 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](https://github.com/spiral/roadrunner/blob/master/plugins/websockets/plugin.go) plugin -2. [Redis](https://github.com/spiral/roadrunner/blob/master/plugins/redis/plugin.go) plugin -3. [In-memory](https://github.com/spiral/roadrunner/blob/master/plugins/websockets/memory/inMemory.go) storage plugin - |