Updated on 2024-10-08 GMT+08:00

Connection Methods

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

Figure 1 shows the process of connecting to a GeminiDB Cassandra instance.

Figure 1 Connection Methods
Table 1 Connection methods

Method

Scenario

Default Port

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.

8635

  • High security and performance
  • If the ECS and GeminiDB Cassandra instance are in the same security group,

    they can communicate with each other by default. No security group rule needs to be configured.

  • If they are in different security groups, configure security group rules for them, separately.
    • Configure inbound rules of a security group for GeminiDB Cassandra instances by following Configuring Security Group Rules.
    • The default security group rule allows all outbound data packets, so you do not need to configure a security rule for the ECS. If not all access from the ECS is allowed, you need to configure an outbound rule for the ECS.

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.

8635

  • 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.
  • You need to purchase an EIP. For details, see Billing Overview.

Java

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

8635

-

Go

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

8635

-

Spark

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

8635

-