
You can compare SQL vs NoSQL somewhere else, but I think the differences (data duplication vs normalised data, performance) are not a big deal compared to the other issues here I mentioned (productivity and cost), especially when you're making a basic apps. Firebase makes great videos and integrates with other Google stuff well (Android, Flutter), for example, this fun one and this serious one.In both cases, you can say you pay what you "use", but in Firestore usage is actual benefit to the user, where as usage in AWS would be the machines youre using.AWS Aurora is $60 for a basic machine db.t3.medium. Pricing summary: If nobody uses your app in one month, Firestore is free.Sure, AWS some serverless database offering called Aurora Serverless, but you pay per hour, so even if nobody uses your app, you're paying! Postgres will need to be hosted somewhere, so that will cost you money immediately, even if someone doesn't use your app. You only pay for reads, writes, deletes and the actual data size stored.
Nosql vs postgresql install#
You don't have to install the firebase SDK into your app, who knows what that library does without watching the network traffic. Get the latest insights on our supported databases MySQL, MongoDB®, PostgreSQL, Redis, and many others to see which database management systems are most favored this year. You're locked into the Firebase ecosystem. Comparing Postgres JSONB With NoSQL Denis Rosa, Developer Advocate, Couchbase on AugThe reality is that databases are converging, and in the last few years, it is becoming even more difficult to point what are the best scenarios for each datastore without a deep understanding of how things work under the hood. If one day a new serverless database product is created or open sourced, it might be hard to migrate from Firestore to it, than it would be to migrate from Postgres to the same. how the queries work, and also the security rules, and most people won't. If using Firestore, you need to make sure you deeply understand its paradigm: e.g. Also, people were inefficiently making queries in Firebase and costing their company thousands of dollars with no real benefit. It may be designed to be simple, but don't underestimate it: a few years ago, apps leaked all their sensitive data or allowed anyone to empty out their entire database (That was firebase 😁). Firestore is a niche offering by Google, and only people in the Firebase ecosystem will know what that is.
Data scientists, infrastructure and normal developers will know how it works. More people are familiar with PostgresQL than Firestore.I had the same question, and wanted a definitive answer (I don't provide that here 😅), especially since some people on hacker news were preferring using generic services which don't lock you into a Cloud provider.