From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Testing the configuration building block

Testing the configuration building block

- [Instructor] Let's test the configuration component. As you can see, I've already opened Windows Terminal with tasks for each microservice. So let's run each microservice by executing runc.ps1. So let's do that. runc, runc, here in Hospital as well, RescueQuery, and finally, PetAggregator. So, all the microservices are running right now. So, now I want to navigate to the swagger page of the pet aggregator Microservice. So let me open the browser. So now here in this browser, I navigated to the pet aggregator swagger page. So let's click on GET and then try it out. Execute. And as you can see, this is returning the information from those different microservices, just as expected. However, let's go back to the Windows Terminal. Here in the Windows Terminal, you can see that LastQueryDurationInSeconds is 30 seconds. This is because I don't have the configuration key value in Redis right now. So let's change that by executing redis-commander, and let's navigate to Redis Commander right…

Contents