Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
Blog
GitHub Logo

How Redirects and Early Hints Shape the First Impression (Akamai + Harper)

When a user taps a link, Harper and Akamai work in tandem to instantly determine the optimal destination and start loading assets—before the page even begins rendering. By combining ultra-fast distributed redirects with Early Hints, this system delivers a seamless, high-performance experience that feels instantaneous to the end user.
Blog

How Redirects and Early Hints Shape the First Impression (Akamai + Harper)

Aleks Haugom
Senior Manager of GTM
at Harper
August 12, 2025
Aleks Haugom
Senior Manager of GTM
at Harper
August 12, 2025
Aleks Haugom
Senior Manager of GTM
at Harper
August 12, 2025
August 12, 2025
When a user taps a link, Harper and Akamai work in tandem to instantly determine the optimal destination and start loading assets—before the page even begins rendering. By combining ultra-fast distributed redirects with Early Hints, this system delivers a seamless, high-performance experience that feels instantaneous to the end user.
Aleks Haugom
Senior Manager of GTM

Every great user experience begins before the page loads.

The moment a user taps a link—whether from a Google ad, an email campaign, or a stale bookmark—a flurry of decisions and optimizations happen invisibly across the edge and deep inside distributed systems. Most of the time, the user simply sees a fast page. But under the hood, something more elegant is happening: a tiny choreography between Akamai and Harper that ensures they land in the right place, as quickly as possible.

This is the story of how redirects and Early Hints—two deceptively simple concepts—can shape a user’s first impression, and how Harper’s Platform turns this pattern into a high-performance dance.

The Race to First Paint

Let’s start with a real-world scenario. A user taps www.customer.com, maybe expecting a storefront or a dashboard. It’s a routine interaction, but behind that tap, a chain of network events begins. The request flows to the nearest Akamai edge node, where a decision needs to be made: do we serve them this site, or redirect them to a more suitable location?

This is where the redirect logic kicks in. Akamai’s EdgeWorker quickly consults Harper’s distributed redirect service. Because redirect rules are already replicated across global Harper nodes, the answer is near-instant, usually finalized in one millisecond or less. For perspective, this could be 10 times slower, and it would still be imperceptible to a human. The system either returns a 301/302 or proceeds to the origin without missing a beat.

Then, after the redirect decision is finalized, another optimization kicks in: Early Hints.

Before the origin server begins assembling the full response, Harper has already looked up metadata about the requested page from the same node as the redirects. This node holds information about critical resources—scripts, fonts, stylesheets, largest contentful image—and generates a 103 Early Hint telling the browser, “You’re going to need these; start loading them now.”

This happens before the page has even been built. And because the browser now knows what to fetch from the CDN while the origin server is still working, rendering can begin sooner. That’s the beauty of the model: routing and rendering paths are optimized in parallel, with each decision delegated to the part of the stack closest to the user.

💡 Want a deeper dive on how Early Hints work with preload and preconnect? Check out this guide on Harper’s Dev Center.
Redirects and Early Hints with Harper + Akamai (System Flow).

The Split‑Second Decision Tree

As the visual shows, the first stop is Akamai Property configuration—where all requests are evaluated against criteria you define. If a match is found, the request is handed to an EdgeWorker, a lightweight compute layer at the edge.

This EdgeWorker is where the real optimization starts. It doesn’t just forward the request blindly—it runs logic (onClientRequest) that issues a sub‑request to a Harper endpoint, asking: “Does this URL have a redirect rule?”

The sub‑request travels through Akamai’s GTM (Global Traffic Management) service to reach the most optimal Harper region—Los Angeles, Dallas, Washington, or Chicago in this example. The selected Harper node checks for a redirect match and responds quickly:

  • HTTP 200 if a matching redirect is found
  • HTTP 404 if no match exists

If the result is 200, the EdgeWorker fires off its final response (onClientResponse), returning either a 301/302 redirect, or—if applicable—a 103 Early Hint header that primes the browser to begin rendering early.

💡 Curious about how EdgeWorkers handle these sub‑requests

Early Hints: The Performance Hack You Didn’t Know You Needed

Once the redirect decision is complete, the next phase kicks in: delivering the page from the origin. But before that full response is even ready, Harper enables a subtle but powerful performance boost.

At this point, Harper generates a 103 Early Hint, a response that includes preload instructions for the browser. These hints specify which assets (like images, fonts, or scripts) are likely to be needed so the browser can begin fetching them right away.

The impact is significant: rather than waiting for the origin server to fully render the page before knowing what to load, the browser is already pulling assets from the CDN in parallel. In real-world scenarios, this can accelerate time to first paint or largest content paint by over a second, depending on the speed of the system before early hints were applied.

By decoupling resource loading from full page rendering, Harper helps Akamai shift more of the loading experience earlier in the lifecycle—turning wait time into active work.

Distributed Intelligence: Harper’s Global Layer

So why is Harper even in the picture? Because managing redirects is more than just logic. It’s data—data that needs to be:

  • Instantly available across geographies
  • Versioned for rollback or expiration
  • Replicated without inconsistency

Plus, most redirect systems often have hard limits on the number of redirects they can manage. Many limit teams to 300,000 redirects or fewer. Harper does not have that limit, enabling single-digit millisecond redirect resolution even with upwards of a billion redirects under management.

Harper’s redirect engine is built for this. When you push a new redirect rule, via API or UI, it’s automatically propagated to every node in the cluster. Whether your user is in Berlin or San Francisco, the EdgeWorker gets a consistent, fast answer.

The Invisible Win

Here’s what the user experiences: they click a link, and the page just loads. No delay, no flash of white, no waiting on assets. The redirect, if needed, was invisible. And thanks to Early Hints, the browser started painting before it even knew where it was going.

Under the hood, Akamai made a smart sub‑request to Harper, got a fast answer, and returned the right redirect and the right hint at the right time. No origin load, no unnecessary overhead.

This pattern, redirects + Early Hints, backed by distributed logic, isn’t just for edge nerds. It’s how we make global apps feel local, and how Harper ensures the first impression is always the right one.

Every great user experience begins before the page loads.

The moment a user taps a link—whether from a Google ad, an email campaign, or a stale bookmark—a flurry of decisions and optimizations happen invisibly across the edge and deep inside distributed systems. Most of the time, the user simply sees a fast page. But under the hood, something more elegant is happening: a tiny choreography between Akamai and Harper that ensures they land in the right place, as quickly as possible.

This is the story of how redirects and Early Hints—two deceptively simple concepts—can shape a user’s first impression, and how Harper’s Platform turns this pattern into a high-performance dance.

The Race to First Paint

Let’s start with a real-world scenario. A user taps www.customer.com, maybe expecting a storefront or a dashboard. It’s a routine interaction, but behind that tap, a chain of network events begins. The request flows to the nearest Akamai edge node, where a decision needs to be made: do we serve them this site, or redirect them to a more suitable location?

This is where the redirect logic kicks in. Akamai’s EdgeWorker quickly consults Harper’s distributed redirect service. Because redirect rules are already replicated across global Harper nodes, the answer is near-instant, usually finalized in one millisecond or less. For perspective, this could be 10 times slower, and it would still be imperceptible to a human. The system either returns a 301/302 or proceeds to the origin without missing a beat.

Then, after the redirect decision is finalized, another optimization kicks in: Early Hints.

Before the origin server begins assembling the full response, Harper has already looked up metadata about the requested page from the same node as the redirects. This node holds information about critical resources—scripts, fonts, stylesheets, largest contentful image—and generates a 103 Early Hint telling the browser, “You’re going to need these; start loading them now.”

This happens before the page has even been built. And because the browser now knows what to fetch from the CDN while the origin server is still working, rendering can begin sooner. That’s the beauty of the model: routing and rendering paths are optimized in parallel, with each decision delegated to the part of the stack closest to the user.

💡 Want a deeper dive on how Early Hints work with preload and preconnect? Check out this guide on Harper’s Dev Center.
Redirects and Early Hints with Harper + Akamai (System Flow).

The Split‑Second Decision Tree

As the visual shows, the first stop is Akamai Property configuration—where all requests are evaluated against criteria you define. If a match is found, the request is handed to an EdgeWorker, a lightweight compute layer at the edge.

This EdgeWorker is where the real optimization starts. It doesn’t just forward the request blindly—it runs logic (onClientRequest) that issues a sub‑request to a Harper endpoint, asking: “Does this URL have a redirect rule?”

The sub‑request travels through Akamai’s GTM (Global Traffic Management) service to reach the most optimal Harper region—Los Angeles, Dallas, Washington, or Chicago in this example. The selected Harper node checks for a redirect match and responds quickly:

  • HTTP 200 if a matching redirect is found
  • HTTP 404 if no match exists

If the result is 200, the EdgeWorker fires off its final response (onClientResponse), returning either a 301/302 redirect, or—if applicable—a 103 Early Hint header that primes the browser to begin rendering early.

💡 Curious about how EdgeWorkers handle these sub‑requests

Early Hints: The Performance Hack You Didn’t Know You Needed

Once the redirect decision is complete, the next phase kicks in: delivering the page from the origin. But before that full response is even ready, Harper enables a subtle but powerful performance boost.

At this point, Harper generates a 103 Early Hint, a response that includes preload instructions for the browser. These hints specify which assets (like images, fonts, or scripts) are likely to be needed so the browser can begin fetching them right away.

The impact is significant: rather than waiting for the origin server to fully render the page before knowing what to load, the browser is already pulling assets from the CDN in parallel. In real-world scenarios, this can accelerate time to first paint or largest content paint by over a second, depending on the speed of the system before early hints were applied.

By decoupling resource loading from full page rendering, Harper helps Akamai shift more of the loading experience earlier in the lifecycle—turning wait time into active work.

Distributed Intelligence: Harper’s Global Layer

So why is Harper even in the picture? Because managing redirects is more than just logic. It’s data—data that needs to be:

  • Instantly available across geographies
  • Versioned for rollback or expiration
  • Replicated without inconsistency

Plus, most redirect systems often have hard limits on the number of redirects they can manage. Many limit teams to 300,000 redirects or fewer. Harper does not have that limit, enabling single-digit millisecond redirect resolution even with upwards of a billion redirects under management.

Harper’s redirect engine is built for this. When you push a new redirect rule, via API or UI, it’s automatically propagated to every node in the cluster. Whether your user is in Berlin or San Francisco, the EdgeWorker gets a consistent, fast answer.

The Invisible Win

Here’s what the user experiences: they click a link, and the page just loads. No delay, no flash of white, no waiting on assets. The redirect, if needed, was invisible. And thanks to Early Hints, the browser started painting before it even knew where it was going.

Under the hood, Akamai made a smart sub‑request to Harper, got a fast answer, and returned the right redirect and the right hint at the right time. No origin load, no unnecessary overhead.

This pattern, redirects + Early Hints, backed by distributed logic, isn’t just for edge nerds. It’s how we make global apps feel local, and how Harper ensures the first impression is always the right one.

When a user taps a link, Harper and Akamai work in tandem to instantly determine the optimal destination and start loading assets—before the page even begins rendering. By combining ultra-fast distributed redirects with Early Hints, this system delivers a seamless, high-performance experience that feels instantaneous to the end user.

Download

White arrow pointing right
When a user taps a link, Harper and Akamai work in tandem to instantly determine the optimal destination and start loading assets—before the page even begins rendering. By combining ultra-fast distributed redirects with Early Hints, this system delivers a seamless, high-performance experience that feels instantaneous to the end user.

Download

White arrow pointing right
When a user taps a link, Harper and Akamai work in tandem to instantly determine the optimal destination and start loading assets—before the page even begins rendering. By combining ultra-fast distributed redirects with Early Hints, this system delivers a seamless, high-performance experience that feels instantaneous to the end user.

Download

White arrow pointing right

Explore Recent Resources

Livestream
GitHub Logo

2 Hour Build - Live Stream for Non-Developers

A non-developer's live stream walkthrough of building Flow State, a Colorado river-flow app for rafters, in two hours using ChatGPT dictation, Claude Code, Claude Design, and Harper. Scaffold with npm create harper@latest and deploy to Harper Fabric. No coding background required.
Livestream
A non-developer's live stream walkthrough of building Flow State, a Colorado river-flow app for rafters, in two hours using ChatGPT dictation, Claude Code, Claude Design, and Harper. Scaffold with npm create harper@latest and deploy to Harper Fabric. No coding background required.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM
Livestream

2 Hour Build - Live Stream for Non-Developers

A non-developer's live stream walkthrough of building Flow State, a Colorado river-flow app for rafters, in two hours using ChatGPT dictation, Claude Code, Claude Design, and Harper. Scaffold with npm create harper@latest and deploy to Harper Fabric. No coding background required.
Aleks Haugom
May 2026
Livestream

2 Hour Build - Live Stream for Non-Developers

A non-developer's live stream walkthrough of building Flow State, a Colorado river-flow app for rafters, in two hours using ChatGPT dictation, Claude Code, Claude Design, and Harper. Scaffold with npm create harper@latest and deploy to Harper Fabric. No coding background required.
Aleks Haugom
Livestream

2 Hour Build - Live Stream for Non-Developers

A non-developer's live stream walkthrough of building Flow State, a Colorado river-flow app for rafters, in two hours using ChatGPT dictation, Claude Code, Claude Design, and Harper. Scaffold with npm create harper@latest and deploy to Harper Fabric. No coding background required.
Aleks Haugom
Tutorial
GitHub Logo

Production Quality at Vibe Code Velocity: Dispatched Agent Teams with Harper

Harper enables production-grade agentic engineering by collapsing database, cache, runtime, and messaging into one process, reducing agent complexity and review burden. A multi-model dispatch workflow lets specialized agents plan, code, QA, and review in parallel while humans retain control over critical decisions.
Tutorial
Harper enables production-grade agentic engineering by collapsing database, cache, runtime, and messaging into one process, reducing agent complexity and review burden. A multi-model dispatch workflow lets specialized agents plan, code, QA, and review in parallel while humans retain control over critical decisions.
Person with very short hair and a goatee wearing a plaid button‑up shirt over a white undershirt, smiling outdoors with leafy greenery behind.
Jeff Darnton
SVP, Professional Services & Customer Success
Tutorial

Production Quality at Vibe Code Velocity: Dispatched Agent Teams with Harper

Harper enables production-grade agentic engineering by collapsing database, cache, runtime, and messaging into one process, reducing agent complexity and review burden. A multi-model dispatch workflow lets specialized agents plan, code, QA, and review in parallel while humans retain control over critical decisions.
Jeff Darnton
May 2026
Tutorial

Production Quality at Vibe Code Velocity: Dispatched Agent Teams with Harper

Harper enables production-grade agentic engineering by collapsing database, cache, runtime, and messaging into one process, reducing agent complexity and review burden. A multi-model dispatch workflow lets specialized agents plan, code, QA, and review in parallel while humans retain control over critical decisions.
Jeff Darnton
Tutorial

Production Quality at Vibe Code Velocity: Dispatched Agent Teams with Harper

Harper enables production-grade agentic engineering by collapsing database, cache, runtime, and messaging into one process, reducing agent complexity and review burden. A multi-model dispatch workflow lets specialized agents plan, code, QA, and review in parallel while humans retain control over critical decisions.
Jeff Darnton
Tutorial
GitHub Logo

Change Data Capture Into a Runtime: One Pipeline for Pages, Search, and AI Agents

Learn how Harper turns CDC streams into real-time workflows that refresh cached pages, update search indexes, and keep AI agent context current. See why landing changes in an application runtime beats warehouses, queues, and traditional CDNs.
Tutorial
Learn how Harper turns CDC streams into real-time workflows that refresh cached pages, update search indexes, and keep AI agent context current. See why landing changes in an application runtime beats warehouses, queues, and traditional CDNs.
Person with very short hair and a goatee wearing a plaid button‑up shirt over a white undershirt, smiling outdoors with leafy greenery behind.
Jeff Darnton
SVP, Professional Services & Customer Success
Tutorial

Change Data Capture Into a Runtime: One Pipeline for Pages, Search, and AI Agents

Learn how Harper turns CDC streams into real-time workflows that refresh cached pages, update search indexes, and keep AI agent context current. See why landing changes in an application runtime beats warehouses, queues, and traditional CDNs.
Jeff Darnton
May 2026
Tutorial

Change Data Capture Into a Runtime: One Pipeline for Pages, Search, and AI Agents

Learn how Harper turns CDC streams into real-time workflows that refresh cached pages, update search indexes, and keep AI agent context current. See why landing changes in an application runtime beats warehouses, queues, and traditional CDNs.
Jeff Darnton
Tutorial

Change Data Capture Into a Runtime: One Pipeline for Pages, Search, and AI Agents

Learn how Harper turns CDC streams into real-time workflows that refresh cached pages, update search indexes, and keep AI agent context current. See why landing changes in an application runtime beats warehouses, queues, and traditional CDNs.
Jeff Darnton
Tutorial
GitHub Logo

Harper + Vertex AI: The Architecture Every Agent Builder Should Know

Production agents bleed tokens and latency on repeated queries. Pair a managed model layer with a vector-indexed data layer at the edge, and an 80% cache hit rate cuts LLM spend by 80% while delivering sub-100ms responses on semantically similar requests.
Tutorial
Production agents bleed tokens and latency on repeated queries. Pair a managed model layer with a vector-indexed data layer at the edge, and an 80% cache hit rate cuts LLM spend by 80% while delivering sub-100ms responses on semantically similar requests.
Person with styled reddish‑brown hair and a full beard wearing a gray suit with a light blue shirt and dark green tie, posing outdoors with a blurred pathway and greenery behind.
Drew Chambers
CMO
Tutorial

Harper + Vertex AI: The Architecture Every Agent Builder Should Know

Production agents bleed tokens and latency on repeated queries. Pair a managed model layer with a vector-indexed data layer at the edge, and an 80% cache hit rate cuts LLM spend by 80% while delivering sub-100ms responses on semantically similar requests.
Drew Chambers
May 2026
Tutorial

Harper + Vertex AI: The Architecture Every Agent Builder Should Know

Production agents bleed tokens and latency on repeated queries. Pair a managed model layer with a vector-indexed data layer at the edge, and an 80% cache hit rate cuts LLM spend by 80% while delivering sub-100ms responses on semantically similar requests.
Drew Chambers
Tutorial

Harper + Vertex AI: The Architecture Every Agent Builder Should Know

Production agents bleed tokens and latency on repeated queries. Pair a managed model layer with a vector-indexed data layer at the edge, and an 80% cache hit rate cuts LLM spend by 80% while delivering sub-100ms responses on semantically similar requests.
Drew Chambers
Blog
GitHub Logo

Why Harper is the Definitive Platform for Enterprise Citizen Developers

Harper bridges the gap between business agility and IT security. Utilizing a unified runtime, Harper Fabric guarantees data sovereignty across any environment, from public clouds to air-gapped facilities. Empower users with secure, compliant AI application development and robust governance.
Blog
Harper bridges the gap between business agility and IT security. Utilizing a unified runtime, Harper Fabric guarantees data sovereignty across any environment, from public clouds to air-gapped facilities. Empower users with secure, compliant AI application development and robust governance.
A smiling man with a beard and salt-and-pepper hair stands outdoors with arms crossed, wearing a white button-down shirt.
Stephen Goldberg
CEO & Co-Founder
Blog

Why Harper is the Definitive Platform for Enterprise Citizen Developers

Harper bridges the gap between business agility and IT security. Utilizing a unified runtime, Harper Fabric guarantees data sovereignty across any environment, from public clouds to air-gapped facilities. Empower users with secure, compliant AI application development and robust governance.
Stephen Goldberg
May 2026
Blog

Why Harper is the Definitive Platform for Enterprise Citizen Developers

Harper bridges the gap between business agility and IT security. Utilizing a unified runtime, Harper Fabric guarantees data sovereignty across any environment, from public clouds to air-gapped facilities. Empower users with secure, compliant AI application development and robust governance.
Stephen Goldberg
Blog

Why Harper is the Definitive Platform for Enterprise Citizen Developers

Harper bridges the gap between business agility and IT security. Utilizing a unified runtime, Harper Fabric guarantees data sovereignty across any environment, from public clouds to air-gapped facilities. Empower users with secure, compliant AI application development and robust governance.
Stephen Goldberg
Comparison
GitHub Logo

Harper vs. Vercel + Supabase

Harper offers a unified application platform alternative to Vercel + Supabase, combining database, cache, app logic, messaging, vectors, and real-time capabilities in one globally distributed runtime to reduce latency, operational complexity, and total cost of ownership.
Comparison
Harper offers a unified application platform alternative to Vercel + Supabase, combining database, cache, app logic, messaging, vectors, and real-time capabilities in one globally distributed runtime to reduce latency, operational complexity, and total cost of ownership.
Colorful geometric illustration of a dog's head resembling folded paper art in shades of teal and pink.
Harper
Comparison

Harper vs. Vercel + Supabase

Harper offers a unified application platform alternative to Vercel + Supabase, combining database, cache, app logic, messaging, vectors, and real-time capabilities in one globally distributed runtime to reduce latency, operational complexity, and total cost of ownership.
Harper
May 2026
Comparison

Harper vs. Vercel + Supabase

Harper offers a unified application platform alternative to Vercel + Supabase, combining database, cache, app logic, messaging, vectors, and real-time capabilities in one globally distributed runtime to reduce latency, operational complexity, and total cost of ownership.
Harper
Comparison

Harper vs. Vercel + Supabase

Harper offers a unified application platform alternative to Vercel + Supabase, combining database, cache, app logic, messaging, vectors, and real-time capabilities in one globally distributed runtime to reduce latency, operational complexity, and total cost of ownership.
Harper