Re: where are the examples
We have our own system. While we would love to open source it in principle, it is currently tightly coupled to our internal datacenter and machine configurations, so we can't really release the code as-is. I personally hope that we manage to get it out eventually but I have no idea if or when it would happen. On Wed, Jul 1, 2009 at 10:18 AM, J.V. wrote: > > thanks, which product(s) does Google use internally or find most > beneficial? > > Kenton Varda wrote: > > You could look at one of the open source RPC implementations listed here: > > > > > http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
Google uses its own internal RPC implementation, and I don't think we can endorse a particular third-party one as better than the others. I'd tell you which one I personally found most beneficial, but I have no experience with any of them. Cheers, Alek On Wed, Jul 1, 2009 at 10:18 AM, J.V. wrote: > > thanks, which product(s) does Google use internally or find most > beneficial? > > Kenton Varda wrote: > > You could look at one of the open source RPC implementations listed here: > > > > > http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
thanks, which product(s) does Google use internally or find most beneficial? Kenton Varda wrote: > You could look at one of the open source RPC implementations listed here: > > http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
You could look at one of the open source RPC implementations listed here: http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations Network communication is non-trivial. Trying to demonstrate it with an example would make for a very big example of which only a few lines of code would have anything to do with protocol buffers. Worse, the example would probably only be a naive implementation not suitable for real-world use, which could lead people down the wrong path. A non-naive implementation would be big enough to be its own project, which is far too much work to put into an example. We could provide an example that integrates protocol buffers with some existing RPC implementation, but there are so many to choose from, and we would not be demonstrating much that is not already demonstrated by that RPC system's own documentation. We'd just be taking their examples and adding calls to protobuf parsing and serialization at the ends. It doesn't seem worthwhile. And yes, many people use protocol buffers for disk storage rather than networking. On Tue, Jun 30, 2009 at 3:25 PM, JavaSrvcs wrote: > > I can't imagine any other use than using it to send data over the > network and use on the other end. > In fact is this not what it was invented for (communication). > > On 30 jun, 16:07, Kenton Varda wrote: > > There are tons of resources on the internet and in books explaining how > to > > do network programming in Java. Sorry, but this is really outside the > scope > > of protocol buffers. > > > > > > > > On Tue, Jun 30, 2009 at 2:46 PM, JavaSrvcs wrote: > > > > > Is there a full compilable example (in Java) on how to do this ? > > > What sort of service would I need to be running on a server to send > > > data (and have the server receive and convert the flat byte array into > > > a Java object). > > > > > On Jun 30, 2:32 pm, Kenton Varda wrote: > > > > Protocol Buffers provides a way to convert between flat byte arrays > and > > > > structured data. This is obviously useful for network communication, > but > > > > protocol buffers does not provide any explicit networking support. > It's > > > up > > > > to you to take the byte array generated by protocol buffers and send > it > > > over > > > > the network. > > > > > > On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs > wrote: > > > > > > > I was led to believe that protocol buffers could be used for PC to > PC > > > > > communication, is there a way to do this, and if so, where can I > find > > > > > the examples? > > > > > > > The example I am looking at provided writes to a file.- Ocultar > texto de la cita - > > > > - Mostrar texto de la cita - > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
We use protobuf in Drizzle as a mechanism to serialize information into files on disk. We are also send some of the messages over the network - depending on what it is. If you need a transport mechanism, I suggest checking out setting up a gearman server (https://edge.launchpad.net/gearmand/+download) and then using the Java worker interface https://edge.launchpad.net/gearmanij to send protobuf messages around. (There are a bazillion different ways to do this, of course, this is just one we happen to be working with a lot ourselves and one which all of the pieces are available) Monty JavaSrvcs wrote: > I can't imagine any other use than using it to send data over the > network and use on the other end. > In fact is this not what it was invented for (communication). > > On 30 jun, 16:07, Kenton Varda wrote: >> There are tons of resources on the internet and in books explaining how to >> do network programming in Java. Sorry, but this is really outside the scope >> of protocol buffers. >> >> >> >> On Tue, Jun 30, 2009 at 2:46 PM, JavaSrvcs wrote: >> >>> Is there a full compilable example (in Java) on how to do this ? >>> What sort of service would I need to be running on a server to send >>> data (and have the server receive and convert the flat byte array into >>> a Java object). >>> On Jun 30, 2:32 pm, Kenton Varda wrote: Protocol Buffers provides a way to convert between flat byte arrays and structured data. This is obviously useful for network communication, but protocol buffers does not provide any explicit networking support. It's >>> up to you to take the byte array generated by protocol buffers and send it >>> over the network. On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs wrote: > I was led to believe that protocol buffers could be used for PC to PC > communication, is there a way to do this, and if so, where can I find > the examples? > The example I am looking at provided writes to a file.- Ocultar texto de > la cita - >> - Mostrar texto de la cita - > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
I can't imagine any other use than using it to send data over the network and use on the other end. In fact is this not what it was invented for (communication). On 30 jun, 16:07, Kenton Varda wrote: > There are tons of resources on the internet and in books explaining how to > do network programming in Java. Sorry, but this is really outside the scope > of protocol buffers. > > > > On Tue, Jun 30, 2009 at 2:46 PM, JavaSrvcs wrote: > > > Is there a full compilable example (in Java) on how to do this ? > > What sort of service would I need to be running on a server to send > > data (and have the server receive and convert the flat byte array into > > a Java object). > > > On Jun 30, 2:32 pm, Kenton Varda wrote: > > > Protocol Buffers provides a way to convert between flat byte arrays and > > > structured data. This is obviously useful for network communication, but > > > protocol buffers does not provide any explicit networking support. It's > > up > > > to you to take the byte array generated by protocol buffers and send it > > over > > > the network. > > > > On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs wrote: > > > > > I was led to believe that protocol buffers could be used for PC to PC > > > > communication, is there a way to do this, and if so, where can I find > > > > the examples? > > > > > The example I am looking at provided writes to a file.- Ocultar texto > > > > de la cita - > > - Mostrar texto de la cita - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
There are tons of resources on the internet and in books explaining how to do network programming in Java. Sorry, but this is really outside the scope of protocol buffers. On Tue, Jun 30, 2009 at 2:46 PM, JavaSrvcs wrote: > > Is there a full compilable example (in Java) on how to do this ? > What sort of service would I need to be running on a server to send > data (and have the server receive and convert the flat byte array into > a Java object). > > On Jun 30, 2:32 pm, Kenton Varda wrote: > > Protocol Buffers provides a way to convert between flat byte arrays and > > structured data. This is obviously useful for network communication, but > > protocol buffers does not provide any explicit networking support. It's > up > > to you to take the byte array generated by protocol buffers and send it > over > > the network. > > > > On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs wrote: > > > > > I was led to believe that protocol buffers could be used for PC to PC > > > communication, is there a way to do this, and if so, where can I find > > > the examples? > > > > > The example I am looking at provided writes to a file. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
Is there a full compilable example (in Java) on how to do this ? What sort of service would I need to be running on a server to send data (and have the server receive and convert the flat byte array into a Java object). On Jun 30, 2:32 pm, Kenton Varda wrote: > Protocol Buffers provides a way to convert between flat byte arrays and > structured data. This is obviously useful for network communication, but > protocol buffers does not provide any explicit networking support. It's up > to you to take the byte array generated by protocol buffers and send it over > the network. > > On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs wrote: > > > I was led to believe that protocol buffers could be used for PC to PC > > communication, is there a way to do this, and if so, where can I find > > the examples? > > > The example I am looking at provided writes to a file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: where are the examples
Protocol Buffers provides a way to convert between flat byte arrays and structured data. This is obviously useful for network communication, but protocol buffers does not provide any explicit networking support. It's up to you to take the byte array generated by protocol buffers and send it over the network. On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs wrote: > > I was led to believe that protocol buffers could be used for PC to PC > communication, is there a way to do this, and if so, where can I find > the examples? > > The example I am looking at provided writes to a file. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---