Skip to main content

gRPC

gRPC operations have some specialties. For example, gRPC supports multiple requests and responses in an operation. In addition, a Kreya gRPC operation must always correspondend to a service method of the gRPC service and the protobuf definitions have to be imported.

Sending requests manually

In case of bidirectional or client-streaming methods, operations may contain multiple requests. By default, sending (or "invoking") an operation with multiple requests will send them one after another as soon as possible. If this does not suit you, select the 'Send requests manually' option from the 'Send' button dropdown. With it, you have complete control over the sending of requests.

Creating a gRPC operation

Add a new operation by clicking the icon. Choose a descriptive name and select the desired gRPC package, service and method.

Modifying gRPC requests

Request contents can be modified by editing the JSON content directly in the editor. Adding requests is possible with the 'Add request' button, if the current operation supports multiple requests. To delete requests, hover over the requests header and click the trash can icon twice.