Health Checks sorta dropped out of my top ten priority list. You are basically just spoon feeding me my task so I can do it in an hour. :) I appreciate watching videos that consolidate my research into 11 minutes 50 seconds.
As always: Great stuff. I especially appreciate 1) relevant subject 2) well explained 3) concise delivery. Subject suggestion: Middleware. What is done where and examples of good use. Maybe I just need to rerun an old video of yours 🤗.
I only talked about error handling - ua-cam.com/video/H3EbflpXVmo/v-deo.html However, this is because I typically implement my cross cutting concerns using MediatR: - Logging - ua-cam.com/video/w7yDuoCLVvQ/v-deo.html - Validation - ua-cam.com/video/OhQA4PDdp0Q/v-deo.html - Caching - ua-cam.com/video/LOEYZRE72wE/v-deo.html
This may be a bit off topic, but I've seen that there are now 2 options for the course - PCA and PCA + Community Access. I was wondering if in the future there will be exclusive content/lessons for the PCA + Community Access version, or if both will share the same content.
The Community is a completely new thing that I launched yesterday. It's a place where like-minded devs will be able to connect, and of course you'll get unlimited access to my time. Right now, the two courses share the same content. Bonus content is a great idea - but what I had in mind was probably some live sessions once a month, when the community grows a bit.
@@MilanJovanovicTechI see, thank you for your reply. I imagine it will be possible to upgrade to the PCA + Community Access version in the future without paying the full price?
Amazing videos dude! Been watching them all days long. Have a question about swagger. The /health endpoint doesn't appear in Swagger. Is that intentional? Should it be enabled somewhere? thanks!
Question, does healthy checks towards an API or website make it rise faster? Or what is used to make a website or API wake up quickly and not fall asleep?
@@MilanJovanovicTechi would really not make it public if you include exception details. It may be fine, but it is a bad practice as you suddenly have one exposing something it shouldn't.
Can you set it so the health check returns degraded if it's an external service that is a problem? Because there is no reason to replace the API service/container if the issue is with an external service.
I have two healthchecks. Can I trigger each of them separately on the HealthcheckUI side? redis like once every 10 seconds, mongo like once every 15 seconds
can someone please tell me how he defined the class at 2:49 and what is it called? He didn't create any explicit constructor here did he? I searched everywhere but didn't find what this is called.
Anyone know if you can get queue specific details for health checking? So if i have 20 queues, i can check the health of those queues and display them in the health endpoint results
@@MilanJovanovicTech no probs, i've been struggling to find something that specific but i am still a bit of a noob. If i do find the answer, i'll post here to potentially help others. Thank you, great vid!
I love to learn in bit and pieces but sometimes you enhance some codes in which we dont have whole code that brings us in bit problem so its like we want to learn things but we couldnt because we dont have whole code out there to implement what you are teaching then sometimes its gets useless to see your video to be frank Hope you provides us code behind the bars
Awesome video! I seem to be running into a problem though. I've implemented the health check, but I keep getting a connection error exception when I stop my container. I would like the health check to handle this case but I can't get it to work. Any suggestions? I'm using Npgsql healthchecks.
Okay, it seems that I've found the issue. My AuthMiddleware throws the exception because it's trying to get the API key from the database. I'm still working on a solution though.
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
Health Checks sorta dropped out of my top ten priority list. You are basically just spoon feeding me my task so I can do it in an hour. :) I appreciate watching videos that consolidate my research into 11 minutes 50 seconds.
You're very welcome 😁
As always: Great stuff. I especially appreciate 1) relevant subject 2) well explained 3) concise delivery.
Subject suggestion: Middleware. What is done where and examples of good use. Maybe I just need to rerun an old video of yours 🤗.
I only talked about error handling - ua-cam.com/video/H3EbflpXVmo/v-deo.html
However, this is because I typically implement my cross cutting concerns using MediatR:
- Logging - ua-cam.com/video/w7yDuoCLVvQ/v-deo.html
- Validation - ua-cam.com/video/OhQA4PDdp0Q/v-deo.html
- Caching - ua-cam.com/video/LOEYZRE72wE/v-deo.html
Accidentally broke the like button for the smashing 😂 Really useful information, thanks again Milan 💪
Is that why I see the likes stopped coming in? 🤣
@@MilanJovanovicTech lol
Milan, thanks for sharing this useful information.
As always, stay awesome :)
Stay awesome, buddy
Great video tutorial Milan.
Thanks a lot!
Great video! Glad you made it!
Thanks a lot! :)
Fantastic Milan, thanks for your effort on creating this useful information. Keep going.
Thanks, will do!
This is amazing. I’m gonna implement it into my project.
Great, happy to help :)
Thanks for this video . please keep posting more
Sure thing! 😁
This may be a bit off topic, but I've seen that there are now 2 options for the course - PCA and PCA + Community Access. I was wondering if in the future there will be exclusive content/lessons for the PCA + Community Access version, or if both will share the same content.
The Community is a completely new thing that I launched yesterday. It's a place where like-minded devs will be able to connect, and of course you'll get unlimited access to my time. Right now, the two courses share the same content. Bonus content is a great idea - but what I had in mind was probably some live sessions once a month, when the community grows a bit.
@@MilanJovanovicTechI see, thank you for your reply. I imagine it will be possible to upgrade to the PCA + Community Access version in the future without paying the full price?
@@kristianteodosiev5500 Possibly, yeah. I haven't worked out the details on that - but it shouldn't be too difficult.
@@MilanJovanovicTechThank you! I'm going to buy the course and was wondering if there was a way to upgrade later. Really looking forward to it!
Milan... You are awesome! thanks a lot!
My pleasure!
Great tutorial! Thanks a lot Milan.
Glad you liked it!
Thanks for making it very clear how to do this.
You're very welcome!
Amazing videos dude! Been watching them all days long. Have a question about swagger. The /health endpoint doesn't appear in Swagger. Is that intentional? Should it be enabled somewhere? thanks!
It's not mapped on the Swagger UI
I just needed to add health checks in my project, thanks
Great timing, then 😁
Thanks this was helpful
Any time :)
Question, does healthy checks towards an API or website make it rise faster? Or what is used to make a website or API wake up quickly and not fall asleep?
You'd typically configure that on the server
And how to do it for Console Application? Is Opent telementry a better option?
Thanks for your content
Open Telemetry isn't a replacement for Health checks - they complement each other
Nice tip! Can you share name and location for VS2022 theme?
It's ReSharper on top of VS
@@MilanJovanovicTech is that an external theme ? I have reshaper but where do I go to enable those colors ?
What are packages available for health check for Datalake storage and azure app configuration services ???
Check NuGet?
a video about distributed tracing would be interesting in my opinion
Great idea! Adding that to the content list 👌
@@MilanJovanovicTech
Hi Milan, Where can I find the source codes of your RunTrackr project?
On Patreon
Excellent video Milan! One question, should this route be publicly exposed? Since we are not requesting any authentication?
Regards from Brazil!
It can be public, or you can add some network protection so that it's only available to a specific IP address
We added auth. Didn‘t want to expose attack vectors.
@@MilanJovanovicTechi would really not make it public if you include exception details. It may be fine, but it is a bad practice as you suddenly have one exposing something it shouldn't.
Can you set it so the health check returns degraded if it's an external service that is a problem? Because there is no reason to replace the API service/container if the issue is with an external service.
My thought as well, I wouldn't want my services mass restarted because a dependency fails.
Yes - you can provide what's the Health option to return if there's an error
I have two healthchecks. Can I trigger each of them separately on the HealthcheckUI side? redis like once every 10 seconds, mongo like once every 15 seconds
It's usually exposed through 1 endpoint that runs all the health checks. In theory, you could expose a separate endpoint for mongo o
@@MilanJovanovicTech Can you make an educational video on this subject?
can someone please tell me how he defined the class at 2:49 and what is it called? He didn't create any explicit constructor here did he? I searched everywhere but didn't find what this is called.
The DbConnectionFactory?
@@MilanJovanovicTech no worries, found it out. It's primary constructors introduced in C# 12 right?
Anyone know if you can get queue specific details for health checking? So if i have 20 queues, i can check the health of those queues and display them in the health endpoint results
Hmm, I think MassTransit may do that out of the box. Need to check again.
@@MilanJovanovicTech no probs, i've been struggling to find something that specific but i am still a bit of a noob. If i do find the answer, i'll post here to potentially help others. Thank you, great vid!
please bring roadmap for c sharp developer in 2024 and tells us what to do for beginner.lot of love milan sir from nepal
I doubt that I will 😅
Can you show us how to monitor health checks in kubernetes next? :D
Oh god 🤣
Excelent!
Thanks! :)
Good Good~~
Thank you, thank you
🎉
👋
I love to learn in bit and pieces but sometimes you enhance some codes in which we dont have whole code that brings us in bit problem so its like we want to learn things but we couldnt because we dont have whole code out there to implement what you are teaching then sometimes its gets useless to see your video to be frank Hope you provides us code behind the bars
If you've been paying attention, maybe you'll figure out how to find the source code 😁
Awesome video! I seem to be running into a problem though. I've implemented the health check, but I keep getting a connection error exception when I stop my container. I would like the health check to handle this case but I can't get it to work. Any suggestions? I'm using Npgsql healthchecks.
What's you connection string to the container?
@MilanJovanovicTech The IP address of the docker container and the port (5432 I think)
Okay, it seems that I've found the issue. My AuthMiddleware throws the exception because it's trying to get the API key from the database. I'm still working on a solution though.