I mean how to have multiple versions of the same service at the same time, in one gRPC server? Example in rest:
Site.com/api/v1/something
And so on. I need to have a REST interface that maps services to the gRPC call.
Thank for your help
In this man scenario, what is best for you to manage your endpoins versions, as you will have rEST in this scenario, it may be interesting to use GRPC with gateway
The REST interface doesn't matter in this. it can be a gateway or whatever. The point here is how to manage a single gRPC server to provide multiple versions of one service. and also, we may have more services. so we will have v1, v2, v3 ... and each of them will have some proto files that need to be compiled and served. How to do this? building this thing extensible is the issue I have...
I understand, Man, maybe I wasn't so clear. As there is a rEST behind you can make your gRPC under gw and with each version you can keep everything, changing your PROTO and its changes etc ... it's a way. Here we don't usually keep these versions, but when you have this possibility you can use this path, and another way is to separate defragment your protos and services according to the version so that your code doesn't get too bloated
Makes sense. Thank you!
Обсуждают сегодня