Skip to content

perf(http): schedule native GetTask ingress on the dispatcher pool - #337

Merged
MisterVVP merged 3 commits into
perf/grpc-client-streamingfrom
perf/http-get-task-ingress
Nov 20, 2026
Merged

MisterVVP merged 3 commits into
perf/grpc-client-streamingfrom
perf/http-get-task-ingress

Conversation

@MisterVVP

Copy link
Copy Markdown
Owner

Summary

  • Route canonical native HTTP/JSON GetTask ingress onto the dispatcher pool owned by AsyncRuntime. Requests start through the existing queued per-request strand.
  • Keep JSON-RPC, streams, and other REST routes on the listener application pool.
  • Drain borrowed ingress callbacks during listener join. Cover route eligibility and shutdown with focused tests.

Authorship and AI usage

  • Contains substantive content generated by an AI agent

Testing

The prototype passed 38 focused tests. The seven paired Release repetitions produced 98 result rows with zero errors. The comparison used an in-memory store, the same async unary client, fixed CPU placement, a 250 ms warmup, and three-second timed runs.

Workload Result
HTTP/JSON GetTask, concurrency 1 Paired median p50 improved 17.79 µs, with gains in 7/7 pairs
HTTP/JSON GetTask, concurrency 64 Throughput +0.41%, p99 +4.47%
JSON-RPC GetTask, concurrency 64 Throughput −0.25%, p99 −0.81%
gRPC GetTask, concurrency 64 Throughput +3.52%, p99 −14.31%
Mixed finite SSE Throughput +7.78%, p99 −12.28%
Mixed HTTP/JSON GetTask Throughput −3.32%, p99 −6.00%
Bounded HTTP/JSON task creation Throughput −1.89%. Median p99 across runs +17.31%. Median paired p99 change −2.4%, with increases in 3/7 pairs.

The benchmark results are from the existing prototype runs. Full validation is deferred to CI.

@MisterVVP MisterVVP added the AI agent AI agent contribution label Nov 19, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP added the performance Performance improvement related tasks based on benchmark results. Performance tests changes. label Nov 19, 2026
@MisterVVP MisterVVP self-assigned this Nov 19, 2026
@MisterVVP
MisterVVP merged commit 5202055 into perf/grpc-client-streaming Nov 20, 2026
23 checks passed
@MisterVVP
MisterVVP deleted the perf/http-get-task-ingress branch November 20, 2026 06:52
MisterVVP added a commit that referenced this pull request Nov 25, 2026
## Changes

- Optimize async gRPC client streaming and HTTP/JSON + JSON-RPC request
handling.
- Improve async dispatcher scheduling, cancellation, streaming and
response lifecycle handling.
- Include the native HTTP ingress improvements already reviewed in #337
and #338.
- Add targeted tests and performance benchmarks; fix related protocol
compatibility issues.

## Verification

The identical head commit (`355db351f7e1161fdffad55e2f2baf33d8e5fe8a`)
passed the CI, TCK Conformance, CodeQL, Docs, Tutorials and Commit
messages workflows on #334: [CI
#1571](https://github.com/MisterVVP/a2a-cpp/actions/runs/44828943977).

**Policy note:** the diff includes the contributor TCK-gate change from
#338 (100% mandatory compliance → no regression), which should be
reviewed independently of performance improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution performance Performance improvement related tasks based on benchmark results. Performance tests changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant