Inspired by the course of Stephane Maarek.
- Unary
- Server Streaming
- Client Streaming
- Bi-Directional Streaming
- Blog example: CRUD + download image
- https://grpc.io/docs/guides/auth/
- https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-auth-support.md
Command line:
go get github.com/ktr0731/evans
evans -p 50051 -r
show package
show service
show message
desc SumRequest
package calculator
service CalculatorService
call Sum
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
mkdir database/data/db
mongod --dbpath database/data/db
- Interface for mongoDB - Robo 3T
https://robomongo.org/download
- driver
go get go.mongodb.org/mongo-driver/mongo
- https://github.com/googleapis/googleapis/blob/master/google/pubsub/v1/pubsub.proto
- https://github.com/googleapis/googleapis/blob/master/google/spanner/v1/spanner.proto
https://github.com/grpc-ecosystem/grpc-gateway
gRPC to JSON proxy generator following the gRPC HTTP spec.
Third party with extra performance.
- local
export Environment=local
go run blog/blog_server/*.go
go run blog/blog_client/client.go
evans -p 50051 -r
- with TLS
export Environment=somethingElse
go run blog/blog_server/*.go
evans -p 50051 -r --tls --host=localhost --cacert ssl/ca.crt