Skip to content

woodysee/small-grpc-go-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

small-grpc-go-service

Tiny Golang service with a gRPC setup

gRPC vs REST

  • Payload data type
  • Protocol type
    • gRPC: HTTP/2?
    • REST: HTTP/1.1

Pre-requisites

  • Go ^1.17
  • GNU Make
  • make proto requires installing protoc-gen-go and protoc-gen-go-grpc first.
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Development

make server
# In another Shell window
make client

# Generates or updates *.pb.go generated files. They should be not be directly edited.
. .envrc # Run these commands when starting a new shell window. Alternatively you can put this in your own global shell RC file.
make proto

References

About

Tiny Golang service with a gRPC setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published