What is Prefect?
Prefect’s pitch is that orchestration should feel like Python: decorate a function, deploy it, and the server handles schedules, retries, state, and a clean UI of every run. No DAG files, no DSL - flows are code in your repo.
The architecture fits the platform by design: this template runs the server (UI + API + scheduler, basic-auth protected) on a managed Postgres, while WORKERS - the processes that execute your flow code - run as separate apps polling outbound, exactly like this catalogue’s CI runners. No ingress to workers, scale them per workload.
Prefect Cloud’s team plans start around $100/month; the open-source server is the full orchestration engine, self-hosted.
What you get
- Flows as decorated Python functions - no DSL, no DAG files
- Schedules, retries, caching, and full run observability
- Outbound-polling workers: deploy anywhere with egress
- Built-in basic auth (server and clients share one string)
- Managed Postgres backend, auto-wired
- Apache-2.0; the same engine behind Prefect Cloud
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
prefect | server: UI + API + scheduler (:5000, basic auth) | yes |
db | Postgres - managed service on Lyngbak, container locally | no |
Before you deploy
PREFECT_AUTH_STRINGuser:password basic auth (clients use the same value)
PREFECT_SERVER_UI_API_URLhttps://<domain>/api after first deploy - the UI breaks behind a proxy without it
Sizing and billing
The server is light; workers carry your code and its dependencies as separate apps sized to the workload. Valkey messaging is an optional scale-out lever upstream.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5 GiB of volumes cost $0.15 per GiB a month ($0.75/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Prefect Cloud | Starter | $100/mo | past the free Hobby tier (2 users / 5 deployments) |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Kestra or Prefect - the catalogue has both?
By language of thought: Kestra is declarative YAML authored in the UI (zero code-deployment story); Prefect is Python in your repo with the ergonomics Python people expect. Data teams split on this honestly - both run here on the same terms, so taste can decide.
Where does my flow code actually run?
In workers you deploy as separate apps: an image built from prefecthq/prefect:3-latest plus your code, started with prefect worker start against http://prefect:5000/api and the shared auth string. Workers poll outbound - no ports, no ingress, scale horizontally.
How does this compare to Prefect Cloud?
Cloud’s free Hobby tier is genuinely useful (2 users, 5 deployments); beyond it, Cloud is a paid subscription. The self-hosted server has no user or deployment caps - Cloud adds their ops, RBAC, and push-work pools on top of the same engine.