Fading Coder

One Final Commit for the Last Sprint

Implementing Graceful Shutdown for Eureka Clients in Kubernetes

Problem Statement When deploying applications on Kubernetes using rollling updates, the platform starts a new Pod, waits for it to become healthy, and then terminates the old Pod. However, requests may still arrive at the old Pod during the termination process. If the Pod is killed while handling ac...

Building a Spring Cloud Client Service

The client module serves as the actual provider of services within a Spring Cloud environment. It registers itself with the service registry (Eureka server) to make its capabilities available to other components. Creating the client module follows a similar process to setting up the registry: Create...

Handling Custom Decoders for Void Return Types in Spring Cloud OpenFeign

When implementing remote service integrations with Spring Cloud OpenFeign, a common pattern involves wrapping outgoing requetss and incoming responses in a unified protocol structure. Developers typically register a custom Decoder to extract payload data, validate HTTP status codes, and rethrow remo...

Troubleshooting Nacos Config Client Timeouts on Linux (java.net.ConnectException: no available server)

Context Architecture: Spring Cloud microservices using Spring Cloud Alibaba Service discovery and configuration: Nacos Nacos server OS: CentOS 7 (Linux) Clients connect to Nacos at startup for configuration and service registration On Windows-based deployments the system runs normally, but when the...

Handling "failed and no fallback available" in Feign with Hystrix

When a Feign invocation is wrapped by Hystrix and the call times out or fails without a defined fallback, you may see: failed and no fallback available. Hystrix acts as a circuit breaker: it isolates calls and trips when execution exceeds configured limits or fails fast. Timeouts and basic configura...

Building Service Registration and Discovery with Spring Boot and Spring Cloud Eureka

Overview Eureka, created by Netflix, is a registry for service discovery in microservice architectures. Each provider registers itself with Eureka, while consumers query Eureka to locate instances. Although Netflix has ended active maintenance of Eureka 2.x, the Eureka 1.x implementation in Spring C...