Menu
Microsoft brings gRPC-Web support to .NET

Microsoft brings gRPC-Web support to .NET

Experimental support allows ASP.NET Core gRPC apps and .NET Core gRPC clients to call gRPC services directly

Credit: Dreamstime

Microsoft has rolled out experimental support for gRPC-Web in .NET Core and ASP.NET Core, allowing gRPC-Web to be called directly from the .NET Core gRPC client and ASP.NET Core gRPC apps.

Compatible with HTTP/1 and HTTP/2, gRPC-Web is a JavaScript client library supporting the same API as gRPC-Node to access a gRPC service, with gRPC serving as an open source RPC framework enabling client and server applications to transparently communicate.

With gRPC-Web for .NET, Microsoft expects to bring the following capabilities to browser apps:

  • Server streaming
  • Compact Protobuf messages
  • Strongly typed, code-generated clients

The experimental package lets an ASP.NET Core app support gRPC-Web without a proxy and allows the .NET Core gRPC client to call gRPC Web services, which is useful for Blazor WebAssembly apps. Aside from calling ASP.NET Core gRPC apps from the browser, opportunities for gRPC-Web include:

  • Calling gRPC from platforms such as Blazor WebAssembly and Xamarin.
  • Hosting ASP.NET Core gRPC apps in Azure App Services and IIS.

With gRPC-Web, there is a stable client gRPC-Web JavaScript client and a proxy for translating between gRPC and gRPC-Web for services. Microsoft noted there is a small performance cost to gRPC-Web and that two gRPC features—client streaming and bidirectional streaming—are no longer supported.

To get started with gRPC in .NET, Microsoft has published a tutorial on creating a gRPC client and server in ASP.NET Core.

With gRPC-Web, no changes are required to services, only the start-up configuration is modified. The gRPC GitHub repo provides instructions for setting up a gRPC-Web client for JavaScript SPAs.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags Microsoft

Events

Featured

Slideshows

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

This year’s Reseller News 30 Under 30 Tech Awards were held as an integral part of the first entirely virtual Emerging Leaders​ forum, an annual event dedicated to identifying, educating and showcasing the New Zealand technology market’s rising stars. The 30 Under 30 Tech Awards 2020 recognised the outstanding achievements and business excellence of 30 talented individuals​, across both young leaders and those just starting out. In this slideshow, Reseller News honours this year's winners and captures their thoughts about how their ideas of leadership have changed over time.​

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners
Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

This exclusive Reseller News Exchange event in Auckland explored the challenges facing the partner community on the cloud security frontier, as well as market trends, customer priorities and how the channel can capitalise on the opportunities available. In association with Arrow, Bitdefender, Exclusive Networks, Fortinet and Palo Alto Networks. Photos by Gino Demeer.

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security
Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomed 2019 inductees - Leanne Buer, Ross Jenkins and Terry Dunn - to the fourth running of the Reseller News Hall of Fame lunch, held at the French Cafe in Auckland. The inductees discussed the changing face of the IT channel ecosystem in New Zealand and what it means to be a Reseller News Hall of Fame inductee. Photos by Gino Demeer.

Reseller News welcomes industry figures at 2020 Hall of Fame lunch
Show Comments