Slide 1

Slide 1 text

Microsoft Learn Student Ambassador Program 12.08.2020 Getting Started gRPC Web & Blazor Baris Ceviz - Jedi Software Engineer @Trendyol Microsoft Learn Student Ambassador Beta

Slide 2

Slide 2 text

Confidential Customized for Lorem Ipsum LLC Version 1.0 Agenda ● What’s gRPC Web ● How it works on .NET Core ● Create sample project with gRPC Web & Blazor Webassembly

Slide 3

Slide 3 text

What’s gRPC Web gRPC is a modern high-performance RPC (Remote Procedure Call) framework. gRPC is based on HTTP/2, Protocol Buffers and other modern standard-based technologies. gRPC is an open standard and is supported by many programming languages, including .NET.

Slide 4

Slide 4 text

New opportunities with gRPC-Web 1 gRPC cannot support Browser API but gRPC Web can work with SPA or Webassembly applications 2 gRPC-Web works on every environment. IIS and Azure Web Services cannot host gRPC Services but they can host gRPC Web 3 HTTP/2 is not supported by HttpClient on all .NET Platforms but gRPC Web can works with HttpClientHnadler

Slide 5

Slide 5 text

Mark Rendle Potentially in any audience I've been talking about WCF and gRPC for about a year now, and I ask the question "Who's using WCF?", and no hands go up. And then I ask "Who has legacy systems in their organization that are built with WCF?", and around 25% of the hands in the room go up. They've got these legacy systems. And so I want to talk a little bit about migration strategies to get from one thing to the other as well and to not get stuck with systems based on very old solutions.

Slide 6

Slide 6 text

How gRPC Web works?

Slide 7

Slide 7 text

Default gRPC Web ● Supporting both HTTP/1.1 and HTTP/2 ● A mandatory proxy for translating between gRPC-web requests and gRPC HTTP/2 responses. ● gRPC-Web is not compatible with client-side and bi-directional streaming. It’s compatible with unary and server-side streaming CEO Berry Books CFO Vinny Viewer Sales Director Wendy Writer

Slide 8

Slide 8 text

.NET gRPC Web ● No needed proxy like envoy ● Implement easily and support IIS and Azure App Services ● TLS & HTTP/2 with ALPN cannot support on mac OS .Net Core CEO Berry Books CFO Vinny Viewer Sales Director Wendy Writer

Slide 9

Slide 9 text

gRPC Web & Blazor Demo

Slide 10

Slide 10 text

May the source be with you