简体   繁体   English

主动主动模式的多区域架构 azure

[英]Multi region architecture with active active mode azure

I have some doubts about implementing a multi-region architecture in azure, I am running my application currently in one region and I am saving some data in blob storage and others in the PostgreSQL database.我对在 azure 中实现多区域架构有一些疑问,我目前在一个区域中运行我的应用程序,我将一些数据保存在 blob 存储中,其他数据保存在 PostgreSQL 数据库中。 I wanted to replicate my whole architecture in different regions to be near to other customers.我想在不同地区复制我的整个架构,以接近其他客户。 So I will be using Traffic manager to route the traffic based on the source region, but when doing my research about the replica for databases and data storage I find that the replica is in read-only mode.因此,我将使用流量管理器根据源区域路由流量,但在研究数据库和数据存储的副本时,我发现副本处于只读模式。 So if want to have active/ active region architecture what should I do exactly?那么,如果想要有源/有源区域架构,我应该怎么做呢?

Building a true active-active architecture with any relational database is tricky, since as you pointed out, all the replicas are read-only.使用任何关系数据库构建真正的主动-主动架构是很棘手的,因为正如您所指出的,所有副本都是只读的。 There are a couple of avenues you can pursue:您可以采用以下几种途径:

  • Can you switch to Cosmos DB?可以切换到 Cosmos DB 吗? That would provide a true active-active architecture.这将提供真正的主动-主动架构。
  • If you have to stick with Postgres, you could still run your entire app active-active but write queries need to go cross-region.如果你必须坚持使用 Postgres,你仍然可以运行你的整个应用程序双活,但写入查询需要 go 跨区域。 But you can (if you have control of your app code) still make use of local reads.但是您仍然可以(如果您可以控制您的应用程序代码)使用本地读取。
  • If you are willing to rewrite your app quite a bit, while still staying with SQL, you can build an append-only data model with cross-region replicas and UNION'ed views across them (complicated stuff, we are currently building an example architecture for that but will take a bit longer).如果您愿意大量重写您的应用程序,同时仍然使用 SQL,您可以构建一个仅附加数据 model,其中包含跨区域副本和跨它们的 UNION 视图(复杂的东西,我们目前正在构建示例架构为此,但需要更长的时间)。

You can explore general guidance about Mission-Critical workloads on Azure here .您可以在 Azure 此处探索有关关键任务工作负载的一般指南。 And there is a fully fledged reference implementation for active-active using Cosmos DB: https://github.com/Azure/Mission-Critical-Online并且有一个使用 Cosmos DB 的主动-主动的完整参考实现: https://github.com/Azure/Mission-Critical-Online

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为 Aurora MySQL 创建多区域主动-被动 DR 计划? - Creating a multi-region active-passive DR plan for Aurora MySQL? DynamoDB 单活跨区域复制 - DynamoDB single-active cross region replication 无服务器堆栈的 AWS 多区域高可用性架构 - AWS Multi region high availability architecture for serverless stack Azure 赞助已激活,但在 azure 门户中告诉您没有订阅 - Azure sponsorships is active but in the azure portal tell that not supscription AmazonMQ主备模式故障转移时间 - AmazonMQ active/standby mode failover time 如何指示 CloudFront 使用来自两个不同区域(一个活动区域和一个 DR 区域)的两个 ALB - How to point CloudFront to use two ALB's from two different regions (one active region and one DR region) 使用 Azure Active Directory Service Principal 身份验证为 Keycloak 配置 SQL 服务器 - Configure SQL Server with Azure Active Directory Service Principal authentication for Keycloak 通过 Azure Active Directory (AKS) 对 kube.netes api 进行身份验证 - Authentification to kubernetes api via Azure Active Directory (AKS) KMS 的多区域策略 - Multi region strategy for KMS 如何从 Azure Active Directory AAD 设置 Sharepoint 列值 - How to set Sharepoint column value from Azure Active Directory AAD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM