0
0
Microservicessystem_design~5 mins

Routing and load balancing in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ALeast Connections
BRandom
CRound Robin
DIP Hash
What does routing primarily depend on in microservices?
ARequest attributes like URL or headers
BServer CPU usage
CDatabase size
DUser's screen resolution
Which component often handles routing and load balancing in a microservices system?
ACache
BDatabase
CFrontend UI
DAPI Gateway
What is a benefit of load balancing?
ASlows down request processing
BPrevents any single server from getting overloaded
CIncreases database size
DRemoves the need for routing
Which of these is NOT a load balancing algorithm?
AFirst Come First Served
BRound Robin
CLeast Connections
DIP Hash
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.