func (queueHandler *QueueHandler) ReadinessCheck(responseWriter http.ResponseWriter, request *http.Request) {
	readinessProbeMicroserviceUser := data.MicroserviceUserPath + "/health/ready"

	_, errMicroserviceUser := http.Get(readinessProbeMicroserviceUser)

	if errMicroserviceUser != nil {
		log.Error(errMicroserviceUser, "Microservice-user unavailable")
		http.Error(responseWriter, "Microservice-user unavailable", http.StatusServiceUnavailable)
		return
	}

	responseWriter.WriteHeader(http.StatusOK)
}
//ReadinessCheck verifies that the application is ready to accept requests
ReadinessCheck verifies that the application is ready to accept requests
// ReadinessCheck verifies that the application is ready to accept requests
func (queueHandler *QueueHandler) ReadinessCheck(responseWriter http.ResponseWriter, request *http.Request) {
	readinessProbeMicroserviceUser := data.MicroserviceUserPath + "/health/ready"
	_, errMicroserviceUser := http.Get(readinessProbeMicroserviceUser)
	if errMicroserviceUser != nil {
		log.Error(errMicroserviceUser, "Microservice-user unavailable")
		http.Error(responseWriter, "Microservice-user unavailable", http.StatusServiceUnavailable)
		return
	}
	responseWriter.WriteHeader(http.StatusOK)
}
func ( queueHandler * QueueHandler ) ReadinessCheck ( responseWriter http . ResponseWriter , request * http . Request ) { readinessProbeMicroserviceUser := data . MicroserviceUserPath + " " _ , errMicroserviceUser := http . Get ( readinessProbeMicroserviceUser ) if errMicroserviceUser != nil { log . Error ( errMicroserviceUser , " " ) http . Error ( responseWriter , " " , http . StatusServiceUnavailable ) return } responseWriter . WriteHeader ( http . StatusOK ) }
ReadinessCheck verifies that the application is ready to accept requests
ReadinessCheck verifies that the application is ready to accept requests