Whenever I start a new side project, there is a brief window of temptation to set up a container orchestrator, separate staging and production clusters, an event bus, and a distributed cache before the app even has ten users. Every time I have given in to that urge, I spent three weekends debugging infrastructure instead of shipping features.

The antidote is simple: make your first deploy aggressively boring. One Linux VM, one reverse proxy, one application process, and one database on the same host (or SQLite in WAL mode if your write volume allows it) will carry you much further than most architecture diagrams admit.

A single VM handles more than you think

Modern hardware is absurdly fast. A modest 2-vCPU, 4 GB RAM virtual machine can comfortably serve hundreds of requests per second for a typical web app with indexed database queries. Before you split services across machines, you introduce network latency, partial failure modes, service discovery, and distributed tracing—none of which help you find out if anyone wants your software.

On a single box, a deployment can be as simple as copying a binary or pulling an image and restarting a systemd unit:

[Unit]
Description=My App Service
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=appuser
WorkingDirectory=/opt/myapp
EnvironmentFile=/opt/myapp/.env
ExecStart=/opt/myapp/bin/server
Restart=on-failure
RestartSec=3

[Install]
WantedBy=multi-user.target

Put Caddy or Nginx in front of it on ports 80 and 443, and you have automatic TLS, process supervision, and structured logs in journalctl with zero extra moving parts.

SQLite and Postgres on the same host

If your app has one primary writer and runs on one machine, SQLite with Write-Ahead Logging (PRAGMA journal_mode=WAL;) eliminates an entire database daemon. Backups become a single sqlite3 app.db ".backup /tmp/app.bak" command. If you need concurrent multi-process writes, JSON indexing, or background workers, run PostgreSQL locally on 127.0.0.1:5432.

Either way, keep the database on the same machine until you have a concrete reason to move it. Local Unix socket or loopback queries take fractions of a millisecond, and you avoid paying for managed database clusters before your project earns a dollar.

What you actually need on day one

Boring does not mean sloppy. Even on a single-server deploy, four things are non-negotiable from day one:

  • Automated backups to off-site storage, tested with a restore at least once.
  • One-command deploys (a small shell script or Makefile target) so shipping a fix never requires remembering five manual steps.
  • Basic health checks—an external uptime ping against /healthz that alerts you when the process dies or TLS fails.
  • Unattended security updates and a locked-down firewall.

Here is what a 15-line deploy script looks like for a Go or Rust binary:

#!/usr/bin/env bash
set -euo pipefail

scp ./build/server deploy@app.example.com:/opt/myapp/bin/server.new
ssh deploy@app.example.com "
  chmod +x /opt/myapp/bin/server.new
  mv /opt/myapp/bin/server.new /opt/myapp/bin/server
  sudo systemctl restart myapp
  systemctl is-active --quiet myapp
"

Is there a 200-millisecond blip during restart? Yes. Does anyone notice on a project with fifty daily users? No. When traffic grows to the point where 200 milliseconds matters, you will have real metrics telling you what to optimize next—and you can add a second instance behind your reverse proxy in an afternoon.

When it is actually time to level up

You will know you have outgrown a single box when a real bottleneck shows up in your measurements: CPU stays pegged at 80% during normal traffic, database backups take long enough to affect disk I/O, or you genuinely need zero-downtime deploys for active paying customers. Even then, the next step is usually vertical scaling or moving the database onto its own dedicated host—not jumping straight to ten microservices.

Upgrade complexity only when something hurts

Complexity is easy to add and expensive to remove. Start with the simplest setup you can explain to yourself at 2 AM during an outage, keep your configuration in version control, and let real bottlenecks—not hypothetical scale—tell you when it is time to split things apart.