How to remove web server in spring boot application and keep deploying into ecs with health check

240 Views Asked by At

I have a spring boot service that send and receive messages only from a kafka topic, I want to remove the web server (tomcat) since there is no need for it. The problem is the service is currently deployed on ECS and the end point /actuator/health is used to check the health of the service, which means if I remove the web server the deployment in the pipeline won't be successful since the health checks will fail,

I tried making the ALB internal but the Kafka service is not in the same VPC and the service couldn’t connect

Is there any solutions to isolate the service ?

0

There are 0 best solutions below