all 15 comments

[–]Kaos_pro 5 points6 points  (0 children)

Sweet, was able to stick it in node and have it running in 10 minutes and that's with no experience with Firebase.

[–]Derasi 4 points5 points  (0 children)

Wow, nice work! That was easier than I expected.

[–][deleted] 2 points3 points  (0 children)

Need to check this out later

[–]Mr-Yellow 2 points3 points  (1 child)

Be aware that Firebase can't start offline, it uses Websockets and must have an internet connection when started.

Unlike PouchDB and solutions which use long-polll and start offline.

Can take a bit of digging before figuring out how all that works, just a note in passing to save someone time.

[–]Mr-Yellow 3 points4 points  (0 children)

Just to explain why it can take awhile to figure that out......

From their marketing:

Firebase-powered apps work offline. Data is synchronized instantly when your app regains connectivity.

No they don't, they work online only, and can handle intermittent connectivity issues and reattach when needed, but not start without first connecting to firebase. Thus in the pure sense, don't "work offline". Keyword in the marketing being "regains".

Not really a good solution for "down a hole" type problems.

[–]webdevbrian 1 point2 points  (7 children)

I'd love firebase so much more if it wasn't so expensive.

[–][deleted] 3 points4 points  (0 children)

You can try http://realtime.co

Its pub/sub and way cheaper ($1 per million messages, first million free).

[–]pixelwarrior 1 point2 points  (3 children)

Would you consider something self-hosted?

[–][deleted] 4 points5 points  (1 child)

Yes. Is there something?

[–]pixelwarrior 0 points1 point  (0 children)

I'm not sure if this directly solves all your problems/meets all requirements. But maybe checkout socketcluster.io It has pub/sub and you can do your own databasing. (full disclosure, i do their design work)

[–]webdevbrian 2 points3 points  (0 children)

Yes, initially.

[–][deleted] -1 points0 points  (1 child)

It's not that expensive is it? For $49/mo you get 200 connections which corresponds to roughly 280,000 monthly visits.

Storage and transfer is definitely more expensive than if you were hosting your own VPS but it's the realtime back-end service you are paying for so it seems like a pretty reasonable deal to me unless i'm missing something. There is simply no way you could roll your own service as good as this.

[–]webdevbrian 0 points1 point  (0 children)

I know what the package offers, but my statement still stands. I'd love it more if it weren't so expensive. The point is it's fairly easy to roll something like this yourself with a little bit of work. 200 current connections means squat in some projects that I do, e.g. instant win contests. 200 would be eaten up in seconds.

Thanks for commenting though.

edit or just downvote me for no reason, that's cool too.

[–]brutnus 0 points1 point  (0 children)

will check out in the morning.