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
REST vs gRPC: Battle of API's
PPTX
GRPC.pptx
PPTX
Introduction to gRPC
PDF
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
PDF
gRPC Design and Implementation
PDF
gRPC Overview
PDF
gRPC and Microservices
PDF
OpenAPI and gRPC Side by-Side
REST vs gRPC: Battle of API's
GRPC.pptx
Introduction to gRPC
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
gRPC Design and Implementation
gRPC Overview
gRPC and Microservices
OpenAPI and gRPC Side by-Side

What's hot (20)

PDF
Introduction to gRPC
PPTX
HTTP2 and gRPC
PPTX
Node.js Express
PDF
gRPC - RPC rebirth?
PDF
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
PDF
Introduction to Node.js
PDF
Building microservices with grpc
PDF
gRPC in Go
PDF
RPC에서 REST까지 간단한 개념소개
PPTX
Spring Webflux
PDF
REST API and CRUD
PPTX
REST API Design & Development
ODP
Introduction to ReactJS
ODP
Angular 6 - The Complete Guide
PDF
gRPC vs REST: let the battle begin!
PDF
Inter-Process Communication in Microservices using gRPC
PDF
Building High Performance APIs In Go Using gRPC And Protocol Buffers
PPTX
Introduction to Node.js
Introduction to gRPC
HTTP2 and gRPC
Node.js Express
gRPC - RPC rebirth?
Introduction to gRPC: A general RPC framework that puts mobile and HTTP/2 fir...
Introduction to Node.js
Building microservices with grpc
gRPC in Go
RPC에서 REST까지 간단한 개념소개
Spring Webflux
REST API and CRUD
REST API Design & Development
Introduction to ReactJS
Angular 6 - The Complete Guide
gRPC vs REST: let the battle begin!
Inter-Process Communication in Microservices using gRPC
Building High Performance APIs In Go Using gRPC And Protocol Buffers
Introduction to Node.js
Ad

Similar to gRPC (20)

PPTX
Demystifying gRPC in .Net by John Staveley
PPTX
Microservices summit talk 1/31
PDF
Cloud native IPC for Microservices Workshop @ Containerdays 2022
PDF
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
PDF
Cloud Native API Design and Management
PPTX
Apa itu gRPC_.pptx
PDF
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
PDF
gRPC services testing
PDF
REST in Peace. Long live gRPC!
PPTX
What is gRPC introduction gRPC Explained
PDF
REST in Peace. Long live gRPC!
PDF
Aplicações realtime com gRPC
PDF
gRPC with java
PPTX
REST in Peace. Long live gRPC! @ Codineers
PDF
Build microservice with gRPC in golang
PDF
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
PPTX
gRPC - Fastest Data Transfer Protocol
PPTX
Managing gRPC Services using Kong KONNECT and the KONG API Gateway
PDF
gRPC or Rest, why not both?
PDF
gRPC stack supporting Intel Resource Director technology (RDT)
Demystifying gRPC in .Net by John Staveley
Microservices summit talk 1/31
Cloud native IPC for Microservices Workshop @ Containerdays 2022
gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020
Cloud Native API Design and Management
Apa itu gRPC_.pptx
Bringing Learnings from Googley Microservices with gRPC - Varun Talwar, Google
gRPC services testing
REST in Peace. Long live gRPC!
What is gRPC introduction gRPC Explained
REST in Peace. Long live gRPC!
Aplicações realtime com gRPC
gRPC with java
REST in Peace. Long live gRPC! @ Codineers
Build microservice with gRPC in golang
APIdays Helsinki 2019 - gRPC: Lightning Fast, Self-Documenting APIs with Moha...
gRPC - Fastest Data Transfer Protocol
Managing gRPC Services using Kong KONNECT and the KONG API Gateway
gRPC or Rest, why not both?
gRPC stack supporting Intel Resource Director technology (RDT)
Ad

Recently uploaded (20)

PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
AI Guide for Business Growth - Arna Softech
PDF
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
PPTX
Lecture 5 Software Requirement Engineering
PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
PPTX
Python is a high-level, interpreted programming language
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PPTX
Tech Workshop Escape Room Tech Workshop
PPTX
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PPTX
Computer Software - Technology and Livelihood Education
PDF
Guide to Food Delivery App Development.pdf
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PPTX
Trending Python Topics for Data Visualization in 2025
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
DOC
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
PDF
DNT Brochure 2025 – ISV Solutions @ D365
Topaz Photo AI Crack New Download (Latest 2025)
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
AI Guide for Business Growth - Arna Softech
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
Lecture 5 Software Requirement Engineering
How Tridens DevSecOps Ensures Compliance, Security, and Agility
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
Python is a high-level, interpreted programming language
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
Tech Workshop Escape Room Tech Workshop
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
Computer Software - Technology and Livelihood Education
Guide to Food Delivery App Development.pdf
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
Trending Python Topics for Data Visualization in 2025
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
DNT Brochure 2025 – ISV Solutions @ D365

gRPC