Skip to content
Greeter gRPC API implementation in node.js
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind WajahatAliAbid:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

gRPC implementation using Node.js

What is gRPC

gRPC (gRPC Remote Procedure Calls) is an open source remote procedure call (RPC) system initially developed at Google. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts.

You can read more about grpc here


It's a basic Hello World grpc Api where we have a server and a client. To run the application first boot up the server by running the server.js file. When server is up and running, we can run the client application to send request to server and get response. Steps are as follows Open an instance of terminal and run the following commands

    npm build ./src/
    node ./src/server.js

Open another instance of terminal and run the following command

    node ./src/client.js

On running the client file, you'll get the following response

{ "message": "Hello World" }
You can’t perform that action at this time.