Help Center/ Virtual Private Network/ FAQs/ Networking and Application Scenarios/ Can I Deploy an Application on the Cloud and a Database in an On-premises Data Center and Connect Them Through a VPN?
Updated on 2023-10-20 GMT+08:00

Can I Deploy an Application on the Cloud and a Database in an On-premises Data Center and Connect Them Through a VPN?

Yes.

A VPN connects a VPC and an on-premises data center.

After a VPN is set up, service traffic can be transmitted between the VPC and on-premises data center. For an application server on the cloud, access to an on-premises database is logically the same as access to other hosts in the same LAN. Given this, it is feasible to use a VPN to connect an application on the cloud to a database in an on-premises data center.

This is a typical IPsec VPN scenario.

Additionally, there are no limitations on the service initiator. That is, service requests can be initiated from the cloud or the on-premises data center.

  • After a VPN is set up, check the network latency and packet loss rate to ensure smooth service running.
  • It is recommended that you run the ping command to check the packet loss and network latency details.