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
| Setup | Suggested plan |
|---|---|
| Development or small internal workflows | 2 vCores / 8 GB (server, PostgreSQL, UI) |
| Production with moderate workflow volume | 4 vCores / 16 GB server and database, workers separate |
| High volume | Separate 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.