Workshop: Building Cloud Native applications with .NET 5 and AKS (Part 2)
summary
Workshop builds a .NET 5 Web API and Worker Service, packages them with a multi-stage Dockerfile using mcr.microsoft.com/dotnet/sdk and aspnet/runtime, and runs Redis (StackExchange.Redis) as a separate container for a 30s cache TTL. Images (about nine layers) are pushed to an Azure Container Registry and deployed to App Service, where logs show the worker calling the API every second and getting the same cached timestamp until it refreshes. Prereqs: .NET 5 SDK, Docker Desktop, VS Code.
AI-written summary · about
chapters (14)
- 0:00Start
- 8:48Concept of a Container
- 12:00Resource Limiting
- 16:45Distributed Cache
- 18:23Stack Exchange Redis
- 30:32Volume Mappings
- 33:06Docker Image
- 34:53Web Api in Visual Studio Code
- 35:10Create a Docker File
- 38:08Create a New Docker Image from an Existing Docker Image
- 52:26Add Environment Variables
- 57:43Azure Devops Pipeline
- 59:53Azure Container Registry
- 1:01:36Registries
