Live data from Hacker News

Cloud Firestore: A New Document Database for Apps

firebase.googleblog.com

71–80 of 174 posts

Re: Cloud Firestore: A New Document Database for Apps

#71
post #45

Earlier quoted context omitted.

How do you deal with consistency in the offline case? E.g. If I make a bunch of edits while disconnected, and others have made edits while connected, how are the conflicts resolved?

This works similar to the Realtime Database in that it's last-write wins (where in the offline case, "last" is the last person to come back online and send their write to the backend). This model is very easy for developers to understand and directly solves many use cases, especially since we allow very granular writes which reduces the risk of conflicts. But for more complex use cases, you can get clever and impleme…

Hey Michael! Congrats on the launch :)

Providing a one-size-fits-all solution here is probably impossible, but it seems like it would be nice to provide some mechanism to be notified that you're making edits based on stale information. If such a mechanism existed, it would be easy to add a bunch of canned merge strategies. In doing so you can probably teach people a little bit about the pitfalls they're likely to run into (these sorts of bugs are insanely difficult to track down), while not really making them do much work.

The approach we've taken in Eve is that we can't solve all these problems for you, but we can at least let you know that things can go sideways and prompt you to make a deliberate decision about what should happen. It's amazing how helpful that ends up being.

Re: Cloud Firestore: A New Document Database for Apps

#72

Looks great, however, I still have hopes that something similar to a GraphQL interface for a SQL based database is coming. NoSQL is cool, but ultimately GraphQL/Apollo serves many of the same issues but has the capability of a much richer, standardized and potentially lower cost backend.

It's coming https://subzero.cloud/ :)

Re: Cloud Firestore: A New Document Database for Apps

#74
post #59
post #2

[Firebase founder] This new database has been in the works for 2.5 years, since shortly after we joined Google. It was developed in close collaboration with the Cloud Datastore[1] team, and uses Google’s core database infrastructure. We built it because we know it can be challenging to build complex apps with our original database -- Firebase Realtime Database -- where we optimized for ease-of-use & real-time sync ov…

Awesome to see this. I couldn't get behind the RTDB structure, but Cloud Firestore I will definitely use!

Woohoo! Is this an official parse endorsement? (Hi Fosco )

Re: Cloud Firestore: A New Document Database for Apps

#75
I don't like this trend of creating new closed source database systems that only exist on a single cloud provider.

Your data is your most valuable asset, and by using this you're locking it inside Google servers. If they decide five years from now to discontinue it, or to raise the pricing 10x, you're screwed.

Are most developers only working on short term projects? Why would you put yourself in such a situation instead of using open source technologies that can be deployed anywhere?

Re: Cloud Firestore: A New Document Database for Apps

#76
post #22

I’m still looking for a product that provides firebase-levels of ease of getting up and running (no API to design, rule-based authentication, etc) , but runs on your own infrastructure, off of a traditional RDBMS. Someone tell me they’ve found the holy grail?!

We offer this at appbase.io, it runs on top of Elasticsearch (no vendor lock-in) and a cloud native version that you can run anywhere is now available in preview at https://store.docker.com/images/appbaseio.

Re: Cloud Firestore: A New Document Database for Apps

#77
post #2

[Firebase founder] This new database has been in the works for 2.5 years, since shortly after we joined Google. It was developed in close collaboration with the Cloud Datastore[1] team, and uses Google’s core database infrastructure. We built it because we know it can be challenging to build complex apps with our original database -- Firebase Realtime Database -- where we optimized for ease-of-use & real-time sync ov…

How goes the work to improve customer service and support?

Thinking about https://news.ycombinator.com/item?id=14359801, what improvements have you made in the last 139 days that would make us want to build on this?

Re: Cloud Firestore: A New Document Database for Apps

#78
post #74
post #59

Earlier quoted context omitted.

Awesome to see this. I couldn't get behind the RTDB structure, but Cloud Firestore I will definitely use!

Woohoo! Is this an official parse endorsement? (Hi Fosco )

Hey Thomas :) I speak only for myself, Firebase just got way better.

Re: Cloud Firestore: A New Document Database for Apps

#80
post #22

I’m still looking for a product that provides firebase-levels of ease of getting up and running (no API to design, rule-based authentication, etc) , but runs on your own infrastructure, off of a traditional RDBMS. Someone tell me they’ve found the holy grail?!

You should check out Hasura (https://hasura.io/)!

It is exactly what you're asking about.

Disclaimer: I work at Hasura. Feel free to ask me anything you want to know about.

Post reply on HN