What are the components of a typical Spring Cloud architecture for microservices?

A typical Spring Cloud architecture for microservices assembles several purpose-built components, service discovery, routing, load balancing, fault tolerance, and configuration management, and handles cross-service data consistency separately with the Saga pattern.

Key Points

Example

An order flow might route through Zuul to the Order service, which discovers the Payment service via Eureka, load-balances the call with Ribbon, protects it with a Hystrix circuit breaker, and coordinates the whole multi-step process with a Saga so a failed Inventory reservation triggers a compensating refund.

# A modern Spring Cloud setup (Spring Boot 3)
api-gateway       -> spring-cloud-starter-gateway         (routing, auth, rate limits)
service registry  -> spring-cloud-starter-netflix-eureka  (or Kubernetes services)
config server     -> spring-cloud-config-server           (central configuration)
load balancing    -> spring-cloud-starter-loadbalancer    (replaces Ribbon)
resilience        -> spring-cloud-starter-circuitbreaker-resilience4j (replaces Hystrix)
REST clients      -> spring-cloud-starter-openfeign
messaging         -> spring-cloud-stream (Kafka / RabbitMQ binders)
tracing           -> micrometer-tracing + Zipkin (replaces Spring Cloud Sleuth)

Good to Know

Zuul 1, Ribbon and Hystrix from the Netflix stack are in maintenance mode and were removed from Spring Cloud starting with the 2020.0 release. Spring Cloud Sleuth was replaced by Micrometer Tracing in Spring Boot 3. If you mention them in an interview, add their modern replacements: Spring Cloud Gateway, Spring Cloud LoadBalancer, Resilience4j and Micrometer Tracing.

Interview Tip

A concise interview answer is

A typical Spring Cloud setup layers Eureka for discovery, a gateway like Zuul or Spring Cloud Gateway for routing, Ribbon or Spring Cloud LoadBalancer for client-side balancing, Hystrix or Resilience4j for fault tolerance, and Config Server for centralized configuration. On top of that infrastructure, I'd use the Saga pattern with compensating transactions to keep data consistent across the services those components connect.

Last updated: 1 November 2026

Previous question: How can you track the flow of requests across multiple microservices?

Next question: Describe the integration process of a messaging service like Kafka with a Spring Boot application.

More Microservices - Level II interview questions

All Microservices - Level II questions