<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alphazord</title>
    <description>The latest articles on DEV Community by Alphazord (@alphazord).</description>
    <link>https://dev.to/alphazord</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4098307%2F0932c05d-abb5-4e6d-90df-1d43894c2215.png</url>
      <title>DEV Community: Alphazord</title>
      <link>https://dev.to/alphazord</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alphazord"/>
    <language>en</language>
    <item>
      <title>Keeping a Real-Time App at $0/Month: Account Sharding and Durable Objects</title>
      <dc:creator>Alphazord</dc:creator>
      <pubDate>Fri, 28 Aug 2026 04:55:00 +0000</pubDate>
      <link>https://dev.to/alphazord/keeping-a-real-time-app-at-0month-account-sharding-and-durable-objects-6ke</link>
      <guid>https://dev.to/alphazord/keeping-a-real-time-app-at-0month-account-sharding-and-durable-objects-6ke</guid>
      <description>&lt;p&gt;Real-time delivery is usually where "free tier" architecture stops working. The moment you need sub-second delivery across many concurrent conversations, most people reach for a dedicated WebSocket server — and a bill that comes with it.&lt;/p&gt;

&lt;p&gt;Here's a different approach, used to build and run a real-time group chat app in 5 days on $0/month infrastructure at its current scale.&lt;/p&gt;

&lt;p&gt;The core problem&lt;/p&gt;

&lt;p&gt;Real-time chat needs two things that don't naturally coexist on a shared, single-tenant server: isolation (one busy conversation shouldn't slow down every other conversation) and low, predictable latency at the edge, close to wherever the user actually is.&lt;/p&gt;

&lt;p&gt;The approach: isolate, then shard&lt;/p&gt;

&lt;p&gt;Each conversation runs in its own Cloudflare Durable Object — an isolated compute environment scoped to exactly one conversation. That solves the "noisy neighbor" problem structurally: there's no shared event loop for one busy group chat to monopolize.&lt;/p&gt;

&lt;p&gt;The second piece is splitting the whole system across multiple Cloudflare accounts — 8 accounts, 7 shard workers in the current setup — rather than trying to run everything inside a single account's free-tier limits. Each shard worker owns a slice of the traffic, so no single account's limits become the ceiling for the whole app.&lt;/p&gt;

&lt;p&gt;Combined, the target is sub-100ms message delivery — a target the architecture is designed around, not a number that's guaranteed under every possible load.&lt;/p&gt;

&lt;p&gt;What this pattern is useful for beyond chat apps&lt;/p&gt;

&lt;p&gt;Anything with many small, independent units of real-time state — presence systems, collaborative editing, live auctions, multiplayer game rooms — can use the same isolate-then-shard shape: Durable Objects (or an equivalent per-unit isolation primitive) for correctness and blast-radius containment, account/worker sharding for staying inside free-tier or cost-sensitive limits as you scale.&lt;/p&gt;

&lt;p&gt;Where it gets harder&lt;/p&gt;

&lt;p&gt;Sharding across accounts is not free complexity-wise — routing a given conversation to the correct shard, and handling shard rebalancing if one account's limits get closer to being hit, both need real design attention. This isn't a "just add Durable Objects" one-liner; it's a genuine architectural decision with trade-offs.&lt;/p&gt;

&lt;p&gt;In production&lt;/p&gt;

&lt;p&gt;This exact pattern is running today as BatchUp (batchup.fun), a real-time chat app currently live for a college community, built solo in 5 days.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>microservices</category>
    </item>
  </channel>
</rss>
