The course is part of this learning path
Integrating Redis Cache and CDN on Azure
This course provides an overview of Redis Cache and how to create a Redis Cache instance in Azure. With Redis Cache deployed in Azure, we’ll then connect an application to the cache.
Next, we’ll walk through the process of storing and retrieving data in Redis Cache. After covering Redis Cache, we’ll walk through an overview of what CDN is and what it’s used for. We’ll then develop some code for leveraging CDN. As we wrap up the course, we’ll cover the process for invalidating data in both Redis Cache and in a CDN.
This course is intended for IT professionals who are interested in earning Azure certification and those who need to incorporate Redis Cache or CDN into their solutions. To get the most from this course, you should have at least a moderate understanding of what caching is and why it’s used.
By the end of this course, you should have a good understanding of what Redis Cache and CDN are and what purposes they serve. You’ll also know how to connect to each from applications and how to purge or invalidate data in both.
- [Instructor] In this demonstration, we're going to create an Azure Cache for Redis on Azure. To do so, I've logged in to my Azure portal, as you can see on your screen.
To create our Azure Cache for Redis, I browse over to the left pane and click Create a resource. From here, I can browse to Databases, and then, in the list of featured services, I can scroll down to Redis Cache and select it. I need to provide a globally unique name for my Redis Cache. Now, basically, what that means is the name that I give my cache needs to be unique across the entire Azure landscape. So, I'll call it myredis9878. The green check box tells me that my name is valid. Then, of course, I need to select a subscription, so I'll select the Microsoft Azure Sponsorship subscription that I have, and then, I need to specify a resource group.
I don't have an existing resource group, so I'll create a new one. And I'll just call it Redis and okay it. I typically deploy my resources in the east region, so I'll go East US, and for this demonstration, I'm going to select the basic pricing tier.
Now, if I click on View full pricing details, I can see all of the different options that are available to me for my Redis Cache pricing. If we scroll back up here, we can see Premium. We scroll down, we see the standard. And then, at the bottom, we can see our basic tiers. I'm using the C0 Basic tier. You can see further down here that some features or options, I should say, are not available because I'm not using a premium tier.
So, now, what I'll do is I'll create my cache, and this can sometimes take a few minutes to complete. We can see up here we get the Deployment in progress status. And what I'll do is I'll switch over to my resource group here, and if I select my cache here, we can see that the status is creating. This status will change to running once it's completed.
We'll refresh it here. And we can see it's still creating. And while we're waiting for this to create, what I'm going to do is switch over to my dashboard and create a new one for my Redis Cache lab here. And then, I'll switch back to my resource group, and then, I'll pin my Redis to my dashboard here. And if we select my cache, we can see it's still creating. And let's give it one more refresh.
So, we can see now that our cache is in the running state. So, in the next demonstration, we're going to retrieve our access keys and connect a Python app to our cache.
About the Author
Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.
In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.
In his spare time, Tom enjoys camping, fishing, and playing poker.