Now that (as per the linked thread) this has been fixed, is there any documentation about how to do multiple services on one port, post PR-6874?
On Wednesday, January 13, 2016 at 4:05:15 PM UTC-5, Nathaniel Manista wrote: > > On Wed, Jan 13, 2016 at 11:42 AM, <[email protected] <javascript:>> > wrote: > >> Similar to this thread -> >> https://groups.google.com/forum/#!msg/grpc-io/iag1a5RPez0/5QNi3F9GuOYJ >> Is it possible to run multiple services (or servicers) on a single >> process? >> >> It is of course possible to write a single service and add all the >> methods there. However I have about 50 methods (and would have more in the >> future) and it'd be nice to separate them into different proto files and >> implementations. Same way it is done in Java with `addService`. Very much >> like packages in Java / modules in python. >> >> server = NettyServerBuilder.forPort(port).sslContext(sslContext) >> .addService(GreeterGrpc.bindService(new GreeterImpl())).build() >> .start(); >> >> It's possible but because it's not directly supported by the generated > code it's somewhat awkward. Having the generated code support it the use > case is something that we intend to do and are tracking in this issue > <https://github.com/grpc/grpc/issues/4418>; this comment in the issue > <https://github.com/grpc/grpc/issues/4418#issuecomment-171056925> lays > out the workaround currently required. > -Nathaniel > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/fd7f6149-4aae-4c85-883c-663ecbeda42e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
