Documentation menu

Core Concepts

Workspaces & Projects

How workspaces, projects, services, environments and instances fit together, and what each one owns.

Parslinks organizes everything into one graph. Knowing which object owns which setting tells you where to change it and what a change affects.

Workspace
  └── Project
        ├── Services        (git | image | template | resource)
        └── Environments    (production | preview | custom)
              └── Instances (service × environment)
text5 lines

Workspace

The workspace is your top-level container. It owns:

  • Members and roles (owner, admin, member) and pending invitations;
  • all projects;
  • billing: plan, quotas, credit balance and invoices;
  • Git connections and registry credentials, shared by its projects.

The workspace slug appears in dashboard URLs and in the API. In the HTTP API the path segment is /organizations/{slug} for historical reasons; it is the same object.

Project

A project groups services that belong together: an app, its workers, its databases. It is a container, not something you deploy. A project owns:

  • its services and environments;
  • shared variables per environment, available to every service (see Variables & Configuration);
  • a private project network: services in the project reach each other at {service}.{environment}.internal, and nothing outside the project can;
  • volumes created for its services.

Services

A service is the unit of source, build, networking and resources. Each service has one source type:

TypeMeaning
gitA connected repository and branch; Parslinks builds it.
imageA prebuilt OCI image from a registry; Parslinks pulls it.
templateCreated from a versioned recipe; afterwards it is a normal service.
resourceInfrastructure for the rest of the project: a managed database adapter or an external resource brokered by a plugin.

Build settings (commands, root directory, Dockerfile) belong to the service and are shared by all its environments. What differs per environment is the deployed release, variables, domains and placement.

Environments

An environment is a complete, isolated copy of the project's graph. There are three kinds:

KindFollowsTypical use
ProductionThe production branch (deployBranch, often main)Live traffic
PreviewAny branch without an environment of its ownPull requests and feature branches
CustomA branch you chooseStaging, QA, long-lived test setups

Every deployment belongs to exactly one environment, and domains are scoped to an environment, so a preview domain can never collide with production.

Instances

An instance is one service in one environment. It is where per-environment state lives:

  • the current deployment that the environment's alias points to;
  • instance variables and references;
  • placement: desired replicas per region;
  • pause state;
  • clone policy, which decides what happens to this service when a new environment is created.

Clone policy

When you create an environment, Parslinks adds an instance of every service to it, copying settings from the environment it was created from. The clone policy decides whether that instance runs its own compute:

PolicyEffect in the new environmentDefault for
create_newAn independent instance with the source's settings (branch, auto-deploy, watch paths, region) and its own deployments.Git, image and template services
reference_existingNo new compute; the instance points at the source environment's instance.Databases and other resources in pull-request environments, so previews reuse the existing data
disableThe service does not run in this environment until you deploy it yourself.Databases and other resources in custom environments

Fan-out rules

  • Creating a service creates an instance in every live environment.
  • Creating an environment creates an instance for every live service, following each service's clone policy.
  • Deleting is never immediate: see Deleting & Restoring.

Who owns what behind the scenes

Parslinks runs as a set of focused services. You never call them directly, but the split explains the behavior you see:

Platform serviceOwns
catalogWorkspaces, projects, services, environments, instances, variables, placement, Git connections
buildBuilds, ArtifactSets, deployments and aliases
runtimeWorkloads, replicas, volumes, networks, the console
edgeDomains, certificates status and the routing table
observabilityLogs and metrics
billingPlans, quotas, usage and credits