Data Synchronization
In a multi-region setup, data synchronization is a critical aspect that ensures consistency and availability across different geographic locations. It involves replicating databases, files, configuration settings, and other pertinent information to multiple regions, which demands sophisticated strategies and robust tools. Additionally, regulatory compliance, data sovereignty laws, and other legal considerations play a pivotal role in shaping data synchronization strategies within a multi-region architecture.
SAP recommends using SAP HANA Cloud that provides built-in Disaster Recovery (DR) and High Availability (HA) capabilities, using availability zones, provide robust data resiliency within a single region. This ensures that operations can continue seamlessly even if one availability zone experiences an outage. However, for multi-region data resiliency and availability, enterprises often require redundancy that spans multiple geographic regions. This requires setting up SAP HANA Cloud in multiple regions and synchronizing data across different regions using Smart Data Integration (SDI) or Smart Data Access (SDA).
Smart Data Integration (SDI)
Smart Data Integration (SDI) offers advanced data transformation and real-time replication capabilities. It is suitable for scenarios where complex data transformations are required before data is synchronized across regions. SDI involves setting up additional tools and configurations, making it a more complex solution compared to SDA. However, its robust features make it ideal for enterprises needing detailed control over their data synchronization processes.
Smart Data Access (SDA)
Smart Data Access (SDA) provides a simpler approach for data synchronization by allowing direct access to remote tables. This method eliminates the need for complex setups and additional tools, making SDA an appealing choice for many enterprises looking for straightforward multi-region data synchronization.
Given its simplicity and effectiveness, this architecture will focus on achieving multi-region data resiliency using Smart Data Access (SDA).
Multi-Region Replication
For SAP HANA cloud multi-region synchronization, SDA must be active in the secondary region by replicating data from primary to secondary. In this setup, primary is write-enabled while the secondary remains read-only. When the primary region experiences failure, the replication topology has to be changed from primary to secondary. As this process requires a series of steps that needed to be executed based on the region switch, and to simplify this a custom application can be developed that can act as a control plane.
Hyperscaler Services (Alternatives)
There are also other ways to achieve data synchronization across geographic regions using globally distributed databases like AWS Aurora, Google AlloyDB, Azure Cosmos DB etc.,
Comparative Analysis
This comparative assessment provides valuable insights to assist decision-makers in developing resilient and efficient distributed systems equipped with strong state replication capabilities across geographical regions.
SAP HANA Cloud with SDA | Hyperscaler global databases | |
---|---|---|
Solution Approach | Manual or using control plane | in-built |
Initial setup complexity | High, medium with control plane | Low |
Maintenance complexity | High, but low with control plane | Low |
Data Loss | Unknown | Low |
Multi-Region Replication | Write-Read | Write-Read |
Failover Execution | Manual / Automated (using control plane) | Manual and Automatic |
Approximate RTO | ∼ 10 seconds per table and ~ 30 seconds for DNS refresh | ?? |