php-sdk icon indicating copy to clipboard operation
php-sdk copied to clipboard

Support domain socket

Open daixiang0 opened this issue 4 years ago • 1 comments
trafficstars

Describe the proposal

Ref https://github.com/dapr/dapr/issues/2864

Release Note

RELEASE NOTE: ADD support domain socket.

daixiang0 avatar Aug 20 '21 00:08 daixiang0

I spent the day investigating the feasibility of it. It's a shame it isn't supported in Kubernetes yet! If it were, nginx-ingress could just fastcgi-proxy the request and an http server would be completely unnecessary for PHP projects. (nginx --> fastcgi --> php-fpm --> unix socket --> dapr). Right now a webserver must be run in front of PHP (caddy/apache/nginx) per pod to interface with Dapr.

Anyway ... to get this to work is actually pretty straightforward: https://github.com/guzzle/guzzle/issues/1962

This can be an option on the client builder, since it will be supported via grpc or http.

withinboredom avatar Dec 19 '21 21:12 withinboredom