gRPC using .NET core notes
-gRPC is a framework for RPC calls
-helps to execute a remote method somewhere in the n/w
-born out of goog, gRPC is a open source variant
-MS .NET team is partnering with goog folks and CNCF to make gRPC performant on .NET core
-it has 4 low level primitives
1) Unity calls (single client req, single server response)
2) Client streaming (multiple client req, single server response)
3) Server streaming (single cli-req, multiple server response)
4) full duplex
-it works on top of http2 as a transporter
-gRPC-web preview exist today for browser support but gRPC is pretty for svc-svc communication
-it needs a protobuf file defining the message types used by the gRPC- contract equivalent
- $ dotnet new grpc -o GrpcServer to generate a sample proj in .NET core
- building the project generates the code file for most of the languages based on proto contract file
- protobuf -binary seralization format, https/2, multiplexing, streaming, more efficient, quality of generated code is better for any languages makes gRPC better than REST API’s.
- REST API’s required path, verb used etc but in gRPC not required
- – one can expose them as HTTP endpoints or gRPC endpoints – option is there
- gRPC ->
- Get started with a gRPC service
- Introduction to gRPC on .NET Core
.NET in 2020 (Build recap)
Announcements from //Build 2020 event, [Video1] [Video2]
- .NET 5 is a path forward (merging .NET core and mono/xamarin), .NET 6 and on.
- C# 9 and F#5 released; It will be part of .NET 5
- .NET 5 will have lesser container img size
- Win Form designer support for .NET Core; you can design winforms using .NET core
- Blazor (Web Assembly) – Ready for production. Now, .NET runs on our browser
- .NET (MAUI) – Multi platform App UI -> build cross-platform Native UI; build once, deploy to multiple devices
- VS 2019 enhancements and mac support
Happy learning !
-
Recent
- The ID token is not yet valid. Make sure your computer’s time and time zone are both correct. Current epoch = 1689517128
- .NET Core – How to create a .NET GUI app which runs across the platform
- AKS 2022 updates
- Linux firewall and connectivity issues
- Microsoft Ignite (Sep22-24) event recap & On-demand sessions
- [Linux] Steps to install and configure sysstat package for monitoring.
- Azure Security Enablement – Centralized place for all the links
- Presenting tech session with stories [linkedin learning notes]
- gRPC using .NET core notes
- .NET in 2020 (Build recap)
- #KubeCon CNCF – North America 2019 watchlist
- AKS CLI Sheetcheat for the labs
-
Links