How do you check the health of the ActiveMQ service?
public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken))
{
// Health Check ActiveMq Code?
return HealthCheckResult.Healthy();
}
A best practice is to send a message and receive it. This verifies everything -- SSL, authentication, authorization, etc.
Especially, if you have a cluster. You can send one message to broker 1 of the cluster and consume it from broker 2 in the cluster.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.