3 ms·
I wish more people try gRPC outside of microservices. It is the perfect solution for building APIs.
by opqpo 6y ago
I wish more people try gRPC outside of microservices. It is the perfect solution for building APIs.
- nine_k 6y agoGRPC is rather nice. It has good and well-established practices about backwards compatibility (never ever remove a field), nullability, mapping to traditional HTTP-based endpoints, inline documentation. The downside is that you need a special tool to accesss it, a plain browser or curl won't work.
- opqpo 6y agoYou can use it inside a browser. Look at https://github.com/grpc/grpc-web https://github.com/grpc/grpc-web but I agree that something like playing with curl would be impossible. I once even stumbled upon a golang project that can generates a RESTful API from your gRPC API without any modifications on your server side.
- divbzero 6y ago> a golang project that generates a RESTful API from your gRPC API You might be thinking grpc-gateway. [1] [1]: https://github.com/grpc-ecosystem/grpc-gateway https://github.com/grpc-ecosystem/grpc-gateway