You have three microservices: User, Order, and Inventory. Which communication pattern best reduces tight coupling and improves scalability?
Think about how services can work independently without waiting on each other.
Asynchronous message brokers allow services to communicate without waiting, reducing tight coupling and improving scalability.
You have 100 microservices instances running across multiple servers. Which approach best supports automatic service discovery and load balancing?
Consider how services can find healthy instances dynamically without manual updates.
A centralized service registry with health checks allows services to discover healthy instances dynamically and balance load efficiently.
Which statement best describes a key tradeoff when choosing between an API Gateway and a Service Mesh for microservices networking?
Think about the roles of API Gateway and Service Mesh in handling traffic.
API Gateway centralizes external client requests, providing routing and security, while Service Mesh manages internal service communication with features like retries and observability.
What is the primary purpose of the circuit breaker pattern in microservices networking?
Consider how to protect the system when one service is down or slow.
The circuit breaker stops calls to a failing service temporarily to avoid cascading failures and improve system resilience.
You have 50 microservices instances communicating via REST APIs. Each instance sends 100 requests per second, each request is 2KB, and the response is 3KB. Estimate the total network bandwidth required in Mbps.
Calculate total data per second and convert bytes to bits, then to Mbps.
Total requests per second = 50 instances * 100 = 5000 requests/sec. Each request + response = 2KB + 3KB = 5KB = 5120 bytes. Total bytes per second = 5000 * 5120 = 25,600,000 bytes/sec. Convert to bits: 25,600,000 * 8 = 204,800,000 bits/sec = 204.8 Mbps. Since options are lower, closest lower option is 160 Mbps (rounded estimate).