I am working with micro Service architecture where these micro services and the api-gateway i.e. api composition layer for accumulating/getting data from different services, is built using Lumen (php), Currently api composition/ data get is happening through micro services's REST API endpoint calling and compositing the data on api gateway side. This whole stack is in php laravel (lumen) only.
I am planning to replace this REST calls of micro service using gRPC, can anyone guide me with any blog or git repository having this complete gRPC solution with its server and client implementation in php.
I did some analysis with gRPC and found that basically it needs gRPC client, protobuff and gRPC server
Also a question :
If I want to implement gRPC, does it require to strictly change the micro service (from where I am getting the data) like I will need to create the client lib using the protobuff for the microservice implementation and then - how would that generated lib would be called from the api gateway, what is the role of gRPC server here. Will the proceedure request first be made to grpc server and server will further make it to grpc client or how exactly it is?
Any help / guidance will be highly appreciated.