Deep Dive on MYSQL Aurora Database with Global Database Region Availability
Tags: amazonrds, cloudwatch, cloudwatchlogs, globaldatabase
Published: 2024-05-11 21:20:18

“ I have checked the documents of AWS to get into a deep dive on the mysql aurora database with global database region availability feature. In terms of cost, need to pay for amazon rds and cloudwatch.”

Amazon Aurora is a fully managed relational database engine that's compatible with Mysql and Postgresql. As already know how mysql and postgresql combine the speed and reliability of high end commercial databases with the simplicity and cost effectiveness of open source databases. The code, tools and applications you use today with your existing mysql and postgresql databases can be used with aurora. With some workloads, aurora can deliver upto 5 times the throughput of mysql and upto 3 times the throughput of postgresql without requiring changes to most of your existing applications.

In this post, you will experience how to deep dive on mysql aurora database with global database region availability. Here I have created an amazon rds mysql aurora database with a global database.

#Architecture Overview
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffdvcahvo7hqz9wrht4d.png)
The architecture diagram shows the overall deployment architecture with data flow, amazon rds mysql aurora, cloudwatch.

#Solution overview
The blog post consists of the following phases:
1. Create of Amazon RDS Mysql Aurora with Multi-AZ Configuration
2. Addition of AWS Region on Regional Cluster to get a Global Database with Primary and Secondary Cluster
3. Output of Global Database and Cloudwatch Log Group

##Phase 1: Create of Amazon RDS Mysql Aurora with Multi-AZ Configuration
1. Open the console of Amazon RDS, create a database with mysql aurora compatible. Choose the required parameters as engine version, credentials, instance configuration, availability as multi-az, vpc, database authentication, monitoring configuration with database option. Database is created as a regional cluster with reader and writer instances.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/grgq4yveg8unad6a1qge.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0onz0jhrbrqqwbzftpl5.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eqsg9kd9rsd0btzvtig8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4it98wbteq063qdbw31.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yly2zmcaugoabavbit07.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nas9h3kldkcz97zyklge.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6u0k03s3p9e2zrieav9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h4vu9uvg28mdhzzlyrbt.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7jpuj9bl3qw2h3jd7jo.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hvbhufrdjthd976ouims.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w8yv51debawealkr3hpm.png)

##Phase 2: Addition of AWS Region on Regional Cluster to get a Global Database with Primary and Secondary Cluster
1. Select the regional cluster and click on add aws region option. Configure the global database settings with region, instance configuration, availability, connectivity and additional configurations.. Also enable the read replica write forwarding option. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fbnxdzk4ur1h4q1egl6j.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1960vrwx2u06xvxmfrdg.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpbrhb6v5bemnmak71na.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/482daynwp2pq5mip2m38.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/938efxmct3rq2ymqmz4t.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uz8neg16wzmupg8zacqi.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guomhcioaf3a9p9b9g6i.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5kwwgxmfqyzc3jid7j2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjijae8orrlwrx7t4dcj.png)

##Phase 3: Output of Global Database and Cloudwatch Log Group

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uwoaury660mqmt43cyix.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a9h51jxlkmqzvtdevlno.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p8cumgo9iw1uwz271f36.png)

#Clean-up
Delete of Amazon RDS and Cloudwatch Log Group.

#Pricing
I review the pricing and estimated cost of this example. 

Cost of Amazon Relational Database Service for Aurora MYSQL in US East (N. Virginia) = ($0.29 per RDS db.r5.large Single-AZ instance hour (or partial hour) running Aurora MySQL) x (1.458 Hrs) = $0.42

Cost of Amazon Relational Database Service for Aurora MYSQL in US West (Oregon) = ($ 0.26 per RDS db.r6g.large Single-AZ instance hour (or partial hour) running Aurora MySQL) x (0.532 Hrs) = $0.14

Cost of Cloudwatch = $0.0

Total Cost = $0.56

#Summary
In this post, I showed “how to deep dive on mysql aurora database with global database region availability”.

For more details on Amazon RDS, Checkout Get started Amazon RDS, open the [Amazon RDS console](https://us-east-1.console.aws.amazon.com/rds/home?region=us-east-1#GettingStarted:). To learn more, read the [Amazon RDS documentation](https://docs.aws.amazon.com/rds/?icmpid=docs_homepage_featuredsvcs).

Thanks for reading!

Connect with me: [Linkedin](https://www.linkedin.com/in/gargee-bhatnagar-6b7223114)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38sdi4nsp89fnui8h7dk.png)