Development13 min read•Updated November 2026

VPS Hosting for Temporal Workflows

Quick answer

Temporal is an open-source durable execution platform: workflows written in normal code survive crashes, retries and long waits because Temporal records every step. To self-host it on a VPS, run the Temporal server (frontend, history, matching and internal worker services) with PostgreSQL or MySQL for persistence, plus the Web UI, ideally from the official Docker images or Helm charts. Keep the frontend gRPC port (7233) private and secure it with mTLS, set namespace retention, run your own workers that poll task queues, follow the determinism rules for workflow code, back up the database, upgrade one minor version at a time and monitor server and worker metrics.

Business processes such as order fulfilment, onboarding, payments, subscription billing and data pipelines involve many steps, external calls and waits that can last minutes or months. Building them with queues, cron jobs and status columns becomes fragile. Temporal handles retries, timeouts, state and history for you, so developers write the process as code. Self-hosting gives full control of data and cost; Temporal Cloud is the managed alternative if you prefer not to operate it.

Key Concepts

  • Workflows: durable functions whose progress is recorded as an event history.
  • Activities: the side-effecting steps (API calls, database writes, emails), retried automatically according to policies.
  • Workers: your processes that run workflow and activity code, polling task queues.
  • Namespaces: isolation units with their own retention of completed workflow histories.

SDKs exist for Go, Java, TypeScript, Python, .NET and PHP.

Server Architecture

workers / clients ─▶ frontend (gRPC 7233) ─▶ history ─▶ persistence DB
                                         └─▶ matching (task queues)
Web UI ─▶ frontend          visibility store (SQL or Elasticsearch)

On one VPS, the services usually run together in one container or process; larger installations run them separately to scale each one.

Persistence and Visibility

Temporal stores workflow state in a database: PostgreSQL, MySQL or Cassandra in production (SQLite only for development). Visibility (searching and listing workflows) can use the SQL database in recent versions or Elasticsearch for larger scale. Tune and size the database carefully, because it handles every state transition (see our database tuning guide). Use fast NVMe storage and keep the database on a private network.

Setting Up

  • For development, the Temporal CLI's development server starts everything locally in one command.
  • For production, use the official server images with an external database, configured through environment variables or config files, or the Helm charts on Kubernetes.
  • Run the schema setup and migration tools against the database for your server version.
  • Deploy the Web UI separately and protect it with authentication.
  • Create namespaces with a retention period that fits your debugging and compliance needs.

Workers and Task Queues

Workers run in your application environment, not inside the Temporal server. Deploy them as services (systemd, Docker or Kubernetes) on the same VPS for small setups or on separate servers as load grows. Use separate task queues for different workloads, tune concurrency settings per worker, and scale by adding worker processes. Activities that call slow external services benefit from high concurrency; CPU-heavy activities need more cores.

Determinism Rules

Workflow code is replayed from history after crashes, so it must be deterministic. Do not call random functions, read the clock, make network calls or use threads directly inside workflow code; use the SDK's APIs for time, timers and side effects, and put all I/O in activities. When changing workflow code that has running executions, use the SDK's versioning features so old workflows replay correctly.

Security

  • Never expose port 7233 to the internet without protection; keep it on a private network.
  • Enable mTLS between workers, clients and the frontend, and between server services in multi-node setups.
  • Configure authorisation (claim mappers and authorizers) if several teams share the server.
  • Consider payload encryption with a data converter for sensitive data, so the server stores only encrypted payloads.
  • Protect the Web UI with single sign-on or an authenticating proxy.

Upgrades and Backups

Upgrade the server one minor version at a time, running the schema migrations each release requires, after reading release notes. Back up the persistence database regularly and test restores. Pin SDK versions in workers and upgrade them deliberately.

Monitoring

Temporal server and SDKs emit Prometheus metrics. Track request latency and errors on the frontend, persistence latency, task queue backlog (schedule-to-start latency), workflow failures and worker health. A rising schedule-to-start latency means workers cannot keep up (see our monitoring guide).

Sizing

SetupSuggested plan
Development or small internal workflows2 vCores / 8 GB (server, PostgreSQL, UI)
Production with moderate workflow volume4 vCores / 16 GB server and database, workers separate
High volumeSeparate database server and multiple Temporal service instances

Temporal or Other Tools?

Use a simple job queue for fire-and-forget tasks (see our Celery guide and workers guide). Use Airflow or Prefect for scheduled data pipelines (see our Airflow guide). Choose Temporal for long-running, stateful business processes where reliability and visibility of each execution matter.

Example: Subscription Billing

A SaaS company models each customer subscription as a Temporal workflow that waits for the billing date, charges through the payment provider in an activity, retries failed charges over several days, sends reminders, and suspends the account if payment never succeeds. Temporal runs on a 4 vCore / 16 GB VPS with PostgreSQL, and workers run on the application servers.

Common Mistakes

  • Non-deterministic code in workflows.
  • Exposing port 7233 publicly without mTLS.
  • SQLite in production.
  • Changing workflow code without versioning while executions are running.
  • Skipping schema migrations during upgrades.

In Short

Self-host Temporal with a production database, private and mTLS-protected endpoints, workers on your own servers, deterministic workflow code, careful upgrades and good monitoring, and it will run complex business processes reliably.

Testing Workflows

The SDKs include test environments with time skipping, so a workflow that waits 30 days can be tested in seconds. Write tests for the happy path, activity failures and retries, cancellations and timeouts. Replay tests that run recorded histories against new code catch non-determinism errors before deployment.

SkyRainCloud Plans for This Workload

The Temporal server and its database are the core: 4 vCores / 16 GB runs the server, PostgreSQL and UI for moderate workloads. Workers run your code and are sized separately.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is Temporal?
An open-source durable execution platform that records workflow progress so processes survive crashes, retries and long waits.
Can Temporal be self-hosted?
Yes. The server is open source; Temporal Cloud is the managed alternative.
Which database does Temporal need?
PostgreSQL, MySQL or Cassandra in production; SQLite only for development.
Which port does Temporal use?
The frontend gRPC service listens on 7233 by default; keep it private and use mTLS.
Where do workers run?
In your own application environment, polling task queues on the Temporal server.
Why must workflow code be deterministic?
Temporal replays workflow history to restore state; non-deterministic code breaks replay.
How do I change running workflows?
Use the SDK's versioning features so existing executions replay correctly.
How do I monitor Temporal?
With Prometheus metrics from the server and SDKs, watching latency, failures and task queue backlog.
Temporal or Airflow?
Temporal for long-running stateful business processes; Airflow for scheduled data pipelines.
Which plan suits Temporal?
2 vCores / 8 GB for development; 4 vCores / 16 GB for moderate production with workers separate.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning