How does graceful shutdown work?
Graceful shutdown stops new work and gives in-flight requests a bounded time to finish
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 2017–2028 of 3610 questions
Graceful shutdown stops new work and gives in-flight requests a bounded time to finish
Supported Java and Spring Boot versions can use virtual threads to reduce the cost of many blocking tasks
A circuit breaker temporarily rejects calls when a dependency is failing or slow, limiting resource exhaustion and allowing recovery
Retry only likely transient failures, cap attempts, add exponential backoff with jitter, and respect deadlines
Rate limiting caps request volume over a time window or token budget, often by user, tenant, or API key
The business change and event record are written in the same database transaction
A saga coordinates local transactions across services with compensating business actions
Spring for Apache Kafka provides producers, listeners, serializers, and error-handling integration
Exactly-once is scoped, not universal
OAuth 2.0 is an authorization framework; OpenID Connect adds an identity layer
Use a secret manager or secure deployment mechanism, least-privilege access, rotation, and auditing
Server-side request forgery can make a service fetch unintended destinations