Skip to content

Remove public API that nothing uses #644

Closed

Description

@thomhurst

Summary

Several public types and members have no caller in src/. Shipping them in the first release commits the project to supporting them.

Evidence

  • src/Relayer/Transports/PartitionScheduler.cs (public, 382 lines) and PartitionCompletionWindow: no transport uses them. Design §2.4 already says to "remove the public scheduler if no planned transport needs it."
  • Static capability stubs such as src/Relayer.Kafka/KafkaTransport.cs:6-14 (declares PauseResume, Replay) disagree with the real adapter's capabilities (src/Relayer.Kafka/KafkaProducerTransport.cs:18-24: Tombstones, MaxBatchSize). Equivalent stub classes exist for Service Bus, SQS and RabbitMQ.
  • IOutboxStore.ReadPendingAsync and RenewClaimAsync (src/Relayer/Outbox/IOutboxStore.cs:23,37) are implemented by all three stores but never called; dispatchers use internal claim methods on the concrete stores.

Proposal

Delete the scheduler and completion window, the static capability stubs and the uncalled IOutboxStore members (or make them internal) before the first release.

Found by reading the code at 02fe06f; not reproduced at runtime unless stated.

Acceptance criteria

  • Audit production, generator, sample, test and documented extension-point use before deciding what can be removed; absence of a src/ caller alone does not prove a public extension point is obsolete.
  • Remove or internalize genuinely redundant scheduler/completion APIs, static capability stubs and unused outbox members, or document concrete retained consumers. Include related options/types only when no supported caller remains.
  • Update D23/design §2.4 if removing the fallback they currently retain; keep runtime endpoint capabilities as the authoritative capability source.
  • Update affected source/tests/samples and website reference pages together; verify focused affected tests and the documentation build. Confirm package compatibility before removing any shipped public API.

Activity

  1. added
    enhancement
    area: core
    P3
    on Nov 13, 2026
  2. thomhurst commented on Nov 13, 2026

    @thomhurst
    OwnerAuthor

    Audited origin/main at 3dea7d4: the named APIs remain, and src callers are still absent outside their implementations. Added acceptance criteria requiring an extension-point/compatibility audit, coordinated tests/docs changes, and an update to D23 if removing the fallback it currently retains. Lack of an internal caller alone is insufficient evidence to remove a supported public extension point.

  3. added
    in-progress
    on Nov 13, 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

    P3area: coreenhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions