Skip to content

Latest commit

聽

History

History
聽
聽

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
聽
聽
聽
聽
聽
聽
聽
聽

README.md

grpc.proxy

Listens on https port 7151 and will echo back whatever is published to grpc-echo on tcp port 50051.

Requirements

Setup

To start the Docker Compose stack defined in the compose.yaml file, use:

docker compose up -d

Verify behavior

Unary Stream

Echo {"message":"Hello World"} message via unary rpc.

grpcurl -insecure -proto ./etc/protos/echo.proto  -d '{"message":"Hello World"}' \
    localhost:7153 grpc.examples.echo.Echo.UnaryEcho

output:

{
  "message": "Hello World"
}

Bidirectional streaming

Echo messages via bidirectional streaming rpc.

grpcurl -insecure -proto ./etc/protos/echo.proto -d @ \
    localhost:7153 grpc.examples.echo.Echo.BidirectionalStreamingEcho

Paste below message.

{
  "message": "Hello World"
}

Teardown

To remove any resources created by the Docker Compose stack, use:

docker compose down