5.0.0 • Published 3 months ago

sharedb-redis-pubsub v5.0.0

Weekly downloads
1,957
License
MIT
Repository
github
Last release
3 months ago

sharedb-redis-pubsub

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.

Usage

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

// Redis client is an existing redis client connection
var redisPubsub = require('sharedb-redis-pubsub')({client: redisClient});

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

3 months ago

4.0.0

12 months ago

3.0.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago

1.0.0-beta.1

8 years ago

1.0.0-beta

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago