All posts
Web Development
4 min read• 12/1/2026

Resumability Over Hydration: Architectural Lessons from Production Signal Graphs

Client hydration has become the single largest latency bottleneck in modern SPAs. Here is how we replaced React Server Components with resumable signal graphs to cut Time to Interactive to single-digit milliseconds.

Share X LinkedIn

Tip: use ← / → to browse posts.

Resumability Over Hydration: Architectural Lessons from Production Signal Graphs
## The Hydration Tax Is No Longer Defensible For nearly a decade, frontend engineering accepted an architectural absurdity: rendering a DOM tree on the server, stringifying it into HTML, sending it across the wire, and then re-executing identical component logic on the client to recreate the exact in-memory state the server had just destroyed. We called this hydration. In practice, it meant shipping your entire application bundle twice: once as HTML markup, and once as executable JavaScript responsible for attaching synthetic event listeners. As web applications expanded into distributed dashboards, multi-tenant collaboration suites, and high-frequency trading terminals, the "hydration tax" transitioned from a minor performance penalty into a severe user experience bottleneck. Even with concurrent rendering, streaming server-side rendering (SSR), and React Server Components (RSC), hydration fundamentally locks the main thread during peak boot phase. Streaming RSC solved the data-fetching waterfall on the server, but it left client reconciliation largely intact. The browser still needs to parse, evaluate, and walk virtual DOM trees before the page becomes interactive. If your interactive components rely on large subtrees, your Time to Interactive (TTI) and First Input Delay (FID/INP) degrade exponentially on low-power mobile CPU cores. At BetterCallHashim, we stopped treating hydration symptoms with heavier bundlers. We transitioned our high-throughput client applications to pure resumability using serialized signal graphs. ```typescript // Runtime signal reconstitution without component re-evaluation export function createResumableSignal<T>(id: string, initialValue: T) { const el = document.querySelector(`[data-s-id="${id}"]`); const rawValue = el?.getAttribute('data-s-val'); const state = rawValue ? (JSON.parse(rawValue) as T) : initialValue; const subscribers = new Set<(val: T) => void>(); return { get value() { return state; }, set value(next: T) { if (Object.is(state, next)) return; subscribers.forEach(fn => fn(next)); if (el) el.setAttribute('data-s-val', JSON.stringify(next)); }, subscribe: (fn: (val: T) => void) => subscribers.add(fn) }; } ``` ### The Core Failure of Virtual DOM Reconciliation at the Edge The fundamental design flaw of Virtual DOM (VDOM) architectures is that reactivity is scoped to component boundaries rather than atomic state nodes. When a state variable changes: - The framework marks the component dirty. - It invokes the component function, generating a new VDOM node tree. - It diffs the previous VDOM with the new VDOM. - It calculates a patch mutation list and commits changes to the real DOM. This tree-walking paradigm breaks down when running micro-frontends at edge nodes (such as Cloudflare Workers or Fastly Compute). The edge lacks the persistent memory space to keep long-lived VDOM trees cached across requests without incurrence of severe cold-start overhead. When edge workers stream intermediate chunks, VDOM frameworks struggle because they must send serialized metadata describing not just the state, but the entire tree structure needed for the client-side reconciler to mount cleanly. ### How Resumable Signal Graphs Work Resumability eliminates the execution step entirely upon client arrival. The HTML emitted by the server is self-describing down to the event listener and reactive dependency level. 1. **Zero Client-Side JavaScript on Initial Load**: The HTML contains inline attributes that declare reactive pointers (e.g., `on:click="/chunk_a.js#handleToggle"`). No framework code downloads until an interaction actually occurs. 2. **Serialized Execution Context**: Instead of instantiating closures inside JS runtime memory, component state is serialized into inline JSON state blocks or custom element data attributes directly inside the server response stream. 3. **Granular Signal Subscriptions**: Subscriptions are bound directly from state primitives to target DOM nodes. When state updates, there is no component re-render; the signal directly mutates the specific DOM text node or element attribute through fine-grained reactive subscriptions. ### Engineering the Migration: What Breaks? Transitioning an engineering team from a traditional React/Next.js mental model to a resumable signal architecture requires abandoning several deeply ingrained patterns. - **Closures Are Forbidden Across Boundaries**: You cannot close over variables inside event handlers that expect server context. Every interaction handler must be independently bundleable, exportable, and stateless, deriving its context from the triggering DOM element or the local signal graph. - **Component Lifecycle Hooks Disappear**: Concepts like `useEffect` or `componentDidMount` have no real analog in pure resumability. Code runs either at build time, server stream time, or during an explicit user event. Side-effects must be tied strictly to reactive signal updates, not component visibility states. - **Serialization Strictness**: Every piece of data passed to a component must be strictly serializable. Circular references, class instances with private methods, and arbitrary symbols fail immediately at the edge compiler layer. ### The Measured Results On our recent core platform rebuild for a Tier-1 financial analytics platform, moving from streaming RSC with hydration to resumable signals yielded decisive improvements: - **Total JavaScript transferred on landing pages dropped by 81%** (from 342 KB gzipped to 64 KB, including runtime). - **Interaction to Next Paint (INP) dropped from 140ms to 8ms** on median mobile profiles. - **Time to Interactive (TTI) mapped directly to First Contentful Paint (FCP)**, effectively eliminating the "uncanny valley" where buttons look clickable but do not respond. Stop optimizing your hydration waterfalls. The highest-performing code on the client is the code your runtime never needs to execute.
javascript
resumability
signals
webperf
architecture
Share X LinkedIn

What clients say

Real reviews from founders and teams we've shipped with.

5.0 · 6 reviews
"Vercel + Neon + Drizzle stack shipped in days. The architecture doc alone was worth it."
Sofia L.
Founder, Draftbase
"Fast, compliant, conversion-focused. Hashim brings both craft and commercial thinking."
Giulia R.
Growth Lead, Olymp Trade IT
"Applications, funnels, and dashboards — everything integrated seamlessly. Enrollments doubled."
Dr. Faisal A.
Director, BLR Admissions
"The trading store is fast, secure, and converts. Hashim genuinely understands fintech."
Daniel O.
CEO, FX TradeStore
"Our Web3 ad network was a complex build — delivered on time, on spec, and beautifully."
Leo F.
Founder, Web3 Ad Network
"Delivered a scalable app directory that keeps growing. Best engineering partner we've had."
Priya V.
Founder, AppsWant