SaaS infrastructure has to balance two things: spending as little as possible while you find customers, and not having to rebuild everything once you have them. Virtual private servers are a good fit for that balance. They are inexpensive and predictable, give you full control of your stack, and grow in clear steps. This guide lays out an architecture for each stage and the operational basics customers will expect.
Stage 1: One Production Server
VPS (4 vCores / 16 GB)
├─ Nginx (TLS, reverse proxy)
├─ App (API + web) ── 2–4 processes
├─ Workers (emails, exports, webhooks)
├─ PostgreSQL or MySQL
└─ Redis (cache, queues, sessions)
+ small staging VPS (2 vCores / 8 GB)
This handles many early-stage SaaS products. Keep everything reproducible: Docker Compose or Ansible for the server, CI for deploys (see our GitHub Actions guide), and a staging server that mirrors production (see our environments guide).
Stage 2: Separate the Database
When the app and database compete for memory or CPU, move the database to its own server with more RAM (for example 8 vCores / 32 GB). Connect over a private network or an encrypted connection, restrict the database port to the app server's IP, and add a replica if you need faster recovery or read scaling.
Stage 3: Scale the Application Tier
Run two or more app servers behind a load balancer so you can deploy without downtime and survive a server failure (see our load balancing guide). This requires stateless app servers: sessions in Redis or the database, uploads in object storage, and scheduled jobs running on one designated node.
Tenant Isolation
| Model | How | Pros | Cons |
|---|---|---|---|
| Shared tables | tenant_id column on every row | Simplest, cheapest, easy to scale to many tenants | Every query must filter by tenant; a bug can leak data |
| Schema per tenant | PostgreSQL schemas | Stronger separation, per-tenant restore | Migrations run per schema; harder with thousands of tenants |
| Database or server per tenant | Separate instances | Strongest isolation; good for enterprise customers | Highest cost and operational effort |
Most products start with shared tables and enforce the tenant filter in one place (middleware, a base query scope or PostgreSQL row-level security), then offer dedicated instances to large customers who need them.
Background Jobs
Emails, exports, imports, webhooks, billing runs and reports belong in a queue processed by workers, so the web app stays responsive and failures can be retried (see our background workers guide). Give each tenant fair access: a tenant importing a million rows should not delay everyone else's password-reset emails, so use separate queues or per-tenant limits.
Backups and Recovery Objectives
Decide two numbers before customers ask:
- RPO (recovery point objective): how much data you can afford to lose. Nightly dumps mean up to a day; continuous WAL archiving or binlog shipping reduces it to minutes.
- RTO (recovery time objective): how quickly you must be back. A tested, scripted rebuild plus restore determines this.
Keep backups off-site and encrypted, retain several generations, and rehearse a full restore regularly. Untested backups are the most common gap in early SaaS infrastructure.
Security Basics Customers Expect
- HTTPS everywhere, HSTS, and secure cookies.
- Hashed passwords, two-factor login for users and especially for your own admin access.
- Server access with SSH keys only, a firewall, automatic security updates.
- Secrets outside the code repository, rotated when people leave.
- Audit logs for administrative actions.
- Data stored in a known country; many Indian customers prefer data hosted in India.
Monitoring and Observability
Track availability, error rate, p95 latency and queue age, and break them down by tenant so you notice when one customer is having a bad day. An error tracker captures exceptions with context. External uptime checks and a public status page build trust (see our monitoring guide).
Cost Planning
| Stage | Servers | Approximate monthly server cost |
|---|---|---|
| Launch | Production 4 vCores / 16 GB + staging 2 vCores / 8 GB | ₹1,948 |
| Growth | App 4 / 16 + database 8 / 32 + staging 2 / 8 | ₹4,447 |
| Scale | 2 × app 4 / 16 + load balancer 2 / 8 + database 16 / 64 + staging 2 / 8 | ₹8,795 |
Prices are the AMD EPYC plans as listed; add backup storage, email delivery and other services. Bandwidth is unmetered on every plan, which removes one of the least predictable costs of cloud hosting.
Pre-Launch Infrastructure Checklist
- Production and staging servers built from the same scripts or Compose files.
- Automated deploys with health checks and a one-command rollback.
- Off-site, encrypted backups with a restore rehearsed end to end.
- Tenant filtering enforced centrally and covered by tests.
- Uptime, error and latency alerts that reach someone at any hour.
- A written incident procedure: who investigates, who updates customers, where the status page lives.
When a Managed Platform Is Better
If no one on the team can own operations, a PaaS or managed database can be worth its higher price in the early months. Our VPS vs PaaS guide covers the trade-off and a gradual migration path.
Data Export and Deletion
Customers increasingly expect to export their data and to have it deleted when they leave. Build both early: an export job that produces a complete archive per tenant, and a deletion process that also covers backups according to your retention policy. They are much harder to add once data is spread across many tables and services.
SkyRainCloud Plans for This Workload
Many SaaS products launch on a single 4 vCore / 16 GB server with the database on it, then split the database onto an 8 vCore / 32 GB plan as customers grow. Staging fits on the 2 vCore / 8 GB plan.
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 |
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
Can I run a SaaS product on a VPS?
What VPS size does a new SaaS need?
How do I isolate customer data?
When should I move the database to its own server?
What are RPO and RTO?
How do I deploy a SaaS without downtime?
Is hosting in India important for SaaS?
How do I keep one tenant from slowing others?
Is a VPS cheaper than cloud for SaaS?
Which SkyRainCloud plans suit a SaaS stack?
Related Guides
- VPS vs PaaS Platforms (Heroku, Render, Railway) for Startups: Cost and Control
- How to Host Background Workers and Queue Processing Systems on a VPS
- Development vs Staging vs Production Servers: Key Differences
- How to Deploy Applications Automatically Using GitHub Actions and a VPS
- How to Set Up Monitoring and Logging for Applications on a VPS