Skip to content

Use cluster recommendations when creating tunnels in the Java SDK  - #677

Merged
Arun G (ArunGopinathan) merged 1 commit into
mainfrom
agopinathan/java-cluster-recommendations
Sep 3, 2026
Merged

Use cluster recommendations when creating tunnels in the Java SDK #677
Arun G (ArunGopinathan) merged 1 commit into
mainfrom
agopinathan/java-cluster-recommendations

Conversation

@ArunGopinathan

@ArunGopinathan Arun G (ArunGopinathan) commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Use the cluster recommendations API when the Java SDK creates a tunnel.
  • Authenticate recommendation requests and retry anonymously only when authentication is rejected.
  • Preserve global routing as a fallback and report the selection outcome through X-Tunnel-Cluster-Source.
  • Add deterministic coverage for recommendation results, authentication fallback, query parameters, caller-owned options, and telemetry headers.

Other Tasks:

  • If you updated the Go SDK did you update the PackageVersion in tunnels.go
  • If you updated the TS SDK did you update the dependencies in package.json for connections and management to require a dependency that is > the current published version(Found using npm view @microsoft/dev-tunnels-contracts). This will fix issues where yarn will pull the old version of packages and will cause mismatched dependencies. See example PR

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1c4ee497-a9b3-481b-860b-541eef9e9fba
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@ArunGopinathan

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@ArunGopinathan
Arun G (ArunGopinathan) merged commit a2d61b9 into main Sep 3, 2026
11 checks passed
@ArunGopinathan
Arun G (ArunGopinathan) deleted the agopinathan/java-cluster-recommendations branch September 3, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants