aalvesjr / grpc-test

A tiny test using gRPC between Golang and Ruby languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC

example

A tiny test using gRPC between Golang and Ruby languages

  • Server: Golang, Client: Golang
  • Server: Ruby, Client: Golang
  • Server: Golang, Client: Ruby
  • Server: Ruby, Client: Ruby

Using

Both server are using "localhost:8080" by default address

Up and running one server:

# go server
go run server/server-go.go

# ruby server
ruby server/server-ruby.rb

then you can use any client to do some requests:

# go client:
go run client/client-go.go -id <id>

# ruby client
ruby client/client-ruby.rb <id>

Both clients are using "localhost:8080" by default server address

References

About

A tiny test using gRPC between Golang and Ruby languages


Languages

Language:Ruby 46.9%Language:Go 43.4%Language:Protocol Buffer 6.5%Language:Makefile 3.1%