3 ms·
Surprisingly I saw this on the front page mere minutes after deciding to use protobufs in my new project. Currently I'm not quite sold on RPC since the perform
by h4ch1 2y ago
Surprisingly I saw this on the front page mere minutes after deciding to use protobufs in my new project.
Currently I'm not quite sold on RPC since the performance benefits seem to show up on a much larger scale than what I am aiming for, so I'm using a proto schema to define my types and using protoc codegen to generate only JSON marshaling/unmarshaling + types for my golang backed and typescript frontend, with JSON transferred between the two using REST endpoints.
Seems to give me good typesafety along with 0 headache in serializing/deserializing after transport.
One thing I also wanted to do was generate SQL schemas from my proto definitions or SQL migrations but haven't found a tool to do so yet, might end up making one.
Would love to know if any HN folk have ideas/critique regarding this approach.