This might help https://grpc.io/docs/languages/php/quickstart/

Like it says "You can only create gRPC clients in PHP. Use another language 
<https://grpc.io/docs/languages/> to create a gRPC server."

On Friday, July 2, 2021 at 3:45:56 AM UTC-7 afde...@gmail.com wrote:

> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/68727654-f4a3-44da-963d-bd01c40a4148n%40googlegroups.com.

Reply via email to