C# dotnet gRPC client and server in ASP.NET Core 6 — Client-Server sample application

Spencer Thomason
2 min readJul 2, 2022

--

Welcome to StartupHakk! Today we will be continuing our series on Coding for Entrepreneurs. I am a startup founder and developer and I know the perfect balance between the 2. So I am doing a series of coding tutorials that include easy projects to startup to make it easier for you to start your business, and build the things you need. Or, if you are just learning so that you can more efficiently manage developers and/or contractors — great! No matter what the reason that you are learning to code — I know that it will only make your business better. So let’s get started!

This tutorial shows how to create a .NET Core gRPC client and an ASP.NET Core gRPC Server. At the end, you’ll have a gRPC client that communicates with the gRPC Greeter service.

In this tutorial, you:

  • Create a gRPC Server.
  • Create a gRPC client.
  • Test the gRPC client service with the gRPC Greeter service.

It ultimately depends on the technology you’re building on but in this series, we’ll be working on .Net/.Net CORE. For that, you either want to use Microsoft Visual Studio or Microsoft Visual Studio Code. Both of them can be downloaded for free from the official website for both Windows and macOS.

You can download both of them and see which one suits your needs. In this video, we’ll create a new project and create a simple Hello World application. It can act as a guide to get familiarized with different aspects of visual studio/code such as the solution explorer and properties.

Visual Studio vs Visual Studio Code

You can think of Visual Studio as a cookie-cutter solution that is jampacked with features and functionality. As Visual Studio is much more powerful, it works in most situations out of the box whereas Visual Studio Code can be considered a Lite version of it with lots of addons available which can ultimately make the two nearly identical. Some might even consider it as a “glorified text editor”. In comparison, Visual Studio does require more knowledge to be utilized to its true potential unlike Visual Studio Code which is more beginner-friendly however, Visual Studio does offer more precise control over everything. At the end of the day, it all comes down to personal preference.

--

--