SlideShare a Scribd company logo
gRPC
Dharshana Ratnayake
Clearpoint
History of middleware
CORBA/RMI -> SOAP -> REST -> gRPC
REST
Application
Transport
Internet
Character
UUID id
Vector location
State state
UUID
Vector
x
y
z
State
ALIVE
DEAD
"characterRequest": {
"character": {
"id": "uuid",
"location": {
"x": 1234567890
"y": 1234567890
"z": 1234567890
}
"state": "ALIVE"
}
}
POST /index.html HTTP/1.1
Host: www.example.com
Content-Type
body{}
TCP
IP v4/v6
So what’s wrong with JSON over
HTTP
• Text not binary
• No multiplexing
• Needs something like swagger.
• GET, POST, DELETE, CREATE…. But what
else?
• Can see hacks appearing
REST vs gRPC
JSON
HTTP
Protocol Buffer
HTTP2
REST vs gRPC
"characterRequest": {
"character": {
"id": "13945de2-9743-4688-a88a-81002f311bc2",
"location": {
"x": 1234567890
"y": 1234567890
"z": 1234567890
}
"state": "ALIVE"
}
}
205 characters
205+bytes
1: {
1: {
1: "16 bytes",
2: {
1: 4 bytes
2: 4 bytes
3: 4 bytes
}
3: 1 byte
}
}
44+bytes
● What about 1000 messages per second
● Simpler parsing
● Better CPU utilisation
So, let’s write some code
Let’s look at some metrics
• Results of running against google compute
engine
• 3000ms vs 2700ms (post warm up)
• But wait.. We don’t have to play tennis
gRPC streaming example
Real world use case
● Naive approach 6 second lag
● UDP too much packet loss
● gRPC 150ms latancy
● Able to do server push
thanks
● http://www.grpc.io/
● https://github.com/darthShana
● Ray Tsang
● Able to do server push

More Related Content

PPTX
HTTP2 and gRPC
PDF
gRPC in Go
PDF
OpenAPI and gRPC Side by-Side
PDF
gRPC Overview
PDF
gRPC - RPC rebirth?
PDF
gRPC with java
PPTX
REST vs gRPC: Battle of API's
PPTX
Hypertext Transfer Protocol
HTTP2 and gRPC
gRPC in Go
OpenAPI and gRPC Side by-Side
gRPC Overview
gRPC - RPC rebirth?
gRPC with java
REST vs gRPC: Battle of API's
Hypertext Transfer Protocol

What's hot (20)

PDF
Introduction to gRPC
PPTX
Introduction to gRPC
PPTX
GRPC.pptx
PDF
Inter-Process Communication in Microservices using gRPC
PPTX
Get Hands-On with NGINX and QUIC+HTTP/3
PPTX
Docker Networking: Control plane and Data plane
PDF
gRPC and Microservices
PPTX
React js Demo Explanation
PDF
How Linux Processes Your Network Packet - Elazar Leibovich
PPTX
Basic Concept of Node.js & NPM
PPTX
Node.js Express
PDF
Demystifying Angular Animations
PPTX
Docker Container Security
PDF
gRPC & Kubernetes
PDF
PPTX
What is gRPC introduction gRPC Explained
PDF
Linux Networking Explained
Introduction to gRPC
Introduction to gRPC
GRPC.pptx
Inter-Process Communication in Microservices using gRPC
Get Hands-On with NGINX and QUIC+HTTP/3
Docker Networking: Control plane and Data plane
gRPC and Microservices
React js Demo Explanation
How Linux Processes Your Network Packet - Elazar Leibovich
Basic Concept of Node.js & NPM
Node.js Express
Demystifying Angular Animations
Docker Container Security
gRPC & Kubernetes
What is gRPC introduction gRPC Explained
Linux Networking Explained
Ad

Similar to gRPC (20)

PPTX
Introduction to gRPC. Advantages and Disadvantages
PDF
gRPC or Rest, why not both?
PPTX
CocoaConf: The Language of Mobile Software is APIs
PDF
From '00s to '20s: from RESTful to gRPC
PPTX
Building API Using GRPC And Scala
PPTX
The new (is it really ) api stack
PDF
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
PDF
gRPC Design and Implementation
PDF
Building Language Agnostic APIs with gRPC - JavaDay Istanbul 2017
PDF
gRPC - czyli jak skutecznie rozmawiać (rg-dev#14)
PDF
Fast and Reliable Swift APIs with gRPC
PDF
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
PPTX
Introduction to gRPC (Application) Presentation
PPTX
Introduction to gRPC Presentation (Java)
PDF
Implementing OpenAPI and GraphQL services with gRPC
PPTX
gRPC - Fastest Data Transfer Protocol
PDF
GRPC 101 - DevFest Belgium 2016
PPTX
What I learned about APIs in my first year at Google
PDF
Testing and Developing gRPC APIs
PDF
Building REST APIs using gRPC and Go
Introduction to gRPC. Advantages and Disadvantages
gRPC or Rest, why not both?
CocoaConf: The Language of Mobile Software is APIs
From '00s to '20s: from RESTful to gRPC
Building API Using GRPC And Scala
The new (is it really ) api stack
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
gRPC Design and Implementation
Building Language Agnostic APIs with gRPC - JavaDay Istanbul 2017
gRPC - czyli jak skutecznie rozmawiać (rg-dev#14)
Fast and Reliable Swift APIs with gRPC
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
Introduction to gRPC (Application) Presentation
Introduction to gRPC Presentation (Java)
Implementing OpenAPI and GraphQL services with gRPC
gRPC - Fastest Data Transfer Protocol
GRPC 101 - DevFest Belgium 2016
What I learned about APIs in my first year at Google
Testing and Developing gRPC APIs
Building REST APIs using gRPC and Go
Ad

Recently uploaded (20)

PDF
AutoCAD Professional Crack 2025 With License Key
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PPTX
assetexplorer- product-overview - presentation
PDF
medical staffing services at VALiNTRY
PDF
Digital Systems & Binary Numbers (comprehensive )
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Patient Appointment Booking in Odoo with online payment
PPTX
Transform Your Business with a Software ERP System
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Download FL Studio Crack Latest version 2025 ?
PDF
Cost to Outsource Software Development in 2025
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Salesforce Agentforce AI Implementation.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Design an Analysis of Algorithms II-SECS-1021-03
AutoCAD Professional Crack 2025 With License Key
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
assetexplorer- product-overview - presentation
medical staffing services at VALiNTRY
Digital Systems & Binary Numbers (comprehensive )
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Patient Appointment Booking in Odoo with online payment
Transform Your Business with a Software ERP System
L1 - Introduction to python Backend.pptx
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Designing Intelligence for the Shop Floor.pdf
Download FL Studio Crack Latest version 2025 ?
Cost to Outsource Software Development in 2025
CHAPTER 2 - PM Management and IT Context
Oracle Fusion HCM Cloud Demo for Beginners
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Salesforce Agentforce AI Implementation.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Design an Analysis of Algorithms II-SECS-1021-03

gRPC