<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Roman Lemko on Medium]]></title>
        <description><![CDATA[Stories by Roman Lemko on Medium]]></description>
        <link>https://medium.com/@romanlemko?source=rss-cbefa2b7d2fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*knCPqe6ng12HK-NZ.</url>
            <title>Stories by Roman Lemko on Medium</title>
            <link>https://medium.com/@romanlemko?source=rss-cbefa2b7d2fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:38:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@romanlemko/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[gRPC in .NET Core 3.0. What is really new?]]></title>
            <link>https://medium.com/@romanlemko/grpc-in-net-core-3-0-what-is-really-new-d1999894aae0?source=rss-cbefa2b7d2fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1999894aae0</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <dc:creator><![CDATA[Roman Lemko]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 00:07:36 GMT</pubDate>
            <atom:updated>2019-10-14T11:47:36.272Z</atom:updated>
            <content:encoded><![CDATA[<h3>gRPC in .NET Core 3.0. What is really new?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9go2-h0g6R9LpaU6_dyzQ.png" /><figcaption>Blog post title from grpc.io</figcaption></figure><h3>TL;DR: There are now two implementations of gRPC for C#:</h3><ul><li><a href="https://github.com/grpc/grpc/tree/master/src/csharp"><strong>Grpc.Core</strong></a>: The original gRPC C# implementation based on the native gRPC Core library.</li><li><a href="https://github.com/grpc/grpc-dotnet"><strong>grpc-dotnet</strong></a>: The new implementation written entirely in C# with no native dependencies and based on the newly released .NET Core 3.0.</li></ul><p>See <a href="https://grpc.io/blog/grpc-on-dotnetcore/">https://grpc.io/blog/grpc-on-dotnetcore/</a> for more details.</p><p>Now for the long version.</p><h3>How did I come to this?</h3><p>So, I’ve been using gRPC with .NET Core 2.0/2.1 for almost a year now. And because it’s a fairly new technology, especially in .NET world, I thought I’ll prepare an introductory gRPC talk for our local .NET community.</p><p>My agenda looked something like this:</p><ol><li>What’s that gRPC thing anyway?</li><li>How do we use it in our daily development?</li><li>What’s new in .NET Core 3.0 that will help you start using it?</li></ol><p>First two parts went relatively easy — there’s quite a lot of information on gRPC in general and I had an idea of what I want to share from our experience of working with it.</p><h3>Microsoft not making it easy</h3><p>But when I got to the third part, I couldn’t really find all that much information about gRPC in .NET Core 3.0! The only thing I could find was this <a href="https://youtu.be/Pa6qtu1wIs8">video</a> from ASP.NET Community Standup from 4 months before 3.0 release. They showcase Visual Studio integration, build-time code generation from protocol buffers, as well s ‘how to’s and ‘quick start’s. They also demonstrate some new NuGet packages they built for using gRPC with .NET.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rM1isbxd2N_nPh0lWXZKKQ.png" /></figure><p>So I went to see what those NuGet packages were. Here’s a screenshot of some of them. There are actually 18 packages. Among them are Grpc.Tools and Grpc.Core (from original implementation — we’ll get to that in a minute). As well as Grpc.AspNetCore, Grpc.Net.Common and dotnet-grpc. What?<br>I also tried Microsoft’s article describing <a href="https://docs.microsoft.com/uk-ua/dotnet/core/whats-new/dotnet-core-3-0">.NET Core 3.0 release</a>. A quick Command+F showed that gRPC isn’t mentioned there at all. Okay!</p><p>And then I found the <a href="https://grpc.io/blog/grpc-on-dotnetcore/">post</a> from the TL;DR; section! It’s actually by Microsoft’s program manager who was part of the ASP.Net Core team developing the gRPC integration in .Net Core 3.0. He was also on the video mentioned before. It appears that the only thing they forgot to mention was that <strong>they’re building a completely new thing!</strong></p><p>Well, almost.</p><h3>The new thing (a.k.a grpc-dotnet)</h3><p>What the ASP.Net Core gRPC team at Microsoft actually did was they sat with people from <a href="https://www.cncf.io/">Cloud Native Computing Foundation</a> — the owners of gRPC project, as well as with a developer from gRPC team at Google, who was the author of the <a href="https://github.com/grpc/grpc/tree/master/src/csharp">original implementation of gRPC for C#</a>.</p><p>They created a <a href="https://github.com/grpc/grpc-dotnet">new brew of gRPC for .NET</a>. This new implementation will live and evolve <strong>alongside the original</strong>.</p><p>The main difference between them is that the first (original) one uses a gRPC C-Core Server and Interop layer, as well as a Grpc.Core NuGet to connect the C# application to the HTTP/2 that’s used by gRPC on transport level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZhdULmRwJjqdg7_wEpIrdA.png" /><figcaption>The difference between the original (Grpc.Core) and new (grpc-dotnet) implementations of gRPC for .NET. (source: <a href="https://grpc.io/blog/grpc-on-dotnetcore/">https://grpc.io/blog/grpc-on-dotnetcore/</a>)</figcaption></figure><p>Meanwhile, the new one integrates with .NET Core using the networking primitives from Base Class Library. What that brings us is that we can</p><blockquote>… benefit from ecosystem of common cross-cutting concerns of logging, configuration, dependency injection, authentication, authorization etc. which have already been solved by ASP.NET Core. Popular libraries in the ASP.NET ecosystem such as <a href="https://github.com/aspnet/EntityFrameworkCore">Entity Framework Core (ORM)</a>, <a href="https://github.com/serilog/serilog">Serilog (Logging library)</a>, and <a href="https://github.com/IdentityServer/IdentityServer4">Identity Server</a> among others now work seamlessly with gRPC. <br>source: <a href="https://grpc.io/blog/grpc-on-dotnetcore/">https://grpc.io/blog/grpc-on-dotnetcore/</a></blockquote><p>That‘s server. And what about the client? It gets tweaked as well!</p><blockquote>On the client side, the Grpc.Net.Client package builds upon the familiar HttpClient API that ships as part of .NET Core. As with the server, gRPC clients greatly benefit from the ecosystem of packages that build upon HttpClient. It is now possible to use existing packages such as <a href="https://github.com/App-vNext/Polly"><strong>Polly</strong>(Resilience and fault-handling library)</a> and <a href="https://docs.microsoft.com/aspnet/core/fundamentals/http-requests">HttpClientFactory(manage HTTPClient lifetimes)</a> with gRPC clients.</blockquote><p>That basically means that <strong>we will be able to write much more familiar code using the native concepts and features of .NET Core that we’re all used to. </strong>Niiice!</p><p>It gets better. Because Microsoft people collaborated with developers from Google and CNCF, they were able to reuse some of the existing packages (remember Grpc.Core and Grpc.Tools?). And that’s not just awesome from SOLID, DRY and other acronym-based principles point of view. The great thing about it is that it makes it easier (for now, in theory), to switch between implementations with less refactoring required!</p><p>I also know that Microsoft went to companies that use gRPC with .NET in production to ask about how they could improve the development experience. And it looks like they’ve been writing down the answers 🙂</p><h3>Yes, Visual Studio and dotnet cli also get tweaked</h3><p>The first big update is the new ‘grpc service’ project template. It is available from Create New Project menu, as well as from command lime using<br>$ dotnet new grpc. The template contains all required NuGets, as well as some examples and boilerplate code to get you started faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*sh6elIicC9wObWkQ.png" /><figcaption>New gRPC Service project template in Visual Studio 2019</figcaption></figure><p>Another thing worth mentioning is that Visual Studio now supports IntelliSense and error highlighting for protobuf files. Protocol buffers compilation errors even get mapped to specific lines in your editor!</p><p>Being a JetBrains Rider fan, I’m not yet convinced to switch back to Visual Studio, but this new stuff did make me install the 2019 Community Edition. But if you’re already using Microsoft’s IDE, these great features will add to your Visual Studio experience and make developing new and existing gRPC services a little bit comfier.</p><h3>Summary</h3><p>I think Microsoft and their ASP.Net Core team did a great job of making gRPC a first-class citizen in .NET ecosystem. By cooperating with open source community, they again managed to do things right and to me it looks like another step in a correct direction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1999894aae0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>