SlideShare a Scribd company logo
gRPC says Hi to
.NET
Yu-Lang Chu
.NET Developer from APIs to APIs
WCFRest OData
gRPCRest GraphQL
.NET 4.X
.NET 5
gRPC in .NET
● Developed at Google in 2015
● CNCF project
● Official support .NET core 3.0
● Replace WCF in .NET ecosystem
What is gRPC:
General-purpose Remote Procedure Calls
Latest new technologies
C# Service
gRPC Server
JS Client
gRPC Client
stub
Python Client
gRPC Client
stub
HTTP/2
Protobuf
Interoperability
Rest API vs gRPC
● Resource/Content first - JSON
● Human Readable content - JSON
● Text serialization - JSON
● HTTP verbs
● Contract first - protobuf
● Human Readable contract - protobuf
● Binary serialization - protobuf
● No limitation to verbs
https://martin.kleppmann.com/2012/12/05/schema-evolution-in-avro-protocol-buffers-thrift.html
Performance: Protobuf vs XML vs JSON
https://digitallife.rocks/2019/05/30/how-to-save-money-with-technology-protobuf/
Protobuf : core of gRPC
GeneratorProtobuf
C# class
Python class
Golang struct
Message
Protobuf vs WCF
https://docs.microsoft.com/en-us/dotnet/architecture/grpc-for-wcf-developers/migrate-request-reply
Definition of Protobuf
Syntax version
options
package(protobuf)
Service definition
Message
Types of method: WCF vs gRPC
https://docs.microsoft.com/en-us/dotnet/architecture/grpc-for-wcf-developers/rpc-types
4 type of service method
client server
client server
client server
client server
Unary
Client Streaming
Server Streaming
Bidirectional
Streaming
Scenarios
Feature: low latency, high throughput, stream, cross-platform
4 recommended scenarios:
● Microservice
● Point-to-point real time communication
● Multi-language environments
● Network constrained environments
Demo: how to start GRPC project
How to create gRPC server project
● VS2019:
● Command line : dotnet new grpc
● Existing project:
○ add package Grpc.AspNetCore
○ Startup.cs: Add gRPC services and endpoint
How to create gRPC Client project
Project setup:
1. Install Packages:
● Google.Protobuf
● Grpc.Net.Client
● Grpc.Tools
2. Add Protobuf files reference into .csproj, then build project
Code:
3. Setup channel: var channel = Grpc.channel.ForAddress(...);
4. Call defined API
More Topics
● Protobuf definition
● Authentication/Authorization
● Cache
● Rate limiting
● GRPC web
● ….. etc
Reference
● https://developers.google.com/protocol-buffers
● https://docs.microsoft.com/en-us/dotnet/architecture/grpc-for-wcf-developers/
● https://grpc.io/
● https://github.com/grpc/grpc-dotnet

More Related Content

PPTX
Introduction to gRPC
Chandresh Pancholi
 
PPTX
GRPC.pptx
Afzal Juneja
 
PDF
Introduction to gRPC
Prakash Divy
 
PDF
gRPC and Microservices
Jonathan Gomez
 
PPTX
HTTP2 and gRPC
Guo Jing
 
PDF
gRPC Overview
Varun Talwar
 
PDF
gRPC - RPC rebirth?
Luís Barbosa
 
Introduction to gRPC
Chandresh Pancholi
 
GRPC.pptx
Afzal Juneja
 
Introduction to gRPC
Prakash Divy
 
gRPC and Microservices
Jonathan Gomez
 
HTTP2 and gRPC
Guo Jing
 
gRPC Overview
Varun Talwar
 
gRPC - RPC rebirth?
Luís Barbosa
 

What's hot (20)

PDF
gRPC Design and Implementation
Varun Talwar
 
PDF
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
AboutYouGmbH
 
PPTX
REST vs gRPC: Battle of API's
Luram Archanjo
 
PDF
Building microservices with grpc
Sathiyaseelan Muthu kumar
 
PDF
Power-up services with gRPC
The Software House
 
PDF
gRPC in Go
Almog Baku
 
PPTX
What is gRPC introduction gRPC Explained
jeetendra mandal
 
PPTX
Building your First gRPC Service
Jessie Barnett
 
PDF
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
Codemotion
 
PDF
Inter-Process Communication in Microservices using gRPC
Shiju Varghese
 
PDF
gRPC with java
Knoldus Inc.
 
PDF
OpenAPI and gRPC Side by-Side
Tim Burks
 
PPTX
Learn nginx in 90mins
Larry Cai
 
PDF
gRPC: The Story of Microservices at Square
Apigee | Google Cloud
 
PPTX
NATS for Modern Messaging and Microservices
Apcera
 
PDF
gRPC vs REST: let the battle begin!
Alex Borysov
 
PPTX
SignalR for ASP.NET Developers
Shivanand Arur
 
PDF
Building Microservices with gRPC and NATS
Shiju Varghese
 
PPTX
NGINX: Basics and Best Practices
NGINX, Inc.
 
gRPC Design and Implementation
Varun Talwar
 
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
AboutYouGmbH
 
REST vs gRPC: Battle of API's
Luram Archanjo
 
Building microservices with grpc
Sathiyaseelan Muthu kumar
 
Power-up services with gRPC
The Software House
 
gRPC in Go
Almog Baku
 
What is gRPC introduction gRPC Explained
jeetendra mandal
 
Building your First gRPC Service
Jessie Barnett
 
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
Codemotion
 
Inter-Process Communication in Microservices using gRPC
Shiju Varghese
 
gRPC with java
Knoldus Inc.
 
OpenAPI and gRPC Side by-Side
Tim Burks
 
Learn nginx in 90mins
Larry Cai
 
gRPC: The Story of Microservices at Square
Apigee | Google Cloud
 
NATS for Modern Messaging and Microservices
Apcera
 
gRPC vs REST: let the battle begin!
Alex Borysov
 
SignalR for ASP.NET Developers
Shivanand Arur
 
Building Microservices with gRPC and NATS
Shiju Varghese
 
NGINX: Basics and Best Practices
NGINX, Inc.
 
Ad

Similar to gRPC (20)

PPTX
Demystifying gRPC in .Net by John Staveley
John Staveley
 
PPTX
Microservices summit talk 1/31
Varun Talwar
 
PDF
Cloud native IPC for Microservices Workshop @ Containerdays 2022
QAware GmbH
 
PDF
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
재현 신
 
PDF
Cloud Native API Design and Management
AllBits BVBA (freelancer)
 
PPTX
Apa itu gRPC_.pptx
FransiskusBarus1
 
PDF
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
Ambassador Labs
 
PDF
gRPC services testing
Thivya Lakshmi
 
PDF
REST in Peace. Long live gRPC!
QAware GmbH
 
PDF
REST in Peace. Long live gRPC!
QAware GmbH
 
PDF
Aplicações realtime com gRPC
Leandro Lugaresi
 
PPTX
REST in Peace. Long live gRPC! @ Codineers
QAware GmbH
 
PDF
Build microservice with gRPC in golang
Ting-Li Chou
 
PDF
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
apidays
 
PPTX
gRPC - Fastest Data Transfer Protocol
Sougata Pal
 
PPTX
Managing gRPC Services using Kong KONNECT and the KONG API Gateway
João Esperancinha
 
PDF
gRPC or Rest, why not both?
Mohammad Murad
 
PDF
gRPC stack supporting Intel Resource Director technology (RDT)
Michelle Holley
 
PDF
Aspnet Core Grpc For Wcf Developers V60 20211217 Mark Rendle
iredestyffe
 
PPTX
The new (is it really ) api stack
Red Hat
 
Demystifying gRPC in .Net by John Staveley
John Staveley
 
Microservices summit talk 1/31
Varun Talwar
 
Cloud native IPC for Microservices Workshop @ Containerdays 2022
QAware GmbH
 
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
재현 신
 
Cloud Native API Design and Management
AllBits BVBA (freelancer)
 
Apa itu gRPC_.pptx
FransiskusBarus1
 
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
Ambassador Labs
 
gRPC services testing
Thivya Lakshmi
 
REST in Peace. Long live gRPC!
QAware GmbH
 
REST in Peace. Long live gRPC!
QAware GmbH
 
Aplicações realtime com gRPC
Leandro Lugaresi
 
REST in Peace. Long live gRPC! @ Codineers
QAware GmbH
 
Build microservice with gRPC in golang
Ting-Li Chou
 
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
apidays
 
gRPC - Fastest Data Transfer Protocol
Sougata Pal
 
Managing gRPC Services using Kong KONNECT and the KONG API Gateway
João Esperancinha
 
gRPC or Rest, why not both?
Mohammad Murad
 
gRPC stack supporting Intel Resource Director technology (RDT)
Michelle Holley
 
Aspnet Core Grpc For Wcf Developers V60 20211217 Mark Rendle
iredestyffe
 
The new (is it really ) api stack
Red Hat
 
Ad

Recently uploaded (20)

DOCX
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Presentation about variables and constant.pptx
kr2589474
 
Exploring AI Agents in Process Industries
amoreira6
 
Activate_Methodology_Summary presentatio
annapureddyn
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 

gRPC