Spring custom response for graceful shutdown

171 Views Asked by At

We are implementing the microservice architecture. Now we faced the issue, that when we terminate the server by k8s for spring web it responds nothing for gRPC it responds 504. We would like to customize this behavior to return 503 for both cases.

I read some topics about the graceful shutdown in spring but haven't found any useful information on how to customize this.

0

There are 0 best solutions below