Documentation menu

Core Concepts

Deployments

Immutable releases, aliases, the deployment pipeline and health gate, previews, promotion and instant rollback.

Parslinks separates what runs from where traffic goes. A deployment is an immutable release; an alias is a pointer that decides which release serves an environment. Almost everything about deploying on Parslinks follows from that split.

Deployments and aliases

  • A deployment is a release of one instance. When it reaches READY, its artifact, its variable snapshot and its runtime spec (image digest, command, port, CPU, memory, health checks) are frozen. They never change afterwards.
  • An alias is a mutable pointer to a READY deployment of the same instance. Each environment's URL is an alias.
  • A domain routes through an alias. It never points straight at a deployment.

Because of this, moving traffic is always the same operation, repointing an alias, whether you deploy, roll back or promote. It is instant, it affects every domain of that environment at once, and the deployments themselves are never modified.

Where a deploy comes from

TriggerEnvironmentNotes
Push to the production branchProductionWhen auto-deploy is on for the instance
Push to a branch with a custom environmentThat custom environment
Push to any other branch, or a pull requestPreviewOne preview per branch / PR
Deploy button or ApplyThe selected environmentBuilds the current source with staged changes
Image tag changeThe selected environmentImage services pull instead of building

Auto-deploy can be limited with watch paths: in a monorepo, a push that touches none of the service's paths does not deploy it.

The deployment pipeline

Every deploy runs as a deployment intent with fixed phases. The dashboard shows the current phase and the logs of each one:

PhaseWhat happens
validateCheck quotas, source access and settings.
snapshotResolve variables and references into the environment snapshot this release will use.
provisionMake sure dependencies exist (network, volume, registry access).
buildBuild from Git, or resolve and pull the image (Builds & Artifacts).
releaseRegister the immutable ArtifactSet and create the deployment.
materializeStart the new revision's replicas in each region.
healthWait for the health gate: ready replicas ≥ desired replicas, in every region.
cutoverRepoint the alias; the routing table updates.
stop_previousDrain the previous revision's replicas.
finalizeMark the deployment READY and record the result.

The health gate

A replica counts as ready only when the platform's own probe succeeds from outside your container (HTTP path or TCP port) and the replica is in the platform endpoint's ready pool. running is not ready.

If the gate fails, the alias does not move. Your previous replicas keep serving, the new revision is stopped, and the deployment is marked failed with the probe result in its logs.

Rollout strategy

  • Start-first (default): new replicas start next to the old ones; old replicas are removed from the ready pool before they stop. No downtime.
  • Stop-first: used automatically when a volume is attached, because a volume can be mounted by one replica at a time. There is a short gap between stopping the old replica and the new one becoming ready.

Hostnames

HostnameRoutes to
dpl-{publicId}.{deployDomain}Exactly one deployment, forever. Ideal for testing a release before promoting it.
Environment URL (generated or custom domain)Whatever deployment the environment's alias points to.

Previews

Pushing a branch that has no environment of its own deploys it into the preview environment, with its own URL. Previews are complete copies of the project graph: by default app services get their own instances, while databases in pull-request environments reference the existing instance (see Workspaces & Projects).

Promote

Promote points the production alias at a deployment that was built for a preview or custom environment. Nothing is rebuilt, and the deployment keeps its original environment; only the alias changes. Promotion follows ordering rules: a newer production deploy cannot be overwritten by an older promotion that started earlier.

Rollback

Rollback points the alias at any retained earlier deployment of the same instance. It restores the old code and the old variables, because both are frozen in that deployment. It is instant and needs no build.

You can roll back to deployments within your plan's retention window (7 days on current plans). Older deployments are retired and their artifacts are garbage-collected once nothing references them.

Scaling is not deploying

Changing replica counts or regions edits the instance's placement. It never creates a build or a release: the runtime adds or removes replicas of the current deployment. See Scaling & Regions.

Rules worth knowing

  • An alias can only target a READY deployment of the same instance.
  • A READY deployment's release fields never change.
  • Every command is idempotent: retrying a deploy, promote or rollback is safe.
  • Events speed up propagation; periodic reconciliation guarantees the routing table ends up correct even if an event is missed.