scttnlsn / backbone.io

Backbone.js sync via Socket.IO

Home Page:http://scttnlsn.github.io/backbone.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question and patches: bindBackend() on the server and Redis transport.

pardo-bsso opened this issue · comments

Hi Scott,

Here at OpCode we made a sync() and bindBackend() for the server and also a way to link different servers via redis. And models on all of them are synchronized.

The relevant code is not yet on our backbone.io fork but here:
https://github.com/inaes-tic/mbc-common/tree/redis-sync-clean-2

It is a bit tied to the way we define backends and such, an example is here:
https://github.com/inaes-tic/mbc-caspa/tree/redis-sync-test
and more specifically here:
https://github.com/inaes-tic/mbc-caspa/blob/redis-sync-test/backends.js
and here:
https://github.com/inaes-tic/mbc-caspa/blob/redis-sync-test/server.js#L21

In the following weeks I'll move this to our fork, if you are interested I can try to make it less dependent on our stuff so it can be merged upstream.

Edit:
Docs are at: https://github.com/inaes-tic/mbc-common/blob/ca168e31d4ef1ecadfb81717269cc01426a07dbb/SERVER_IOCOMPAT.md

I'm deprecating backbone.io and continuing development on a similar project: data.io Please see the README for more information.

If you'd still like to address this in the context of data.io please open an issue/pull-request for that project.

Thanks,
Scott