Sign inSign up

tmarkovski/grpc-quickstart

By tmarkovski

•Updated almost 2 years ago

A lightweight gRPC greeter service. Supports gRPC server reflection.

Image
Developer tools
0

4.2K

tmarkovski/grpc-quickstart repository overview

⁠Overview

This project sets up a gRPC-enabled Docker image with server reflection. The intention is to provide a quick-start template for creating and deploying gRPC services using ASP.NET Core.

⁠gRPC Service

  • greet.proto: Defines a Greeter service with a SayHello RPC method.
  • GreeterService.cs: Implements the SayHello method to return a greeting message.

⁠Running the Application

To build and run the Docker image:

docker build -t grpc-quickstart .
docker run -p 80:80 grpc-quickstart

⁠Testing Connectivity

You can use tools like grpcurl to test the connectivity and functionality of the gRPC service:

grpcurl -plaintext localhost:80 list
grpcurl -plaintext -d '{"name": "World"}' localhost:80 greet.Greeter/SayHello

This project provides a quick and easy way to set up a gRPC service with server reflection, making it easier to test and debug using tools like grpcurl.

Tag summary

Content type

Image

Digest

sha256:d2d616bb7…

Size

88.9 MB

Last updated

almost 2 years ago

docker pull tmarkovski/grpc-quickstart