How to access different Redis instance in geo replication ?

Shilpa Kanojiya 20 Reputation points Microsoft Employee
2023-02-07T21:29:52.06+00:00

Hi,

I am trying to create 3 Redis instance in 3 different regions and then link them together for geo-replication. I want to know how the application will access different instances of Redis in different regions?

In my code, do I need to pass different redis connection string based on region or only 1 primary connection string and application itself will connect to nearest instance?

Any help will be appreciated.

Thanks

Shilpa

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
213 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaktiSingh-MSFT 13,271 Reputation points Microsoft Employee
    2023-02-08T06:32:26.01+00:00

    Hi @Shilpa Kanojiya ,

    Welcome to Microsoft Q&A forum and thanks for using Azure services.

    As I understand you trying to create 3 Redis instance in 3 different regions and then link them together for geo-replication and want to know how the application will access different instances of Redis in different regions.

    You can create a custom migration process by programmatically reading data from an existing cache and writing them into Azure Cache for Redis. This open-source tool can be used to copy data from one Azure Cache for Redis instance to another instance in a different Azure Cache region. A compiled version is available as well. You may also find the source code to be a useful guide for writing your own migration tool.

    Reference Link: https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-moving-resources

    Please let us know if this what you are looking for. If not, please share your inputs so that we may assist you further.

    Thanks

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful