Video in progress

Staff 🌱 Spring

Your team says "we'll do everything with Spring Cloud" (Config Server, Eureka, Gateway). How do you evaluate that decision in a Kubernetes environment?

In Kubernetes / Spring Cloud / Usual choice — Service discovery: DNS + Service / Eureka / Kubernetes; Configuration: ConfigMap, Secret / Config Server / Kubernetes (+ Vault); Load balancing: Service / mesh / LoadBalancer / Kubernetes; API gateway: Ingress, Gateway API / Spring Cloud Gateway / SCG if you need complex…

📖 Answer

Need In Kubernetes Spring Cloud Usual choice
Service discovery DNS + Service Eureka Kubernetes
Configuration ConfigMap, Secret Config Server Kubernetes (+ Vault)
Load balancing Service / mesh LoadBalancer Kubernetes
API gateway Ingress, Gateway API Spring Cloud Gateway SCG if you need complex routing
Resilience mesh (partly) Resilience4j Resilience4j (more precise at the application level)
Messaging abstraction — Spring Cloud Stream depends on the need

What happens when two systems sit side by side: Eureka and the Kubernetes Service give conflicting information, so a pod is gone but Eureka still shows it as "alive". Config Server is one more critical service that has to be deployed with high availability and protected. And new developers have to learn two mechanisms.

When Spring Cloud makes sense: the environment isn't Kubernetes (VMs, mixed infrastructure); you really need to refresh configuration without a restart and there's no other way; you need complex filters in Java code at the gateway.

For each component I ask three questions: which problem does it solve, does the platform provide this, and who supports it. I write the answer into an ADR. A layer that does the same job as the platform is one of the most expensive kinds of tech debt.