Skip to content

22.4 Latency-sensitive execution path #1071

Description

@determined-001

Labels: type:feature area:workers type:perf
Milestone: Phase 4 - Workers W4: latency-sensitive and vault
Effort: High
Depends on: 21.3, 22.3

Description

Enables the tier 21.3 defined and disabled. For copy-trading and liquidations,
"late" means the opportunity is gone - and §C.7 is blunt about the consequence:
catching the miss costs the same as running primary infrastructure. Earn the way
here; do not sell it before the infrastructure exists.

Acceptance criteria

  • Hot-path execution: pre-simulated, pre-signed where safe, submitted within a
    declared ledger budget
  • Hot standby so a single process restart does not blow the latency budget
  • Latency budget measured end to end - condition observed to transaction
    submitted - and published on the scorecards
  • The tier's cost is measured through 21.2 before the tier is enabled
  • Enabling the tier is a documented, reversible operational decision
  • Backpressure under burst load handled per 13.1 Backpressure and bounded memory under burst load #921 rather than a parallel
    mechanism

Implementation notes

  1. Measure before enabling. The tier's whole risk is promising a latency the
    infrastructure has not demonstrated.
  2. "Pre-signed where safe" needs a written boundary: pre-signing an action whose
    parameters depend on observed state is not safe, and the code should make the
    distinction structural.
  3. Coordinate with 13.1 Backpressure and bounded memory under burst load #921 (backpressure and bounded memory under burst load) - the
    hot path is exactly where an unbounded queue turns latency into an outage.

Affected files

  • packages/worker-core/src/hotPath/
  • packages/worker-core/src/backstop/tiers.ts
  • packages/pulse-core/src/EventEngine.ts

Metadata

Metadata

Labels

Stellar WaveDrips Wave Program - opt an issue in by applying this labelarea:workersWorker layer and worker marketplace (packages/worker-core)blockedWaiting on an upstream issuecomplexity:high200 pointstype:feature--forcetype:perf--force

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions