タグ

Rubyとgrpcに関するmiguchiのブックマーク (2)

  • Quick start

    gRPC toolsRuby’s gRPC tools include the protocol buffer compiler protoc and the special plugin for generating server and client code from the .proto service definitions. For the first part of our quick-start example, we’ve already generated the server and client stubs from helloworld.proto, but you’ll need the tools for the rest of our quick start, as well as later tutorials and your own projects.

    Quick start
  • gRPC & Go & Ruby SDK 作った - okadak1990’s blog

    目的 現在属している会社では、UGCのサービスを運用していて、大きなDBに、主要な情報が詰まってる。 そのDBに対して、複数のアプリケーションから情報を登録していたが、主要なデータのインサートについては、専用のアプリケーションに任せたいとなった。 そこで、Go lang で、gRPCサーバ作って、DB操作ができるようにしてみた。 やったこと gRPCサーバ側 proto ファイル作成 protoファイルを例をもとに作成した。 protoファイルから、goruby への変換は、下の docker ファイルを利用した。 github.com 環境構築 fresh を利用して、hot reloadできるようにした。 Dockerfile FROM golang:1.13 WORKDIR /src RUN go get github.com/pilu/fresh ENV GO111MODUL

    gRPC & Go & Ruby SDK 作った - okadak1990’s blog
  • 1