Updated at: 2022-02-22 GMT+08:00

Connection Methods

GaussDB(for Redis) is compatible with open-source Redis APIs and allows traffic from applications using multiple SDKs. It also provides two access modes: private network and public network.

Table 1 Connection methods

Method

Scenario

Description

Private network

You can connect to a GaussDB(for Redis) instance through a private IP address, private domain name, or load balancer address.

This method is applicable to scenarios where applications are deployed on an ECS which is in the same region and VPC as the DB instance.

  • The load balancer address or private domain name is recommended to ensure high reliability and eliminate the impact of single points of failure.
  • High security and performance

Public network

You can connect to a GaussDB(for Redis) instance through a public domain name or an EIP.

This method is applicable to the scenario where DB instances cannot be accessed through a private network. You can connect a DB instance to an ECS (or a server on the public network) through a public domain name or an EIP.

  • For faster transmission and improved security, you are advised to 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 are advised to use a public domain name to ensure high reliability and eliminate the impact of single points of failure.

Program code

You can access instances using programming languages, such as Jedis, Hiredis, NodeJs, PHP, and Python.

-

close