Cloudflare Workers

Run request handlers at the edge. Free allows 100,000 dynamic requests daily; Paid starts at $5/month.

···
html
<div class="host-demo"><div class="host-head"><strong>WORKERS · PAID REQUESTS</strong><span id="status">MONTHLY USAGE</span></div><div class="host-visual"><div class="workers-visual"><div class="workers-bubbles"><span id="workers-free">INCLUDED<br>10M</span><span id="workers-extra">EXTRA<br>0M</span></div><div class="big" id="workers-cost">$5.00 / mo</div><div class="muted">5 CPU-ms / request assumed</div></div></div><div class="host-control"><span id="usage-label"></span><input id="usage" type="range" aria-label="Monthly usage" min="0" max="30" step="2" value="8"></div><div class="host-note">2026-10-06 공식 가격 기준 · 단순화(세금·지역 할증 제외)</div></div>
css
.host-demo{width:min(94vw,850px);height:min(90vh,340px);padding:clamp(9px,2.4vmin,18px);border:1px solid var(--line);border-radius:14px;background:var(--surface);display:flex;flex-direction:column;gap:clamp(5px,1.6vmin,11px);overflow:hidden;font:600 clamp(11px,2.4vmin,16px)/1.25 ui-sans-serif,-apple-system,sans-serif}.host-head{display:flex;justify-content:space-between;gap:6px;align-items:baseline}.host-head strong{color:var(--accent);font-size:1.05em}.host-head span{color:var(--muted);font-size:.78em;text-align:right}.host-visual{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.host-control{display:flex;align-items:center;gap:8px;color:var(--fg);font-variant-numeric:tabular-nums}.host-control span{min-width:44%;font-size:.88em}.host-control input{flex:1;width:20px;accent-color:var(--accent)}.host-note{color:var(--muted);font-size:.66em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.host-demo *{min-width:0}.meter{height:clamp(11px,3.4vmin,24px);border-radius:99px;background:var(--line);overflow:hidden}.meter>i{display:block;height:100%;width:0;background:var(--accent);transition:width .35s}.big{font-size:clamp(18px,5.5vmin,34px);font-weight:800;font-variant-numeric:tabular-nums;color:var(--accent)}.muted{color:var(--muted)}.workers-visual{text-align:center;display:grid;justify-items:center;gap:clamp(3px,1vmin,8px)}.workers-bubbles{display:flex;align-items:center;gap:clamp(8px,3vmin,25px)}.workers-bubbles span{border:2px solid var(--accent);border-radius:50%;width:clamp(54px,16vmin,100px);height:clamp(54px,16vmin,100px);display:grid;place-items:center;font-size:.7em}.workers-bubbles span:last-child{border-color:var(--accent-3)}
js
const input=document.getElementById('usage');const label=document.getElementById('usage-label');const status=document.getElementById('status');let manual=false;function paint(){const value=Number(input.value);const requests=value*1000000;const cpuMs=requests*5;const cost=5+Math.max(0,requests-10000000)/1000000*.3+Math.max(0,cpuMs-30000000)/1000000*.02;label.textContent=value+'M dynamic requests';document.getElementById('workers-extra').innerHTML='EXTRA<br>'+Math.max(0,value-10)+'M';document.getElementById('workers-cost').textContent='$'+cost.toFixed(2)+' / mo';status.textContent=value>10?'PAID OVERAGE':'PAID INCLUDED';}paint();let direction=1;setInterval(()=>{if(manual)return;const next=Number(input.value)+2*direction;if(next>30||next<0){direction*=-1;return}input.value=String(next);paint()},850);input.addEventListener('input',()=>{manual=true;paint()});

Cloudflare Workers handles HTTP requests at the edge without managing servers. It fits small APIs, middleware, and static assets shipped together.

As of 2026-10, Free allows 100,000 dynamic requests per day and 10 ms CPU per invocation. The $5 USD/month Paid account includes 10 million requests and 30 million CPU-ms monthly; extra usage is $0.30 per million requests and $0.02 per million CPU-ms. Ordinary static asset requests and Workers egress have no added charge.

CPU time matters as much as request count, and Workers Caching can change how static requests are counted. The demo assumes 5 CPU-ms per request on Paid. Separate products such as Containers are excluded.

When to use

Choose Workers for short edge APIs and assets; compare Cloud Run or Fly.io for containers and long processes, or Pages for Git-driven static sites.

Open as page ↗