Integration of gRPC server and client with message broker -- custom Channel or ChannelInterface

353 views
Skip to first unread message

whe...@gmail.com

unread,
Jul 5, 2018, 3:06:50 PM7/5/18
to grpc.io
Greetings,

I am interested in integrating gRPC with a message broker.  I've started looking at Channel and Channelnterface as places to re-implement the transport, but I have no idea if this is a fruitful approach. The queue APIs really boil down to some very simple concepts (I'm using Buffer as a placeholder for "array of bytes"):

Client:
    Buffer* call(Buffer* request);
Server:
    void  RunService(Handler* handler):
where Handler has a callback:
    class Handler {
      virtual Buffer* handler(Buffer* request) = 0;
   }

Any advice?  

Thanks
john lilley

whe...@gmail.com

unread,
Jul 5, 2018, 5:36:58 PM7/5/18
to grpc.io
To clarify, I mean that I want to use a message-broker API (e.g. JMS) as the "transport" for a web service server and client stubs, effectively replacing HTTP.
john 

Benjamin Krämer

unread,
Jul 9, 2018, 8:37:25 AM7/9/18
to grpc.io
Maybe it's better to just use ProtoBuf over JMS then? GRPC is mostly the HTTP stuff. You can just create your own code generator for the services based on the grpc-plugin: https://github.com/grpc/grpc/tree/master/src/compiler

John Lilley

unread,
Jul 9, 2018, 9:07:26 AM7/9/18
to falco...@gmail.com, grp...@googlegroups.com
Thanks! That's kind of the road I was headed down already, although I haven't looked into the grpc-plugin.
john

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/dIX7XReN434/unsubscribe.
To unsubscribe from this group and all its topics, 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/7ba024f5-5bfd-4c16-8962-e6f0be3cbcdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Lilley

unread,
Jul 9, 2018, 1:09:01 PM7/9/18
to Benjamin Krämer, grp...@googlegroups.com
Huh... where is the java code generator?
john

Benjamin Krämer

unread,
Jul 9, 2018, 1:16:07 PM7/9/18
to grp...@googlegroups.com
Java has a separate repository. You find the compiler here: https://github.com/grpc/grpc-java/tree/master/compiler/src/java_plugin/cpp

You can find a short explanation here:
Reply all
Reply to author
Forward
0 new messages