Tag

# Best Practices

3 posts tagged Best Practices.

Understanding Horizontal vs. Vertical Scaling

Vertical scaling gives one server more CPU and memory, horizontal scaling runs more of them. How they differ in limits, availability, cost and code, what an app needs before it can scale out, why databases scale up, and how autoscaling fits in.

Marei Morsy··14 min read

Persistent Volumes vs. Object Storage: When to Use Each

A persistent volume is a disk your pod mounts, a bucket is where your app sends whole files over HTTPS. How they differ in access, sharing, durability and cost, which data belongs on each, the mistakes to avoid, and how to move files from a volume to a bucket.

Marei Morsy··13 min read

Why Your Application Should Never Store Files Locally

Files written to a container's disk vanish on the next deploy, exist on only one replica and break autoscaling. Why local file storage fails in the cloud, where uploads, sessions and logs belong instead, and how to move an app's files to an S3 bucket without losing any.

Marei Morsy··12 min read