Example: web shop
Updated: 25 November 2026
How do you build your own web shop on Helfinity Cloud? In short: frontend, API and background jobs run with us; database, cache and files come from external services today. This page shows the setup that works today, what it costs and where the limits are.
What a shop needs
| Building block | At Helfinity today | How |
|---|---|---|
| Shop frontend (e.g. Next.js) | available | Service web |
| Backend API (cart, orders, admin) | available | Service api |
| Background jobs (mails, invoices, stock sync) | available | Service worker without a port (health.type: "process") |
| Scheduled tasks (nightly reports, cart reminders) | available | Job with schedule in the contract (jobs) |
| Database (products, customers, orders) | in a container with a volume, external for important data | Managed PostgreSQL from an EU provider |
| Cache, sessions, queue | in a container with a volume, external or in the process | Managed Redis, or sessions as signed cookies |
| Product images, downloads | available | Bucket in the project (create_bucket) or external object storage |
| Payments (e.g. Mollie, Stripe) | available | Webhooks reach the public URL of api |
| E-mails | external | E-mail API or SMTP over port 587/465 (port 25 is blocked) |
Your own domain myshop.de | available | domains.custom on the service web, see connect your own domain |
Architecture today
Internet (HTTPS)
│
┌─────────────────┐
▼ ▼
web-shop.apps… api-shop.apps… (no URL)
┌───────────┐ ┌───────────┐ ┌────────────┐
│ web │ ───► │ api │ │ worker │ Helfinity Cloud
│ Next.js │intern│ Node/Go/… │ │ jobs+cron │ (project "shop")
└───────────┘ └─────┬─────┘ └─────┬──────┘
│ TLS │ TLS
┌─────────────────┼─────────────────┼────────────┐
▼ ▼ ▼ ▼
Managed Postgres Managed Redis Object storage E-mail API
(external services, preferably in the EU)What matters here:
webcallsapiinternally. Withconnects_to: ["api"],webreaches the API on the server side ashttp://api.shop.internal:8080, without a detour over the internet (network). Theapistill stays public here because the browser and the payment provider's webhooks must reach it; so keep protecting its admin endpoints with a login or token. If onlywebneeds the API, setpublic: falseon it.- The worker has no port. With
health.type: "process"it counts as healthy as long as its process runs; if it exits, the platform restarts it. It gets no URL and cannot be reached from outside. - State belongs in a database or on a volume. The file system of a container without a volume is lost on every restart and every deployment. Orders, sessions and images must not live there.
- Cron as a job. Recurring tasks (syncing orders, cleaning up carts) run as a service of their own with
schedulein the contract, e.g."schedule": { "cron": "*/15 * * * *", "command": ["node", "jobs/sync.js"] }, withconnects_to: ["db"]and the same secrets as theapi. Runs never overlap, only their run time is billed. The agent runs migrations after a deploy withrun_jobin theapiimage. See jobs. - Redis in a container only with a volume. A Redis service with a volume is reachable over the private network and keeps its data, but takes one service of your quota (level 1: three). For small shops a cache in the
apiprocess is often enough; sessions and queues belong in a managed Redis or the database.
The contract
With ready-made images (for example from your CI in the GitHub Container Registry):
{
"api_version": "v1alpha1",
"services": [
{
"name": "web",
"source": { "type": "image", "image": "ghcr.io/acme/shop-web:2.1.0" },
"port": 3000,
"resources": { "memory_mb": 512 },
"health": { "path": "/" },
"connects_to": ["api"],
"env": { "API_URL": "http://api.shop.internal:8080" }
},
{
"name": "api",
"source": { "type": "image", "image": "ghcr.io/acme/shop-api:2.1.0" },
"port": 8080,
"resources": { "memory_mb": 512 },
"health": { "path": "/healthz" },
"env": { "PUBLIC_URL": "https://api-shop.apps.helfinity.cloud", "S3_BUCKET": "shop-images" },
"secrets": ["DATABASE_URL", "S3_SECRET_KEY", "INTERNAL_TOKEN"]
},
{
"name": "worker",
"source": { "type": "image", "image": "ghcr.io/acme/shop-api:2.1.0" },
"start_command": ["node", "worker.js"],
"resources": { "memory_mb": 256 },
"health": { "type": "process" },
"secrets": ["DATABASE_URL", "SMTP_PASSWORD"]
}
]
}Or from source code: the agent uploads the repository as an archive with create_upload and sets per service "source": { "type": "upload", "artifact_id": "art_…", "context_dir": "apps/web" } (build from source).
Credentials
DATABASE_URL, API keys and the internal token do not belong in env but in secrets. The agent sets them per service before planning, for example for the api:
{ "project": "shop", "service": "api", "set": { "DATABASE_URL": "postgres://…", "S3_SECRET_KEY": "…", "INTERNAL_TOKEN": "…" } }Secrets apply per service: worker needs its own (set_secrets with service: "worker"). The values are stored encrypted and can never be read again via MCP. If a value changes, it takes effect with the next deployment. More under data and storage.
What it costs
Prices at 24/7 operation (with scale-to-zero a sleeping service costs nothing):
| Service | Size | €/month |
|---|---|---|
| web | 512 MB | 4.38 |
| api | 512 MB | 4.38 |
| worker | 256 MB | 2.19 |
| Total Helfinity | 10.95 |
On top come the external services (database, storage, e-mail). For the project to be allowed to carry these costs, it needs a budget of at least about €11/month. That is above the agent limit of €10: the agent gets APPROVAL_REQUIRED, and you confirm the budget in the portal with your passkey (budgets). Usage is charged from the credit every minute (pricing).
Limits of this setup
- Trust level 1 allows exactly 3 services with at most 512 MB each. For 1–2 GB per service you need level 2.
- One instance per service is the default. If the server fails or the platform is under maintenance, the shop is then briefly offline; with
"availability": { "max_instances": 2 }on the servicewebit runs on two runners and stays reachable (twice the cost forweb, several instances). New versions only go live once they are healthy, and on a failure afterwards the platform rolls back. - Your own domain: without one, the shop runs under
web-shop.apps.helfinity.cloud. With"domains": { "custom": ["myshop.de", "www.myshop.de"] }on the servicewebit also runs under your domain; for a public shop set"access": "public". - Latency to the database: if the external database is not in Germany, every query costs a few milliseconds more. Choose a provider with a data center in Frankfurt or Nuremberg.
- Legal: for a shop with customer data you need data processing agreements with all services. With Helfinity the AVV (German, binding) applies automatically together with the terms of use (for your records as a PDF); with external services (database, payment provider, e-mail) you conclude your own. Your shop also needs its own imprint and its own privacy policy.
What it will look like later
Services run all the time; with availability.scale_to_zero: true public services sleep when inactive and then cost nothing (scale-to-zero). For a shop whose payment provider sends webhooks with a short timeout, leave it off. Cron jobs and private registries already exist. Volumes with daily backups already exist; your agent can restore them with restore_volume (with your approval in the portal). A managed PostgreSQL per project comes after the first tester round at the earliest. See roadmap.