---
title: Set Up Deployment Gates
description: >-
  Compare Just-In-Time (JIT) and preconfigured Deployment Gates and follow the
  setup walkthrough for your chosen mode.
breadcrumbs: Docs > Deployment Gates > Set Up Deployment Gates
---

# Set Up Deployment Gates

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

{% callout %}
# Important note for users on the following Datadog sites: app.datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, app.datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com

{% callout %}
##### Join the Preview!

Deployment Gates are in Preview. If you're interested in this feature, complete the form to request access.

[Request Access](http://datadoghq.com/product-preview/deployment-gates)
{% /callout %}

{% /callout %}

Deployment Gates have two main components:

- A **Gate** is defined for a service and environment (and optionally an identifier), and evaluates one or more rules to decide whether a deployment should proceed.
- A **Rule** is a type of evaluation performed as part of a gate, such as checking the status of a set of monitors or running APM Faulty Deployment Detection analysis on the deployed version.

Gate evaluations are asynchronous — the API returns immediately with an evaluation ID, and the result resolves to `pass` or `fail` over time as the rules run.

## Deployment Gate evaluation modes{% #deployment-gate-evaluation-modes %}

Deployment Gates support two evaluation modes: Just-In-Time (JIT) and preconfigured.

| **[JIT](https://docs.datadoghq.com/deployment_gates/setup/jit.md)** (default) | **[Preconfigured](https://docs.datadoghq.com/deployment_gates/setup/preconfigured.md)** |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| **Where rules live**                                                          | Inline in your deployment configuration or CI step                                      | Persisted in Datadog (UI, API, or Terraform)                          |
| **Setup in Datadog**                                                          | None                                                                                    | Create a gate and rules ahead of time                                 |
| **Best for**                                                                  | Rules-as-code, per-deployment flexibility, teams that own their own gate configuration  | Shared rules across services, central management, non-CI editing      |
| **How to evaluate**                                                           | Send rules in the evaluation request                                                    | Reference the gate by service, environment, and optionally identifier |

You can use different modes across different gates if needed.

If you're unsure where to start, use JIT. It requires no setup in Datadog and lets you iterate on rules directly in your deployment configuration.

## Further reading{% #further-reading %}

- [Set up Just-In-Time (JIT) Deployment Gates](https://docs.datadoghq.com/deployment_gates/setup/jit.md)
- [Set up preconfigured Deployment Gates](https://docs.datadoghq.com/deployment_gates/setup/preconfigured.md)
- [Learn about the Deployment Gates explorer](https://docs.datadoghq.com/deployment_gates/explore.md)
- [Deployment Gates API reference](https://docs.datadoghq.com/api/latest/deployment-gates.md)
