简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM