From the course: Building Java Microservices with gRPC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Types of gRPC calls

Types of gRPC calls

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

Types of gRPC calls

- gRPC supports both the blocking and asynchronous calls but further to that there are four types of gRPC calls that you can work with when you use this framework. The first one is Unary RPC. In this case, the client sends out a single request and the server comes back with a single response. Let us quickly see how this works. Let's say you have a Go gRPC client. The client first makes an RPC call to the server with the necessary request metadata like authentication details. The server gets notified of the call and if everything is okay, the connection is set up. Once a connection is established the client sends out the request to the server. The server receives it, processes it and prepares a response. If the status of the response is okay then the client receives it. And the call thus gets completed. A simple example of a Unary RPC call is when you log into your shopping website and try to view…

Contents