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

Connection Methods

GeminiDB Redis is compatible with the Redis API and allows traffic from applications using different types of SDKs. It can also be accessed using a web-based console or over private and public networks.

Table 1 Connection methods

Method

Scenario

Description

Console

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

-

Private network

You can connect to a GeminiDB Redis instance using 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 DB instance.

  • Use the load balancer address or private domain name to ensure high reliability and eliminate SPOFs.
  • High security and performance

Public network

You can connect to a GeminiDB Redis instance using 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.

  • 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.

Program code

You can connect to a GeminiDB Redis instance using programming language by referring to Client Program Demo.

-