Updating a service project so that it uses gRPC
When using .NET templates to create new projects, a gRPC service can be created by running the following command:
dotnet new grpc
When using such a project, you can check the project file to see the NuGet packages and other configurations that are needed.
Because we already have existing projects, we’ll update these to offer a gRPC service. But first, let’s have a look at the communication between the Codebreaker services shown in Figure 14.1:
Figure 14.1 – Codebreaker communication technologies
Let’s start with the right-hand side. In Chapter 13, we implemented the Codebreaker live service using a SignalR hub, which notifies SignalR clients. For the SignalR client, we created a console client application. Also in Chapter 13, we used minimal ASP.NET Core APIs which allowed us to call the game-apis
service to send completed games. This is a form of service-to-service communication...