Recall & Review
beginner
What is routing in the context of microservices?
Routing is the process of directing incoming requests to the correct microservice based on the request's URL, headers, or other attributes.
Click to reveal answer
beginner
Define load balancing in simple terms.
Load balancing means spreading incoming requests evenly across multiple servers or instances to avoid overload and improve performance.
Click to reveal answer
intermediate
Name two common load balancing algorithms.
Two common algorithms are Round Robin (requests go in order to each server) and Least Connections (requests go to the server with the fewest active connections).
Click to reveal answer
beginner
Why is routing important in microservices architecture?
Routing ensures that each request reaches the correct microservice, enabling services to be independent and scalable.
Click to reveal answer
advanced
What role does a service mesh play in routing and load balancing?
A service mesh manages routing and load balancing between microservices automatically, providing features like retries, circuit breaking, and observability.
Click to reveal answer
Which load balancing method sends requests to servers in a fixed order?
✗ Incorrect
Round Robin cycles through servers in order, sending each new request to the next server.
What does routing primarily depend on in microservices?
✗ Incorrect
Routing uses request details such as URL paths or headers to decide which microservice should handle the request.
Which component often handles routing and load balancing in a microservices system?
✗ Incorrect
API Gateways route requests to microservices and often perform load balancing.
What is a benefit of load balancing?
✗ Incorrect
Load balancing spreads requests to avoid overloading servers, improving reliability and speed.
Which of these is NOT a load balancing algorithm?
✗ Incorrect
"First Come First Served" is a scheduling concept, not a load balancing algorithm.
Explain how routing and load balancing work together in a microservices system.
Think about how requests find the right service and how servers share the work.
You got /3 concepts.
Describe common load balancing algorithms and when you might use each.
Consider simple fairness vs. server load vs. client affinity.
You got /3 concepts.