DB Comparison between RDS(Amazon mysql managed instance) vs Mongo DB Atlas (Managed Service) vs Mongo Self Hosted
| DB Comparison between RDS(Amazon mysql managed instance) vs Mongo DB Atlas (Managed Service) vs Mongo Self Hosted | ||||
| S. No. | Comparison points | MYSQL(RDS) | Mongo Atlas | Mongo Self Hosted |
| 1 | Availability | As RDS is a managed service provided by Amazon for mysql. It is highly available and managed by Amazon It is dependent on Amazon AWS | A minimum of three data nodes per replica set/shard are automatically deployed across zones for high availability. If your primary node does go down for any reason, the self healing recovery process in MongoDB Atlas will typically occur in under 2 seconds My nodes can be present in any Cloud and can be migrated to any other Cloud hosting if needed. Complete support is provided for migration. The migration is possible with zero downtime. | It is not highly available. It will be hosted on a 3 EC2 instance. If any one of the instance goes down than other instances will serve the DB requirements. All instance will be present in single zone. So zone goes down all the instances will goes down. It will be dependent on Amazon due to instances but can be migrated out if required. |
| 2 | Continuous Backup | Amazon RDS creates and saves automated backups of your DB instance. Amazon RDS creates a storage volume snapshot of your DB instance, backing up the entire DB instance and not just individual databases. The first snapshot of a DB instance contains the data for the full DB instance. Subsequent snapshots of the same DB instance are incremental, which means that only the data that has changed after your most recent snapshot is saved. | MongoDB Atlas continuously backs up your data, ensuring your backups are typically just a few seconds behind the operational system. Point-in-time backup of replica sets and consistent, cluster-wide snapshots of sharded clusters. With MongoDB Atlas, you can easily and safely restore to precisely the moment you need. Vendor snapshot and continuous backup options both available. | Manually has to create backup which can be done according to the automatic Job setup or via third party tool like OPS Manager, Cloud Manager. Only vendor snapshots available but Continuous backups for point in time recovery need to be scripted. |
| 3 | High performance | Automated scaling for storage is enabled by default, making it easier for you to manage capacity MongoDB Atlas supports automated sharding, giving you the ability to scale up or out with minimal impact to your app Workload isolation across replica sets to concurrently run operational and analytical workloads across the same database, without any resource contention. Performance of the queries can be optimized by using the suggestions made by Indexing Advisor | Need to manually tune for performance on the top of usual query loads. | |
| 4 | Cross Region Replication | Amazon RDS provides cross region replication of RDS instance which can be easily setup via dashboard | Ensure uptime in the unlikely event of a multi-zone or total region outage Get improved performance for local reads by geographically distributing read-only replica setmembers that do not participate in the failover process Available for Atlas deployments running on dedicated instances in AWS, Azure, or GCP | Needs to take instance in new regions and manually setup Mongo DB on all the instances Extra overhead of maintaining MongoDB in cross region and Sync overhead is also done manually |
| 5 | Failover | Amazon RDS provides high availability and failover support for DB instances using Multi-AZ deployments. Amazon RDS uses several different technologies to provide failover support. Multi-AZ deployments for Oracle, PostgreSQL, MySQL, and MariaDB DB instances use Amazon's failover technology. SQL Server DB instances use SQL Server Database Mirroring (DBM). In a Multi-AZ deployment, Amazon RDS automatically provisions and maintains a synchronous standby replica in a different Availability Zone. The primary DB instance is synchronously replicated across Availability Zones to a standby replica to provide data redundancy, eliminate I/O freezes, and minimize latency spikes during system backups. | The main intent of this chaos is to ensure that if part of production fails, you don't end up with a completely out of service application. Once the failover occurs your cluster will perform an election and select one of your secondaries that has the most complete oplog to become your new primary. Once failover is completed, the former primary instance is placed back into your cluster with the same hostname. Your connection string will not require modification as MongoDB drivers are smart enough to instantly know which members of your Atlas cluster are now primaries. | Failover needs to be setup manually. |
| 6 | Monitoring | AWS provides various tools that you can use to monitor Amazon RDS. You can configure some of these tools to do the monitoring for you, while some of the tools require manual intervention. We recommend that you automate monitoring tasks as much as possible. Monitoring can be done on several parameters: High CPU or RAM consumption Disk Consumption Network traffic Database Connections | Monitoring and alerts provide full metrics on the state of your cluster’s database and server usage Automatic notifications when your database operations or server usage reach defined thresholds that affect your cluster's performance Monitoring is done on several parameters:- • Operations • Read/Writes • Network In/Out • Memory • Hottest Collections • Slowest Operations | Monitoring needs to be managed by the user which takes time and resources. Need to a create monitoring criteria and then keep a watch on those parameters manually. |
| 7 | Pricing | RDS pricing is same as existing | For 3 node replica (8 GB RAM, 400GB SSD) x 3 Total price - $593.4/month included with daily Snapshot Total price - $593.4 +(optional) $1200/month Continuous Backup(for point in time recovery) Price for three replicas with 200GB | For 3 EC2 Instances (8 GB RAM, 400GB SSD) x 3 Total price - $423.79/month included with snapshot Continuous backup option not available. |
| 8 | Zero Downtime while Scaling | Yes | Yes | No |
Note
- Mongo Atlas
Region - US-West(Oregon)
M30 (8GB RAM and 400 GB HD)
$0.76/hr. With 3- node replica set.
Snapshot price starting at $0.14GB/mo
Continuous Backups 1st GB free per replica set then $1.50 to $2.50/GB/mo
- Mongo Self-managed
Region - US-West(Oregon)
t2 Large(Linux) (8GB RAM and 400GB HD for each instance
EBS Volume Snapshot price starting at $0.05GB/mo
Comments
Post a Comment