Skip to content

KamilLelonek/grpc-with-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-with-go

This is the repository to provide an example code for the blogpost about using gRPC with Go.

Development

You may want to leverage Makefile to install protoc compiler. Tou can also use it to download protoc-gen-go and finally to compile gravatar.proto file.

To do all of these things at once, just run:

make compile

Once finished, you should see gravatar.pb.go file generated.

Usage

Tu run the application, you will need to start the server (to handle requests) and a client (to receive responses). They can be executed correspondingly as:

go run server/main.go

go run client/main.go

and have to be run in separate terminal windows as the server is a long-running process, while a client is just a one-time call.

About

An example implementation of gRPC in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages