-
Notifications
You must be signed in to change notification settings - Fork 51
Fix in-process channel target doc #206
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
Conversation
Hi @Meijuh Thanks for taking the time to review the changes and give this feedback. I have grouped my replies by "topic/area". Impl concerns / doc mismatchI believe the disconnect here is that the
Right, this is not a scheme known to Note Here is the legend of names to repo as they are in my brain:
The name We think this is a fair approach because:
PTAL and let us know if this eases your concerns. Either way, these changes are correct and this PR is needed. I will merge once we close our discussion though. Filtering out services
Ahh, great point/catch. Looks like this is not currently possible. We did solve this for the client interceptors by introducing a ClientInterceptorFilter. However, on the server-side the only hook we have is I have created #207 and marked it with milestone Thanks again. -chris |
@Meijuh - looks like our friend @therepanic is interested in implementing #207 ! |
@Meijuh do you mind signing your commit so the DCO will pass the checks? |
@onobc Friday I already did a force push to include signoffs to my commits, but it seems the DCO check does not pick up the force push (or restart the check). Here https://github.com/Meijuh/spring-grpc/commits/main/ you can see my top 2 commits have been signed off. Any idea what I can do about this? About using |
Hi @Meijuh , I think you may need to rebase as well for it to pickup the changes. Take a peek at the "details" of the DCO failure and it gives some info on the rebase. If that does not work then I will dig in further. Thanks |
Signed-off-by: Jeroen Meijer <[email protected]>
Signed-off-by: Jeroen Meijer <[email protected]>
@onobc it should be good now, there was a mismatch between the email I used for signing off, and committing. |
I finally found some time to test the changes in #187 and check the docs from #194. The implementation works, however this PR shows there is a mismatch between the docs at https://github.com/spring-projects/spring-grpc/blob/main/spring-grpc-docs/src/main/antora/modules/ROOT/pages/server.adoc#inprocess-server and the implementation at https://github.com/spring-projects/spring-grpc/blob/main/spring-grpc-core/src/main/java/org/springframework/grpc/client/InProcessGrpcChannelFactory.java#L54: heading
//
should not be part of the target. I am assuming the docs are wrong, as it seems this existing approach is followed: https://yidongnan.github.io/grpc-spring-boot-starter/en/server/configuration.html.I have a question about the chosen approach though. By specifying
in-process
as a scheme, it seems as if this is a valid name resolver compliant scheme, but I could not find it at https://grpc.io/docs/guides/custom-name-resolution, nor anywhere else as far as I can see. Also I could not find a customNameResolverProvider
(https://grpc.github.io/grpc-java/javadoc/io/grpc/NameResolverProvider.html) that resolves thein-process
scheme. This meansin-process
only exists somewhat as a scheme inspring-grpc
but not in the gRPC ecosystem. This is just an observation and might confuse other devs; it could be the right approach however.As an aside; this PR also includes a fix for a typo in the docs of methods
supports(String target)
.Another question that I have; with the added support for in-process servers; is it possible to exclude binding the "Health" service? I would never perform health checks on in-process servers.