From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Creating the Clinic microservice - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Creating the Clinic microservice
- [Instructor] In this chapter, we're going to create the clinic microservice. This microservice will include the logic for starting a consultation with a given patient. Since we just want to receive the patient id, which is a pet id, but I'm using here the concept of ubiquitous language from DDD, there must be a way to obtain the patient's name and age. To do that, we're going to keep it simple and send an HTTP request to the management microservice so we can obtain the information of that particular pet. So let's go ahead and get started. Let's add a new project to the solution by using the ASP.NET Core Web API and let's name it Wpm.Clinic. And here, let's make sure we're using .NET 8 and we're using controllers and let's click on Create. Okay, let's tidy up a little bit. Let's remove weather forecast, and let's rename weather forecast controller to ConsultationController. And let's get rid of the contents and let's add API. And I'm going to implement a single endpoint, which is…
Contents
-
-
-
-
-
-
-
(Locked)
Creating the Clinic microservice2m 44s
-
(Locked)
Adding the ClinicDbContext class3m 44s
-
(Locked)
Implementing the ManagementService class5m 41s
-
(Locked)
Implementing the ClinicApplicationService class6m 35s
-
(Locked)
Adding resilience traits to the microservice using Polly3m 20s
-
(Locked)
Creating the Container App for the Clinic microservice1m 2s
-
(Locked)
Creating the Dockerfile and modifying the workflow3m 17s
-
(Locked)
Adding environment variables to the Clinic microservice4m 41s
-
(Locked)
Challenge: Implementing a new endpoint and memory cache1m 30s
-
(Locked)
Solution: Implement a new endpoint and memory cache2m 41s
-
(Locked)
-