When comparing MongoDB with oplog vs Google Firebase, the Slant community recommends Google Firebase for most people. In the question“What are the best databases to push updates from the server database to the client in real time?” Google Firebase is ranked 6th while MongoDB with oplog is ranked 7th. The most important reason people chose Google Firebase is:
The Blaze Plan is a pay-as-you-go plan, which is, you pay for what you use, without overhead or upfront costs.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Great speed
MongoDB queries can be very fast because the data is usually all in one place and can easily be retrieved in a single lookup. But this is true only when the data is truly a document. When it's trying to emulate a relational model it starts to become really slow because it may have to perform many independent queries to retrieve a single document.
Pro Easy to scale
MongoDB has powerful sharding and scaling capabilities for when the data stored in the database gets so large that a single machine may not be able to store all of it. Sharding solves this problem through horizontal scaling. Mongo gives developers the ability to easily and painlessly add or remove as many machines as needed.
Pro Doesn't require a unified data structure
Mongo is very flexible in that it doesn't require a unified data structure across all objects. So it's rather easy to use.
Pro Flexible Pricing
The Blaze Plan is a pay-as-you-go plan, which is, you pay for what you use, without overhead or upfront costs.
Pro Straightforward hosting
Powered by Google's Cloud Platform, Firebase allows you to deploy static web pages or web applications with a nifty Node.js-based CLI Tool.
Pro Super fast CDN
All static website content is hosted on the Fastly CDN making your website really fast.
Pro More than just hosting web applications
In the core of Firebase allows you to do testing for Android apps, Analytics, Real-time Database, and many more. It's centered mostly for progressive web applications and mobile applications with real-time connectivity to your service.
Pro Almost free if you add Cloudflare in front (no bandwidth costs) and cache effectively
The built-in CDN is great too, but if you're concerned about bandwidth costs, using it with Cloudflare is an excellent option option.
Cons
Con Reported to lose or corrupt data
MongoDB is famously known for leaking and losing data over time.
Con Google blocks Access
Some Google services, software and cloud systems, are not available to certain countries. blocked access by google following USA Policies.
Con Linked to Google Cloud Platform
If you don't have a Google Account, you won't be able to access Google cloud services, including this one.