caduh

Posts tagged “ca-duh

Tiny explainers grouped by topic. Spend less time Googling, more time building.

Blue-Green vs Canary vs Rolling Deployments

How the three common deployment strategies differ, when to use each one, and what health checks, traffic shifting, rollback plans, and database compatibility need to be in place first.

devdevopsdeployments

Structured Logging That Survives Production

How to make logs useful under real traffic: correlation IDs, JSON event shape, sampling rules, and PII redaction that does not depend on everyone remembering.

devobservabilitylogging

OpenTelemetry for Mortals

Which signal answers which question, where baggage helps, where it leaks, and how one bad metric label can quietly torch your observability budget.

devobservabilityopentelemetry

DNS for Engineers

How TTLs really affect changes, why propagation feels slow, where DNS failover helps and where it doesn’t, plus cutover playbooks that keep rollback easy.

devdnsnetworking

CORS Explained Without Cargo Culting

What actually breaks in CORS, which headers matter, and the server configs that fix browser errors without accidentally opening your API.

devsecurityweb

Secrets Management That Survives Production

Env vars are only the beginning. This covers secret managers, rotation, least privilege, and delivery patterns that do not leak credentials across your stack.

devsecuritysecrets

CSRF Still Matters

CSRF never really left. Here’s how SameSite cookies, synchronizer tokens, custom headers, and Fetch Metadata fit together in modern apps.

devsecuritycsrf

RBAC vs ABAC vs ReBAC

Most teams do not need every authorization model. This shows where RBAC, ABAC, and ReBAC fit, and what gets painful later if you pick the wrong one.

devauthauthorization

Passkeys / WebAuthn in Practice

What shipping passkeys actually involves: registration, sign-in, recovery, account settings, and the RP ID/origin mistakes that break rollouts.

devauthpasskeys

Session Cookies vs JWTs vs PASETO

Three ways to carry auth state, three different tradeoffs. Here’s where session cookies, JWTs, and PASETO fit without stateless-auth cargo culting.

devauthsecurity

OAuth 2.1 & OpenID Connect for Builders

The auth stack most teams inherit, minus the jargon: code + PKCE, refresh tokens, ID tokens, and machine-to-machine flows that actually matter.

devauthoauth

OpenAPI Done Right — contracts, not just docs

Practical patterns for rock‑solid APIs: spec styleguide, reusable components, Problem Details errors, auth & versioning, pagination, idempotency, testing, and CI gates. Includes a copy‑paste 3.1 template.

devapiopenapi

JWTs — Expiration, Rotation, and Revocation

Design access + refresh flows that are safe: short-lived access tokens, rotating refresh tokens with reuse detection, device-scoped sessions, and practical revocation strategies.

devsecurityauth

Google Ads API — the essentials (tiny playbook)

Developer token + OAuth, account hierarchy (manager vs customer), GAQL for reporting, safe mutations with validate_only/partial_failure, quotas, and offline conversions.

devapiads

Web Accessibility Basics: 5 Easy Wins for Every Developer

Low‑effort, high‑impact a11y fixes: alt text, semantic HTML & landmarks, color contrast (and non‑color cues), keyboard navigation & focus, and form labels/errors—with copy‑paste examples.

devwebaccessibility

What is an N+1 Query and How Do You Fix It?

A fundamental database performance problem: why N+1 happens, how to spot it, and fixes with eager loading/batching in popular ORMs (Django, Rails, Prisma/Sequelize, SQLAlchemy).

devdatabasesorm

Securely Managing Environment Variables (The Right Way)

Why you shouldn’t commit .env files, how to handle secrets differently in local, staging, and production, and the exact patterns to inject, validate, rotate, and audit configuration safely.

devsecuritysecrets

SSH Keys, Minus the Mystery

Generate a key, load it into `ssh-agent`, add it to a server, and clean up your SSH config without the usual trial and error.

devsecurityssh

Common Design Patterns — The 5‑Minute Version

A whirlwind tour of widely used patterns—Singleton, Factory, Observer, Strategy, Adapter/Decorator—with tiny examples, when to use them, and common pitfalls.

devprogrammingdesign-patterns