goprotobuf VS gRPC

Compare goprotobuf vs gRPC and see what are their differences.

goprotobuf

Go support for Google's protocol buffers (by golang)

gRPC

The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) (by grpc)
Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
goprotobuf gRPC
9 90
8,459 34,389
1.6% 1.7%
1.0 9.9
3 months ago 1 day ago
Go C++
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

goprotobuf

Posts with mentions or reviews of goprotobuf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-12.
  • Passing large amounts of data between processes via a file?
    1 project | reddit.com/r/golang | 24 Mar 2022
    The classic answer is protobufs. You can serialize out to binary format.
  • 2022-01-11 gRPC benchmark results
    3 projects | reddit.com/r/grpc | 12 Jan 2022
    Seems like go is pretty middle of the road. I can only guess as to why but it probably has to do with heavy usage of pointers and reflection which are much slower than other implementations. Gogo/protobuf (RIP) solved this performance with code generation, but the the official go protobuf implementation has essentially eschewed it. I do wonder how the benchmark would look using the new vitess proto library for Go (which has many of the benefits of gogo but with active development and an API built on top of the Google one)
  • A complete yet beginner friendly guide on how to secure Linux
    17 projects | reddit.com/r/linux | 4 Jun 2021
    go get github.com/golang/protobuf/protoc-gen-go
    17 projects | reddit.com/r/linux | 4 Jun 2021
  • A new ProtoBuf generator for Go
    7 projects | news.ycombinator.com | 3 Jun 2021
    Maybe I'm missing something, but my read of [golang/protobuf#364](https://github.com/golang/protobuf/issues/364) was that the re-organization in protobuf-go v2 was allow for optimizations like gogoprotobuf to be developed without requiring a complete fork. I totally understand that the authors of gogoprotobuf do not have the time to re-architect their library to use these hooks, but best I can figure this generator does not use these hooks either. Instead it defines additional member functions, and wrappers that look for those specialized functions and fallback to the generic ones if not found.

    I am thinking about stuff like the [ProtoMethods](https://pkg.go.dev/google.golang.org/[email protected]/reflec...) API.

    I wonder why not? Did the authors of the vtprotobuf extension not want to bite off that much work? Is the new API not sufficient to do what they want (thus failing some of the goals expressed in golang/protobuf#364?

  • How to Auto Generate JavaScript code using GO
    2 projects | reddit.com/r/golang | 9 May 2021
    In this case try approach with line by line generation. Very much like what protoc-gen-go does for Go code: https://github.com/golang/protobuf/blob/ae97035608a719c7a1c1c41bed0ae0744bdb0c6f/protoc-gen-go/grpc/grpc.go#L142, need to implement this kind of generator yourself.
  • Writing a code generator in Go
    3 projects | reddit.com/r/golang | 26 Apr 2021
    Something like this: https://github.com/golang/protobuf/blob/master/internal/gengogrpc/grpc.go
  • The State of Go Plugins
    5 projects | dev.to | 18 Feb 2021
    The difference to the client-server solution is subtile when it comes to the details in implementation. protoc-gen-go and other plugins in the Protocol Buffers ecosystem use this approach.

gRPC

Posts with mentions or reviews of gRPC. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-04.
  • Intro to gRPC
    1 project | reddit.com/r/grpc | 25 May 2022
    There are examples in several languages here: https://github.com/grpc/grpc/tree/master/examples. That directory looks a bit scarier than it is because each language typically implements several servers to illustrate different concepts. A single server in that directory is typically about one source file and same with a single client.
  • gRPC: A high performance, open source universal RPC framework
    1 project | news.ycombinator.com | 21 May 2022
  • backend for iot task scheduling
    1 project | reddit.com/r/flutterhelp | 4 May 2022
  • Build a full-stack TypeScript app using tRPC and React
    5 projects | dev.to | 4 May 2022
    You may already be familiar with the remote procedure call framework gRPC. Given the similarity in naming, you might be inclined to believe that tRPC is somehow related to it, or does the same or a similar thing. However, this is not the case.
  • Let's build a simple asynchronous Web3 client for Ethereum blockchain in python
    2 projects | dev.to | 24 Apr 2022
    Ethereum has a very well defined set of methods that can be used to interact with the blockchain from external systems (probably from our current Web 2.0 systems). Ethereum exposes these functionalities over JSON-RPC 2.0 protocol. In brief, JSON-RPC is a light-weight data interchange protocol built on top of application layer protocols like HTTP and Web Sockets. Using JSON-RPC we specify the method we want to invoke and the list of parameters to be passed, the method is then executed by the Ethereum's JSON-RPC server to which we have connected and returns the output as JSON which can be consumed by the caller. When compared to gRPC and other known RPC protocols JSON-RPC is relatively simple and uses plain text JSON which is more readable and easily understandable. We can see the list of methods provided by Ethereum blockchain via JSON-RPC protocol here.
  • Calling C++ from nodejs
    3 projects | reddit.com/r/cpp_questions | 20 Apr 2022
    You can do this by sending socket connections, or use a library like https://grpc.io/.
  • How to detect breaking changes and lint Protobuf automatically using Gitlab CI and Buf
    4 projects | dev.to | 2 Apr 2022
    Protobufs are most commonly used in RPC services for inter-service communication. Their usage is also growing for public-facing interfaces, and recently they have been adopted in tools such as Apache Kafka.
  • Everyone in the same team need to used the same language for 361?
    1 project | reddit.com/r/OSUOnlineCS | 1 Apr 2022
  • When to use GraphQL, gRPC, REST, and Webhooks
    2 projects | dev.to | 30 Mar 2022
    When it comes to architecting an application, developers have a wide range of client-server communication protocols to choose from. It’s pretty popular across modern apps to use GraphQL, gRPC, REST, and Webhooks. Depending on the needs of your application, each protocol can offer different benefits.
  • Configuring GRPC keepalive
    1 project | reddit.com/r/grpc | 28 Mar 2022
    So, a keep-alive operation consists of 4 packets, all four are 68 bytes long; eg. one keep-alive operation is 272 bytes long. There are 86400 seconds in a day, so 86400/15 = 5760 keep-alive operations are done in a day; it means 5760*272 = 1 566 720 bytes ~ 1.5 MB/day! My whole month data usage could be that much, not my daily. As https://www.emnify.com/pricing: 1 MB/month is around 1 EUR/month/device, 50 MB is 2.65 EUR/month/device. So, I've tried to set the keep-alive options on client side: conn, err := grpc.Dial(*addr, grpc.WithInsecure(), grpc.WithKeepaliveParams(keepalive.ClientParameters{Time: 60 * time.Second, Timeout: 5 * time.Second, PermitWithoutStream: true})) But after 3 minutes the connection is dropped. The keep-alive documentation (https://github.com/grpc/grpc/blob/master/doc/keepalive.md and https://pkg.go.dev/google.golang.org/grpc/keepalive) is contradictory.

What are some alternatives?

When comparing goprotobuf and gRPC you can also consider the following projects:

ZeroMQ - ZeroMQ core engine in C++, implements ZMTP/3.1

Apache Thrift - Apache Thrift

Cap'n Proto - Cap'n Proto serialization/RPC system - core tools and C++ library

nanomsg - nanomsg library

rpclib - rpclib is a modern C++ msgpack-RPC server and client library

zeroRPC - zerorpc for python

RPyC - RPyC (Remote Python Call) - A transparent and symmetric RPC library for python

asio-grpc - Asynchronous gRPC with Asio/unified executors

bloomrpc - GUI Client for GRPC Services

awesome-json-rpc - Curated list of JSON-RPC resources.

eCAL - eCAL - enhanced Communication Abstraction Layer. A fast publish-subscribe cross-plattform middleware using Shared Memory and UDP.

Nameko - Python framework for building microservices