Infrastructure
What sits under an app: servers, containers, storage, backups, and the plumbing that decides whether it stays up.
139 posts · page 2 of 6
CIDR Notation Explained: What /24, /16 and /32 Mean
CIDR notation like 192.168.1.0/24 describes a range of IP addresses in one line — you'll meet it in firewall rules, database access lists and cloud networking. What the slash number means, a cheat sheet of common sizes, how to allow a single IP, and the mistakes that open your server to the whole internet.
How to Check Disk Space and Memory Usage on Linux
The commands to see what's using your server's disk and memory: df -h for free disk space, du and ncdu to find big folders, free -h for memory (and why 'free' memory looks low), and top/htop for which process is using RAM and CPU — plus how to clean up safely.
Caddy vs Nginx vs Traefik: Which Reverse Proxy Should You Use?
Three popular reverse proxies, three philosophies: Nginx is the fast, flexible standard; Caddy gives you automatic HTTPS with a two-line config; Traefik configures itself from Docker labels. How they compare on HTTPS, configuration, Docker and Kubernetes integration, performance and debugging — with the same site configured in each.
503 Service Unavailable: What It Means and How to Fix It
A 503 Service Unavailable means the server is temporarily unable to handle the request — overloaded, in maintenance, or with no healthy app behind it. How it differs from 500, 502 and 504, the common causes (crashed app, failed health checks, resource limits, maintenance mode) and how to fix and prevent them.
What Is Tailscale? A Private Network for Your Devices and Servers
Tailscale builds a private, encrypted network (a tailnet) between your laptops, phones and servers using WireGuard, with no ports to open. How it works, common uses — private SSH, reaching databases and admin tools, home labs — MagicDNS, ACLs, Funnel and Serve, and alternatives like Headscale and plain WireGuard.
What Is systemd? Services, systemctl and journalctl for Beginners
systemd is the program that starts and manages services on most Linux servers. What it does, the systemctl commands to start, stop, restart and enable services, reading logs with journalctl, and how it keeps your app running after crashes and reboots.
What Is OpenTelemetry? Traces, Metrics and Logs Explained
OpenTelemetry is the open standard for collecting traces, metrics and logs from your app and sending them to any observability backend. The three signals, spans and context propagation, auto-instrumenting a Node.js app, the Collector, backends, LLM and agent tracing, and what a small team actually needs.
What Is Object Storage? S3, Buckets, and Where Your Files Should Live
Object storage keeps files as objects in buckets, reachable over HTTP — Amazon S3 is the original, and dozens of services speak the same API. How it differs from a hard disk, what buckets, keys and presigned URLs are, what it costs, and when your app needs it.
What Is Nginx? The Web Server in Front of Half the Internet
Nginx ("engine-x") is a web server that serves files, forwards requests to your app, handles HTTPS and balances load. What it does, what a basic config looks like, where the files live, the commands you'll need, and whether you need it at all.
What Is eBPF? Safe Programs Inside the Linux Kernel, Explained
eBPF lets you run small, verified programs inside the Linux kernel at hook points — syscalls, network packets, function entry — without kernel modules. How it works (verifier, JIT, maps, hooks), what it powers, bpftrace one-liners, and its limits and security implications.
What Is Caddy? The Web Server With Automatic HTTPS
Caddy is a modern web server and reverse proxy that gets and renews HTTPS certificates automatically. What it does, a three-line Caddyfile that puts your app online with HTTPS, how it compares with Nginx, and the gotchas (ports, DNS, firewalls) to know first.
What Is a Load Balancer? Spreading Traffic Across Servers
A load balancer sits in front of several copies of your app and spreads requests between them, skipping any that are unhealthy. How it works, the common algorithms, sticky sessions, health checks, and why a small app probably doesn't need one yet.
What Is a DNS Server? How Your Browser Finds a Website
A DNS server turns names like example.com into IP addresses. The different kinds — resolvers, root servers, authoritative nameservers — how a lookup works step by step, public resolvers like 1.1.1.1 and 8.8.8.8, and the DNS errors you'll actually run into.
vsock Explained: Talking Between a VM and Its Host Without a Network
vsock is a socket family for communication between a virtual machine and its host — no IP addresses, no network interface, no firewall rules. How AF_VSOCK addressing with CIDs and ports works, vhost-vsock in QEMU, Firecracker's Unix-socket bridge, how sandboxes use it for guest agents, and the security model.
UFW Firewall Basics: Lock Down a Linux Server in Five Commands
A firewall decides which network traffic can reach your server. UFW makes Linux's firewall simple: allow SSH, HTTP and HTTPS, deny the rest. The commands, how not to lock yourself out, why your database port should never be open, and the Docker gotcha that bypasses UFW.
The TLS 1.3 Handshake Explained: What Happens Before the First Byte
What actually happens when a browser connects over HTTPS: ClientHello, key shares, the server's certificate and signature, Finished messages, one round trip instead of two, 0-RTT resumption and its replay risk, SNI and ECH, certificate chain validation, and how to inspect it all with openssl.
Writing a systemd Service File for Your App (With Hardening)
A production-ready systemd unit for a Node.js or Python app, explained: Type, User, WorkingDirectory, EnvironmentFile, Restart and backoff, graceful stop, resource limits, logging, and the sandboxing options (ProtectSystem, NoNewPrivileges, PrivateTmp) that limit damage if the app is compromised.
How to SSH Into a Server (Mac, Windows and Linux)
SSH lets you open a terminal on a remote server securely. How to connect from macOS, Windows and Linux, logging in with a password vs an SSH key, the first-connection fingerprint prompt, a config file shortcut, and fixes for the common connection errors.
SSH Hardening: Lock Down SSH on Your Server
A practical SSH hardening checklist: key-only authentication, no root login, AllowUsers, modern key types, sshd_config drop-ins, testing safely without locking yourself out, fail2ban, firewall rules or a private network like Tailscale, 2FA, and auditing who has access.
How to Secure a New VPS: The First 30 Minutes
A fresh server is scanned within minutes of going online. The essential hardening steps for a new Ubuntu VPS: updates, a non-root user, SSH keys only, firewall, automatic security patches, fail2ban, safe service binding, backups and monitoring — in order, with commands.
scp vs rsync: How to Copy Files to and From a Server
scp copies files over SSH simply; rsync copies only what changed, can resume, and can mirror folders. Examples for uploading and downloading files and folders with each, the trailing-slash rule, --delete, excluding files, and when to use sftp or Git instead.
runc and OCI Runtimes: What Actually Starts Your Container
Below Docker and containerd sits a small program that creates the namespaces, cgroups and mounts and execs your process: the OCI runtime. The OCI image, runtime and distribution specs, a bundle and config.json, running runc by hand, alternatives (crun, youki, gVisor's runsc, Kata), and runc's notable escapes.
How to Run a Python Script 24/7 (and Keep It Running)
Scrapers, bots, monitors and workers need to keep running after you close your laptop. The options — a server with systemd, tmux for quick jobs, Docker with a restart policy, cron for scheduled scripts — plus logging, restarting on crashes, and not losing data on restart.
Postgres Read Replicas: Streaming Replication, Lag, and Read-Your-Writes
How Postgres physical streaming replication works, sync vs async, measuring replication lag, query conflicts and hot_standby_feedback, routing reads in your app without breaking read-your-writes, replication slots that fill disks, and when a replica is the wrong fix.