Show HN: gRPC over WebRTC
github.com
github.com
While Improbable already has a solution using Websocket, WebRTC can bring UDP, peer to peer and NAT traversal for free, which can be really cool.
I hope this proof of concept inspires a proper production implementation :)
The situation there still doesn't have changed if I read that thread correctly - but instead of adding those APIs there is now talk about using completely different technologies and yet another set of non-available APIs? That doesn't make a lot of sense to me.
And while WebRTC (or using a not-yet-specified protocol on top of QUIC) might be rather cool POCs, those throw a lot of complexity at a workaround for a problem which seems to have a far easier solution (get the required APIs implemented).
One thing I didn't immediately see in this code (excuse me if I just missed it - this was a quick read through) is a chunking mechanism to limit data channel messages to their 2^16 byte maximum. If your looking for a drop in solution saltryrtc has something you might be able to use: https://github.com/saltyrtc/chunked-dc-js
GRPC and similarly GraphQL over WebRTC gets you a long ways towards controlling local servers over the net however the problem of how to handle signalling in a way that works both online and offline is still a big hurdle. Personally, I'm pretty excited to see where these WebRTC servers can go with DAT and IPFS decentralized signalling solutions.
Thanks again for sharing. Great project!
I am honestly no as familiar with gRPC as I should be (life is all about WebRTC/P2P Media for me). I am really excited about the NAT traversal/P2P opportunities this opens up.
It seems super powerful that you could have two services with different regions/DC/providers talk to each other. With neither even having public IPs! You don't have to worry about Load Balancers and really could reduce complexity/security concerns.
Can stream large files too!