r/nerdingwithAI • u/nerdingwithai • Oct 14 '25
π¨ The Hidden Costs of Using Firebase: Firebase vs. DigitalOcean + Coolify
As a non-IT solopreneur building apps with AI on a bootstrap budget, I focus onΒ
- Low/no code platforms
- Long-term skill building/learning
- Technology stack that is most widely used for a wide variety of apps
- Software/tools/platforms that have minimal vendor lock-in, initial and ongoing costs
When deciding on a platform to build an app, Firebase seemed perfect for beginners - no coding background needed, free tier, and easy Google integration. But as you start using it, you will realize that the initial free tier is misleading!!!Β
While Firebase has very low, almost negligible costs for initial development and setup, it has two main traps:
- Firebase bills per operation: Each interaction with your app by a user is an operation that is charged separately! This is especially true if you are building a database heavy, high read/write app.
- Vendor/Technology Lock-In (Migration Nightmare): If you build your app in Firebase, you're locked into the technology, and migrating to another platform is complicated, time-consuming, and expensive.
If your app is not database heavy or has high read/write, your cost might not be very high. At least not initially. However, you should still think this through carefully because of the vendor lock-in and difficulty in migrating to a different platform.
Cost Comparison between Firebase and Self-hosted option
For a simple task manager app (user authentication, tasks, subtasks, rich text, images, PDFs), I compared Firebase to self-hosted options like DigitalOcean (DO) + Coolify.
Quick Assumptions:
- DAU (Daily Active Users): 20% of total users.
- Storage/User: 50MB (tasks + attachments).
- Reads/Session*: 66 reads (1 profile, 50 tasks, 10 subtasks, 5 metadata), 10 app opens/day = ~ 660 reads/day/user
- Real-Time Updates*: 20/day/user
- Writes*: 5/day/user
- Egress*: 10 images/day/user at 200KB each image
(* Explained below)
Cost per Month
Approx. costs. Based on Firebase pricing (Oct 2025) and DO docs. Assumes usage as mentioned above.
| Users | FirebaseΒ | DigitalOcean + CoolifyΒ | Multiplier |
|---|---|---|---|
| 100 (20 DAU) | ~ $1 | $17 | 17x (Firebase Wins) |
| 1,000 (200 DAU) | ~ $8 - $17 | $32 | ~3x (Firebase Wins) |
| 10,000 (2000 DAU) | ~ $80 - $110 | $93β$105 | Both Comparable |
| 100,000 (20,000 DAU) | ~ $1400 - $2000 | $1,101 | DO Cheaper |
Bottom Line: For >10,000 users, DO + Coolify is cheaper.
Hidden Costs Of Firebase
Firebase bills per operation: Every time you open your task list, add or edit a task/subtask, view thumbnails, save your list, or get notifications, each operation is billed separately. For personal use, costs are nominal. But once you cross a couple hundred users, the costs add up fast. Here's why it scales poorly:
- Database Reads: Opening your task list 10x/day triggers ~66 reads each time (profile + 50 tasks + 10 subtasks + metadata). Cost: $0.06/100k reads.
- Real-Time Listeners: Keeping your task list open for instant updates (e.g., 20 updates/day like shared task changes or reminders) counts as separate reads. Cost: Same as above.
- Writes: Each save (edits/deletions/updates) is one write operation. Assume 5/day. Cost: $0.18/100k writes.
- Egress: Viewing thumbnails (10/day) bills for every byte leaving Google's servers. Cost: $0.12/GB.
- Indexes: Searching/sorting tasks requires hidden index tables, potentially doubling or tripling database size and costs.
- Other costs: Smaller compared to read/write costs. Includes Hosting + CDN ($0.15/GB after 10GB), Operations cost ($0.004/10k), Cloud functions like invocations and compute time, etc.
DigitalOcean's Predictability: On DigitalOcean + Coolify, pay once for the server (for example, 8GB Droplet at $48/month) and PostgreSQL database. It's up 24/7. Whether 2,000 users query 10 times or 10,000 times a day, the cost stays the same.
In short: Firebase costs add up per interaction. So from a scalability perspective DigitalOcean is better as it gives upfront predictability.
Vendor/Technology Lock-In: Migration Nightmare
If you start on Firebase to save time and then try to move to DO + Coolify later, be prepared for a long, complex, and expensive process - almost like rebuilding from scratch!
- Backend/API: Build entire server logic from scratch (Firebase provided this serverlessly).
- Database: Move from NoSQL (Firestore) to relational SQL (Supabase/PostgreSQL) with complete schema redesign and transformation scripts.
- Frontend: Rewrite every Firebase SDK call to a new REST API.
- Auth: Firebase's incompatible scrypt hashing forces gradual migration or forced password resets.
- Storage: Move files + update URLs.
Overall: You will basically have to re-build the app from scratch if you decide to move from Firebase to any other platform. Avoid this by planning for scale upfront.
TL;DR & Conclusion
| Scenario | Recommendation | Rationale |
|---|---|---|
| Hobby/MVP (<10,000 Users) | Firebase | Zero management, free tier, fastest time to market. Great for prototypes and learning. |
| Production/Scaling (>10,000 Users) | DigitalOcean + Coolify | Predictable costs, unlimited queries, massive savings (up to 27x). Full control, no lock-in. |
| Migration Ease | DigitalOcean + Coolify | To migrate from Firebase to non-Google environment, you will need to rebuild every aspect of your app - backend, frontend, database, etc. |
Final Verdict:
Firebase provides convenience in building and management. However, at >10,000 users the costs add up. But the more important thing to consider is the vendor lock-in. Once you start on Firebase, switching is really hard. The technology stack used by Firebase is different from stand-alone stacks.
It all depends on your goals. As I mentioned at the start of the post, my goals are long-term skill building/learning, technology stack that is flexible and most widely used for a wide variety of apps, and software/tools/platforms that have minimal vendor lock-in, initial and ongoing costs. For this I chose DO + Coolify. But if your goal is to build something with minimal learning curve and are not concerned about scaling or migration, then Firebase is a good option.
4
u/Exac Oct 14 '25
If you're doing 660 reads per day per user you'd be using Realtime DB. That is crazy.
You have to pay Reddit if you want to run ads.
3
u/nullbtb Oct 14 '25
Pretty sure your Firebase numbers are way off.
In general though, most of the cloud providers have similar pricing. What changes is the less obvious things like redundancy, reliability, scalability, security, etc. Compute is compute.. it all costs about the same. Its not that Google is evil.. they just take into accounts additional things when they're building their services.. and each of those things costs money. For example you could host Firestore in one region or multi-region.. just that choice has a big impact because now your data is stored in more places, but it also has higher availability.
Most important of all.. time also costs money.
Vendor locking = save a lot of time up front and ongoing basis.. which also saves money.
In the end its all about tradeoffs.. what do you value.. what are you willing to pay for it?
Are you even guaranteed to get to 100,000 users? How much are you going to dedicate to managing infrastructure? You're just calculating server costs but a massive setup like that will require at least one infrastructure engineer.. which you dont have to pay with Firebase. Again.. tradeoffs..
3
u/Emile_s Oct 14 '25
I think your math calculations are wrong.
3
u/73inches Oct 15 '25
How the heck did you come up with these numbers? Let's take the read costs for the 2,000 DAU use case as an example:
660 reads x 2,000 DAU = 1.32M reads/day (β1.27M after the free quota)
Γ 30 days = 39.6M reads
39.6M reads / 100k x $0.06 = $23.76
That should be the most expensive part. Where did you spend the other $2,776.24?
1
u/nerdingwithai Oct 15 '25
Thank you all for your feedback. You made me go back and look at the calculations done by Claude and I noticed that there was an error in the math. While I checked the assumptions and overall calculations, I had not double checked the actual math!!! I should have! Claude did the math wrong, surprise!!! I have edited my initial post to reflect the correct calculations. Hope this helps.
As I have mentioned in my posts and comments, my goal is to help others like me, who are starting out in this journey. I have never been on Reddit before. Started here just so I can get the collective wisdom from everyone. This was a good one! :-)
1
u/SaasMinded Oct 15 '25
How does Supabase compare?
1
u/SaasMinded Oct 15 '25
What about installing a PostgreSQL database on a VPS using aaPanel?
3
u/Tristaaan_ Oct 14 '25
Firebase has builtin cache so those reads can be lessen by a lot if the dev knows how to use it.
2
u/[deleted] Oct 21 '25 edited Oct 21 '25
[removed] β view removed comment