We current have an ASP.NET Core Web API hosted in AWS Fargate service. I have added a few health checks to the .NET Core app, like the database health check and few others for cache reset/reload.
If any of these checks fail, the /status
endpoint of the app will return status as "Unhealthy". If AWS receives a call to an unhealthy service, how will it handle it?
Will AWS check for the status of the app and return a message built from its side?
Or will it return a message saying the endpoint is unreachable?