Data & Payload Slimming

Underfetching

Direct Definition

Underfetching occurs when an API endpoint returns insufficient data for a view, requiring the frontend to initiate secondary cascading requests to retrieve related details. This creates latency waterfalls (the N+1 request problem), severely slowing down mobile and web application responsiveness.

Technical Architecture & Deep-Dive

Underfetching is common in strict relational REST designs. A client querying `/posts/123` receives only post metadata, requiring additional roundtrips to `/users/45` for the author profile and `/comments?post_id=123` for comments. Over high-latency cellular connections, serial waterfall roundtrips compound latency.

Edge API aggregation eliminates underfetching by querying upstream resources concurrently over high-speed backbone fiber and delivering a unified, composite payload in a single roundtrip to the client.

Key Architectural Benefits

Eliminates cascading client network waterfalls and serial HTTP roundtrips.
Simplifies frontend state management by delivering all required view models in one payload.
Leverages fast edge-to-origin data center connections for sub-requests.
REALCOMPOSER EDGE WORKSPACE

Implement Underfetching at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:How do edge composers resolve underfetching?

An edge composer queries all required upstream endpoints in parallel from edge Points of Presence, then merges and returns the complete composite data in a single HTTP response.

Related Architecture Concepts

Ready-to-Use Edge Recipes