gRPC is a high-performance, cross-platform framework for building scalable APIs. In this course, you will learn how to leverage the power of gRPC to create fast and reliable APIs in .NET 8.

gRPC is designed to be fast, efficient, and lightweight. It uses binary serialization instead of text-based protocols like JSON or XML, which can significantly reduce network traffic and improve performance. Additionally, gRPC uses HTTP/2, which enables multiplexed streams, header compression, and server push, further improving performance and reducing latency.

In this course, you'll start by exploring the basics of gRPC, including how to create unary requests and responses. You'll learn how to define gRPC services and messages using Protocol Buffers, a language-agnostic binary serialization format that is used by gRPC. You'll also learn how to generate C# code from .proto files using the gRPC tools in .NET, and how to use the generated code to create gRPC clients and servers.

Next, you'll move on to more advanced topics, such as streaming and SSL security. You'll learn how to use server streaming and client streaming to send and receive multiple messages over a single connection. You'll also learn how to secure your gRPC communications using SSL certificates.

You'll also learn how to integrate gRPC with ASP.NET, the popular web application framework for .NET. You'll learn how to create gRPC services using ASP.NET Core, and how to use middleware to add authentication, authorization, and other functionality to your gRPC endpoints. You'll also learn how to host your gRPC services in a web application and how to consume them from gRPC clients, especially with Blazor WebAssembly.

By the end of the course, you'll be able to build robust and efficient APIs using gRPC and .NET 8, and you'll have a deep understanding of the benefits of using gRPC over other API protocols.

Topics covered:

  • Introduction to gRPC
  • Creating unary requests and responses
  • Protocol Buffers
  • Generating C# code from .proto files
  • Streaming with gRPC
  • Securing gRPC with TLS and SSL certificates
  • Integrating gRPC with ASP.NET
  • Hosting gRPC services in a web application
  • Consuming gRPC services from browser-based clients, such as Blazor WebAssembly, with gRPC-Web

Prerequisites:

  • Familiarity with C# and .NET development
  • Basic knowledge of HTTP and RESTful APIs

Target audience:

  • .NET developers who want to learn how to use gRPC to build high-performance APIs
  • Anyone interested in learning about the benefits of gRPC over other API protocols
See more

Content

4 sections · 26 lessons · 4h29min

 Let met introduce myself
2:59
 Theory (the only video about theory!)
6:25
 Creation & configuration of the console applications
10:33
 Our first Protobuf contract!
10:04
 gRPC client & server boilerplate code
10:50
 Let's make a request... and get a response!
13:44
 Exercise 1: what should you do?
3:29
 Exercise 1: implementation
11:06
 What about collections in my messages?
7:14
 Exercise 2: implementation
8:27
 Stream data from the server to the client
13:12
 Stream data from the client to the server
11:43
 Stream data in both ways!
10:56
 Time to practice! Exercise 3 - pagination
16:09
 Namespaces
6:10
 Create reusable types in your protobuf contracts
9:10
 Well-known types, or how to integrate common types like DateTime, TimeSpan, ...
18:11
 Handle timeouts and cancellation
10:05
 Secure communication with SSL certificates
11:35
 Expose reflection capabilites
15:57
 Add proto files to ASP.NET
11:11
 Add gRPC services in ASP.NET pipeline to handle requests
12:41
 Create a login endpoint
10:42
 Verify the token and secure the gRPC endpoint
8:04
 gRPC in the browser - Blazor WebAssembly - Introduction
7:00
 Fix the issues in our Blazor WASM application by using gRPC-Web
11:33

Course reviews

No reviews yet for this course!

Beginner Level:  Beginner
Videos:  26
Duration:   4h29min
Certificate of completion
67.00€
See company prices
Number of employees
1
67.00€ HT
Get 10% off for 2 accesses up to 30% off for 6 or more (excluding promotional courses)
See individual prices
This course is taught by
Christophe MOMMER