Guides / Setups / Deploy a small API or self-hosted service
Project setup tutorial

Deploy a small API or self-hosted service

Choose serverless or a VM with authentication, backups, monitoring and cost controls.

Example budget

Illustrative $4 VM + $2 backup allowance + $1.25 domain equivalent = $7.25/month before transfer and administration. A free-tier API may suit request-based workloads but not persistent processes.

Estimate your costs →

Download a free editable budget worksheet →

Setup steps

1. Measure workload requirements

Estimate requests, memory, CPU time, persistent connections, disk and background processes. Select a runtime that supports them.

2. Secure access

Use scoped credentials, HTTPS, authentication and rate limits. Restrict administrative endpoints and avoid exposing internal services or secrets in logs.

3. Deploy and monitor

Create a repeatable release process with staging and rollback. Set health checks, error alerts and cost monitoring; account for transfer and storage.

4. Prove recovery

Back up the correct data, test a restore, simulate a failed deployment and document incident ownership. Keep maintenance and dependency updates on a schedule.

Before going live

These are illustrative plans, not preconfigured services or a guarantee of current provider prices. Verify official terms and costs, and obtain authorization before creating accounts, spending or deploying.

Compare relevant platforms

Cloudflare

Web hosting and deployment
Pricing checked 2026-11-25

Free Workers plan; Workers Paid starts at $5/month per account.

Static sites, edge APIs and small SaaS apps.

DigitalOcean

Web hosting and deployment
Pricing checked 2026-11-25

Basic Droplets start at $4/month; App Platform and managed services are priced separately.

Traditional servers and containerized backends.

Render

Web hosting and deployment
Pricing checked 2026-11-25

Free compute options; Starter compute $7/month for 512 MB RAM. Workspace and other usage may cost extra.

Small traditional web applications and APIs.

Cloudflare R2

Object storage and backups
Pricing checked 2026-11-25

Standard storage includes 10 GB-month/month; additional storage $0.015/GB-month. Operations billed separately.

Files, downloads, backups and large JSON documents.

Backblaze B2

Object storage and backups
Current pricing review pending

See official pricing for current rates.

Large archives and backups.

UptimeRobot

Uptime monitoring and error tracking
Current pricing review pending

See official pricing for current rates.

Small websites and public endpoints.