A microservice needs to call three external APIs and aggregate results. Which Spring pattern best handles partial failures gracefully?
-
A
Use @Transactional with rollback on any failure
-
B
Use CompletableFuture with fallback methods via @CircuitBreaker
-
C
Use @Async on each call and block with get()
-
D
Use RestTemplate with a try-catch around all three calls