Re:Show HN: Pbkit – Protobuf toolkit written in Deno/TypeScript
by jenny91 on Tuesday April 05, 2022 @01:13PM
(#30921769)
Ah, but it's not gRPC compatible then; just very similar and uses the same proto syntax for services and messages?
Re:Show HN: Pbkit – Protobuf toolkit written in Deno/TypeScript
by lf-non on Wednesday April 06, 2022 @01:20AM
(#30928748)
Yes, its an alternative.
protobuf is a lower level specification that supports defining typed services. It does not dictate things like transport mechanism or other implementation details.
There are multiple protobuf compatible RPC implementations, gRPC obviously being the most popular one, twirp being another.
I used it because I basically wanted end-to-end type-safety without any infrastructure overhead and additional decode-encode hops in betweeen.