Inter-service communication introduces several risks that don't exist in a single-process monolith, since every call now crosses a network boundary that can fail independently of the application code.
A transient network partition between the Order Service and Payment Service could cause an order to be marked as placed while the payment call silently times out, leaving the system in an inconsistent state unless retries, idempotency, and reconciliation logic are in place.
# Never call another service without timeouts (Feign, application.yml)
spring:
cloud:
openfeign:
client:
config:
payment-service:
connect-timeout: 2000
read-timeout: 3000
// Retry only safe operations, and protect the caller with a circuit breaker
@CircuitBreaker(name = "payment", fallbackMethod = "paymentPending")
@Retry(name = "payment")
public PaymentResult charge(PaymentRequest request) {
return paymentClient.charge(request); // send an idempotency key with the request
}
private PaymentResult paymentPending(PaymentRequest request, Throwable ex) {
// Don't mark the order as paid; let a reconciliation job check it later
return PaymentResult.pending(request.orderId());
}A concise interview answer is
The main risks are network unreliability causing latency or lost messages, data inconsistency when services fall out of sync, a larger security attack surface since every service boundary is a potential entry point, and much harder debugging since a failure can originate several services away from where it's observed. Mitigating these requires retries, idempotency, tracing, and careful monitoring.
Last updated: 1 November 2026
Previous question: Can you explain the role of message brokers in microservices?
Next question: What is a service registry in microservices?