Skip to content

Send transport SPI: outgoing messages and native configurators #60

Closed

Description

@thomhurst

Implement the send-side transport SPI from D23 and design §2.4, unblocking #5.

Scope and owned files:

  • Add OutgoingMessage in src/Relayer/Sending with destination, serialized body, named headers, stable envelope metadata, ordering key, delivery time, and native send options. Document buffer ownership across awaited sends.
  • Add single and batch send methods to src/Relayer/Transports/ITransport.cs. Native adapters must preserve native send semantics and observe cancellation.
  • Update src/Relayer/Sending/SendOptions.cs to store native delegates without wrapping closures and apply them through ApplyNative<TNative>. Reject mismatched types clearly and expose a guard that rejects native delegates before outbox enlistment.
  • Unit tests for the shared outgoing shape, native configuration, and outbox guard; MemoryDiagnoser benchmarks for any changed steady-state work.

Acceptance: direct sends, outbox dispatch, scheduled copies, and dead-letter copies can use the same send contract; applying preconfigured native callbacks allocates 0 B; no per-message reflection or Type lookup. Sender routing and transaction detection remain in #5 and outbox implementation issues.

Activity

  1. added
    phase-0: core
    area: core
    area: transport
    P0
    on Nov 1, 2026
  2. added
    in-progress
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0area: corearea: transportin-progressphase-0: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions