-
Book Overview & Buying
-
Table Of Contents
ASP.NET Core 9 Web API Cookbook
By :
In modern distributed systems, communication patterns fall into two main categories: North-South traffic (communication between external clients and your backend services) and East-West traffic (inter-service communication within your system). This chapter focuses on East-West traffic patterns in .NET distributed applications.
We will begin with fundamental gRPC communication in .NET Aspire, showing how to manually configure and implement service-to-service calls. The journey will continue with bidirectional streaming via pure gRPC, showcasing how to handle real-time updates without additional overhead. We will then transition to implementing similar communication patterns using Distributed Application Runtime (Dapr). While Aspire handles service orchestration, Dapr provides production-ready implementations of common microservices patterns through its sidecar architecture. Specifically, we will explore Dapr’s publish/subscribe (pub/sub) messaging and state...