You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-tutorial-active-replication.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,18 @@ In this tutorial, you will host a simple inventory application on Azure Kubernet
27
27
28
28
This tutorial uses a sample inventory page which shows three different T-shirt options. The user can "purchase" each T-shirt and see the inventory drop. The unique thing about this demo is that we run the inventory app in two different regions. Typically, you would have to run the database storing inventory data in a single region so that there are no consistency issues. That can result in unpleasant customer experience due to higher latency for calls across different Azure regions. By using Azure Cache for Redis Enterprise as the backend, however, you can link two caches together with active geo-replication so that the inventory remains consistent across both regions while enjoying low latency performance from Redis Enterprise in the same region.
29
29
30
-
## Set up an Azure Cache for Redis instance
30
+
## Set up two Azure Cache for Redis instances
31
31
32
32
1. Create a new Azure Cache for Redis Enterprise instance in **West US 2** region by using the Azure portal or your preferred CLI tool. Alternately, you can use any region of your choice. Use the [quickstart guide](quickstart-create-redis-enterprise.md) to get started.
33
33
34
34
1. On the **Advanced** tab:
35
35
36
-
- Enable **Non-TLS access only**.
37
-
- set**Clustering Policy** to Enterprise
38
-
- set up active geo-replication using [this guide](cache-how-to-active-geo-replication.md)
36
+
1. Enable **Non-TLS access only**.
37
+
1. Set**Clustering Policy** to **Enterprise**
38
+
1. Configure active geo-replication using [this guide](cache-how-to-active-geo-replication.md) to both caches to the same replication group. Create the group name with the first cache, and add the second cache to the same group.
39
39
40
-
> [!IMPORTANT]
41
-
> This tutorial uses a non-TLS port for demonstration, but we highly recommend that you use a TLS port for anything in production.
40
+
> [!IMPORTANT]
41
+
> This tutorial uses a non-TLS port for demonstration, but we highly recommend that you use a TLS port for anything in production.
42
42
43
43
1. Set up another Azure Cache for Redis Enterprise in **East US** region with the exact same configuration as the first cache. Alternately, you can use any region of your choice. Ensure that you choose the same replication group as the first cache.
44
44
@@ -106,7 +106,9 @@ spec:
106
106
107
107
Save another copy of the same YAML file as app_east.yaml. This time, update the REDIS_HOST, REDIS_PASSWORD and APP_LOCATION to point to Redis Enterprise instance in East US or your second region of choice.
108
108
109
-
## Connect to your AKS cluster
109
+
## Install and connect to your AKS cluster
110
+
111
+
In this section, you first install the Kubernetes CLI and then connect to an AKS cluster.
110
112
111
113
### Install the Kubernetes CLI
112
114
@@ -217,6 +219,6 @@ kubectl delete service shoppingcart-svc -n east
217
219
218
220
## Related Content
219
221
220
-
-
222
+
-[Tutorial: Connect to Azure Cache for Redis from your application hosted on Azure Kubernetes Service](cache-tutorial-aks-get-started.md)
221
223
-[Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure portal](/azure/aks/learn/quick-kubernetes-deploy-portal)
0 commit comments