goprotobuf
buf
Our great sponsors
goprotobuf | buf | |
---|---|---|
10 | 15 | |
8,527 | 4,764 | |
0.6% | 8.8% | |
0.8 | 9.7 | |
8 days ago | 3 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
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
- Protobuf - Go support for Google's protocol buffers
-
Passing large amounts of data between processes via a file?
The classic answer is protobufs. You can serialize out to binary format.
-
2022-01-11 gRPC benchmark results
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
go get github.com/golang/protobuf/protoc-gen-go
-
A new ProtoBuf generator for Go
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
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
Something like this: https://github.com/golang/protobuf/blob/master/internal/gengogrpc/grpc.go
-
The State of Go Plugins
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.
buf
-
Compiling proto server side
Yeah I don't like that as well for professional solutions I like using https://buf.build/
-
What web framework do you prefer and why?
Big fan of gRPC-gateway. Not a big fan of protocol buffers however. That being said, https://buf.build/ makes them manageable and was built by the same guys doing gRPC-gateway
-
Vending and Generating Protobuf Repo to multiple clients
You could also take a look at https://buf.build These guys are working on a protobuf schema registry. I haven’t tried it yet but looks promising.
-
How to detect breaking changes and lint Protobuf automatically using Gitlab CI and Buf
To maintain backward/forward compatibility in Protobufs, every change to the schema must be thoroughly code-reviewed and tested for compliance. Humans are prone to making errors. Therefore, several tools have emerged to help with the process, most notably Buf.
-
The Future of Kubernetes
Everyone I've worked with save a few that experienced protobufs with extentions immediately finds the benefit once they use them.
However I have yet to convince anyone at an org that isn't already using them that they will change things for the better.
Schema once, code everywhere. It is really nice.
Have you seen Buf? https://buf.build/
-
Understanding RPC (tour of API protocols, gRPC nodejs walkthrough, and Apache Arrow Flight)
There is a company Buf which provides the Buf Schema Registry.
-
Multiple Proto file changes and .pb.go file mess in VCS
No need for protoc, just use buf.
-
Go and gRPC is just so intuitive. Here's a detailed full-stack flow with gRPC-Web, Go and React. Also, there is a medium story focused on explaining how such a setup might boost efficiency and the step-by-step implementation.
That was a fun read! Have you checked out https://buf.build/ by any chance? It simplifies a lot of the weird/annoying protoc stuff and enforces a schema that other tools can utilize. It also has pattern matching and all that + supports the usual proto plugins.
-
Introducing the Buf Schema Registry: a platform for managing Protocol Buffers dependencies
Hello! I'm the head of developer experience at [Buf](https://buf.build) and I wanted to introduce our schema registry here. I know that this forum tends to revolve around "old-fashioned" REST approaches and GraphQL but I thought I'd inject something a little different. If you've found Protocol Buffers intriguing in the past but weren't satisfied with the tools available, it might be a good time to dip back into the ecosystem. More than happy to answer any questions and address feedback.
-
Introducing hRPC: a simple RPC system for user-facing APIs
In order to get Protobuf generation working, we'll use Buf, a tool specifically built for building protocol buffers. Start by making the following buf.gen.yaml:
What are some alternatives?
prototool - Your Swiss Army Knife for Protocol Buffers
protoc-gen-validate - protoc plugin to generate polyglot message validators
cbor - CBOR codec (RFC 8949) with CBOR tags, Go struct tags (toarray, keyasint, omitempty), float64/32/16, big.Int, and fuzz tested billions of execs.
colfer - binary serialization format
gogoprotobuf - [Looking for new ownership] Protocol Buffers for Go with Gadgets
jsoniter - A high-performance 100% compatible drop-in replacement of "encoding/json"
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
asn1
go-capnproto - Cap'n Proto library and parser for go. This is go-capnproto-1.0, and does not have rpc. See https://github.com/zombiezen/go-capnproto2 for 2.0 which has rpc and capabilities.
grpc-web - gRPC for Web Clients
csvutil - csvutil provides fast and idiomatic mapping between CSV and Go (golang) values.
go-codec - idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]