Skip to main content

Production operations

View as Markdown

A 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.

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: dexcli runs 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 CloudSelf-hosted
Who operates Dex ServerSuper Durable: storage, upgrades, capacity, and monitoringYou
Where Flow state is storedIn Dex Server's storage, which Super Durable operatesIn the storage you configure
How Workers connectOver TLS, with the server's API keyThrough 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.