ARCHOS 525 BLUEPRINT · /d/dgm_int-worker-pool
Background Worker Pool Internals (Prefetch, Backpressure & Graceful Drain)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-worker-pool) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-worker-pool)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-worker-pool" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Background Worker Pool Internals (Prefetch, Backpressure & Graceful Drain) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR client_0["Job Queues & Cron"] n1_1["Queue Poller"] n2a_2["Bounded Worker Slots"] n2b_3["Retry & Backoff Mgr"] n3_4["SIGTERM Drain & OTel"] downstream_5["Downstream & OTel"] client_0 -->|"1. Pull job · TCP"| n1_1 n1_1 -->|"2a. Exec job · In-Proc"| n2a_2 n1_1 -.->|"2b. Backoff · Async"| n2b_3 n2a_2 -->|"3a. Drain/Log · OTLP"| n3_4 n2b_3 -->|"3b. Sync · Control"| n3_4 n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5
COMPONENT STACK (6)
- Job Queues & CronSTATELESSEmail, media, webhooks & ETL
- Queue PollerSTATELESSBounded prefetch + prio lanes
- Bounded Worker SlotsSTATELESSSemaphore N + per-job timeout
- Retry & Backoff MgrSTATELESSJittered retry -> DLQ on max
- SIGTERM Drain & OTelSTATELESSFinish in-flight -> exit clean
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Job Queues & Cron → Queue Poller (Pull job)[TCP]
- Queue Poller → Bounded Worker Slots (Exec job)[In-Proc]
- Queue Poller → Retry & Backoff Mgr (Backoff)[Async]
- Bounded Worker Slots → SIGTERM Drain & OTel (Drain/Log)[OTLP]
- Retry & Backoff Mgr → SIGTERM Drain & OTel (Sync)[Control]
- SIGTERM Drain & OTel → Downstream & OTel (Emit /)[OTLP/API]