Efficiency
Thanks to the use of HTTP/2 and the binary messaging, gRPC is incredibly quick and capable of supporting a massive throughput. The option for streaming data to the client is a fantastic feature. From a mobile perspective, the client only needs to maintain a single connection to the server, which is efficient, and the server can push data updates to this open connection. For an example of how this could work, have a look at some code I created for a talk at GoLang UK (https://github.com/gokitter). This implements a simple server and an Android client that receives streaming updates. Rather than using native gRPC clients on Android, I geeked out using GoMobile to compile a native framework that was written in Go, and then used this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access