Same-City Dual-Active

Updated at:

Background

When an irresistible problem occurs in a single data center, such as power outages and network outages, services cannot be provided normally, which may cause potential losses to the business. Therefore, in the financial-level high availability design, in order to avoid user losses, a multi-active mechanism can be based on multiple different data centers in the same city or different places. While ensuring data consistency, it can minimize the potential high availability problems caused by only single-point availability of data centers. The same city double live is one of the mechanisms.

Comparison of call methods

The invocation patterns differ between default architecture and Same-City Dual-Active architecture, with key distinctions as follows:

  • Default architecture: Application nodes deployed in multiple zones (corresponding to physical data centers) in the same workspace are completely peer-to-peer. Messages and service calls are completely random in the workspace. In daily business links, multiple cross-data center calls occur, increasing performance loss.

  • Same-City Dual-Active architecture: calls are preferentially made in the same zone. If the call destination cannot be found in the same zone, calls are made in other zones.

Best practices

The following logic is recommended for best practice scenarios:

  • All node peers of each application are deployed in two zones in the same city.

  • Each Availability Zone contains all applications (except the data store), and the complete workflow can be completed in a self-contained manner.

  • After a service request enters a zone, all subsequent call links converge to the same zone.

  • As long as the weight ratio of the entrance SLB is adjusted, the traffic distribution of the two data centers can be accurately controlled.

Based on the capabilities of the above solution, advanced scenarios such as Blue-Green Deployment and Same-City Disaster Recovery Failover can be enabled.

Data access proxy configuration

By default, Data Access Proxy does not support the Same-City Dual-Active architecture in the same region. You need to manually configure this mode.