Skip to content

Repository used for learning gRPC/Protobuf and their interactions with Go as a server. Added Redis as a datastore (for now) so there is a more 'practical use case'. May add a NodeJS client, generating code for JS or TypeScript from the `.proto` file.

Notifications You must be signed in to change notification settings

hexnaught/lrn-grcp-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sources for resolving some issues when setting up

There are 3 very similarly named tools, one of them is newer and had a PR open as of April 1st 2020, has since been merged, but a lot of guides/tutorials/'get started' information is seemingly outdated.

golang/protobuf#1070

Issue with methods in auto-generated files not found

I resolved this by using the 'dev' version specified in this reddit thread

https://www.reddit.com/r/grpc/comments/ih5qn5/undefined_grpcsupportpackageisversion7/

Issue with missing go_package 'option'

https://stackoverflow.com/questions/61666805/correct-format-of-protoc-go-package

Credit

After I got past some of the issues I was having with the proto(buf) tooling I found this article/guide and decided to use the project layout and implement the example 'service' DB api, as it seemed a good one to learn as I typed out and edited later on.

There are some small code differences as I make use of the latest go-redis/redis version (v8) but nothing huge.

Credit: https://medium.com/@felipe.infantino.moreno/microservice-in-golang-using-redis-and-grpc-865587aa260c

About

Repository used for learning gRPC/Protobuf and their interactions with Go as a server. Added Redis as a datastore (for now) so there is a more 'practical use case'. May add a NodeJS client, generating code for JS or TypeScript from the `.proto` file.

Resources

Stars

Watchers

Forks

Languages