Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Datadog Engineering 10 min read Case study mediumAdept

Making fetch happen: Building a general-purpose query and render scheduler

Datadog replaced a tangled ~20-parameter dashboard scheduler with separate, general-purpose query and render schedulers used by widgets across the product. The new query scheduler fetches visible widgets immediately and runs ranked offscreen fetches at up to 10 per fixed 2000ms window, pausing when pending fetches pile up. The result was a flatter request distribution and far fewer 429 errors. Rendering now goes through the Browser Scheduling API's postTask, with visible widgets at 'user-visible' priority and offscreen ones at 'background', which cut render count and duration and greatly reduced long tasks during interactions like drag-and-drop.

Assumes: browser main thread and event loopJavaScript Promisesfrontend data fetching

Related posts

  • Who's on call? How we improved schedule rendering performance 2,500x

    incident.io mediumAdept

    incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup. Earlier wins came from request validation and context cancellation after a runaway 2092 date, replacing repeated linear entry splitting with sorted binary-search insertion (850ms to 100ms, though a Go pointer-copy aliasing bug forced rollbacks), and removing hot-path waste like string weekday comparisons, unused UUID generation, repeated time.LoadLocation and clock-time parsing for about 40% more. The largest gain came from Claude Opus 4.6 building a V2 renderer that avoids iterating every handover, validated by requiring identical output to V1 across the existing test suite and rolled out behind a feature flag with an audit job.

  • From latency to instant: Modernizing GitHub Issues navigation performance

    GitHub Engineering mediumAdept

    GitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background. A persistent IndexedDB cache made about 22% of React soft navigations instant at a ~33% hit rate, with roughly 4.7% server/cache divergence. Rate-limited, low-priority preheating from issue lists and an in-memory cache tier raised the hit ratio to ~96%, so up to ~70% of React navigations became instant. A service worker extends the cache to Turbo and hard navigations by signalling cache hits via a request header, letting the server return a thin HTML shell instead of a full server-rendered page. The tradeoff on hard navigations is that the critical path shifts to JavaScript download and execution.

  • Rendering Engine Tales: Road to Concurrent React

    Zalando Engineering mediumAdept

    Zalando migrated its Rendering Engine framework, which renders the Fashion Store from backend-defined Entity trees mapped to React Renderers, to React 18 concurrent rendering. Each Renderer is wrapped in a Suspense boundary. Data resolution, ordering and transitions live in a central Application State layer outside React, and a Connector hook suspends components until their data is written. This mixed design was chosen because SuspenseList is still experimental, useTransition ignores nested Suspense boundaries, and Render-As-You-Fetch hooks couple fetch timing to render order. Switching to renderToPipeableStream and hydrateRoot alone, rolled out via A/B test, cut INP by 5.69%, FID by 8.81% and LCP by 2.43%. It also exposed many hydration mismatch errors, and the post covers fixes for common causes such as timers, time-zone-dependent date localization and client-only content.

  • How Render Workflows powers our internal data pipeline

    Render mediumAdept

    Render's two-person data team replaced a time-spaced set of cron jobs with a Render Workflows DAG that waits for a late-arriving Go-built invoice projection dataset, runs dbt in projection-independent and projection-dependent partial builds, then fans out downstream tasks like doc sync, cost monitoring and Metabase cache warming in parallel. The key pattern is retry-as-poll: the task's native retry engine (flat backoff, max retries) checks for a sentinel row in BigQuery without burning compute between polls. dbt runs as a subprocess with stdout streamed into task logs, and completion events land in a BigQuery table that drives accurate ETA estimates. Prod, dry-run and simulate execution modes, plus confining the Render SDK to main.py, keep the logic vendor-agnostic and testable in CI. Projected savings are $30K/year from fewer dbt runs and $70K from Metabase caching.

  • Speedometer 3.0: The Best Way Yet to Measure Browser Performance

    WebKit mediumAdept

    Speedometer 3.0, jointly governed by Blink, Gecko and WebKit developers, changes how browser responsiveness is measured. Test scripts now run inside a requestAnimationFrame callback as "sync" time, and a zero-delay timer scheduled from a second rAF measures "async" time. Under the HTML5 event loop model, this ordering guarantees that rendering updates and rAF-deferred framework work are captured, which the old timer-only approach could miss. The workloads expand to TodoMVC apps in nine popular frameworks chosen from HTTP Archive and npm data, complex-DOM variants, Next.js/Nuxt news sites, SVG and canvas charting apps, and CodeMirror/TipTap editors. Scores are rescaled so a typical browser starts in the 20–30 range.

The quest for software engineering knowledge.

Look:
Layout: