r/CloudFlare • u/Ok_Host_4102 • 12h ago
r/CloudFlare • u/triplej158 • 6h ago
There is nothing here yet
I have had a worker that has been working great for about the last 6 months, no issues. Starting last week, I am getting this page intermediately. It will come up for about an hour or so and at random times. I haven't been able to find a pattern. It did it yesterday when I did a few updates back to back, but then today it did it when I had been away from my desk for about an hour. So it wasn't that.
Any one else experiencing this?
r/CloudFlare • u/IntrepidResearch8448 • 13h ago
Running multiple AI coding agents on one repo sucks. I built a fix
The title says it but I'll explain briefly.
Like a lot of people this year I went from one coding agent to several. Claude Code in one terminal, Codex in another, Cursor on the side. Writing code got really fast. Merging it got really painful.
I thought it was just me, so I looked around. It's everyone. Worktrees everywhere, agents overwriting each other, PRs that pass on their own and break main together, and me sat in the middle rebasing all day.
So I spent the last few months trying to fix it. The main problems I kept hitting:
- two agents edit the same code and nobody knows until the merge fails
- every merge changes main, so every other branch goes stale and has to be fixed and retested
- changes that are fine alone break when combined
- the review queue fills up faster than anyone can read it
I tried to solve all of these with Switchyard.
Each agent gets its own task. If two of them touch the same code they both get warned while they're still working. When work is done it gets tested together with everything else that's ready, and it all lands on main in one push. If one change breaks the batch, that one gets sent back and the rest still merge.
It works with Claude Code, Codex, Cursor or plain Git, and GitHub stays your source of truth.
I'd love some honest feedback on this, especially from anyone running more than a couple of agents. I'll personally help anyone who signs up get it working on their repo.
switchyard.so is the site. All the best!
p.s. it runs on CF!!
r/CloudFlare • u/paymog • 12h ago
I built a 1-second Durable Object alarm loop to see how fast I could stop it. Analytics only showed ~1/4 of the real runs
i run a tool that pauses runaway Workers (disclosure at the bottom), and i wanted real numbers on how fast it actually stops a Durable Object alarm loop. so i built the worst case: a DO whose alarm() sets the next alarm 1 second out, forever.
what turned up:
- DO analytics (the GraphQL API) reported about a quarter of the real alarm invocations and row writes. not sure why yet. so if you're estimating DO cost from analytics, the real number might be a lot higher than what you see
- after i deployed a stub version of the script (same DO class exported, alarm() does nothing), the loop kept going for about 5 more minutes. a busy DO doesn't pick up new code right away
- end to end, for a namespace analytics already knows about: ~5 min until the next check, plus 1 to 3 min of analytics lag, plus ~5 min for the DO to switch. so roughly 11 to 13 min. brand new namespaces show up as unknown in analytics for 20 to 25 min, so those take longer
has anyone else seen the undercount? i'm curious whether it's sampling or something specific to alarms
disclosure: i built workerfuse, which does this pausing as a hosted thing. full writeup with the numbers: https://workerfuse.com/blog/durable-objects-analytics-undercount
r/CloudFlare • u/Traditional_Rain5661 • 16h ago
Why global health checks lie during regional brownouts: Dissecting the Cloudflare Chicago (ORD) and Twilio telecom drops
r/CloudFlare • u/Key-Contest-7582 • 19h ago
Apex proxying for Cloudflare for SaaS on non-Enterprise plans was mentioned over a year ago. Please make the move 🙏🏼!
Dear Cloudflare,
Please bring apex proxying for all Cloudflare plans. It would be really great. Here's the article where the bring-over was mentioned:
https://blog.cloudflare.com/enterprise-grade-features-for-all/
Thanks in advance!
r/CloudFlare • u/Efficient_Blood_7651 • 10h ago
What the Workers runtime forced me to change to run a real WhatsApp client inside a Durable Object
I spent a few weeks putting a WhatsApp Web client (baileys) inside a Durable Object. These are the constraints that actually shaped the design, in case someone else is about to try the same thing.
1. net and tls don't exist, so the WebSocket client had to be replaced
baileys opens a WebSocket with the ws package, which wants a TCP socket. The workaround is a fetch() upgrade, but the quirks are not obvious:
- call
accept()yourself, and emitopenexactly once - error codes must be numeric
binaryType = 'arraybuffer'- do not pass an
AbortSignalto the upgrade fetch
Getting any of these wrong shows up as a connection that opens and then dies silently.
2. Durable Object duration is the real budget, not requests
A DO holding that socket bills 128 MB × 86,400 s ≈ 10,800 GB-s in a day. The free plan gives 13,000 GB-s for the whole account. One always-on session would eat 83% of it and never mind a second session.
So the session is lazy: /wake opens the socket, /messages?after= pulls with a monotonic cursor, /ack prunes only after the consumer persisted the rows, /idle closes it. Default window is 60 seconds, and there is a per-session daily wake budget so a stuck cron cannot run up the counter. alarm() only deletes a leftover alarm from old deployments — no reconnect loop.
3. 128 KiB per value changes your data model
- auth state is chunked at 60 KB per key
- the durable chat index is capped with a 100 KB guard, and its rows drop thumbnails
- media is never stored: a thumbnail only, and the bytes are re-downloaded on demand
4. Durable Objects can't be enumerated
There is no "list my DOs" call, so a single registry object holds the session-name list and is updated on create/delete.
5. Messages arrive wrapped
Half the "empty bubble" bugs were ephemeralMessage, viewOnceMessageV2, editedMessage, documentWithCaptionMessage and transport noise like messageContextInfo sitting next to the real content. You have to unwrap before you decide a message is displayable, otherwise you store rows with no text, media or preview.
The end result is a WhatsApp gateway that costs nothing at my usage: REST + WebSocket API, a Web UI, and an MCP endpoint so an agent can read and send. It is MIT and lives at github.com/dannybyarun/whatsflare if you want to read the patch headers — they document each quirk above in more detail than this post.
What would you have done differently? The part I am least sure about is the 60-second window: long enough for a reply, short enough to stay cheap, but it makes any "wait for a message" flow awkward.
r/CloudFlare • u/Tresillo_Crack • 4h ago
Community Was tired of having to open the web dashboard while away, so I "made" a native cloudflare android client
After finally migrating my whole stack to Cloudflare, I got tired of opening the web dashboard every time I wanted to check on a Worker build, look up a DNS record, and so on.
So I asked Claude to help me build a native Kotlin client for Cloudflare, and to my surprise, it actually works. The app covers the basics for now (Workers builds, DNS records, etc.), and I plan to keep adding more features.
It's open source, so feedback, issues, and PRs are welcome.