Skip to main content
⚡ OpenDevDocs
Deployment
devopsdeploymentCore ConceptIntermediate

Production Server Concepts & Infrastructure Architecture

Complete guide to production hosting infrastructure, comparing Bare Metal, VPS, PaaS, Serverless, and Kubernetes, with resource sizing guidelines.

Verified: 2026-09-30
Tested on:ubuntu 24.04
Platforms:
linuxcloud
#deployment#servers#vps#serverless#infrastructure

Selecting the right production infrastructure depends on application architecture, traffic predictability, latency requirements, team operational bandwidth, and cost constraints.


Infrastructure Archetypes Compared

ModelExamplesControl LevelOperational OverheadBest For
Serverless / EdgeVercel, AWS Lambda, Cloudflare WorkersCode & Config only🟢 Minimal (Zero Server Mgmt)Burst-traffic APIs, dynamic frontends, JAMstack
PaaS (Platform as a Service)Render, Railway, Fly.ioContainers & Services🟡 Low (Managed OS & Networking)Fast-moving startups, fullstack web apps
VPS (Virtual Private Server)DigitalOcean, AWS EC2, HetznerFull Root Linux OS🟠 Medium (Manual OS patching & backups)Cost-effective databases, microservices, background workers
Kubernetes (K8s)AWS EKS, GKE, DigitalOcean K8sFull Cluster Orchestration🔴 High (Requires dedicated DevOps)Multi-team microservices with dynamic auto-scaling
Bare MetalHetzner Dedicated, OVHFull Hardware Access🔴 Very High (Hardware & RAID management)Ultra-high performance databases, GPU training clusters

Server Sizing Guidelines (Rule of Thumb)

┌─────────────────────────────────────────────────────────────┐
│ Recommended Minimum Resource Allocation                     │
├───────────────────┬───────────────┬─────────────────────────┤
│ Workload Type     │ Minimum RAM   │ Recommended vCPUs       │
├───────────────────┼───────────────┼─────────────────────────┤
│ Static Frontend   │ 512 MB (CDN)  │ N/A (Edge Edge Network) │
│ Node.js REST API  │ 1 GB – 2 GB   │ 1 – 2 vCPUs             │
│ PostgreSQL / DB   │ 2 GB – 8 GB+  │ 2 – 4 vCPUs + NVMe SSD  │
│ Redis Cache       │ 512 MB – 2 GB │ 1 – 2 vCPUs             │
│ Next.js SSR App   │ 1 GB – 4 GB   │ 2 vCPUs                 │
└───────────────────┴───────────────┴─────────────────────────┘

[!WARNING] Never run production databases on machines with under 1GB RAM without configured swap space; the Linux Out-Of-Memory (OOM) killer will terminate the database process during sudden traffic spikes.


On this page