Testing gRPC Server Streaming Methods

Before we start

First thing we need to create a gRPC service that has a server streaming method. For this tutorial, we will run the gRPC service found at https://github.com/namigop/grpctutorials/tree/main/ServerStreaming

This service has the following server streaming method

rpc GetNotifications(GetNotificationsRequest) returns (stream GetNotificationsResponse);

Test the service

Start the gRPC service

Start FintX then click on the plus icon to add a client. The value entered in the http address should match the running service

Click Okay

Once the gRPC lclient is created and displayed int he UI, double-click on the method to open it in the tab. Alternatively, you can also click the “Create Request Button” to create request file that is saved on disk

In the screenshow below, 2 request *.fxrq) files created created under the Server Streaming method GetNotifications. Double on one of the request files to open it in the tab

Click the Run button

The server stream will show in the lower-right panel. Once the server is fnished streaming, the final response will be shown on the upper-right panel (above the server stream)

Leave a Reply

Your email address will not be published. Required fields are marked *