Back to Gofr

gRPC Unary Client Example

examples/grpc/grpc-unary-client/README.md

1.56.4645 B
Original Source

gRPC Unary Client Example

This GoFr example demonstrates a simple gRPC unary client that communicates with another gRPC service hosted on a different machine. It serves as a client for another gRPC example included in this examples folder. Refer to the documentation to setup

Steps to Run the Example

  1. First, start the corresponding grpc-unary-server example, which is located at the relative path: ../grpc-unary-server.
    Use the following command to start it:

    console
    go run main.go
    
  2. Once the grpc-unary-server is running, start this server using a similar command:

    console
    go run main.go