Protocl under "Protocol Buffers"

33 views
Skip to first unread message

Fred chen

unread,
Sep 30, 2011, 5:14:33 AM9/30/11
to Protocol Buffers
I want to know the communicate protocl under "Protocol Buffers". My
application calls for High performance, and the HTTP protocol may
cause problem. I know the RpcChannel is based on HTTP, and I want to
know if the HTTP is the basic of "Protocol Buffers".
Thanks

Benjamin Wright

unread,
Sep 30, 2011, 2:54:20 PM9/30/11
to Protocol Buffers
Any data transfer mechanism can be used with protocol buffers.

I have used JMS, TCP, UDP, 'flat files', etc... it's just a matter of
grabbing the bytes (m.build().toByteArray() in java) and throwing them
on the appropriate stream. You can also output the protocol buffer
directly onto the output stream (m.build().writeTo(OutputStream) or
m.build().writeDelimitedTo(OutputStream))

Marc Gravell

unread,
Sep 30, 2011, 6:14:53 PM9/30/11
to Fred chen, Protocol Buffers
Protocol buffers itself only (AFAIK) describes the serialisation format; it does not define RPC. If you add an http-based RPC stack, then it will be http-based, but that is nothing to do with protocol buffers, you could (and many do) use raw sockets just as well.

Marc

> --
> You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
> To post to this group, send email to prot...@googlegroups.com.
> To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
>

Reply all
Reply to author
Forward
0 new messages