Microsoft brings gRPC-Web support to .NET
- 10 February, 2020 05:00
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.
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.
To get started with gRPC in .NET, Microsoft has published a tutorial on creating a gRPC client and server in ASP.NET Core.