Production operations
View as MarkdownA Dex application runs on four components: your Application, and Dex Server, the Dex CLI, and Dex Web, which Dex provides. Your service, the Dex CLI, and Dex Web connect to Dex Server. Use these pages to deploy and operate it.
Application
Client
Start and interact with Flow instances.
Worker
Hosts the Flow. Runs Step and RPC implementations.
SDKDex SDK
startFlow / invokeRPC
startFlow / invokeRPC
invoke Step / RPC
invoke Step / RPC
Dex Server
Persists Flow instances and execution.
Operate
dexcli
Run Dex locally; manage Flows.
Dex Web
Inspect and act on Flows.
Components
- Application: the service you build with the Dex SDK. Its Workers run your Flows, and its Client starts and calls them. See Application.
- Dex Server: stores every Flow's state and hands Steps and RPCs to Workers. It ships as one binary, dex-server-zd, which the reference calls server-zd. See the server reference.
- Dex CLI:
dexcliruns Dex Server and Dex Web on your machine with dexcli dev, and inspects and operates Flows. See the CLI reference. - Dex Web: the operator UI. It finds Flows and shows a run's events, Attributes, and failures. See Dex Web.
Where to run Dex Server
Dex Server runs in Dex Cloud or on your own infrastructure. In both cases your Workers run your Flow code wherever you deploy them.
| Dex Cloud | Self-hosted | |
|---|---|---|
| Who operates Dex Server | Super Durable: storage, upgrades, capacity, and monitoring | You |
| Where Flow state is stored | In Dex Server's storage, which Super Durable operates | In the storage you configure |
| How Workers connect | Over TLS, with the server's API key | Through the authentication and TLS you configure |
To run Dex Server yourself, follow Install and start in the server reference.
Run in production
Read these after Application, in order:
- Use Dex Cloud: connect your Workers to a server that Super Durable runs.
- Managed Dex App: let Dex Cloud build and run your whole application from a GitHub repository.
- Production checklist: the items to check before launch, each with a link to its details.
- Deploy Code Changes: change Flow code safely while Flows are open, see what runs again when a Worker stops or restarts, and update Steps that already wait.
- Operate and Debug: read a Flow in Dex Web or with
dexcli, fix one that is stuck or failed, and recover it. - Server Failover: what runs again when a Dex Server node fails over, and what you do about it.
The Developer Reference has the configuration, limits, and version details of each component.