Sharded workflow control plane

분산 워크플로 제어면

Distribute coordination across workflow shards to scale concurrent executions.

···
html
<div class="scene"><div class="title">CONTROL PLANE: CENTRAL / SHARDED</div><div class="compare"><div class="mode" id="central"><b>ONE COORDINATOR</b><div class="nodes"><span>QUEUE</span><span>ONE</span><span>ENGINE</span></div><small>one metadata path</small></div><div class="mode" id="sharded"><b>WORKFLOW SHARDS</b><div class="nodes"><span>W1</span><span>W2</span><span>W3</span></div><small>slots shared by gate</small></div><div class="handle" id="handle"></div></div><div class="muted" id="planeState">Drag to compare the routing paths</div></div>
css
.scene{width:min(94vw,760px);height:min(86vh,320px);padding:clamp(10px,2.5vmin,18px);border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--fg);font:500 clamp(11px,1.3vw,16px)/1.25 "Pretendard Variable",Pretendard,-apple-system,sans-serif;display:flex;flex-direction:column;gap:clamp(7px,1.6vmin,12px);overflow:hidden}.scene *{box-sizing:border-box}.title{font-weight:750;color:var(--accent)}.muted{color:var(--muted)}.mono{font-family:ui-monospace,monospace}.row{display:flex;align-items:center;justify-content:center;gap:clamp(5px,1.4vmin,12px);flex:1;min-height:0}.tile{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:clamp(6px,1.6vmin,12px);text-align:center;min-width:0}.on{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important}.pulse{animation:pulse 1.6s infinite alternate}@keyframes pulse{to{border-color:var(--accent);transform:translateY(-3px)}}.compare{display:flex;position:relative;gap:5px;flex:1;min-height:0}.compare:before{content:"";position:absolute;left:10%;right:10%;bottom:11px;height:2px;background:var(--line)}.mode{flex:1;border:1px solid var(--line);border-radius:8px;padding:7px 7px 23px;display:flex;flex-direction:column;justify-content:space-around;text-align:center;min-width:0}.mode b{color:var(--accent)}.mode small{font-size:1em;color:var(--muted)}.nodes{display:flex;justify-content:center;gap:4px}.nodes span{border:1px solid var(--line);border-radius:5px;padding:6px 2px;flex:1}.mode.active .nodes span{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--surface))}.handle{position:absolute;bottom:5px;width:14px;height:14px;border-radius:50%;background:var(--accent);left:50%;transition:left .55s;transform:translateX(-50%)}
js
let side=0;function tick(){side=1-side;document.getElementById('handle').style.left=side?'75%':'25%';document.getElementById('central').classList.toggle('active',!side);document.getElementById('sharded').classList.toggle('active',!!side);document.getElementById('planeState').textContent=side?'Many coordinators own subsets':'One coordinator handles every instance'}tick();setInterval(tick,1250);document.querySelector('.compare').addEventListener('pointermove',e=>{if(e.buttons){const x=(e.clientX-e.currentTarget.getBoundingClientRect().left)/e.currentTarget.clientWidth;document.getElementById('handle').style.left=Math.max(10,Math.min(90,x*100))+'%'}})

Cloudflare Workflows V2, described in 2026, removed a bottleneck where one coordinator handled all instance metadata for an account. Per-workflow coordinators manage subsets of instances while a separate gate distributes concurrency slots. Each execution engine owns its instance state, leaving minimal data centrally.

The demo compares a central queue with several coordinators using an animated slider. This is a control-plane scaling example; its capacity figures should not be generalized to other systems.

When to use

Consider it when high workflow creation rates make central metadata coordination a bottleneck.

Open as page ↗