Zipper can be started by the following command:
yomo serve -c config.yaml
config.yaml is a YAML file, which contains the configuration of the Zipper:
### general ### name: america host: 0.0.0.0 port: 9000 ### auth ### auth: type: token token: <CREDENTIAL> ### sfn ### functions: - name: sfn-ai-stream-response - name: sfn-async-log-events ### cascading ### downstreams: - zipper-asia_pacific host: 220.127.116.11 port: 9000 credential: 'token: <CREDENTIAL>' - zipper-america host: 18.104.22.168 port: 9000 credential: 'token: <CREDENTIAL>' - zipper-europe host: 22.214.171.124 port: 9000 credential: 'token: <CREDENTIAL>'
name- the name of the Zipper, it is used to identify the Zipper in the network.
host- the IP address zipper listens on, default value is
0.0.0.0, which means listen on all network interfaces, so the Source can connect over public Internet network, while the StreamFunction can connect over internal network, it will be cost effective when hosting on AWS etc.
port- the port zipper listens on, default value is
9000. Becareful, YoMo uses QUIC protocol, which is a UDP based protocol, so this port should be allow UDP ingress.
auth- provides the credential for the Zipper, it is used to authenticate the Source and StreamFunction when they connect to this Zipper.
type- the type of the credential, currently only
token- the credential, it is a string.
functions- the list of StreamFunctions that allowed to connect this Zipper.
downstreams- the list of downstream Zippers, the data will be forwarded to these Zippers when needed.
name- the name of the downstream Zipper, it is used to identify the Zipper in the network.
host- the IP address of the downstream Zipper.
port- the port of the downstream Zipper.
credential- the credential to connect to the downstream Zipper.
- Tutorial: Deploy YoMo Zipper Service on Ubuntu 22.04
- Tutorial: Linux Server Tuning for QUIC
- Tutorial: Firewall Configuration for Server