Reputation: 217
I am thinking of using Pouchdb and Couchbase (w. Sync Gateway) to implement an online presence system in the style similar to what could be done in the Firebase tutorial linked below.
https://www.firebase.com/blog/2013-06-17-howto-build-a-presence-system.html
Is it possible to do that with these tools? It would be great if someone could give me some hint.
Thanks.
Upvotes: 1
Views: 178
Reputation: 11620
PouchDB itself won't give you any clue when a user is offline or online, so you may want to look into this library: http://github.hubspot.com/offline/docs/welcome/
As for signaling that a user is online/offline to other users, you can definitely do that in PouchDB by just modifying documents. But keep in mind that PouchDB keeps a record of all changes made to a document (think Git), so your history can grow out of control pretty quickly. So you'll probably want to turn on auto_compaction
in order to trim old document revisions.
Upvotes: 1