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

    Keywords

    none

    Install

    npm i @teamwork/sharedb-redis-pubsub

    DownloadsWeekly Downloads

    105

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    4.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • ismaelpenalver
    • kadenn
    • nathanmcclelland
    • sinderpl
    • fatihunlu
    • caelum119
    • nathandennis
    • smusick
    • stevenr84
    • lmcaree
    • jordanteamwork
    • mjteamwork
    • matteobandiera
    • stdiopt
    • jacknev
    • felipemrodrigues
    • eointw
    • roryok
    • duncan1a
    • cbrohan-tw
    • garycremen
    • dommurphytw
    • shaydoc75
    • bmckay397
    • sineadcullinane
    • miccc
    • shanepm
    • sheyla.marhuenda
    • eamonnmg
    • techfort
    • rafaeljusto
    • 1001hz
    • ryanlync
    • michaelwebcork
    • felixls
    • 4ver
    • emmetcampion
    • bakaat
    • smithalan2
    • aetheon
    • dawidmyslak
    • mike182uk
    • teamwork-dev
    • cianwoods
    • miralize
    • kersh
    • jamesdraper5
    • aodhom
    • ripexz
    • morethanaprogrammer
    • jatochnietdan
    • yannig
    • samternent
    • pshad0w
    • irltopper
    • dmackey
    • yawlhead91
    • gordonmurray
    • daveohalloran
    • gkubisa
    • neayto
    • brendonald
    • i.dobrovolskyi
    • hollymc
    • jessicaaferraz
    • keli711
    • arielpiecha-teamwork
    • cesartw
    • miquel.vallespir
    • jasoncheung94
    • jamesmccullough
    • garymcbay
    • ekm1908
    • tjfogarty
    • romanodesouzatw
    • plrenaudin
    • adamcarroll-teamwork
    • hmarron
    • asajaroff
    • bradderz
    • patrickaodh
    • flexicon
    • pbrownlow
    • rossi99
    • vercadium
    • cristian.teamwork
    • andyantrim
    • steve.walsh
    • victoriasloan1995
    • guillermofgorostidi
    • donnchadhcoffey
    • lucasleandro1204
    • atilkan
    • ktopouzi
    • aidancasey
    • gear54rus
    • viniciussaran
    • gerardrv
    • samyuktasreekanth
    • tanmayeesy
    • valerio-farriciello
    • ozhi
    • netoramalhotw
    • tatenda-98
    • ap7t
    • luketynan
    • tiagreaney
    • emilylawlor
    • marciliotw
    • alekaei
    • twsanjay
    • chrismccormack
    • jaspiertw