【热点】Service Mesh利器:NGINX将支持gRPC

in grpc •  7 years ago  (edited)

NGINX将在1.13.10版本中包含grpc相关功能。

这个版本支持NGINX代理gRPC TCP连接。可以用来:

  • 发布gRPC服务,包括未加密/加密的gRPC服务。
  • 通过单个endpoint发布多个gRPC服务,使用NGINX路由到后端服务。 甚至可以和其他HTTP/2服务使用相同的endpoint,例如网站和 REST API。
  • 反向代理gRPC服务,对gRPC服务集群进行负载均衡。

什么是gRPC?

gRPC是一种rpc协议,用于客户端和服务端之间的通信。 gRPC设计的很紧凑并且多语言支持良好,同时支持request/response模式和流式交互。 由于其广泛的语言支持和简单面向用户的设计,该协议越来越受欢迎,其中包含服务混搭(service mesh)实现 。

无论是明文还是TLS加密,gRPC都通过HTTP/2传输。 gRPC request使用HTTP POST请求。 gRPC response也使用类似的方式,并在response结束时使用HTTP trailer 发送状态码。

因为gRPC使用了HTTP/2的连接复用和流式传输功能,所以gRPC不能使用HTTP 1.x。


原文: https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==&mid=2653549469&idx=1&sn=3d0ff10b4e309e591177f75c54b14216&chksm=813a6205b64deb13c6563e974dc7b390eec69f37747199ea8576a322bc41c9ec9e4e44b4a2e6&mpshare=1&scene=1&srcid=0320bAcamMCZ05N89UZ6cq1c&rd2werd=1#wechat_redirect

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

支持一下

这个杠杆的

Congratulations @brucel! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Are you a DrugWars early adopter? Benvenuto in famiglia!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @brucel! You received a personal award!

Happy Steem Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Downvote challenge - Add up to 3 funny badges to your board
Vote for @Steemitboard as a witness to get one more award and increased upvotes!