---
title: "Production operations"
description: "A Dex application runs on four components: your Application, Dex Server, the Dex CLI, and Dex Web. Use these pages to deploy and operate it."
canonical_url: "https://docs.superdurable.io/production-operations/"
source: "docs/content/components/index.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Production operations

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.

<a id="how-they-fit-together"></a>

<a id="how-it-fits-with-the-other-components"></a>

<a id="reference"></a>

> **Diagram**: Your application holds a Client and a Worker, both built with the Dex SDK. The Client starts Flows and calls RPCs on Dex Server. The Worker connects to Dex Server and takes Steps and RPCs over that connection, and Dex Server persists every Flow. The Dex CLI and Dex Web also connect to Dex Server, to inspect and operate Flows; the CLI can also start a local server and Dex Web.

<a id="components"></a>

## Components

- <a id="your-application"></a><a id="application"></a>**Application**: the
  service you build with the Dex SDK. Its Workers run your Flows, and its
  Client starts and calls them. See [Application](https://docs.superdurable.io/concepts/application.md).
- <a id="dex-server"></a><a id="how-it-works"></a><a id="dependencies"></a><a id="dependency-failures"></a>**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](https://docs.superdurable.io/reference/server.md).
- <a id="dexcli"></a><a id="dex-cli"></a><a id="what-it-does"></a>**Dex CLI**:
  `dexcli` runs Dex Server and Dex Web on your machine with **dexcli dev**,
  and inspects and operates Flows. See the [CLI reference](https://docs.superdurable.io/reference/cli.md).
- <a id="dex-web"></a><a id="what-it-shows"></a>**Dex Web**: the operator UI. It finds Flows and shows a run's events,
  Attributes, and failures. See [Dex Web](https://docs.superdurable.io/reference/web/dex-web.md).

<a id="where-to-run"></a>

### Where to run Dex Server

<a id="dex-cloud"></a>

<a id="self-hosted"></a>

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](https://docs.superdurable.io/reference/server/object-storage.md) |
| How Workers connect        | Over TLS, with the server's API key                        | Through the authentication and TLS you configure                                                |

<a id="self-host"></a>

<a id="failover"></a>

To run Dex Server yourself, follow [Install and start](https://docs.superdurable.io/reference/server/configuration.md#install-and-start) in the server reference.

<a id="build-your-service"></a>

<a id="local-and-production"></a>

<a id="pages"></a>

<a id="run-in-production"></a>

## Run in production

Read these after [Application](https://docs.superdurable.io/concepts/application.md), in order:

- [Use Dex Cloud](https://docs.superdurable.io/production-operations/use-dex-cloud.md): connect your Workers to a server that Super Durable runs.
- [Managed Dex App](https://docs.superdurable.io/production-operations/managed-dex-app.md): let Dex Cloud build and run your whole application from a GitHub repository.
- [Production checklist](https://docs.superdurable.io/production-operations/production-checklist.md): the items to check before launch, each with a link to its details.
- [Deploy Code Changes](https://docs.superdurable.io/production-operations/deploy-code-changes.md): 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](https://docs.superdurable.io/production-operations/operate-and-debug.md): read a Flow in Dex Web or with `dexcli`, fix one that is stuck or failed, and recover it.
- [Server Failover](https://docs.superdurable.io/production-operations/server-failover.md): what runs again when a Dex Server node fails over, and what you do about it.

The [Developer Reference](https://docs.superdurable.io/reference.md) has the configuration, limits, and version details of each component.
