I am an Architect, Team Lead and a member of R&D Council in Visma Real Estate with 10+ years experience in .NET. Here I want to accumulate my thoughts and share some experience.
Grpc solution structure with multiple projects and references to proto files
31 Aug, 2021
-
6 min read
Grpc is getting more popular. Microsoft is promoting it with each new release of .net. But there is one thing that I personally really don't like with all the manuals on Internet (even Microsoft documentation) and it is that you have to manually copy your proto files between server and client. There is a .net cli tool that helps you add it either as a reference to a file or to a url somewhere on the internet. But again... it is 2021, do we really need to do it this way, Microsoft?. In this post I will show you how to make your life easier with complex project structure (when you have several protos referencing eachother) and extracting grpc service functionality into abstraction above that can be delivered via nuget...