What was the motivation to use websockets over grpc streams?

Reply to this note

Please Login to reply.

Discussion

grpc is not an application level protocol, it a rpc technology on top of http2. Different level of abstraction, not a direct comparison. Plus it’s a pain in the ass to setup grpc.

The motivation was that I had never heard of gRPC streams. The only alternative I've considered was SSE, but since that is one-way communication I thought websocket would be much much simpler to implement and the performance/reliability would be basically the same.

You’re hitting the wall of different implementations having different default settings, not all of which are compatible. Maybe a NIP detailing more about a relay’s WebSocket setup is needed?

Welcome to the world of network programming beyond nips. 😉