You are on page 1of 22

DP-070T01:

Migrate on-premises Redis


to Azure Cache for Redis

© Copyright Microsoft Corporation. All rights reserved.


L01 – Azure Cache for Redis

Agenda L02 – Considerations for migration

L03 – Approaches to migration

© Copyright Microsoft Corporation. All rights reserved.


Lesson 01
Azure Cache for Redis

© Copyright Microsoft Corporation. All rights reserved.


Lesson Objectives

• Describe the key uses of Azure Cache for Redis


• List the different Azure Cache for Redis versions
• Describe the features available in each version of Azure Cache for Redis
• Understand how to choose the right tier for your needs

© Copyright Microsoft Corporation. All rights reserved.


Overview of Redis and Azure Cache for Redis

What is Redis Cache? What is Azure Cache for Redis?

• In-memory data storage for caching and


• Cloud implementation of Redis Cache
message brokering
• Critical low-latency and high-throughput data
• Key-value pairs with complex data types
storage solution
Patterns of application usage
Some of the more common architecture patterns are:

 Data Cache
 Content Cache
 Session Store
 Job and message queuing
 Distributed Transactions
Azure Cache for Redis service tiers
DRAM and non-volatile data storage
Enterprise SSD Currently in preview

DRAM data storage


Enterprise Currently in preview

Enterprise ready
Premium Higher throughput

Two node cache


Standard High-availability SLA

Single node cache


Basic Development and non-critical workloads
Review Questions
Question
Your website has multiple static headers and footers, which Azure Cache for Redis pattern is
best suited to this?

Answer
Content Cache.

Question
You need to provide a solid platform for your development team to use Azure Cache for Redis,
which service tier would you select?

Answer
Basic.

© Copyright Microsoft Corporation. All rights reserved.


Lesson 02
Considerations for migration

© Copyright Microsoft Corporation. All rights reserved.


Lesson Objectives

• Assess dependencies and fallback requirements.


• Assess security concerns.
• Determine the best way to monitor and manage your Azure Cache for Redis.

© Copyright Microsoft Corporation. All rights reserved.


Assess dependencies and fallback requirements

Investigate Prepare to
dependencies fall back

• What components are called? • Use to mitigate the risk of


failure
• Will you be able to access
Redis after migration? • Ensure you can roll back to
the unmodified database on-
premises
Application migration

Planning a Approaches
migration to testing

• Performance tests
• When to cut over?
• Regression tests
• How do applications use the
• Soak tests
new cache?
• Canary tests
Security concerns

• Azure Private Link


• Advantages
• Limitations
• Azure Virtual Network Injection
• Advantages
• Limitations
• Azure Firewall rules
• Advantages
• Limitations
Monitoring and management
• Monitoring
• Counters and log data
• Azure Monitor
• Management
• Azure portal
• Azure PowerShell
• Azure CLI
Lesson 03
Approaches to migration

© Copyright Microsoft Corporation. All rights reserved.


Lesson Objectives

• Create a new Azure Cache for Redis


• Export data from your Redis cache and import it into your Azure Cache for Redis
• Set up dual write to your existing Redis cache and to the Azure Cache for Redis.
• Approach programmatically transferring data from your existing cache to Azure
Cache for Redis

© Copyright Microsoft Corporation. All rights reserved.


Start a new Azure Cache for Redis

• Advantages

• Disadvantages

• Considerations

• Implementation steps
1. Create a new Azure Cache for Redis instance.
2. Update your application to use the new instance.
3. Delete the old Redis instance.
Export from Redis cache and import into Azure Cache for Redis

• Advantages

• Disadvantages

• Migration approach
1. Create new Azure Cache for Redis instance
2. Save a snapshot of the existing Redis cache
3. Copy the RDB file to Azure Storage
4. Import the RDB file into the new cache
5. Update applications to use the new cache instance
Read and write data to dual caches
• Advantages

• Disadvantages

• Migration approach
1. Create a new Azure Cache for Redis instance
2. Modify your applications to write to both old and new caches
3. Continue to read data from the original cache until the new cache is
populated
4. Update the application code to read from and write to the new cache
5. Delete the original cache
Programmatically transfer data from the on-premises Redis
cache to the cloud cache
• Advantages

• Disadvantages

• Migration approach
1. Create a VM in the region where the old cache is located
2. Create a new Azure Cache for Redis instance
3. Flush data from the new cache
4. Automate the copying of data from the source cache to the target
Module Summary
In this module, you learned how to:
• Plan your Redis migration.
• Choose the right migration option.

Next steps
After the course, review the Azure Cache for
Redis material at:

https://docs.microsoft.com/azure/azure-
cache-for-redis/cache-migration-guide
© Copyright Microsoft Corporation. All rights reserved.

You might also like