# Graceful Kubernetes Shutdowns Help Protect In-Flight Orders

DevFeed: [Graceful Kubernetes Shutdowns Help Protect In-Flight Orders](<https://devfeed.tech/articles/when-a-missed-message-becomes-a-missed-meal-23983.md>)

Original publisher: [Read original article](<https://medium.com/mcdonalds-technical-blog/when-a-missed-message-becomes-a-missed-meal-1a44cb0051f3?source=rss----3bac42476d27---4>)

Author: Global Technology

Published: 2026-08-12T14:03:07Z

Content type: tutorial

Language: en

Sources: [McDonald's Technical Blog - Medium](<https://devfeed.tech/sources/mcdonald-s-technical-blog-medium.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>)

Tags: [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-computing](<https://devfeed.tech/tags/cloud-computing.md>), [devops](<https://devfeed.tech/tags/devops.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [operations](<https://devfeed.tech/tags/operations.md>), [scale](<https://devfeed.tech/tags/scale.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

This article explains how Kubernetes scaling, rolling updates, and cluster maintenance can interrupt in-flight requests and messages. It introduces graceful shutdown patterns in application code and infrastructure to reduce message loss and improve reliability for large-scale order processing.

## Source excerpt

Why graceful shutdowns matter when millions of orders are in flight. by: Samuel Hapgood, Software Engineer III Quick Bytes At McDonald's scale, rare failures in distributed systems can impact real customer and crew experiences Graceful shutdown patterns in Kubernetes -- across application code and infrastructure -- help protect in-flight work during scaling and deployments With the right shutdown strategies, teams can reduce message loss, improve reliability, and ensure orders make it to the kitchen Imagine you're placing a mobile order at McDonald's during a busy lunch rush. You hit "submit," and the kitchen never gets the order. Now you're left waiting -- no food, no updates, and growing frustration. At first glance, it seems like an easy problem to avoid. How hard can it be to just keep track of the order? But in modern, large-scale distributed systems -- especially those that must scale continuously -- that's not always straightforward. Behind the scenes, platforms like Kubernetes (which orchestrate containerized applications in the cloud) are continuously rescheduling pods as part of normal operations such as scaling applications, performing rolling updates, and maintaining cluster health. During these transitions, in-flight requests or background messages can be interrupted in subtle ways. A pod might shut down before finishing a task, a request might be canceled mid-flight, or a message might be acknowledged by a receiving service, but never actually processed. Even with strong messaging platforms and best practices in place, application shutdowns can still interrupt in-flight work if they are not handled carefully. These are edge cases -- but at McDonald's scale, edge cases happen often enough to matter. In the US alone, our platforms support roughly one million orders per hour on a dynamically scaled cluster of hundreds of nodes. At that volume, reliability becomes critical to ensuring a seamless experience for customers, crews, and restaurant operations. Prevent