Lune

WWW2025Top-tier venue

ORFA: Exploring WebAssembly as a Turing Complete Query Language for Web APIs

Yuhao Gu, Chunyu Chen, Jiangsu Du, Xiaoxi Zhang, Xianwei Zhang

Abstract

Web APIs are the primary communication form for Web services, with RESTful design being the predominant paradigm. However, RESTful APIs are typically fixed once defined, causing data underor over-fetching as they can't meet clients' varying Web service needs. While semantic enriched API query languages like GraphQL mitigates this problem, they still face expressiveness limitations for logical operations such as indirect queries and loop traversals. To address this, we propose ORFA (One Request For All), the first in literature that employs WebAssembly (Wasm) as a Web API query language to achieve complete expressiveness of client requests. ORFA's key advantage lies in its use of Wasm's Turing completeness to allow clients to compose arbitrary operations within a single request, thus significantly eliminating redundant data transmission and boosting communication efficiency. Technically, ORFA provides a runtime for executing Wasm query programs and incorporates new module splitting strategies and a caching mechanism customized for integrating Wasm into Web API services, which can enable lightweight code transfer and fast request responses. Experimental results on a realistic testbed and popular Web applications show that ORFA effectively reduces latency by 18.4% and network traffic by 24.5% on average, compared to the state-of-the-art GraphQL.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Exploring the Use of WebAssembly in HPC cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 citations
  2. WiProg: A WebAssembly-based Approach to Integrated IoT ProgrammingBorui Li, Wei Dong, Yi GaoINFOCOM 2021 · 36 citations
  3. Exploring the Use of WebAssembly in HPCMohak Chadha, Nils Krueger, Jophin John, Anshul Jindal et al.PPoPP 2023 · 16 citations
  4. A principled approach to GraphQL query cost analysisAlan Cha, Erik Wittern, Guillaume Baudart, James C. Davis et al.FSE 2020 · 15 citations
  5. VectorVisor: A Binary Translation Scheme for Throughput-Oriented GPU AccelerationSamuel Ginzburg, Mohammad Shahrad, Michael J. FreedmanUSENIX ATC 2023 · 6 citations

Related papers

  1. GraphQLify: Automated and Type Safety-Preserving GraphQL API AdoptionSaleh Amareen, Arif Rahman, Sazzadur Rahaman, Amiangshu BosuFSE 2026
  2. Two Mechanisations of WebAssembly 1.0Conrad Watt, Xiaojia Rao, Jean Pichon-Pharabod, Martin Bodin et al.FM 2021 · 32 citations
  3. Multi-modal Learning for WebAssembly Reverse EngineeringHanxian Huang, Jishen ZhaoISSTA 2024 · 1 citation
  4. Beyond Static Endpoints: Tool Programs as an Interface for Flexible Agentic Web ServicesMugeng Liu, Shuoqi Li, Yixuan Zhang, Yun MaICML 2026
  5. Hierarchical Integration of WebAssembly in Serverless for Efficiency and InteroperabilityMohammadamin Baqershahi, Changyuan Lin, Visal Saosuo, Paul Chen et al.NSDI 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines