The queue drained. Nothing was consuming it.
One Service Bus default, six hours, and 4,318 orders that never existed.
What you'll learn
- How a message TTL deletes orders with no error and no log line
- Why a queue draining with no consumer is deletion, not recovery
- The three queue properties and one alert that would have caught it
Share this passage
Drawing…
Understand it one step at a time
The short runs these in order in about 32 seconds. Here they are written out — pick any step to jump the short straight to it.
09:12 — the deploy goes out
Three instances of orders-worker roll out, health checks green, the Service Bus consumer connects cleanly. An ordinary Tuesday morning.
Frequently asked questions
- What happens to a Service Bus message when its TTL expires?
- By default, nothing gets logged — the message is simply deleted. EnableDeadLetteringOnMessageExpiration defaults to false, so unless you turn it on, an expired message disappears with no error and no trace, not a safety net.
- How do you know a queue is silently losing messages instead of recovering?
- A queue depth draining to zero looks identical whether consumers processed everything or the broker just expired and deleted it. The property to check — and alert on — is dead-letter queue depth, not just active queue depth.
Free app · no app store
These are built for a phone
Every short is drawn at full portrait height, the shape a phone already is. Installed, it opens full-bleed with no address bar across the top — and the whole library reads offline.
Read deeper on Azure
Twenty seconds gets the shape of an idea across. These go into how it behaves in production.
-
Money Debited, Order Failed: Payment Webhooks and Reconciliation on Azure
Payment succeeded but the order was not created? Save the webhook first, process it from Service Bus, and reconcile with the gateway on a timer.
-
One Hotel, Three Suppliers, Three JSON Shapes: Hotel Aggregator System Design
How a hotel aggregator integrates Expedia, Booking.com, Agoda and Trip.com when each returns different JSON: adapters, one model, hotel mapping.
-
The Blast Radius of a Hardcoded API Key in a Mobile App
The attacker costs you hours. Rotating a key baked into 40,000 installed apps costs you days — and that gap is the real price of a hardcoded secret.
More shorts
-
Azure
Money debited. Order failed.
10 steps · 56s
-
Azure
One tap. Two orders.
10 steps · 57s
-
Azure
1.6 million downloads. One photo.
10 steps · 58s
Get new posts by email
New technical articles, Azure AI and GitHub Copilot updates, and upcoming events. No spam, unsubscribe anytime.