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

Connection Modes

GeminiDB Redis API is compatible with open-source Redis and allows traffic from applications using different types of SDKs. It can also be accessed through Data Admin Service (DAS), private networks, and public networks.

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

Figure 1 Connection Methods
Table 1 Connection methods

Method

Scenario

Default Port

Description

DAS

You can connect to a GeminiDB Redis instance using a web-based console client.

-

-

Private network

You can connect to a GeminiDB Redis instance through a private IP address, private domain name, or load balancer address.

This method is suitable when your application is deployed on an ECS that is in the same region and VPC as your instance.

6379

  • You are advised to use the load balancer address to connect to the instance. This ensures high reliability and eliminates the impact of SPOFs.
  • High security and performance
  • If the ECS and GeminiDB Redis 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 Redis instances by following Configuring Security Group Rules for Nodes.
    • 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

You can connect to a GeminiDB Redis instance through a public domain name or an EIP.

This method is suitable when an instance cannot be accessed over a private network. You can connect to the instance from an ECS using a public domain name or an EIP.

6379

  • 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.
  • Use a public domain name to ensure high reliability and eliminate SPOFs.
  • You need to purchase an EIP. For details, see Billing Overview.

Client connection

You can connect to a GeminiDB Redis instance using different code. For details, see Connecting to an Instance Through a Client Using Code.

6379

-