- 快召唤伙伴们来围观吧
- 微博 QQ QQ空间 贴吧
- 文档嵌入链接
- 复制
- 微信扫一扫分享
- 已成功复制到剪贴板
深入了解:gRPC
展开查看详情
1 .
2 .李雨璇
3 . RPC framework Multi-Language Pluggable Multi-Platform Feature-rich
4 .Java C++ Go Python ... ?
5 . Microservices: in data centres Client Server communication/Internal APIs Streaming telemetry from network devices Mobile Apps
6 .● C++, Python, Application Layer Ruby, C#, Obj-C, ... ● grpc-go grpc-java Framework Layer ● grpc-c-core Transport Layer
7 .● C++, Python, Application Layer Ruby, C#, Obj-C, ... ● grpc-go grpc-java Framework Layer ● grpc-c-core Transport Layer This talk is about grpc-go
8 . Alpha: Beta: GA: Join CNCF Now OpenSource Stable APIS Production ready 6732 grpc-go stars on Github 2835 1963 990 3 Feb Sep Aug Mar Nov 2015 2015 2016 2017 2018
9 .
10 .Client Server Client Head er Client Mess age Half Close er Server Head a ge Server Mess r Server Traile
11 .Create a Channel to transmit the RPC
12 . 1 6 grpc 2 5 3 4 resolver balancer
13 .
14 . Client Server grpc grpc 1 4 5 2 6 balancer 3 listener transport 4 transport
15 .Create a RPC call on the Channel
16 . 1 8 RPC grpc.ClientStream generate code transport.Stream 7 2 grpc 5 4 picker 3 transport 1 6 balancer
17 . 5 generated code 4 grpc 3 2 transport 1 1 ... transport n transport
18 .generated code generated code grpc grpc transport transport
19 .● ○ ● ○ Binary Logging ○ Channelz ○ ○ ○ ○ Service Config
20 . 2 3 1 4 5 load balancing Policy timeout max request message size (bytes) max response message size (bytes) retry configuration
21 . Client Server Client Head er Client Mess age ● Half Close ... ● Cancel ● er Server Head ... age Server Mess iler Server Tra
22 .● ● ● ●
23 . Q&A http://http2.golang.o rg/gophertiles Twitter: @grpcio HTTP/1.1 HTTP/2 Site: http://grpc.io Group: grpc-io@googlegroups.com Repo: github.com/grpc
24 .