You want to gradually shift 100% traffic from service v1 to v2 over 5 steps. Which traffic splitting sequence is best?
hard📝 Trade-off Q8 of 15
Microservices - Service Mesh
You want to gradually shift 100% traffic from service v1 to v2 over 5 steps. Which traffic splitting sequence is best?
A50% v1 / 50% v2 for all steps
B20% v1 / 80% v2, then 40% v1 / 60% v2, then 60% v1 / 40% v2, then 80% v1 / 20% v2, then 100% v2
C100% v2 immediately
D80% v1 / 20% v2, then 60% v1 / 40% v2, then 40% v1 / 60% v2, then 20% v1 / 80% v2, then 0% v1 / 100% v2
Step-by-Step Solution
Solution:
Step 1: Understand gradual traffic shift
Traffic should move from mostly v1 to mostly v2 in increasing steps.
Step 2: Analyze sequences
80% v1 / 20% v2, then 60% v1 / 40% v2, then 40% v1 / 60% v2, then 20% v1 / 80% v2, then 0% v1 / 100% v2 correctly decreases v1 from 80% to 0% and increases v2 from 20% to 100% gradually.
Step 3: Eliminate incorrect options
20% v1 / 80% v2, then 40% v1 / 60% v2, then 60% v1 / 40% v2, then 80% v1 / 20% v2, then 100% v2 reverses the shift, C is abrupt, D is constant split.
Final Answer:
80% v1 / 20% v2, then 60% v1 / 40% v2, then 40% v1 / 60% v2, then 20% v1 / 80% v2, then 0% v1 / 100% v2 -> Option D
Quick Check:
Gradual increase to v2 = 80% v1 / 20% v2, then 60% v1 / 40% v2, then 40% v1 / 60% v2, then 20% v1 / 80% v2, then 0% v1 / 100% v2 [OK]
Quick Trick:Shift traffic gradually from old to new service [OK]
Common Mistakes:
MISTAKES
Reversing traffic shift order
Switching traffic abruptly
Keeping traffic split constant
Master "Service Mesh" in Microservices
9 interactive learning modes - each teaches the same concept differently