SlideShare a Scribd company logo
8
Most read
9
Most read
12
Most read
Presented By: Munander Maan
Introduction to gRPC
framework and APIs
In gRPC
Lack of etiquette and manners is a huge turn off.
KnolX Etiquettes
Punctuality
Respect Knolx session timings, you
are requested not to join sessions
after a 5 minutes threshold post
the session start time.
Feedback
Make sure to submit a constructive
feedback for all sessions as it is
very helpful for the presenter.
Silent Mode
Keep your mobile devices in silent
mode, feel free to move out of
session in case you need to attend
an urgent call.
Avoid Disturbance
Avoid unwanted chit chat during
the session.
01 What is gRPC?
02 gRPC Internals deep dive
03 gRPC vs Rest API
04 Scalability in gRPC
05 Types of API In gRPC
Our Agenda
c
What is
gRPC?
gRPC is a Free and
open-source framework
developed by Google.
1. Modern,fast and efficient
2. Supports Streaming
3. Language Independent
4. Uses Protocol Buffers and
HTTP/2
OUR MISSIONInsert Your Subtitle Here
1. At the core of gRPC, you need to define the
messages and services using Protocol Buffers.
2. The rest of the gRPC code will be generated
for you and you will have to provide an
implementation for it.
Getting started with
gRPC
gRPC Internals
Deep Dive
Understand what gRPC is
really made of ?
C++ Service
Ruby Client
Android java
client
gRPC Server
gRPC
Stub
gRPC
stub
Proto Response
Proto
Request
Proto
Request
Proto
Response
1
2
3
Easy to write message definition
Definition of API is independent
from Implementation
Code can be generated in any
language
Why Protocol
Buffers?
• gRPC uses Protocol Buffers for communications.
• Lets measure the payload size vs JSON.
Efficiency of Protocol Buffers over Json
STRATEGY INFOGRAPHICInsert Your Subtitle Here
The client & server can
push messages in
parallel over the same
TCP connection.
This greatly reduces
latency. Binary
Servers can push
streams (multiple
messages) for
one request from the
client.
1. Headers can be
compressed.
2. These have much less
impact on the packet
size.
Protocol buffers is a
binary protocol and
makes it s great match
for HTTP/2.
Header Compression
Multiplexing
Server Push
Why HTTP/2
How HTTP/2 works?
OUR CHARTInsert Your Subtitle Here
gRPC Speaks Your Language
gRPC vs Rest API
Performance test of gRPC
● https://husobee.github.io/golang/rest/grpc/2016/05/28/golang-rest-v-grpc.html
● Finds that gRPC is 25 times more performant than REST API ( as defined as
time to have the response for an API)
Insert Your Subtitle Here01
This means they do not block threads on request02
Therefore each server can serve millions of requests in
parallel03
gRPC clients can be asynchronous or synchronous.04
Google has 10 BILLION gRPC requests being made
per second internally.
Proof of scalability
10 BILLION
Scalability In gRPC
01 gRPC Servers are asynchronous by default.
05
05 gRPC clients can perform client side load balancing
OUR CInsert Your S
Types Of API in gRPC
DEMO
Q/A
https://grpc.io/
Reference
Thank You !

More Related Content

PPTX
HTTP2 and gRPC
PPTX
You only look once (YOLO) : unified real time object detection
PPT
SOFTWARE QUALITY ASSURANCE.ppt
PPT
Introduction to redis
PDF
API Security Best Practices & Guidelines
PDF
Designing APIs with OpenAPI Spec
PDF
gRPC and Microservices
HTTP2 and gRPC
You only look once (YOLO) : unified real time object detection
SOFTWARE QUALITY ASSURANCE.ppt
Introduction to redis
API Security Best Practices & Guidelines
Designing APIs with OpenAPI Spec
gRPC and Microservices

What's hot (20)

PDF
gRPC Design and Implementation
PPTX
Introduction to gRPC
PDF
gRPC Overview
PPTX
What is gRPC introduction gRPC Explained
PPTX
REST vs gRPC: Battle of API's
PDF
Building microservices with grpc
PDF
gRPC - RPC rebirth?
PDF
Introduction to gRPC
PPTX
GRPC.pptx
PDF
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
PDF
Power-up services with gRPC
PDF
Building Microservices with gRPC and NATS
PDF
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
PPTX
REST API
PPTX
Microservices Architecture & Testing Strategies
PPTX
NGINX Installation and Tuning
PDF
Scalability, Availability & Stability Patterns
PDF
API Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid Rahimian
PPTX
Full stack development
gRPC Design and Implementation
Introduction to gRPC
gRPC Overview
What is gRPC introduction gRPC Explained
REST vs gRPC: Battle of API's
Building microservices with grpc
gRPC - RPC rebirth?
Introduction to gRPC
GRPC.pptx
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
Power-up services with gRPC
Building Microservices with gRPC and NATS
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
REST API
Microservices Architecture & Testing Strategies
NGINX Installation and Tuning
Scalability, Availability & Stability Patterns
API Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid Rahimian
Full stack development
Ad

Similar to gRPC with java (20)

PPTX
Introduction to gRPC Presentation (Java)
PPTX
Introduction to gRPC (Application) Presentation
PDF
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
PPTX
Microservices summit talk 1/31
PPTX
Understanding Akka gRPC Presentation.pptx
PPTX
Akka gRPC Essentials A Hands-On Introduction
PPTX
Demystifying gRPC in .Net by John Staveley
PPTX
The new (is it really ) api stack
PDF
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
PDF
LF_APIStrat17_OpenAPI and gRPC Side-by-Side
PDF
OpenAPI and gRPC Side by-Side
PDF
REST in Peace. Long live gRPC!
PDF
Building Language Agnostic APIs with gRPC - JavaDay Istanbul 2017
PPTX
Introduction to gRPC. Advantages and Disadvantages
PPTX
Bye bye WCF, hello gRPC
PPTX
Salesforce Developer User Group, Oslo, Norway - Salesforce PubSub API and gRP...
PDF
Cloud Native API Design and Management
PPTX
gRPC - Fastest Data Transfer Protocol
PDF
gRPC services testing
PPTX
Google Protocol Buffers + gRPC
Introduction to gRPC Presentation (Java)
Introduction to gRPC (Application) Presentation
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
Microservices summit talk 1/31
Understanding Akka gRPC Presentation.pptx
Akka gRPC Essentials A Hands-On Introduction
Demystifying gRPC in .Net by John Staveley
The new (is it really ) api stack
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
LF_APIStrat17_OpenAPI and gRPC Side-by-Side
OpenAPI and gRPC Side by-Side
REST in Peace. Long live gRPC!
Building Language Agnostic APIs with gRPC - JavaDay Istanbul 2017
Introduction to gRPC. Advantages and Disadvantages
Bye bye WCF, hello gRPC
Salesforce Developer User Group, Oslo, Norway - Salesforce PubSub API and gRP...
Cloud Native API Design and Management
gRPC - Fastest Data Transfer Protocol
gRPC services testing
Google Protocol Buffers + gRPC
Ad

More from Knoldus Inc. (20)

PPTX
Angular Hydration Presentation (FrontEnd)
PPTX
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
PPTX
Self-Healing Test Automation Framework - Healenium
PPTX
Kanban Metrics Presentation (Project Management)
PPTX
Java 17 features and implementation.pptx
PPTX
Chaos Mesh Introducing Chaos in Kubernetes
PPTX
GraalVM - A Step Ahead of JVM Presentation
PPTX
Nomad by HashiCorp Presentation (DevOps)
PPTX
Nomad by HashiCorp Presentation (DevOps)
PPTX
DAPR - Distributed Application Runtime Presentation
PPTX
Introduction to Azure Virtual WAN Presentation
PPTX
Introduction to Argo Rollouts Presentation
PPTX
Intro to Azure Container App Presentation
PPTX
Insights Unveiled Test Reporting and Observability Excellence
PPTX
Introduction to Splunk Presentation (DevOps)
PPTX
Code Camp - Data Profiling and Quality Analysis Framework
PPTX
AWS: Messaging Services in AWS Presentation
PPTX
Amazon Cognito: A Primer on Authentication and Authorization
PPTX
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
PPTX
Managing State & HTTP Requests In Ionic.
Angular Hydration Presentation (FrontEnd)
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Self-Healing Test Automation Framework - Healenium
Kanban Metrics Presentation (Project Management)
Java 17 features and implementation.pptx
Chaos Mesh Introducing Chaos in Kubernetes
GraalVM - A Step Ahead of JVM Presentation
Nomad by HashiCorp Presentation (DevOps)
Nomad by HashiCorp Presentation (DevOps)
DAPR - Distributed Application Runtime Presentation
Introduction to Azure Virtual WAN Presentation
Introduction to Argo Rollouts Presentation
Intro to Azure Container App Presentation
Insights Unveiled Test Reporting and Observability Excellence
Introduction to Splunk Presentation (DevOps)
Code Camp - Data Profiling and Quality Analysis Framework
AWS: Messaging Services in AWS Presentation
Amazon Cognito: A Primer on Authentication and Authorization
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Managing State & HTTP Requests In Ionic.

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Modernizing your data center with Dell and AMD
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Machine learning based COVID-19 study performance prediction
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
NewMind AI Monthly Chronicles - July 2025
MYSQL Presentation for SQL database connectivity
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing
Modernizing your data center with Dell and AMD
Understanding_Digital_Forensics_Presentation.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Machine learning based COVID-19 study performance prediction
The AUB Centre for AI in Media Proposal.docx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.

gRPC with java

  • 1. Presented By: Munander Maan Introduction to gRPC framework and APIs In gRPC
  • 2. Lack of etiquette and manners is a huge turn off. KnolX Etiquettes Punctuality Respect Knolx session timings, you are requested not to join sessions after a 5 minutes threshold post the session start time. Feedback Make sure to submit a constructive feedback for all sessions as it is very helpful for the presenter. Silent Mode Keep your mobile devices in silent mode, feel free to move out of session in case you need to attend an urgent call. Avoid Disturbance Avoid unwanted chit chat during the session.
  • 3. 01 What is gRPC? 02 gRPC Internals deep dive 03 gRPC vs Rest API 04 Scalability in gRPC 05 Types of API In gRPC Our Agenda
  • 4. c What is gRPC? gRPC is a Free and open-source framework developed by Google. 1. Modern,fast and efficient 2. Supports Streaming 3. Language Independent 4. Uses Protocol Buffers and HTTP/2
  • 5. OUR MISSIONInsert Your Subtitle Here 1. At the core of gRPC, you need to define the messages and services using Protocol Buffers. 2. The rest of the gRPC code will be generated for you and you will have to provide an implementation for it. Getting started with gRPC
  • 6. gRPC Internals Deep Dive Understand what gRPC is really made of ? C++ Service Ruby Client Android java client gRPC Server gRPC Stub gRPC stub Proto Response Proto Request Proto Request Proto Response
  • 7. 1 2 3 Easy to write message definition Definition of API is independent from Implementation Code can be generated in any language Why Protocol Buffers?
  • 8. • gRPC uses Protocol Buffers for communications. • Lets measure the payload size vs JSON. Efficiency of Protocol Buffers over Json
  • 9. STRATEGY INFOGRAPHICInsert Your Subtitle Here The client & server can push messages in parallel over the same TCP connection. This greatly reduces latency. Binary Servers can push streams (multiple messages) for one request from the client. 1. Headers can be compressed. 2. These have much less impact on the packet size. Protocol buffers is a binary protocol and makes it s great match for HTTP/2. Header Compression Multiplexing Server Push Why HTTP/2
  • 11. OUR CHARTInsert Your Subtitle Here gRPC Speaks Your Language
  • 13. Performance test of gRPC ● https://husobee.github.io/golang/rest/grpc/2016/05/28/golang-rest-v-grpc.html ● Finds that gRPC is 25 times more performant than REST API ( as defined as time to have the response for an API)
  • 14. Insert Your Subtitle Here01 This means they do not block threads on request02 Therefore each server can serve millions of requests in parallel03 gRPC clients can be asynchronous or synchronous.04 Google has 10 BILLION gRPC requests being made per second internally. Proof of scalability 10 BILLION Scalability In gRPC 01 gRPC Servers are asynchronous by default. 05 05 gRPC clients can perform client side load balancing
  • 15. OUR CInsert Your S Types Of API in gRPC
  • 16. DEMO
  • 17. Q/A