Tips in DevOps

Explore all tips and tutorials about DevOps.
shape
shape
shape
shape
shape
shape
shape
shape

DevOps Medium

Structured Logging and Request IDs Across Services: JSON Logs, Laravel Context and Middleware

Stop grepping interleaved text logs. Emit JSON events, stamp every line with one request ID, and carry it through queued jobs and service calls with Laravel Context.

Laravel 13 PHP 8.4 Monolog 3
Diagram Try the challenge
9 min Read tip
DevOps Hard

Rolling vs Blue-Green vs Canary: Deploying Without Breaking the Database

Every deploy runs two versions at once against one database. Compare rolling, blue-green and canary, and learn expand/contract, feature flags and real rollbacks.

Kubernetes 1.33 Laravel 13 PHP 8.4
Diagram Try the challenge
9 min Read tip
DevOps Medium

Health Checks Done Right: Liveness vs Readiness vs Startup Probes

A database query in a liveness probe can turn a 40-second failover into a full outage. Learn what each probe should check, with Kubernetes, Docker and Laravel /up.

Kubernetes 1.33 Laravel 13 PHP 8.4
Diagram Try the challenge
9 min Read tip
DevOps Hard

Zero-Downtime Database Migrations with Expand/Contract: Rename Columns Without Breaking Deploys

Renaming a column mid-deploy breaks old servers and queue workers. Use expand/contract, batched backfills and the right deploy order to change schemas safely.

Laravel 13 PHP 8.4 Mysql 8.4
Diagram Try the challenge
12 min Read tip
DevOps Medium

Circuit Breaker Pattern: Stop Hammering a Service That Is Already Down

Retries alone can bury a struggling dependency. Learn how a circuit breaker fails fast, lets the service recover and probes it safely, with PHP, Python and Laravel code.

PHP 8.4 Python 3.12
Diagram Try the challenge
6 min Read tip
DevOps Medium

Exponential Backoff with Jitter: Retrying Failed Requests the Right Way

Why naive exponential backoff causes retry storms, and how adding random jitter smooths out the load, with a full-jitter retry implementation in PHP and Python.

PHP 8.4 Python 3.12
Diagram Try the challenge
4 min Read tip
DevOps Hard

Consistent Hashing: Distributing Load Without a Full Reshuffle

How consistent hashing distributes keys across nodes so adding or removing a node only reshuffles a small fraction of the keyspace, with a virtual-node implementation in PHP and Python.

PHP 8.4 Python 3.12
Diagram Try the challenge
3 min Read tip
DevOps Medium

Git Interactive Rebase: Clean Up Your Commit History Before a PR

Learn how to use git rebase -i to squash, reorder, and edit commits so your pull requests tell a clean, reviewable story.

Git 2.40+
Diagram
4 min Read tip
DevOps Medium

Docker Multi-Stage Builds for Smaller Images

Reduce your Docker image size dramatically using multi-stage builds.

Docker 20.10+
Diagram
2 min Read tip