Dynamic Workload Partitioning Between Clients and Servers

15 concepts11 papers2 proposals

When designing distributed data systems, engineers traditionally face a binary architectural choice: execute computations entirely on a centralized server or offload raw data to the client for local processing. Both extremes possess inherent flaws. Server-side execution leverages powerful hardware and global data indices, but it suffers from multi-tenant congestion, strict resource quotas, and high infrastructure costs. Client-side execution isolates compute resources and eliminates network latency for subsequent interactions, but it is bottlenecked by the initial cost of transferring massive datasets over the network.

To resolve this tension, a powerful paradigm has emerged: dynamic workload partitioning. Instead of fixing the boundary between client and server at design time, modern systems evaluate query structures, server loads, and client capabilities at runtime to fluidly distribute computational tasks. This hybrid approach transforms the client from a passive rendering engine into an active, collaborative partner in query execution.

Structural Query Splitting

One way to balance the client-server load is to decompose a query based on its structural components, executing highly indexed or data-intensive operations on the server while delegating iterative or analytical operations to the client.

In the realm of interactive SQL analytics, El Gebaly et al. demonstrate this division in In-Browser Interactive SQL Analytics with Afterburner. When a user initiates data exploration, the cloud backend processes the heavy initial query to generate a compact, localized materialized view aggregated by a specific column. Once this view is transferred to the client browser, all subsequent filtering, sorting, and slicing on that column execute locally in milliseconds via an in-browser columnar engine. By paying a one-time network transfer cost for the aggregated view, the system completely bypasses the server for subsequent interactive queries.

[ Raw Data Store ] ──( Heavy Aggregation )──> [ Localized Materialized View ]
                                                           │
                                                ( Transfer to Browser )
                                                           │
                                                           ▼
                                              [ In-Browser Columnar Engine ]
                                              ( Millisecond Local Filtering )

A similar structural division applies to graph queries over the Web of Data. Traditional Linked Data Fragment (LDF) interfaces restrict the server to evaluating simple triple patterns to maximize server scalability, forcing the client to perform all join operations locally. However, as Montoya et al. demonstrate in Analysis of the Effect of Query Shapes on Performance over LDF Interfaces, this extreme client-side join delegation can severely degrade performance when query complexity or client concurrency increases.

To optimize this trade-off, the authors introduce a hybrid execution strategy in Towards Efficient Query Processing over Heterogeneous RDF Interfaces. Their system, hybridSE, dynamically routes sub-queries based on estimated result cardinality. Complex joins and highly selective patterns are routed to powerful, centralized server endpoints to exploit their indexing structures, while simple lookups and low-cardinality fragments are offloaded to client-side processing.

Web Preemption and Continuation Queries

Public data endpoints often enforce strict execution quotas or timeouts to prevent a single complex query from monopolizing server resources. In traditional setups, hitting a timeout results in a hard failure or incomplete results. Hybrid query execution re-frames timeouts as an opportunity for client-server collaboration through a mechanism known as Web preemption.

As proposed by Minier et al. in SaGe: Web Preemption for Public SPARQL Query Services, a preemptable server executes core query operators only until a strict time quantum expires. It then suspends execution, saves the operator state, and returns a partial result set along with a saved execution context to a smart client. The client is responsible for managing this context and sending a resumption request to the server.

This division of labor allows the system to guarantee complete query evaluation without allowing any single query to compromise server availability. The intelligence required to stitch these time-sliced allocations together is shifted entirely to the client:

  1. Partial Computation: Aimonier-Davat et al. extend this concept to complex graph property paths in Processing SPARQL Property Path Queries Online with Web Preemption. By combining server-side partial transitive closure computation with client-side tracking, the system avoids the massive network overhead of purely client-side query decomposition.
  2. Feature Delegation: In Continuation Queries: Embracing Timeouts on Public SPARQL Endpoints, Pham et al. introduce the PASSAGE system. Here, the smart client actively decomposes queries, delegating standard, unsupported blocks to a continuation-enabled backend while executing complex features like ordering clauses and property paths locally on the client machine.

Environmental and Hardware Adaptation

Static query plans cannot account for transient network congestion, fluctuating server loads, or highly variable client hardware capabilities. True hybrid execution must therefore adapt dynamically to the runtime environment.

In distributed storage systems, Mitchell et al. demonstrate in Balancing CPU and Network in the Cell Distributed B-Tree Store how a system can dynamically switch between client-side and server-side computation for distributed data structures. When server CPUs are bottlenecked but network bandwidth is abundant, the system offloads B-tree traversal operations to the client. Conversely, when the network is constrained, the server performs the computations internally to minimize data transmission.

From a macro-architectural perspective, Hose argues in Knowledge Graph (R)Evolution and the Web of Data that dynamic negotiation of query processing tasks between clients and servers is essential for resilient web-scale data ecosystems. Shifting sub-tasks and data fragments to clients when primary endpoints are congested maintains high system availability and throughput.

                  ┌──────────────────────────────┐
                  │   Is Server Congested or     │
                  │   is Network Constrained?    │
                  └──────────────┬───────────────┘
                                 │
                 ┌───────────────┴───────────────┐
                 ▼ YES                           ▼ NO
   [ Push Work to Client ]         [ Execute on Server ]
   • Client handles joins/paths    • Server leverages indices
   • Utilizes idle client CPU      • Minimizes network traffic

This adaptive routing logic extends beyond database queries into large-scale analytics and machine learning inference:

Why Hybrid Execution Works

Hybrid query execution succeeds because it treats the boundary between client and server as a dynamic optimization parameter rather than a static architectural constraint. By monitoring runtime variables—such as query structure, data size, server capacity, and client hardware—these systems achieve low latency and high availability. They successfully exploit the best of both worlds: the indexing power and global view of the server, and the isolated, zero-latency compute capacity of the client.

Key Foundational Work

Balancing CPU and Network in the Cell Distributed B-Tree Store (2016) — contributed 1 concept elements to this direction.
In-Browser Interactive SQL Analytics with Afterburner (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hybrid_query_execution_f48dff62,
  title = {hybrid query execution},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hybrid-query-execution/rdr_f48dff626fa94476ad9f2483463ba781},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_hybrid_query_execution_f48dff62_v1,
  title = {hybrid query execution},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hybrid-query-execution/rdr_f48dff626fa94476ad9f2483463ba781/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake