proxy

command module
v0.0.0-...-93c17bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Cadence Proxy

A small executable that accepts incoming Thrift/HTTP requests and proxies them to Cadence server using Thrift/TChannel.

Why?

As of now Cadence only exposes Thrift via TChannel connection for its clients. And while Thrift implementation is available for most languages, TChannel is not (supports only Go, Node, Python and Java).

This makes it impossible for other language to connect to Cadence without implementing the whole TChannel protocol from scratch.

This project solves the problem by exposing the Cadence interface via HTTP and proxies all the calls to Cadence via TChannel.

Compile

Build using:

> make

In order to update Thrift generated files:

> make thrift

Run

Then execute with:

> bin/proxy

You can also specify the bind address and cadence address using env variables:

> BIND_ADDRESS=127.0.0.1:1234 CADENCE_ADDRESS=127.0.0.1:2345 bin/proxy

these default to

BIND_ADDRESS=127.0.0.1:6666
CADENCE_ADDRESS=127.0.0.1:7933

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gen
cadence/workflowservicefx
Package workflowservicefx provides better integration for Fx for services implementing or calling WorkflowService.
Package workflowservicefx provides better integration for Fx for services implementing or calling WorkflowService.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL