Java: Does anyone have an example project using Google protocol buffers over a network?

I'm not sure how to send messages with google protocol buffers to run, so the example of how to create a message, send it, and restore the message will be awesome.

+3
source share
3 answers

The result of protobuf is an array of bytes that can be transferred over many protocols, such as HTTP (using POST). If you need a low-level RPC engine, many RPC plugins are available. Here you can find the list here . You can also get a usage example on their respective sites.

0
source

, Spring Boot:

http://spring.io/blog/2015/03/22/using-googl...

If you use JavaScript as part of your customization in the interface, there are some errors, such as jQuery, trying to de-serialize your data under the hood, etc. It is better to use the XMLHttpRequest and arraybuffer types, if so.

0
source

Source: https://habr.com/ru/post/1786250/


All Articles