gRPC — Clients
Implementing a gRPC client in NodeJS
In the previous article, we have implemented a gRPC server in Java. We keep that running and use different clients to send the request to this server. As I mentioned in the previous article, there are different types of clients to deal with gRPC servers.
- GUI Client
- CUI Client
- Own Clients programmed by developers.
1. gRPC GUI Clients
There are many gRPC GUI clients. We’ll use one of the old clients which is Bloom RPC. Note — The Bloom RPC project is archived and is not being maintained now. Nonetheless, it is very simple and serves our purpose well. I am still using the Boolm RPC without any trouble and we will now see how we can send the requests using Bloom RPC.
First things first. Install Bloom RPC following this link: https://github.com/bloomrpc/bloomrpc/releases/tag/1.5.3
The UI looks like the below GIF.
Now the .proto
files are to be loaded into the tool. Why?
Well, we already mentioned that both the client and server need to agree upon the message format that they are dealing with. So the server is already up and running with Students.proto
file loaded in the previous article. Now it is the client’s turn to use…