Circuit Breaker & Dead Letter Queue: Two Mechanisms for Preventing Cascading Failures
When everyone suddenly stops calling a slowing service: Circuit Breaker
1[circuit-breaker] recommend-service: OPEN2Calls to recommend-service are now short-circuited
OPEN printed in the logs. Once the failure rate exceeded a certain threshold, other services blocked themselves from calling the recommendation service and immediately processed it as a failure.When unprocessed messages don't just disappear: Dead Letter Queue
1dead-letter-queue: recommend-events2 pending: 1,204 messages
When a file just points to another location: Symbolic Link
1$ ls -l /app/current2current -> /app/releases/v482
-> mark was not the file of the actual person in charge, but something like a name tag that only pointed to another location.current to point to the new folder.
A process that keeps running even though no one has logged in: Daemon
When connections suddenly fail: Depleted Sockets
1Error: EMFILE, too many open sockets

Frequently Asked Questions
What happens to the user when the circuit breaker opens?
Only that specific feature will be temporarily unavailable, but that is much better than the entire service stopping. You can also minimize user inconvenience by preparing fallback responses, such as showing a default list instead of the recommended list.
Are messages accumulated in the dead letter queue automatically reprocessed?
It depends on the configuration. It can be set to automatically retry a few times, and in many cases, it is left for a human to manually inspect and decide whether to reprocess.
Why did the socket depletion suddenly happen at dawn?
Usually, connections are cleaned up quickly so it doesn't show, but because of repeated retries due to the failure, uncleaned connections piled up in a short period. In effect, several times more connections than usual were open at the same time.
This is the 8th episode in the <a href="/glossary/code-generation" class="glossary-link" title="A technology in which AI automatically writes programming code based on natural language descriptions or the context of existing code.">AI Coding</a> Tool Glossary series. Next Episode Preview · Episode 9: The day the security team requested an AI feature check (<a href="/glossary/ai-guardrails" class="glossary-link" title="A technical security layer that inspects and controls inputs and outputs in real time to ensure AI models remain within corporate policies and safety standards. It secures business stability by preventing inappropriate answers, data leaks, and hallucinations.">Guardrails</a> · <a href="/glossary/prompt-injection" class="glossary-link" title="A security attack where a user manipulates an AI to bypass its original system instructions using malicious inputs or corrupted external data, leading to unintended actions or confidential data leaks.">Prompt Injection</a> · <a href="/glossary/sandbox" class="glossary-link" title="A safe virtual environment isolated from external systems, providing an independent testing space where AI-generated code can be executed safely to block security threats, or where new services can be tested without legal or technological constraints.">Sandbox</a> Escape · Port/Localhost · Stash)
References
Related posts
Subagents, Hooks, and Slash Commands: Extension Concepts You Frequently Encounter in AI Coding Tools
We explain subagents, hooks, and slash commands encountered while using AI coding tools through a hypothetical work scenario.
Permission Prompt · Sandbox · Checkpoint: Understanding the Execution Boundaries of AI Agents
We explain 5 terms you encounter when using AI coding tools—including permission prompts, sandboxes, and checkpoints—through a hypothetical work scenario.
Kill Switch · Backoff · Runtime: Essential Mechanisms for Halting and Recovery
We explain five terms you encounter while using AI coding tools—such as kill switch, backoff, and repository—through a hypothetical work scenario.