Just found you on Twitter, love this. Already you’re one of my favorite .NET people.
@MilanJovanovicTech
9 ай бұрын
Thanks! Just happy to provide some valuable content :)
@Red-qz4lx
5 ай бұрын
Thank you, may i ask also what's your monitoring app of choice?
@MilanJovanovicTech
5 ай бұрын
Whatever my cloud provider offers
@modernkennnern
9 ай бұрын
By default (and I checked yesterday by stepping through the code) the endpoint will always return `Healthy`, as there is no default IHealthcheck implementation :)
@MilanJovanovicTech
9 ай бұрын
It returns "Healthy" even with a bunch of health checks added (as is the case in my example) - unless you configure a response writer
@modernkennnern
9 ай бұрын
@@MilanJovanovicTech I get that, but with other checks you can get other values, like for example `Unhealthy`. By default it will always return `Jealthy`.
@sameerpanicker7452
9 ай бұрын
Thanks for sharing this info Milan. Can we do backend api or db health checks like this ?
@MilanJovanovicTech
9 ай бұрын
Yes, releasing an in-depth video soon. But here's an article explaining how: www.milanjovanovic.tech/blog/health-checks-in-asp-net-core
@ONEON26
9 ай бұрын
Are these suitable for production? can we have health checks api exposed on prod?
@NamPham-bu3gp
9 ай бұрын
How health check is used in production?
@MilanJovanovicTech
9 ай бұрын
Typically there's a service that monitors this endpoint and does alerting
@fredyboy162
9 ай бұрын
@@MilanJovanovicTech is the service is another api project dedicated to monitor our API with dependencies like Redis, RabbitMQ and so on and display result insde a dashboard ?
@MichaelBattaglia
8 ай бұрын
In my organization, we use Logic Monitor to periodically call the health check endpoint in our APIs which in turn will fire an email alert if the response is "Unhealthy".
Пікірлер: 14