- AWS RDS
- MS SQL Server
- AWS Aurora
- Google Cloud SQL
- SAP SQL Anywhere
- Oracle NoSQL
- The fixed schema of SQL made it hard (almost impossible) for changing business requirements.
- If you still try a schema change, it would be very problematic and time-consuming.
- SQL had insufficient performance when compared to new databases and high latency.
- Scalability became very limited and costly.
- It works well for both unstructured and unrelated data.
- NoSQL gives up a few features of the traditional databases to improve speed and scalability.
- These databases are quite cheaper, faster and safer to extend a preexisting program.
|Performance||Firebase has inferior performance than MongoDB||MongoDB provides high performance with high traffic apps|
|Security||Firebase is not as Secure as MongoDB||It is more Secure than Firebase|
|Applications||Firebase is ideal for small-scale applications||MongoDB is best suitable for large-scale applications|
|Instant data updates without refreshing.||MongoDB has powerful sharding and scaling capabilities|
|Easy to synchronize multiple computers with the database.||Dynamic — No rigid schema.|
|No need to worry about your server going into meltdown if you suddenly get tonnes of traffic.||Flexible – field addition/deletion have less or no impact on the application|
|It has a Cloud-Based Event Queue.||Data Representation in JSON or BSON|
|Real-time Firebase Push Notifications||MongoDB has Geospatial support.|
|Google Firebase is ideal for Real-time Chat/messaging applications.||Easy Integration with BigData Hadoop|
|Firebase pricing offers a pay-as-you-go plan with flexible rates.||This one offers a free version when you configure it in your own server, with the paid version you will get a serverless set up (using MongoDB servers).|
|It offers synched Application State.||MongoDB’s documentation has a very vast collection of literature and MongoDB tutorials for new users.|
|This one offers a superfast CDN for static websites.||It is very flexible as it doesn't require a unified data structure across all objects.|
|With Google's Cloud Platform, Firebase allows straightforward hosting.||MongoDB is secure because no SQL injection can be made.|
|Firebase has esoteric security protocols.||MongoDB is infamous for corrupting, leaking, or losing data over time.|
|Firebase only has paid version so you can’t set up Firebase on your own server, you will have to purchase Google’s server.||The indexing and searching in MongoDB are not very powerful.|
|There are no relational queries in Firebase.||MongoDB is not entirely ACID-compliant (Atomic, Consistency, Isolation, Durability)|
|You don't own the servers that host your data, so it's not possible to export your user data.||No function or stored procedure exists where you can bind the logic|
|Dealing with relations with Firebase is quite complex.||MongoDB has confusing 'middleman' hosting arrangements|
|With Firebase, data migration is a tricky subject.||Complex queries are very difficult to work with.|
|Where to use Firebase||Where to use MongoDB|
|For short on development time||Evolving data requirements|
|If your app needs data in real-time||Real-time analytics & high-speed logging|
|Planning to scale your application easily and frequently||Better Caching & high scalability|
|Perfect for Instant messaging, online gaming, & social networks apps||Complete Configuration Management|
|Real-time sync between devices and browsers||Maintaining location-based data — Geospatial data|
|Intuitive API for seamless 3rd party integration||Large Enterprise Data Management|
|Where not to use Firebase||Where not to use MongoDB|
|Google Firebase is not right for you if you wish to own your user data.||Highly transactional systems or where the data model is designed up front.|
|Firebase offers a limited number of languages so you can’t create your own custom back-end API.||There are better options than MongoDB if you are planning to build a Detailed design system.|
|If your monthly plan exceeds, then Firebase charges a significant amount.||If complete ACID compliance is your need, skip this database.|