Skip to content

[Performance]: Decompose push-notification fan-out and callback performance scenarios #163

Closed

Description

@MisterVVP

Proposal

Problem

The in-process performance driver currently implements both:

  • PushNotify_ManyConfigsOneTaskUpdate
  • PushDelivery_CallbackLatency

by calling the same NotifyPushConfigs function.

Every timed operation currently:

  1. creates a task;
  2. creates eight push-notification configurations;
  3. sends a task update;
  4. lists the task's configurations;
  5. invokes delivery callbacks.

This means PushDelivery_CallbackLatency does not isolate callback latency, and the two scenarios are effectively duplicate end-to-end workloads under different names.

The latest PostgreSQL rows show approximately 9–11 ms p95 and large concurrency-4 tails, but the current result cannot identify whether time is spent in task creation, configuration inserts, config lookup, transactions, connection-pool waits, payload construction, or callback invocation.

Goal

Make push-performance rows distinct and attributable while retaining one end-to-end fan-out scenario.

Scope

  • Move fixture creation outside the measured operation where the scenario is intended to measure delivery.
  • Keep an explicit end-to-end scenario that includes realistic store lookup and delivery fan-out.
  • Add component measurements for:
    • push-config lookup/list only;
    • payload construction, if non-trivial;
    • callback delivery loop with a preloaded config set;
    • optional PostgreSQL config insert/setup as a separate row rather than hidden setup.
  • Parameterize or report fan-out count.
  • Report successful and failed delivery counts accurately.
  • Preserve in-memory and PostgreSQL coverage.
  • Avoid real network callbacks in this focused in-process decomposition.

Suggested scenario split

  • PushNotify_EndToEndManyConfigs
  • PushConfig_ListManyConfigs
  • PushDelivery_CallbackFanout
  • optional PushConfig_CreateMany if configuration-write cost needs explicit coverage

Acceptance criteria

  • PushDelivery_CallbackLatency no longer creates tasks or push configs in the measured region.
  • The callback scenario measures a pre-seeded fixed fan-out.
  • The end-to-end scenario remains available under an unambiguous name.
  • In-memory and PostgreSQL reports contain the new rows.
  • Scenario-specific counters reflect actual configs and callbacks.
  • Tests prove setup is outside the timed operation for decomposed rows.
  • Documentation explains what each row includes.
  • Performance smoke and repository validation pass.

Evidence

Latest CI run 29840589229, artifact 8499875367:

  • In-memory callback p95: approximately 0.09 ms at c1 and 1.53 ms at c4.
  • PostgreSQL callback p95: approximately 9.80 ms at c1 and 10.70 ms at c4.
  • PostgreSQL callback c4 max: approximately 9.07 seconds.

These values are intentionally not treated as an SDK optimization target until the timed work is decomposed.

Activity

  1. added
    performance
    on Jul 22, 2026
  2. self-assigned this
    on Jul 23, 2026
  3. moved this from Todo to In Progress in a2a-cpp SDK Roadmapon Jul 23, 2026
  4. linked a pull request that will close this issueDecompose push performance scenarios #170on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

performance

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions