I have a restful application made in Go, now I have to make this app also serve as gRPC server (I already created the needed files). I have the restful endpoints running in the port 8000, now I have the next questions:
- Can I server grpc as well as the restful app in the same instance?
- Should I assign a different port to serve gRPC?
- What is the recomended approach in this case? as the grpc stub will be only consumed by some of our microservices, but the restful will be consumed by the frontend of some apps
- In the case that I can serve boths, how should I initialize the servers?