0
0
Nginxdevops~5 mins

Blue-green deployment routing in Nginx - 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) run different versions of an application. Traffic is switched between them to deploy updates with minimal downtime.
Click to reveal answer
beginner
How does NGINX help in blue-green deployment routing?
NGINX acts as a reverse proxy that routes user traffic to either the blue or green environment based on configuration, enabling smooth switching between versions.
Click to reveal answer
beginner
What is the main benefit of blue-green deployment routing?
It reduces downtime and risk by allowing quick rollback to the previous version if the new version has issues.
Click to reveal answer
intermediate
Show a simple NGINX snippet to route traffic to the blue environment.
server { listen 80; location / { proxy_pass http://blue_backend; } } This routes all traffic to the blue environment backend.
Click to reveal answer
intermediate
What must you update in NGINX to switch traffic from blue to green?
You update the proxy_pass directive to point from the blue backend to the green backend, then reload NGINX to apply the change.
Click to reveal answer
What does blue-green deployment aim to minimize?
AUser interface changes
BCode complexity
CDowntime during deployment
DNumber of servers
In NGINX, which directive is used to route traffic to a backend server?
Aproxy_pass
Blisten
Cserver_name
Dlocation
What is the purpose of having two environments in blue-green deployment?
ATo test different features simultaneously
BTo reduce server costs
CTo increase database speed
DTo allow seamless switching between versions
How do you apply changes after updating NGINX configuration for blue-green routing?
ARestart the server hardware
BReload NGINX
CClear browser cache
DUpdate DNS records
Which environment is usually live before switching in blue-green deployment?
ABlue
BGreen
CBoth at the same time
DNeither
Explain how NGINX can be configured to switch traffic between blue and green environments in a blue-green deployment.
Think about how NGINX forwards requests and how changing the proxy_pass target affects traffic.
You got /4 concepts.
    Describe the main advantages of using blue-green deployment routing in production environments.
    Consider what problems blue-green deployment solves compared to direct updates.
    You got /4 concepts.