paper-with-me

Papers

Learning GraphQL Query Costs (Extended Version)

2021-08-25 · Georgios Mavroudeas, Guillaume Baudart, Alan Cha, Martin Hirzel, Jim A. Laredo, Malik Magdon-Ismail, Louis Mandel, Erik Wittern

GraphQL is a query language for APIs and a runtime for executing those queries, fetching the requested data from existing microservices, REST APIs, databases, or other sources. Its expressiveness and its flexibility have made it an attractive candidate for API providers in many industries, especially through the web. A major drawback to blindly servicing a client's query in GraphQL is that the cost of a query can be unexpectedly large, creating computation and resource overload for the provider, and API rate-limit overages and infrastructure overload for the client. To mitigate these drawbacks, it is necessary to efficiently estimate the cost of a query before executing it. Estimating query cost is challenging, because GraphQL queries have a nested structure, GraphQL APIs follow different design conventions, and the underlying data sources are hidden. Estimates based on worst-case static query analysis have had limited success because they tend to grossly overestimate cost. We propose a machine-learning approach to efficiently and accurately estimate the query cost. We also demonstrate the power of this approach by testing it on query-response data from publicly available commercial APIs. Our framework is efficient and predicts query costs with high accuracy, consistently outperforming the static analysis by a large margin.

📄 PDF Abstract BibTeX arXiv:2108.11139

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Enhancing GraphQL Security by Detecting Malicious Queries Using Large Language Models, Sentence Transformers, and Convolutional Neural Networks

2025-08-14 · Irash Perera, Hiranya Abeyrathne, Sanjeewa Malalgoda, Arshardh Ifthikar arxiv

GraphQL's flexibility, while beneficial for efficient data fetching, introduces unique security vulnerabilities that traditional API security mechanisms often fail to address. Malicious GraphQL queries can exploit the la…

Adaptations of AI models for querying the LandMatrix database in natural language

2024-12-17 · Fatiha Ait Kbir, Jérémy Bourgoin, Rémy Decoupes, Marie Gradeler 외

The Land Matrix initiative (https://landmatrix.org) and its global observatory aim to provide reliable data on large-scale land acquisitions to inform debates and actions in sectors such as agriculture, extraction, or en…

Prompt EngineeringRAG

SAGAI-MID: A Generative AI-Driven Middleware for Dynamic Runtime Interoperability

2026-03-30 · Oliver Aleksander Larsen, Mahyar T. Moghaddam arxiv

Modern distributed systems integrate heterogeneous services, REST APIs with different schema versions, GraphQL endpoints, and IoT devices with proprietary payloads that suffer from persistent schema mismatches. Tradition…

Semantic bSDD: Improving the GraphQL, JSON and RDF Representations of buildingSmart Data Dictionary

2023-06-25 · Linked Data in Architecture and Construction (LDAC 2023) 2023 6 · Vladimir Alexiev, Mihail Radkov, Nataliya Keberle

The buildingSmart Data Dictionary (bSDD) is an important shared resource in the Architecture, Engineering, Construction, and Operations (AECO) domain. It is a collection of datasets ("domains") that define various classi…

Application of Methods for Syntax Analysis of Context-Free Languages to Query Evaluation of Logic Programs

2014-05-15 · Heike Stephan

My research goal is to employ a parser generation algorithm based on the Earley parsing algorithm to the evaluation and compilation of queries to logic programs, especially to deductive databases. By means of partial ded…