0
0
Microservicessystem_design~5 mins

Traffic management (routing, splitting) in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is traffic routing in microservices?
Traffic routing is the process of directing incoming requests to specific microservice instances or versions based on rules like URL path, headers, or user location.
Click to reveal answer
beginner
Explain traffic splitting in microservices.
Traffic splitting divides incoming requests between different versions or instances of a microservice, often used for gradual rollouts or A/B testing.
Click to reveal answer
intermediate
Why use traffic splitting during deployments?
It helps test new versions with a small user group, reduces risk of failures, and allows quick rollback if issues arise.
Click to reveal answer
intermediate
Name two common tools or technologies used for traffic management in microservices.
Service meshes like Istio and API gateways like Kong or NGINX are popular tools for routing and splitting traffic.
Click to reveal answer
intermediate
What is a canary deployment in the context of traffic management?
A canary deployment sends a small percentage of traffic to a new version to monitor its behavior before full rollout.
Click to reveal answer
What does traffic routing primarily depend on in microservices?
ARequest attributes like URL or headers
BDatabase schema
CCPU usage of microservices
DUser's screen resolution
Which scenario best describes traffic splitting?
ASending all traffic to one microservice version
BDividing traffic between multiple microservice versions
CBlocking traffic from unknown users
DEncrypting traffic between services
What is the main benefit of canary deployments?
AGradual testing of new versions with limited users
BFaster database queries
CImproved UI design
DReducing server costs
Which tool is commonly used for traffic management in microservices?
ADocker Compose
BMySQL
CReact
DIstio
Traffic routing rules can be based on which of the following?
AOperating system version
BMicroservice memory size
CUser location
DTime of day only
Describe how traffic routing and traffic splitting differ and how they work together in microservices.
Think about directing requests versus dividing requests.
You got /5 concepts.
    Explain the benefits and risks of using traffic splitting during a microservice deployment.
    Consider why splitting traffic helps and what could go wrong.
    You got /3 concepts.