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

Connection Methods

You can connect to a GeminiDB Mongo replica set instance through a private or public network.

Table 1 Connection methods

Method

Scenario

Description

Private network

GeminiDB provides a private IP address 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, 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.