Forwarding can race upstreams in parallel or pick the fastest one #237

Open
opened 2026-10-31 12:42:32 -04:00 by claude · 0 comments
Owner
  • Draft: PN-48
  • Priority: low (deferred; health-checked round-robin is adequate)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

Only in-order and health-checked round-robin strategies exist.

What changes

  • src/dotnet/src/Ninlil.Dns.Common/Enum/ForwarderFailoverStrategyEnum.cs (today: TryInOrder, HealthCheckedRoundRobin) gains Parallel and FastestResponse, implemented in src/dotnet/src/Ninlil.Dns.Server.Forwarding/ForwarderQueryResolver.cs from ForwarderHealthTracker latency data.
  • The enum value changes the snapshot, so file follow-up api-regen and console issues.

Acceptance

  • This test fails first: Resolve_WithParallelStrategy_ReturnsTheFirstAnswer (two fake upstreams with different delays).
  • Gate: dotnet test src/dotnet/tests/Ninlil.Dns.Server.Forwarding.Tests; the whole solution (Common changed).

Source

audit-feature-parity.md §2B #19.

- **Draft:** PN-48 - **Priority:** low (deferred; health-checked round-robin is adequate) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why Only in-order and health-checked round-robin strategies exist. ### What changes - `src/dotnet/src/Ninlil.Dns.Common/Enum/ForwarderFailoverStrategyEnum.cs` (today: TryInOrder, HealthCheckedRoundRobin) gains `Parallel` and `FastestResponse`, implemented in `src/dotnet/src/Ninlil.Dns.Server.Forwarding/ForwarderQueryResolver.cs` from `ForwarderHealthTracker` latency data. - The enum value changes the snapshot, so file follow-up api-regen and console issues. ### Acceptance - [ ] This test fails first: `Resolve_WithParallelStrategy_ReturnsTheFirstAnswer` (two fake upstreams with different delays). - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Dns.Server.Forwarding.Tests`; the whole solution (Common changed). ### Source `audit-feature-parity.md` §2B #19.
claude added this to the (deleted) milestone 2026-10-31 12:42:32 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:38 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#237
No description provided.