0
0
Microservicessystem_design~5 mins

Blue-green deployment in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is blue-green deployment?
Blue-green deployment is a technique where two identical environments (blue and green) are used to deploy new software versions. One environment runs the current version, while the other runs the new version. Traffic switches from blue to green once the new version is ready.
Click to reveal answer
beginner
Why use blue-green deployment in microservices?
It reduces downtime and risk by allowing quick rollback. If the new version has issues, traffic can switch back to the old environment without affecting users.
Click to reveal answer
intermediate
What is a key requirement for blue-green deployment?
Having two identical production environments that can run independently and handle full user traffic.
Click to reveal answer
intermediate
How does traffic switching work in blue-green deployment?
Traffic is routed via a load balancer or DNS switch from the current environment (blue) to the new environment (green) once the new version passes tests.
Click to reveal answer
advanced
What are some challenges of blue-green deployment?
It requires double infrastructure cost, data synchronization between environments, and careful handling of database schema changes.
Click to reveal answer
What does the 'green' environment represent in blue-green deployment?
AThe current live version serving users
BThe new version of the application ready to receive traffic
CA testing environment not connected to production
DA backup environment for disaster recovery
What is the main benefit of blue-green deployment?
AAllows zero downtime and easy rollback
BSimplifies database migrations
CReduces infrastructure costs
DEliminates the need for testing
Which component typically handles traffic switching in blue-green deployment?
ALoad balancer or DNS
BApplication code
CDatabase
DMonitoring tool
What is a common challenge when using blue-green deployment?
ANo way to test new versions
BInability to rollback
CDouble infrastructure cost
DUsers see both versions simultaneously
When should traffic be switched from blue to green?
AImmediately after deployment starts
BOnly during off-peak hours
CBefore deploying the new version
DAfter the new version passes all tests and is stable
Explain the blue-green deployment process and its benefits in microservices.
Think of it like switching between two identical rooms where one is ready before moving in.
You got /5 concepts.
    What are the main challenges to consider when implementing blue-green deployment?
    Consider costs and data consistency issues.
    You got /4 concepts.