Re: [grpc-io] Compose or nest a service in another service?

2018-01-28 Thread Thomas Sörensen
Ok thank you for the good feedback. I have application and I want to 
implement some components in a more suitable language and grpc seems to be 
a good choice to connect those components.

/Thomas

Den lördag 27 januari 2018 kl. 16:15:14 UTC+1 skrev Josh Humphries:
>
> 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 <soren...@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+u...@googlegroups.com .
>> To post to this group, send email to grp...@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_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/07b01b6a-5b20-47d2-89ae-7578cfaa174a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] Compose or nest a service in another service?

2018-01-27 Thread Thomas Sörensen
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.
For more options, visit https://groups.google.com/d/optout.