Integration for Spring Boots
Integration in Spring Boot covers calling other services over HTTP from your own application. Tools include RestClient, WebClient and declarative clients, with timeouts, retries and circuit breakers to handle slow or failing dependencies. Done well, it stops one broken downstream service from taking your whole application down.
Stage: Security and Integration · Part of the Spring Boot roadmap · Last reviewed 19 November 2026
What to learn in Integration
- Call an external REST API with RestClient and map the JSON to a record
- Set connection and read timeouts so a slow service cannot hang threads
- Add retries with backoff for transient failures only
- Wrap a remote call in a circuit breaker with a fallback response
- Handle HTTP error statuses from downstream services deliberately
Integration interview questions
What does a circuit breaker do?
A circuit breaker watches calls to a remote service. After too many failures it opens and fails fast without calling the service, giving it time to recover, then lets a few trial calls through in a half-open state. This protects threads and resources in the caller.
When is retrying a request a bad idea?
Retrying is unsafe when the request is not idempotent, such as creating a payment, because a retry after a timeout may duplicate the action. It also worsens overload if many clients retry at once. Use backoff with jitter, limit attempts and retry only transient errors.
Where Integration fits in the Spring Boot roadmap
Integration belongs to the Security and Integration stage (intermediate level), which takes about 21 hours. Protect and connect.
Other units in this stage
Back to the full Spring Boot roadmap