Replies: 3 comments 2 replies
-
|
Hi @s4ndr0ne, Thanks for the suggestion, having a health check is definitely a must for production deployments. That said, I see one potential issue with your current implementation. It creates a new connection to perform the health check, which may not accurately reflect the actual health of the connection your application is using. This can lead to false positives. Your health check might pass even though the main connection is stuck trying to recover after a failover. It also looks like the connection created inside the health check isn’t being disposed, which could lead to resource leakage over time, especially if the health check runs frequently. That’s something to watch out for. In my experience, a more reliable approach is to monitor the connection your app is actively using. You can check the Additionally, the
These give you better visibility into the connection lifecycle and can be hooked into custom health check logic. It might be worth considering a dedicated package with built-in health check support. If you think that would simplify usage, feel free to open an issue and we can discuss it further. Best, |
Beta Was this translation helpful? Give feedback.
-
|
Yes @Havret I agree with what you say, Recording it like this: Shouldn't it refer to the application connection? And you are absolutely right to make it a dedicated package. I tried to implement it if you want you can take a look at it: cheers! |
Beta Was this translation helpful? Give feedback.
-
You're right. Sorry about that. It seems I missed the second branch of this This s4ndr0ne@6239d6a looks really awesome. Would you consider submitting a PR? Best, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my projects, I always need to verify that the client is actually connected to the cluster. Do you think it's a good idea to implement this healtchek extension?
Implementation example:
Create a method in ActiveMqHostingExtensions:
Healtcheck implementation:
Startup registration:
To do this you need to upgrade the packages in ArtemisNetClient.Extensions.Hosting.csproj:
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions