The question could be asked about either protobuf or gRPC with different answers.
The protobuf IDL that does *not* allow combining/composing services this way. A single service can only enumerate methods. You cannot nest services inside others. However, gRPC does support such composition -- in a way -- by letting you expose multiple services from a single server. In fact, you could have a single server object that implements all of the protobuf service interfaces. So you are effectively using an implementation language (not protobuf) to compose the services, and then exposing all of the interfaces from a single gRPC server. ---- *Josh Humphries* jh...@bluegosling.com On Sat, Jan 27, 2018 at 3:22 AM, Thomas Sörensen <sorense...@gmail.com> wrote: > Not sure if this is gRPC question or a protocol buffer questions but I try > here. > > I know that you can compose or nest messages in other messages and import > messages from other .proto files and I wonder if it is possible to do the > same for the service definition? If it is not possible now is it something > that is planned to support in the future? > > I read that is possible in Apache Thrift so perhaps you have had any > discussions on about supporting that? > > Best regards > Thomas > > -- > 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 grpc-io+unsubscr...@googlegroups.com. > To post to this group, send email to grpc-io@googlegroups.com. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/035d13e9-5b99-470f-87e2-2c67725d64ec%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/035d13e9-5b99-470f-87e2-2c67725d64ec%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAO78j%2B%2Bgd6P7goM96Ozmd5zWmGHEeAyAt82j32xzw6ih7mXr2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.