上圖顯示位置不相干的應用程式堆疊,其中前端和後端執行個體 (通常是微服務) 分散在三個 Google Cloud 區域的多個可用區。全域任播負載平衡器會將連入流量分配給適當的前端執行個體。這項分配方式會根據執行個體的可用性和容量,以及與流量來源的地理位置相近程度來決定。跨區域內部負載平衡器會根據可用性和容量,將前端執行個體的流量分配給適當的後端執行個體。應用程式會使用同步複製的資料庫,並在各個區域提供這項服務。
下圖顯示全域部署原型架構的變化版本,其中包含區域隔離的應用程式堆疊:
上圖顯示在兩個 Google Cloud 區域的多個可用區中執行的區域隔離應用程式堆疊。這個拓樸圖與多地區部署範例相似,但使用全域 Anycast 負載平衡器,而非 DNS 路由。全域負載平衡器會將傳入流量分散到最接近使用者的區域前端。這兩個應用程式堆疊都會將資料寫入資料庫,並從資料庫讀取資料,而這兩個資料庫會同步複製,並在兩個區域中提供。如果這兩個區域中的任一區域發生中斷服務情形,全域負載平衡器就會將使用者要求傳送至另一個區域的前端。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-11-20 (世界標準時間)。"],[[["The global deployment archetype involves running an application in multiple Google Cloud regions worldwide, utilizing a global anycast load balancer to direct traffic."],["Applications in a global deployment can be either location-unaware, with instances distributed across regions, or regionally isolated, with separate stacks in each region."],["A key component of this architecture is a synchronously replicated database, like Spanner, ensuring data consistency across all regions."],["This deployment strategy is ideal for applications needing high availability and robustness for a global audience, offering the potential for reduced costs and simpler operations compared to multi-regional setups."],["Considerations for global deployment include potential increases in storage, replication, and networking costs, as well as careful management of global resource changes to avoid single points of failure."]]],[]]