Developer runs real-time chat app for free using Cloudflare account sharding
A solo developer built BatchUp, a real-time group chat app for a college community, in five days using a zero-cost infrastructure approach. The architecture relies on Cloudflare Durable Objects to isolate each conversation, preventing any single busy chat from degrading performance for others. To stay within free-tier limits, the system is distributed across eight Cloudflare accounts with seven shard workers, so no single account becomes a bottleneck. This isolate-then-shard pattern targets sub-100ms message delivery and is designed to scale without incurring hosting costs at current usage levels. The developer notes the approach suits other real-time use cases like multiplayer games or collaborative editing, but warns that managing cross-account routing and shard rebalancing adds meaningful architectural complexity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in