gRPC is a modern, language-independent remote procedure call framework for building efficient binary APIs between servers. In ASP.NET Core, it provides a focused alternative to ordinary HTTP APIs when service-to-service communication is the priority. section 1.2 section 2.4.3
Choose gRPC when:
- A backend service needs to call another backend service through an efficient binary API. section 1.2
- A contract-based RPC programming model fits better than a conventional REST or HTTP API. section 2.4.3
- You want to combine multiple ASP.NET Core paradigms in one application and dedicate gRPC to service-to-service calls. section 1.2
Selecting an API style
An ASP.NET Core application can serve HTML pages to traditional clients, expose a REST API to a browser-based single-page application, and provide an ad hoc RPC service to another client. gRPC is the suitable choice in that last service-to-service role when efficient binary communication is needed. section 1.2









