Is direct connect possible with RDS?

0

We have one RDS and We are operating two EC2s in different regions.

However, because it is in a different region, the connection speed and query speed are very slow.

So I want to try Direct connect or Global Accelerator, but the connection keeps failing.

In this case, what is the best method to use?

Thank you for reading my poor English using Google Translator.

2 Answers
2

You don't say what you're currently doing in your question but I'm going to assume that you are using VPC peering to allow access to your RDS from an EC2 instance in another region.

If that is the case then using Global Accelerator will not assist you and may make performance worse because traffic has to leave the VPC where the EC2 instance is and then go to the Global Accelerator endpoint before going to the VPC where the RDS instance is.

Direct Connect will also not assist because that is a service for connecting an on-premises data centre to AWS.

If you are making your RDS public in order to give access, please don't do that. Instead, use VPC peering as that is a private connection between regions for your VPCs and is the lowest possible latency that you will be able to get.

In this case, there is no beating the speed of light. However, you may be able to reduce the latency of some database operations by running a read-replica the regions where your EC2 instances are; or by using a database cache such as ElastiCache. However both of those options add cost to your solutions.

Note that you may get some speed improvements by optimising your database queries.

profile pictureAWS
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
1

It sounds like you need VPC Peering. "A VPC peering connection is a networking connection between two VPCs that enables routing using each VPC’s private IP addresses as if they were in the same network. VPC peering connections can be created between your own VPCs or with a VPC in another AWS account. VPC peering also supports inter-region peering."

Here are the Amazon Virtual Private Cloud Connectivity Options: VPC peering, AWS Transit Gateway, AWS PrivateLink, Software VPN.

AWS Direct Connect is a networking service that provides an alternative to using the internet to connect to AWS. Using AWS Direct Connect, data that would have previously been transported over the internet is delivered through a private network connection between your facilities and AWS. In many circumstances, private network connections can reduce costs, increase bandwidth, and provide a more consistent network experience than internet-based connections. All AWS services, including Amazon Elastic Compute Cloud (EC2), Amazon Virtual Private Cloud (VPC), Amazon Simple Storage Service (S3), and Amazon DynamoDB can be used with AWS Direct Connect.

AWS Global Accelerator helps you improve the availability and performance of the applications that you offer to your global users. It provides static IP addresses that provide a fixed entry point to your applications and eliminate the complexity of managing specific IP addresses for different AWS Regions and Availability Zones. AWS Global Accelerator always routes user traffic to the optimal endpoint based on performance, reacting instantly to changes in application health, your user’s location, and policies that you configure. You can test the performance benefits from your location with a speed comparison tool. Like other AWS services, AWS Global Accelerator is a self-service, pay-per-use offering, requiring no long term commitments or minimum fees.

AWS
answered 25 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions