Skip to content

Magnus/sample client#1860

Open
Mangern wants to merge 20 commits intomasterfrom
magnus/sample-client
Open

Magnus/sample client#1860
Mangern wants to merge 20 commits intomasterfrom
magnus/sample-client

Conversation

@Mangern
Copy link

@Mangern Mangern commented Feb 24, 2026

Create a sample java-client illustrating how a client can connect to a Vespa application, illustrating:

  • Authentication methods (mTLS, Token-based)
  • Using the Java existing FeedClient.
  • Achieving high query throughput from the client-side.

@Mangern Mangern temporarily deployed to Vespa Cloud CD March 13, 2026 11:25 — with GitHub Actions Inactive
@Mangern Mangern temporarily deployed to Vespa Cloud CD March 13, 2026 11:41 — with GitHub Actions Inactive
@Mangern Mangern temporarily deployed to Vespa Cloud CD March 13, 2026 14:51 — with GitHub Actions Inactive
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a self-contained sample Java client (with a minimal Vespa app + dataset scaffolding) to demonstrate connecting to and exercising a Vespa application, including authentication and throughput-oriented querying.

Changes:

  • Adds a Gradle-based Java client example with query, load-test, and feed modes.
  • Introduces a minimal Vespa application (services.xml + schema) to test the client against.
  • Adds Gradle wrapper/configuration and basic documentation for running the sample.

Reviewed changes

Copilot reviewed 14 out of 16 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
examples/clients/client-java/settings.gradle.kts Initializes Gradle multi-project settings for the sample client.
examples/clients/client-java/gradlew.bat Windows Gradle wrapper script for reproducible builds.
examples/clients/client-java/gradlew POSIX Gradle wrapper script for reproducible builds.
examples/clients/client-java/gradle/wrapper/gradle-wrapper.properties Pins Gradle distribution for the wrapper.
examples/clients/client-java/gradle/wrapper/gradle-wrapper.jar Gradle wrapper binary needed to run wrapper scripts.
examples/clients/client-java/gradle/libs.versions.toml Version catalog for basic dependencies.
examples/clients/client-java/gradle.properties Gradle configuration defaults for the sample.
examples/clients/client-java/app/src/main/java/com/example/VespaClient.java Implements the Java sample client (query, load test, feed) with auth options.
examples/clients/client-java/app/build.gradle.kts Declares dependencies/toolchain and app entrypoint for the sample.
examples/clients/client-java/README.md Documents how to run feed/query/load-test modes.
examples/clients/client-java/.gitignore Ignores Gradle and build outputs for the sample project.
examples/clients/client-java/.gitattributes Normalizes line endings and marks wrapper JAR as binary.
examples/clients/app/services.xml Minimal Vespa app services config to support search + document API.
examples/clients/app/schemas/passage.sd Minimal schema for the sample dataset and querying.
examples/clients/README.md Top-level README describing the sample app/dataset and deployment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +2
schema passage {
document passage {
Comment on lines +8 to +17
<nodes count="2">
</nodes>
</container>
<content version="1.0" id="content">
<min-redundancy>2</min-redundancy>
<documents>
<document type="passage" mode="index"/>
</documents>
<nodes count="2">
</nodes>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@Mangern Mangern marked this pull request as ready for review March 13, 2026 15:50
@Mangern
Copy link
Author

Mangern commented Mar 13, 2026

@bjorncs @kkraune Please review:)

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