arXiv · 2607.01246
Measure Once, Model Everywhere: Model-Based Per-Request Resource Consumption for HTTP
Abstract
Recent proposals for HTTP-based sustainability disclosure focus on \textbf{what} environmental information should be transmitted at the protocol boundary, for example through response headers, but leave open the practical question of \textbf{how} such per-request values can be generated in realistic deployments. This paper addresses that implementation gap. We present a model-based approach for estimating resource consumption and $CO_2e$ per HTTP request without requiring fine-grained production power telemetry. The approach benchmarks endpoints offline under controlled conditions, derives compact endpoint-specific energy models from observable request features, and evaluates these models online at the HTTP server boundary. We implement this mechanism as an nginx extension that loads a JSON model registry and emits per-request metadata for energy, grid intensity, embodied emissions, and total request-level impact. We show that heterogeneous request classes can be represented with constant, linear, and piecewise models, and that the same approach extends to endpoints whose dominant cost driver is only visible at the application layer through inputs such as token counts. Our evaluation indicates that the approach is operationally feasible and introduces only low runtime overhead.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Geerd-Dietger Hoffmann, Verena Majuntke. 2026-06-01. Measure Once, Model Everywhere: Model-Based Per-Request Resource Consumption for HTTP. https://arxiv.org/abs/2607.01246
Cite the original work for its findings. Save a collection to share your selection of sources.