Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raelzeraxd/grpc

a grpc communication example with Go and Python
https://github.com/raelzeraxd/grpc

Last synced: 9 days ago
JSON representation

a grpc communication example with Go and Python

Awesome Lists containing this project

README

        

# O que é gRPC: Diferença entre REST API e Caso de Uso em Python com Golang

# Protocol buffers vs JSON
arquivos binários são menores que arquivos de texto(JSON)
processo de serializaçao é mais leve que JSON (converter classe pra json)

Fonts:
https://grpc.io/docs/what-is-grpc/introduction/
https://grpc.io/docs/languages/go/quickstart/
https://grpc.io/docs/languages/python/quickstart/
https://protobuf.dev/
https://www.youtube.com/watch?v=QyyMjF764mo

apt install protoc

# golang
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc --go_out=. --go-grpc_out=. ./proto/hello.proto

# python

virtualenv venv
source venv/bin/activate
python3 -m pip install grpcio
python3 -m pip install grpcio-tools