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

Connection Methods

GeminiDB Cassandra can be accessed through Data Admin Service (DAS), private networks, and public networks.

Table 1 Connection methods

Method

Scenario

Description

DAS

You can log in to an instance on the console without using an IP address.

  • Easy to use, secure, advanced, and intelligent
  • By default, you have the permissions required for remote login. It is recommended that you use the DAS service to log in to DB instances. DAS is secure and convenient.

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.

-