@teamwork/sharedb-redis-pubsub

3.0.0 • Public • Published

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.

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
});

Readme

Keywords

none

Package Sidebar

Install

npm i @teamwork/sharedb-redis-pubsub

Weekly Downloads

6

Version

3.0.0

License

MIT

Unpacked Size

4.7 kB

Total Files

7

Last publish

Collaborators

  • irltopper
  • lisa-kavs
  • loaymoolb
  • furqanali
  • mari_ka
  • mattgeek
  • nern-tw
  • joseluis-tw
  • ivnosing
  • karenhodgins
  • ryanoc8
  • laurenoc125
  • karolina.truszkowska
  • alifletch
  • imrafalman
  • encarnaamoros
  • marcos.gutierrez
  • tonisanta
  • gmc123
  • rodynnz
  • tanyairwinblack
  • pmgriffin
  • victoriasloan
  • a1d0
  • alvarotw
  • seanogdev
  • conor.quin
  • manucuestatw
  • chrisrollins65
  • andrssl
  • kclaur
  • yonson2
  • xlerida
  • pktw
  • decob
  • pinkkis
  • ilserodriguez
  • k823
  • crssn
  • chrisjtwomey
  • simonbb
  • vg500
  • ma-jerez
  • ivayloovcharov
  • ismaelpenalver
  • kadenn
  • nathanmcclelland
  • fatihunlu
  • lmcaree
  • mjteamwork
  • matteobandiera
  • stdiopt
  • roryok
  • duncan1a
  • garycremen
  • dommurphytw
  • bmckay397
  • sineadcullinane
  • miccc
  • shanepm
  • sheyla.marhuenda
  • techfort
  • rafaeljusto
  • 1001hz
  • 4ver
  • emmetcampion
  • bakaat
  • aetheon
  • teamwork-dev
  • cianwoods
  • kersh
  • jamesdraper5
  • aodhom
  • ripexz
  • morethanaprogrammer
  • jatochnietdan
  • samternent
  • pshad0w
  • dmackey
  • yawlhead91
  • gordonmurray
  • gkubisa
  • jessicaaferraz
  • arielpiecha-teamwork
  • cesartw
  • jamesmccullough
  • garymcbay
  • ekm1908
  • adamcarroll-teamwork
  • hmarron
  • bradderz
  • patrickaodh
  • vercadium
  • steve.walsh
  • victoriasloan1995
  • guillermofgorostidi
  • lucasleandro1204
  • atilkan
  • ktopouzi
  • aidancasey
  • valerio-farriciello
  • netoramalhotw
  • ap7t
  • luketynan
  • marciliotw
  • alekaei
  • twsanjay
  • chrismccormack
  • jaspiertw