Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIKA-4181 - Tika Pipes Grpc Server #1702

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft

TIKA-4181 - Tika Pipes Grpc Server #1702

wants to merge 38 commits into from

Conversation

nddipiazza
Copy link
Contributor

Add an Apache Tika GRPC Server

@nddipiazza nddipiazza changed the title Tika 4181 grpc TIKA-4181 - Tika Pipes Grpc Server Mar 29, 2024
}

message CreateFetcherRequest {
string name = 1;
Copy link

Choose a reason for hiding this comment

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

Must name be unique across all initialized fetchers? name to me implies it's a descriptive label, is this more of an ID?

Use case I am thinking of if I create multiple fetchers with the same class. Right now I would create a unique name for each one. Is that the correct expectation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes we are using "name" as the ID. @tballison any thoughts here? maybe we should rename that for 3.x



service Tika {
rpc CreateFetcher(CreateFetcherRequest) returns (CreateFetcherReply) {}
Copy link

Choose a reason for hiding this comment

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

Could we document these RPCs to understand high level behaviour? For example, if I try to create a fetcher which already exists, what is the expected reply? Is it an error response on the RPC, will CreateFetchReply have error identifying information?

If CreateFetcher was made idempotent, could we collapse these into a single RPC (UpdateFetcher), which either creates, or updates, or noops (no changes despite call) to the Fetcher?

Don't want to over complicate the Tika side of course, but curious if we can improve the client interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants