News for hackers. Stuff that matters.
Re:The reason to use Protobuf is not performance by closeparen on Thursday November 16, 2023 @02:25AM (#38286648)
Protobuf has a JSON canonicalization [0]. All our gRPC servers automatically accept HTTP/JSON traffic with the procedure name specified in a header. That's what I use when I'm writing a script.

https://protobuf.dev/programming-guides/proto3/#json

Re:The reason to use Protobuf is not performance by dontlaugh on Thursday November 16, 2023 @04:59AM (#38287616)
Twirp has this built-in https://twitchtv.github.io/twirp/docs/curl.html

It's very handy in some situations.

Re:The reason to use Protobuf is not performance by arein3 on Thursday November 16, 2023 @05:47AM (#38287989)
Could you provide an example of json request to a grpc endpoint (url + headers + body)?

Can it be done via http (ex. Postman) or it needs http2?

Re:The reason to use Protobuf is not performance by closeparen on Thursday November 16, 2023 @12:41PM (#38292749)
You can check the Twirp doc in the sibling comment. Ours is similar. Works on regular HTTP, curl or Postman is fine.