在 NGINX 的 v1.13.10 原生支持 gRPC 通信,比如
可以使用 nginx 转发各个服务
location /helloworld.Greeter {
grpc_pass grpc://127.0.0.1:50051;
}
location /helloworld.Dispatcher {
grpc_pass grpc://127.0.0.1:50052;
}
相较与服务注册发现,有了另一种实现方式。
实现及压测示例代码: https://github.com/Xiaoshuai/nginx-grpc
对比与 consul、etcd 或 kafka 这种服务注册及服务发现的微服务组织方式,大家有什么想法哈~
可以使用 nginx 转发各个服务
location /helloworld.Greeter {
grpc_pass grpc://127.0.0.1:50051;
}
location /helloworld.Dispatcher {
grpc_pass grpc://127.0.0.1:50052;
}
相较与服务注册发现,有了另一种实现方式。
实现及压测示例代码: https://github.com/Xiaoshuai/nginx-grpc
对比与 consul、etcd 或 kafka 这种服务注册及服务发现的微服务组织方式,大家有什么想法哈~
但是 license 不讨好