Updated on 2023-11-21 GMT+08:00

Connection Methods

Table 1 Connection methods

Method

Scenario

Description

Private network

Private IP addresses are provided by default.

Your applications are deployed on an ECS that is in the same region and VPC as your instances.

High security and performance

Public network

If you cannot access a DB instance through a private IP address, bind an EIP to the DB instance first and connect the ECS to the DB instance through the EIP.

  • Low security
  • For faster transmission and improved security, migrate your applications to an ECS that is in the same subnet as your instance and use a private IP address to access the instance.

Java

An example of connecting to a GeminiDB Cassandra instance using Java is provided.

-

Go

An example of connecting to a GeminiDB Cassandra instance using Go is provided.

-