I am required to set up a keepalive endpoint to my web application (tomcat war). The endpoint will be sampled periodically by my WAF to make sure that the app is healthy.
A healthy app means that the application is up and the communication to the RabbitMQ server (version 3.5.3 /spring-rabbit 1.4.5) is up and functional.
I will open some REST API to my WAF that will verify the connection status.
Reading the documentation I am quite lost on how to implement this functionally.
I noticed some functionality that may help, but I am not sure:
- Enable automatic recovery and use RecoveryListener and make sure that the last recovery did not fail.
- Configure HeartBeat and figure out a way to be notified on “disrupted connections”
- Create some Heath Queue and use a plugin like Shovel to echo back the message, if I do not get any response I assume the queue is down