News for hackers. Stuff that matters.
Re:SapphireDb – Open-Source Alternative to Firebase by rkrzr on Wednesday January 15, 2020 @11:42AM (#22055726)
If you are looking for an open-source replacement of the Firebase Realtime Database, you might also be interested in Icepeak (https://github.com/channable/icepeak) (full disclosure, I'm one of the authors).

Icepeak was written because we were unsatisfied with the reliability and with the (occasionally) high latency of Firebase, both for pushing updates via HTTP (>1s for some requests) and for receiving updates over websockets.

This was about 3 years ago though, so I hope that Google improved the quality of the service in the mean time.

Re:SapphireDb – Open-Source Alternative to Firebase by spankalee on Wednesday January 15, 2020 @01:36PM (#22056989)
Firebase and AppEngine Datastore have both been superceded by Firestore, which is has the realtime features of Firebase, but the scalability and performance (better, I think) of Datastore, and more data modeling and query flexibility.
Re:SapphireDb – Open-Source Alternative to Firebase by bumblebee4 on Wednesday January 15, 2020 @12:51PM (#22056426)
That sounds interesting. Have you compared your service to pouchdb and gun? Is it possible to use icepeak in offline mode and automatically sync when getting online again?

[1] https://pouchdb.com/

[2] https://gun.js.org/

Re:SapphireDb – Open-Source Alternative to Firebase by xrd on Wednesday January 15, 2020 @02:06PM (#22057325)
PouchDB looks like the client side library.

Do you still need CouchDB on the backend?

I see from the mailing list it is still a very active project, which surprised me.

Re:SapphireDb – Open-Source Alternative to Firebase by dsun180 on Wednesday January 15, 2020 @03:17PM (#22058019)
If you want to have PouchDB without being tied to the CouchDB-backend, check out RxDB. It supports replication via GraphQL.

https://github.com/pubkey/rxdb

Re:SapphireDb – Open-Source Alternative to Firebase by bumblebee4 on Wednesday January 15, 2020 @02:33PM (#22057608)
PouchDB is CouchDB-Protocol implemented in javascript so you can run it wherever there is javascript, not just as a client. If you want to have a backend, you can use any DB that supports that protocol (there are several), which includes using a PouchDB instance run by node.js.
Re:SapphireDb – Open-Source Alternative to Firebase by lhuser123 on Wednesday January 15, 2020 @03:02PM (#22057880)
Is PouchDB + CouchDB considered an alternative to Firebase?
Re:SapphireDb – Open-Source Alternative to Firebase by bumblebee4 on Wednesday January 15, 2020 @05:54PM (#22059727)
That depends on your use case since Firebase is more than a database. Since CouchDB is from 2005 and Firebase is from 2011, it is in comparison a very mature product and protocol worth trying.
Re:SapphireDb – Open-Source Alternative to Firebase by folex on Wednesday January 15, 2020 @03:43PM (#22058279)
Hi! What are you using for conflict resolution? Is it CRDT? Have you seen RON? https://github.com/ff-notes/ron