3 ms·
What would you recommend doing instead?
by azemetre 2y ago
What would you recommend doing instead?
- doctorpangloss 2y agoDo you need bidirectional streams? If so, you should write a bespoke protocol, on top of UDP, TCP or websockets. If you don't, use GraphQL.
- nithril 2y ago"Write a protocol and GraphQL", god damn it escalates quickly. Fortunately, there are intermediate steps.
- grumbelbart2 2y agoAny suggestions for a good RPC library?
- masterj 2y agoI have had a really good experience with https://connectrpc.com/ https://connectrpc.com/ so far. Buf is doing some interesting things in this space https://buf.build/docs/ecosystem/ https://buf.build/docs/ecosystem/
- zeroc8 2y agoI've used twitchtv/twirp with success. I like it because it's simple and doesn't reinvent itself over and over again.
- galangalalgol 2y agoWhat about songle directional streams? Graphql streams aren't widely supported yet are they? Graphql also strikes me as a weird alternative to protobufs as the latter works so hard for performance with binary payloads, and graphql is typically human readable bloaty text. And they aren't really queries, you can just choose to ignore parts of the return for a rpc.
- Atotalnoob 2y agoWeb sockets would probably be easy. Some web socket libraries support automatic fallback to polling if the infrastructure doesn’t support web sockets.