advancedKubernetes & Production Ops

How do you implement graceful shutdown in a Spring Boot microservice running in Kubernetes so in-flight requests aren't dropped?

Tests whether you know server.shutdown=graceful, a SIGTERM handler, and a preStop hook all need to work together.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

How do you implement graceful shutdown in a Spring Boot microservice running in Kubernetes so in-flight requests aren't dropped?

Next Step

Continue to One pod consistently receives 80% of the traffic while the remaining pods stay nearly idle. Why might this happen?← Back to all Spring Boot & Microservices questions