Service-to-Service Invocation

In this chapter, we will learn how Distributed Application Runtime (Dapr) applications can communicate with each other via the Dapr infrastructure.

We are going to understand this with the following main topics:

  • Invoking services with Dapr
  • Service invocation with the .NET SDK
  • Comparing HTTP and gRPC to Dapr

With hands-on examples, we will understand how to implement services and invoke them from other applications, which can be either aware of the presence of Dapr, as they rely on its SDK, or unaware, as they just invoke a local HTTP endpoint.

Before we start using service-to-service invocation, a building block of Dapr, let’s understand how it works, using an example.

Technical requirements

The code for this ...

Get Practical Microservices with Dapr and .NET - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.