Redis pub/sub adapter adapter for ShareDB
Last updated 4 months ago by jgranstrom .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @soundation/sharedb-redis-pubsub 
SYNC missed versions from official npm registry.


NPM Version Build Status Coverage Status

Redis pub/sub adapter adapter for ShareDB.

This ShareDB add-on gives you horizontal scalability; the ability to have a cluster of multiple server nodes rather than just a single server. Using this adapter, clients can connect to any machine in your cluster, and the ops they submit will be forwarded clients connected through other nodes, and there will be no race conditions with regard to persistence.


This snippet shows how to load this library and pass it into a new ShareDB instance.

var redisPubsub = require('@teamwork/sharedb-redis-pubsub')(redisClient); // Redis client being an existing redis client connection

var backend = new ShareDB({
  db: db,  // db would be your mongo db or other storage location
  pubsub: redisPubsub

Current Tags

  • 3.1.0                                ...           latest (4 months ago)

2 Versions

  • 3.1.0                                ...           4 months ago
  • 3.0.0                                ...           5 months ago
Maintainers (2)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (6)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |