Submit Search
Upload
Grpc + python.key
•
0 likes
•
241 views
Andy Dai
Follow
This is my talk in Taipei.py. 2018/08/30
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 23
Download now
Download to read offline
Recommended
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
How we migrate TFS to Git ( using Azure DevOps )
How we migrate TFS to Git ( using Azure DevOps )
Roberson Liou
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
均民 戴
Mercurial簡介與教學
Mercurial簡介與教學
芳本 林
Git Tutorial 教學
Git Tutorial 教學
Wen-Tien Chang
連哈秋都懂的Git教學
連哈秋都懂的Git教學
hydai
Git教學
Git教學
Sitg Yao
初心者 Git 上手攻略
初心者 Git 上手攻略
Lucien Lee
Recommended
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
How we migrate TFS to Git ( using Azure DevOps )
How we migrate TFS to Git ( using Azure DevOps )
Roberson Liou
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
COSCUP 2016 Workshop: 用 Docker 架設班級 git-it 練習環境
均民 戴
Mercurial簡介與教學
Mercurial簡介與教學
芳本 林
Git Tutorial 教學
Git Tutorial 教學
Wen-Tien Chang
連哈秋都懂的Git教學
連哈秋都懂的Git教學
hydai
Git教學
Git教學
Sitg Yao
初心者 Git 上手攻略
初心者 Git 上手攻略
Lucien Lee
Rpc调试通用
Rpc调试通用
geeksec80
你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事
Mu Chun Wang
Windbg入门
Windbg入门
晓锋 陈
Funliday 新創生活甘苦談
Funliday 新創生活甘苦談
Mu Chun Wang
版本控制 使用Git & git hub
版本控制 使用Git & git hub
維佋 唐
Git基礎介紹
Git基礎介紹
Max Ma
幸福快樂的完美結局
幸福快樂的完美結局
Anna Su
Git 入門與實作
Git 入門與實作
奕浦 郭
Git & Sourcetree 介紹
Git & Sourcetree 介紹
Adison wu
如何與全世界分享你的 Library
如何與全世界分享你的 Library
Mu Chun Wang
網路服務就是一連串搜尋的集合體
網路服務就是一連串搜尋的集合體
Mu Chun Wang
⼤語⾔模型 LLM 應⽤開發入⾨
⼤語⾔模型 LLM 應⽤開發入⾨
Wen-Tien Chang
[3]投影片 futurewad樹莓派研習會 141204
[3]投影片 futurewad樹莓派研習會 141204
CAVEDU Education
Comment System of 56.com
Comment System of 56.com
Ho Kim
愛創小小聚201307 小強分享
愛創小小聚201307 小強分享
iTrEnD
Binary exploitation - AIS3
Binary exploitation - AIS3
Angel Boy
做自己的可可豆夾 @ cocoahead.tw
做自己的可可豆夾 @ cocoahead.tw
Kai-Yuan Cheng
课题二:Node.js那些事儿
课题二:Node.js那些事儿
Liu Allen
Go for web
Go for web
Weng Wei
Mesos-based Data Infrastructure @ Douban
Mesos-based Data Infrastructure @ Douban
Zhong Bo Tian
D2_node在淘宝的应用实践_pdf版
D2_node在淘宝的应用实践_pdf版
Jackson Tian
[students AI workshop] Pytorch
[students AI workshop] Pytorch
Tzu-Wei Huang
More Related Content
What's hot
Rpc调试通用
Rpc调试通用
geeksec80
你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事
Mu Chun Wang
Windbg入门
Windbg入门
晓锋 陈
Funliday 新創生活甘苦談
Funliday 新創生活甘苦談
Mu Chun Wang
版本控制 使用Git & git hub
版本控制 使用Git & git hub
維佋 唐
Git基礎介紹
Git基礎介紹
Max Ma
幸福快樂的完美結局
幸福快樂的完美結局
Anna Su
Git 入門與實作
Git 入門與實作
奕浦 郭
Git & Sourcetree 介紹
Git & Sourcetree 介紹
Adison wu
如何與全世界分享你的 Library
如何與全世界分享你的 Library
Mu Chun Wang
網路服務就是一連串搜尋的集合體
網路服務就是一連串搜尋的集合體
Mu Chun Wang
What's hot
(11)
Rpc调试通用
Rpc调试通用
你畢業後要任職的軟體業到底都在做些什麼事
你畢業後要任職的軟體業到底都在做些什麼事
Windbg入门
Windbg入门
Funliday 新創生活甘苦談
Funliday 新創生活甘苦談
版本控制 使用Git & git hub
版本控制 使用Git & git hub
Git基礎介紹
Git基礎介紹
幸福快樂的完美結局
幸福快樂的完美結局
Git 入門與實作
Git 入門與實作
Git & Sourcetree 介紹
Git & Sourcetree 介紹
如何與全世界分享你的 Library
如何與全世界分享你的 Library
網路服務就是一連串搜尋的集合體
網路服務就是一連串搜尋的集合體
Similar to Grpc + python.key
⼤語⾔模型 LLM 應⽤開發入⾨
⼤語⾔模型 LLM 應⽤開發入⾨
Wen-Tien Chang
[3]投影片 futurewad樹莓派研習會 141204
[3]投影片 futurewad樹莓派研習會 141204
CAVEDU Education
Comment System of 56.com
Comment System of 56.com
Ho Kim
愛創小小聚201307 小強分享
愛創小小聚201307 小強分享
iTrEnD
Binary exploitation - AIS3
Binary exploitation - AIS3
Angel Boy
做自己的可可豆夾 @ cocoahead.tw
做自己的可可豆夾 @ cocoahead.tw
Kai-Yuan Cheng
课题二:Node.js那些事儿
课题二:Node.js那些事儿
Liu Allen
Go for web
Go for web
Weng Wei
Mesos-based Data Infrastructure @ Douban
Mesos-based Data Infrastructure @ Douban
Zhong Bo Tian
D2_node在淘宝的应用实践_pdf版
D2_node在淘宝的应用实践_pdf版
Jackson Tian
[students AI workshop] Pytorch
[students AI workshop] Pytorch
Tzu-Wei Huang
用 GCC 讓你的 PostgreSQL 噴噴噴~
用 GCC 讓你的 PostgreSQL 噴噴噴~
Little Sky
Introduction to big data
Introduction to big data
邦宇 叶
Python 于 webgame 的应用
Python 于 webgame 的应用
勇浩 赖
SACC2015 ”互联网+“任重而道远-白金&高春辉
SACC2015 ”互联网+“任重而道远-白金&高春辉
ptcracker
Linux binary Exploitation - Basic knowledge
Linux binary Exploitation - Basic knowledge
Angel Boy
Go
Go
Andy Shi
Go
Go
Andy Shi
淘宝网前台应用性能优化实践
淘宝网前台应用性能优化实践
丁 宇
与Python一路走来
与Python一路走来
leejd
Similar to Grpc + python.key
(20)
⼤語⾔模型 LLM 應⽤開發入⾨
⼤語⾔模型 LLM 應⽤開發入⾨
[3]投影片 futurewad樹莓派研習會 141204
[3]投影片 futurewad樹莓派研習會 141204
Comment System of 56.com
Comment System of 56.com
愛創小小聚201307 小強分享
愛創小小聚201307 小強分享
Binary exploitation - AIS3
Binary exploitation - AIS3
做自己的可可豆夾 @ cocoahead.tw
做自己的可可豆夾 @ cocoahead.tw
课题二:Node.js那些事儿
课题二:Node.js那些事儿
Go for web
Go for web
Mesos-based Data Infrastructure @ Douban
Mesos-based Data Infrastructure @ Douban
D2_node在淘宝的应用实践_pdf版
D2_node在淘宝的应用实践_pdf版
[students AI workshop] Pytorch
[students AI workshop] Pytorch
用 GCC 讓你的 PostgreSQL 噴噴噴~
用 GCC 讓你的 PostgreSQL 噴噴噴~
Introduction to big data
Introduction to big data
Python 于 webgame 的应用
Python 于 webgame 的应用
SACC2015 ”互联网+“任重而道远-白金&高春辉
SACC2015 ”互联网+“任重而道远-白金&高春辉
Linux binary Exploitation - Basic knowledge
Linux binary Exploitation - Basic knowledge
Go
Go
Go
Go
淘宝网前台应用性能优化实践
淘宝网前台应用性能优化实践
与Python一路走来
与Python一路走来
More from Andy Dai
Power UP your CLI
Power UP your CLI
Andy Dai
Search search search
Search search search
Andy Dai
Django channels
Django channels
Andy Dai
Django Third party packages
Django Third party packages
Andy Dai
Practical django secuirty
Practical django secuirty
Andy Dai
總之來講講 Search
總之來講講 Search
Andy Dai
Python web meetup 11 18
Python web meetup 11 18
Andy Dai
Django in heavy load environment
Django in heavy load environment
Andy Dai
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
Andy Dai
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
Andy Dai
Tradeoffs of replacing core components
Tradeoffs of replacing core components
Andy Dai
ElastiCache
ElastiCache
Andy Dai
Dynamo db
Dynamo db
Andy Dai
Django deploy
Django deploy
Andy Dai
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
Andy Dai
Boost your django admin with Grappelli
Boost your django admin with Grappelli
Andy Dai
More from Andy Dai
(16)
Power UP your CLI
Power UP your CLI
Search search search
Search search search
Django channels
Django channels
Django Third party packages
Django Third party packages
Practical django secuirty
Practical django secuirty
總之來講講 Search
總之來講講 Search
Python web meetup 11 18
Python web meetup 11 18
Django in heavy load environment
Django in heavy load environment
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
Tradeoffs of replacing core components
Tradeoffs of replacing core components
ElastiCache
ElastiCache
Dynamo db
Dynamo db
Django deploy
Django deploy
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
Boost your django admin with Grappelli
Boost your django admin with Grappelli
Grpc + python.key
1.
快快樂樂 (?) ⽤用
GRPC + Python Andy Dai daikeren@gmail.com !1
2.
緣起 • ⼀一切都是意外 • 60+
RD • 4x Microservice • ASP.net + Go + Node.js (+ Python) • gRPC !2
3.
gRPC 是啥? https://grpc.io/ !3
4.
特⾊色 • Google 出的 •
⽀支援很多語⾔言 • 好像很厲害 !4
5.
有個架構叫做 REST • 各家都在⽤用 •
⽀支援很多語⾔言 • 好像沒有很厲害,可是很好理理解 !5
6.
Problem in REST •
(也許)RESTful 不是這麼適合做 API • json 的問題 • Schema • Type • Performance !6
7.
GRPC with Python
in 10 minutes !7
8.
Protocol Buffer • Serialization
& Deserialization of Data • Data Type • Smaller, Faster !8
9.
Protocol Buffer !9 syntax =
"proto3"; package hello; message Request { string name = 1; int64 val = 2; } enum Setting { TEST = 0 ; TEST2 = 1 ; }
10.
來來看看 Code !10
11.
GRPC • Google 做的
RPC implementation • HTTP 2.0 + Protocol Buffer • ⽀支援不同語⾔言的 Server/Client 實作 !11
12.
GRPC !12
13.
Why GRPC? • 你需要建構
Low Latency 的系統 • 你要建構 REST 可能沒辦法滿⾜足需求的系統 • Mobile Client • 你的研發團隊使⽤用了了不同語⾔言建構 microservice !13
14.
4 kinds of
RPC • Unary RPC • Server streaming RPC • Client streaming RPC • Bidirectional streaming RPC !14
15.
開發 GRPC 程式 •
安裝套件 • 寫 .proto 檔案 • Implement Server • Implement Client !15
16.
安裝套件 !16 pip install grpcio
grpcio-tools
17.
.proto File !17 syntax =
"proto3"; package hello; message Request { string name = 1; } message Response { string val = 1; } service Hello { rpc Echo(Request) returns (Response); }
18.
codegen !18 python -m grpc_tools.protoc
--proto_path=. --python_out=. --grpc_python_out=. hello.proto proto_path: .proto 檔案的位置 python_out: protobuf Python code 的位置 grpc_python_out: gRPC Python code 的位置
19.
來來看看 Code !19
20.
GRPC in Python
- The bad parts • Performance • ECO-system • gRPC + Python 的⼩小問題 !20
21.
Conclusion • 對於 GRPC
with Python 的簡單介紹 • protobuf • Server/Client Implementation • 該⽤用 GRPC 嗎? !21
22.
Q&A !22
23.
Reference • https://grpc.io/ • gRPC
errors http://avi.im/grpc-errors/ • https://github.com/daikeren/grpc_talk !23
Download now