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

docs: improve grpc third party client documentation #5047

Merged
merged 12 commits into from
Aug 8, 2022
Merged

Conversation

samsja
Copy link
Contributor

@samsja samsja commented Aug 8, 2022

Context

Right now the docs to use grpc from an other language are really shallow.

docs to check for review :

What this pr do

  • explain how to communicate to the gateway with gRPC outside a python in a abstract way
  • TODO LATER add an example with an external language

@samsja samsja marked this pull request as draft August 8, 2022 07:47
@github-actions github-actions bot added size/XS area/docs This issue/PR affects the docs labels Aug 8, 2022
@samsja samsja marked this pull request as ready for review August 8, 2022 08:25
@github-actions github-actions bot added the size/S label Aug 8, 2022
@samsja samsja changed the title docs: fix number of protocol docs: improve grpc third party client documentation Aug 8, 2022
Copy link
Contributor

@JohannesMessner JohannesMessner left a comment

Choose a reason for hiding this comment

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

Some suggestions

docs/fundamentals/client/client.md Outdated Show resolved Hide resolved
docs/fundamentals/client/third-party-client.md Outdated Show resolved Hide resolved
docs/fundamentals/client/third-party-client.md Outdated Show resolved Hide resolved
docs/fundamentals/client/third-party-client.md Outdated Show resolved Hide resolved
Comment on lines +239 to +242
* Add the generated files to your project and import them in your code.

You should finally be able to communicate with your Flow using the gRPC protocol. You can find more information on the gRPC
`message` and `service` that you can use to communicate in the [Protobuf documentation](../../proto/docs.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this code that they will compile and add to their project? stubs that they can call directly? should we mention how this works or is that outside of our scope here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is out of the scope I believe. The only way to do it correctly is to

  • have a good proto documentation which explain the stubs that should be use etcc
  • have a good how to with another language

samsja and others added 4 commits August 8, 2022 13:27
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

📝 Docs are deployed on https://docs-improve-client--jina-docs.netlify.app 🎉

Copy link
Contributor

@JohannesMessner JohannesMessner left a comment

Choose a reason for hiding this comment

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

LGTM

@samsja samsja merged commit 6df83cf into master Aug 8, 2022
@samsja samsja deleted the docs-improve-client branch August 8, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs This issue/PR affects the docs size/S size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: Reference jina.proto and docarray.proto as a hint for potential external clients development.
2 participants