Updated on 2025-03-04 GMT+08:00

Connection Methods

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

Table 1 Connection methods

Method

Scenario

Description

Connecting to a Replica Set Instance over a Private Network

A private IP address is provided by default.

Your applications are deployed on an ECS that is in the same region and VPC as your instance.

High security and performance

Connecting to a Replica Set Instance over a Public Network

If you cannot access an instance over a private IP address, bind an EIP to the DB instance first and connect the ECS to the instance using 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.
  • You need to purchase an EIP. For details, see Billing Overview.