Why a per-request key pool did not fit KV's free tier, and moving it to a Durable Object
A Reddit user who built an MCP reverse proxy on Workers says keeping the API-key pool in KV cost 1 list, N reads and 1 write per request, so the Free plan's 1,000 writes and 1,000 lists a day capped it at roughly 500 calls a day; moving the pool to a SQLite-backed Durable Object (100,000 rows written and 5 million rows read a day on Free) removed the wall and a race condition.
- Products
- KVDurable ObjectsWorkers
- Source
- Author experienceReddit
- Author
- u/OkEntertainment3752
Key points
- He says each proxied call listed the keys, read each key's state and wrote the selected key's last-used timestamp: 1 list, N reads and 1 write per request, with read amplification growing with pool size.
- With 1,000 writes and 1,000 list operations a day on the free tier, he puts the ceiling at roughly 500 calls a day and says writes were the hard wall.
- Moving the pool to a Durable Object with SQLite gave him 100,000 rows written and 5 million rows read a day on the free plan, and single-threaded selection removed a race he had because KV is eventually consistent.
- He also caps retries at 3 because a retry across N keys is N subrequests against the Free plan's 50 per invocation.
- Cloudflare's KV pricing page (read 2026-11-13) lists 1,000 keys written and 1,000 list requests a day on the Free plan, and the Durable Objects pricing page lists SQLite storage at 5 million rows read and 100,000 rows written a day on Workers Free.
Original sources
Published
Why a per-request key pool did not fit KV's free tier, and moving it to a Durable Object
Open original sourceA Reddit user who built an MCP reverse proxy on Workers says keeping the API-key pool in KV cost 1 list, N reads and 1 write per request, so the Free plan's 1,000 writes and 1,000 lists a day capped it at roughly 500 calls a day; moving the pool to a SQLite-backed Durable Object (100,000 rows written and 5 million rows read a day on Free) removed the wall and a race condition.
More to read
风易: On the free tier, do not log in full; logging in full burns the D1 rows-written count first
On 2026-11-14, X user @Michael_liyang (风易) wrote: on the free tier, do not log in full; what full logging burns first is the D1 rows-written count. The approach is: log all errors, with a trace id and an error code; sample only 1% of successes, enough to see the trend; write the sample rate into the config, temporarily raise it when investigating, then lower it back. The chain is request → assign a level → log all errors / sample successes → redact → persist to D1. The author's judgment: logs are for investigation, not for stockpiling for retirement; the rows written that are saved are left for real errors.
BowTied SaaS Guy: a $4,950 Cloudflare bill with $2,000 credited.
BowTied SaaS Guy (@BowTiedDolphin) says he ran up a $4,950 bill on Cloudflare and was credited $2,000 because no notifications were sent for the amount above $200. In a reply he says he upgraded after hitting free-plan limits and that another Worker’s usage skyrocketed because of a poor index on a public website.
Cloudflare costs $5 a month, but the bill is not capped
不追高 (@Ariella1213) writes an X article explaining that Workers Paid’s $5 is a minimum, that per-product limits and budget alerts do not cap the account bill, and how denial-of-wallet requests, write amplification, delayed stops and background retries add cost.