uber-common / cadence-samples

Other
191 stars 92 forks source link

Switch cadence-samples to gRPC #52

Closed vytautas-karpavicius closed 2 years ago

vytautas-karpavicius commented 2 years ago

Switched Cadence samples to use gRPC.

  1. Updated Go SDK to v0.18.3 which includes gRPC compatibility layer
    go get go.uber.org/cadence@v0.18.3
    go mod tidy
  2. Switched transport from tchannel to grpc when creating outbound to Cadence frontend service.
  3. Added compatibility.NewThrift2ProtoAdapter adapter so that we can continue using old API with Thrift types via gRPC.
  4. Updated config file to use gRPC port (7833).

Tested locally, by running local Cadence server and running helloworld sample.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.