Repository navigation
Description
Problem
SendMessage_FollowUpExistingTask has different semantics in the two performance drivers:
- The in-process driver seeds one
existing_task_id_and reuses it for every measured operation, continuously growing the same task's history. - The wire driver creates a fresh task for each measured operation and sends exactly one follow-up to that task.
The resulting rows are not comparable. The in-process row increasingly measures a hot task with growing history, while the wire row measures the common one-follow-up case.
This also makes the in-process result dependent on request count and operation ordering rather than a fixed documented workload.
Goal
Measure common follow-up latency and history-growth stress as separate, deterministic scenarios.
Scope
- Change the normal follow-up scenario so every measured operation starts from an equivalent fixed task state.
- Add a separate explicit history-depth or hot-task scenario.
- Make history depth configurable or use clearly named fixed depths.
- Report history depth in scenario metadata or the scenario name.
- Align in-process and wire semantics where both claim to represent the same scenario.
- Keep fixture setup outside the measured region when measuring only follow-up processing.
Suggested scenarios
SendMessage_FollowUpExistingTask— fresh seeded task with one measured follow-up.SendMessage_FollowUpAtHistoryDepth/<N>— fixed pre-seeded history depth.- Optional
SendMessage_HotTaskConcurrentFollowUps— explicit contention/stress scenario with clearly defined semantics.
Acceptance criteria
- In-process and wire
SendMessage_FollowUpExistingTaskrows represent equivalent task state. - The normal scenario does not grow one task indefinitely across all measured operations.
- History-growth behavior has a separate explicit scenario.
- Request count no longer silently changes the workload's initial history depth.
- Documentation describes setup and measured work.
- Tests verify deterministic task/history setup.
- Performance reports remain machine-readable and distinguish the scenarios.
- Performance smoke and repository validation pass.
Evidence
In the latest CI artifact, in-process p95 is much higher than wire rows, particularly for PostgreSQL and concurrency 4. The source shows that the workloads are structurally different, so the gap must not be interpreted as transport overhead or a specific SDK bottleneck until the scenarios are aligned.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity