Dapr for Azure Developers with .NET Part 1

Dapr for Azure Developers with .NET Part 1

1h 48mIntermediate2022-06-01

Authors

Rodrigo Díaz Concha

Rodrigo Díaz Concha

Solutions Architect, Microsoft Regional Director, and Microsoft MVP

Course details

Azure Dapr can help .NET developers solve several challenges that they face when building distributed applications. In this course, Rodrigo Díaz Concha shows you how to build distributed applications and microservices easily with Dapr. Rodrigo begins by introducing Dapr as a portable, event-driven runtime for creating distributed applications in the cloud. He explains the sidecar pattern and the different components and tools that you will use in Dapr. Rodrigo walks you through preparing your development environment, then covers some of the most important building blocks in Dapr. This course focuses on publish and subscribe (pub/sub), service invocation, state management, and bindings.

Skills covered

Cloud DevelopmentAzureSoftware Development ToolsNetwork AdministrationCloud PlatformsNetwork and System AdministrationCloud ComputingMicrosoftSoftware DevelopmentDeep Dive (X:Y)

Concepts

Introduction

  • Building great microservices solutions with Dapr and .NET
  • What you need to know

Dapr Overview

  • Challenges of distributed applications and microservices
  • What is Dapr
  • The sidecar pattern
  • Dapr anatomy

Preparing the Development Environment

  • Installing the development tools
  • Installing and initializing Dapr
  • The Dapr CLI
  • Hello World with Dapr
  • The Dapr dashboard
  • What you are going to build - Introducing Wisdom Pet Medicine

Publish and Subscribe Building Block

  • The pub sub building block
  • Publishing messages in the Pet microservice
  • Subscribing to messages in the Rescue microservice
  • Subscribing to messages in the Hospital microservice
  • Creating the Dapr component for Azure Service Bus
  • Testing the pub sub implementation

Service Invocation

  • The service invocation building block
  • Creating the PetAggregator microservice
  • Implementing the service invocation logic
  • Projecting the results in PetAggregator
  • Testing the service invocation implementation

State Management

  • The state management building block
  • Refactoring the PetAggregator microservice
  • Implementing state management in PetAggregator
  • Creating a component for state management with Azure Storage
  • Testing the state management implementation

Bindings

  • The bindings building block
  • Implementing an input binding in the Pet microservice
  • Implementing an output binding in the Hospital microservice
  • Creating the Dapr components for bindings with Azure Storage
  • Testing the bindings implementation

Conclusion

  • Next steps
40,000 Toman