Recall & Review
beginner
What is zero-downtime deployment?
Zero-downtime deployment is a method of updating an application without stopping the service or causing any interruption to users.
Click to reveal answer
beginner
Why is zero-downtime deployment important for web applications?
It ensures users can keep using the app without interruptions, improving user experience and avoiding lost traffic or revenue.
Click to reveal answer
intermediate
Name one common technique used in zero-downtime deployment with Express apps.
Using a process manager like PM2 to reload the app gracefully without dropping connections.
Click to reveal answer
intermediate
How does a load balancer help achieve zero-downtime deployment?
It directs traffic to healthy instances and can route users away from servers being updated, allowing updates without service interruption.
Click to reveal answer
intermediate
What is a graceful shutdown in the context of zero-downtime deployment?
It means the server stops accepting new requests but finishes handling ongoing requests before shutting down, preventing dropped connections.
Click to reveal answer
What does zero-downtime deployment prevent?
✗ Incorrect
Zero-downtime deployment prevents service interruptions during updates, keeping the app available.
Which tool can help reload an Express app without dropping connections?
✗ Incorrect
PM2 can reload apps gracefully, enabling zero-downtime deployment.
What role does a load balancer play in zero-downtime deployment?
✗ Incorrect
Load balancers route traffic to healthy servers, helping avoid downtime during updates.
What is a graceful shutdown?
✗ Incorrect
Graceful shutdown stops new requests but completes ongoing ones to avoid dropped connections.
Which of these is NOT a benefit of zero-downtime deployment?
✗ Incorrect
Zero-downtime deployment aims to reduce maintenance windows, not make them longer.
Explain how zero-downtime deployment works in an Express app environment.
Think about how the app keeps running while updating.
You got /4 concepts.
Describe why zero-downtime deployment is important for user experience and business.
Consider what happens if the app goes offline during updates.
You got /4 concepts.