Best Practices for Low Latency Connections with Autonomous Database
Taking steps to reduce the latency for connections between an application and Autonomous Database is critical if your application performs many round-trips between the application and the database.
For example, consider an OLTP application connecting to Autonomous Database and submitting thousands of SQL statements to the database individually to execute a sales order. In this case, the application requires thousands of round-trips, and reducing the latency for each round-trip can considerably speed up the sales order process. For such applications there are best practices that you can follow to reduce the latency for database connections.
- Steps to Reduce Latency for Database Connections
You can follow these recommendations to reduce the latency for connections between your applications and the database. - Conceptual Network Diagram for Low Latency Database Connections
Shows the conceptual network diagram for low latency connections using public endpoints and private endpoints for your database.
Parent topic: Connection and Networking Options and Features
Steps to Reduce Latency for Database Connections
You can follow these recommendations to reduce the latency for connections between your applications and the database.
First determine the database's availability domain. To find an Autonomous Database instance's availability domain, connect as ADMIN and run the following query:
SELECT json_value(cloud_identity, '$.AVAILABILITY_DOMAIN') AVAILABILITY_DOMAIN FROM v$pdbs;
For example:
SELECT json_value(cloud_identity, '$.AVAILABILITY_DOMAIN') AVAILABILITY_DOMAIN
FROM v$pdbs;
AVAILABILITY_DOMAIN
--------------------
SoSC:US-ASHBURN-AD-1
To reduce latency, do the following:
Conceptual Network Diagram for Low Latency Database Connections
Shows the conceptual network diagram for low latency connections using public endpoints and private endpoints for your database.
Low Latency Connections Using Private Endpoint with Application Running Inside the OCI Region
Low Latency Connections Using Public Endpoint with Application Running Inside the OCI Region
Low Latency Connections Using a Private Endpoint with Application Running In On-Premises Data Center Connected to OCI Using FastConnect
Low Latency Connections Using a Private Endpoint with Application Running In Your in On-Premises Data Center Connected to OCI Using FastConnect