Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySql localhost vs Amazon RDS instance Performance

I am running Django Rest API on an AWS ec2-server. Right now the Api's are using MySql localhost database. Should I shift my database from MySql localhost to Amazon RDS instance?

As per what I Know for remote servers would take a little extra time to transmit the request and shared resources. Would this little extra time be worth migrating my database from MySql localhost to Amazon RDS instance?

I read this answer but it didn't helped me much. MySql localhost vs Amazon RDS instance

An answer with all possible Pros and Cons will really be appreciated.

like image 331
Saurabh Pandey Avatar asked Jul 02 '18 10:07

Saurabh Pandey


People also ask

What are the advantages of using Amazon RDS instead of setting up MySQL database on an EC2 instance?

High Availability: Amazon RDS vs MySQL on EC2 High Availability. Amazon RDS provides high availability and failover support for DB instances with Multi-AZ deployments. Multi-AZ deployments for MySQL use Amazon technology that automatically provisions and maintains a synchronous standby replica in a different AZ.

What are the advantages of using RDS over hosting your own database?

Backing up and restoring your database can be a big headache but, Amazon RDS makes it easy. You get automated backups that let you recover to a pointed time you choose. You also get a simple way to take consistent and deliverable snapshots on-demand and keep them as long as you want.

Is Amazon Aurora faster than MySQL?

Aurora vs. Amazon asserts Aurora is five times faster than standard MySQL databases and three times faster than PostgreSQL databases when used in the cloud. Comparing Amazon Aurora vs.


1 Answers

Pros for local MySQL

  • Slightly faster, because of proximity to the application

Cons for local MySQL

  • Not Easily Scalable

  • If you want to use autoscaling for your application load and traffic then you might have nightmares, because as you scale you will have even the MySQL servers running on each new node.

Pros for RDS

  • You don't have to worry about installing and maintaining MySQL server
  • You don't have to worry about scaling
  • You don't have to worry about load balancing
  • You don't have to worry about EC2 upgrades and patching
  • You don't have to worry about failure recovery because when you provision a Multi-AZ DB Instance, Amazon RDS synchronously replicates the data to a standby instance in a different Availability Zone (AZ)List item

Cons for RDS

  • Slightly slower due to network latency
like image 196
Arafat Nalkhande Avatar answered Oct 20 '22 21:10

Arafat Nalkhande