Tutorials
Learn to build SaaS.
Practical tutorials on building modern web applications.
13 min read
Idempotent Webhook Processing: Deduplication and Retry Handling in FastAPI and Next.js
Production-ready webhook handling with deduplication and retry logic in FastAPI and Next.js. Prevent duplicate charges and handle partial failures robustly.
webhooksfastapinextjs
Read tutorial
12 min read
Astro for Content-Heavy Sites: Islands, Partial Hydration, and When to Choose It Over Next.js
Why Astro's zero-JS-by-default architecture outperforms Next.js for marketing sites and docs. Islands architecture, hydration strategy, and the trade-offs explained.
nextjsperformance
Read tutorial
9 min read
Idempotency and Retry Patterns for Payment Webhooks (Stripe) in Next.js and FastAPI
Build production-grade Stripe webhook handlers in Next.js and FastAPI that survive retries without double-charging customers. Idempotency keys and deduplication patterns explained.
webhooksfastapinextjs
Read tutorial
12 min read
Streaming LLM Responses from FastAPI to Next.js with the OpenAI and Anthropic APIs
End-to-end streaming setup for OpenAI and Anthropic APIs across FastAPI and Next.js. Cover backend generators, SDK differences, error handling, and production patterns.
fastapinextjsai
Read tutorial
13 min read
Building MCP Servers for Claude Code: A Production Pattern for Custom Tooling
Deploy custom MCP servers that give Claude safe, structured access to your APIs and databases—a production-ready pattern from infrastructure first principles.
ainodejstypescript
Read tutorial
4 min read
Golang Compare: A Practical Guide to Equality, Ordering, and Deep Inspection
Master Go's comparison semantics: when == works, why slices and maps don't, and production-tested patterns for safe equality checks across types.
golangtesting
Read tutorial
4 min read
`strpos` in PHP: Stop Getting Bitten by the Zero-Position Bug
Why `strpos` returns false AND 0, and how to check correctly. A production-hardened guide to the classic PHP footgun.
phpsecurity
Read tutorial
4 min read
Secrets Management for a Dockerised Stack: AWS Secrets Manager, SSM, and Local .env Parity
Production-ready pattern: AWS Secrets Manager and SSM Parameter Store for deployed environments, with genuine local .env parity—not aspirational.
awsdocker
Read tutorial
5 min read
Cloudflare in Front of an ECS App: WAF, Cache Rules, and Tunnels for the Full-Stack Stack
Deploy Cloudflare's WAF, cache rules, and tunnels in front of ECS workloads. Production patterns for session handling, cache invalidation, and private routing—without the enterprise overhead.
Read tutorial