For each interview question, describe a failure mode, the decision you would make, and how you would test it. Relate your answer to the Spring Boot and Spring Cloud versions used in the example.
Explain one request path
Compare synchronous RestClient with reactive WebClient in the context of the application’s threading model. Set explicit timeouts. For a safe idempotent call, discuss bounded retries and when a circuit breaker should open. Explain how tracing shows where a request spent time.
Practice a bounded failure
Imagine inventory is slow while checkout remains healthy. Describe how to prove the inventory timeout with a controlled test, which metrics indicate the circuit changed state, and whether the user should see a retryable failure or a clearly labelled fallback. Explain why a retry of an uncertain write needs an idempotency strategy.
