letslearn-dotnet-aspire
letslearn-dotnet-aspire copied to clipboard
Health Checks module
Add a module for Health Checks.
- Update the complete solution to include health checks.
- Include
/healthand/alivechecks on the Api - Add integration health checks such as database probe and redis cache, as well as the external service at https://api.weather.gov/
- Explain how the
WaitForAPI uses health checks to determine if a resource is ready, and update the web application to wait for the API's health checks to indicate it is ready. - Include consideration for non-development environments, such as not exposing the endpoints externally or implementing request timeouts and output caching to prevent abuse or denial-of-service attacks.
- Reference the content in the documentation at https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/health-checks and https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks
- Include information at the end on the HealthChecksUI sample that explains it is possible to add the UI as a container and links to the sample for those who are interested.
- Include a markdown file in the format of the other workshop markdown files. Write the code sections as instructions for students who will be making these updates in the application to get it to the state of the complete code.