Posts tagged "Performance"
Essays, field notes, and engineering write-ups by Al Amin Ahamed covering Performance — practical patterns, gotchas from production code, and lessons learned shipping real systems. Topics include architecture decisions, performance tuning, debugging stories, and integration notes you can apply directly to your own Performance work.
· 9 min read
RAG on SQLite: Pure-PHP Cosine Similarity Without pgvector
How I built RAG retrieval against a SQLite database using pure-PHP cosine similarity — when it scales, when it doesn't, and the migration path to pgvector.
· 8 min read
Cutting Claude API Costs by 89% with Prompt Caching
A practical Laravel integration of Anthropic prompt caching — what to cache, the 1024-token minimum, multi-breakpoint strategies, and real cost numbers.
· 8 min read
Tailwind v4 Migration: From v3 Config to CSS-First Tokens
A practical guide to migrating a real Laravel app from Tailwind v3 to v4 — what breaks, the new @theme syntax, plugin migration, and the 5× build speedup.
· 9 min read
React 19 in Production: useTransition, useOptimistic, and the End of forwardRef
How I use the new React 19 hooks in this portfolio's admin — useTransition for non-blocking input, useOptimistic for instant UI, and refs as props.
· 7 min read
Splitting Laravel into Three Vite Bundles for Smaller Pages
How I split this portfolio into three independent Vite bundles (frontend, auth, dashboard) — separate dependencies, separate CSS, working HMR across all three.
· 10 min read
Laravel Queues at Scale: Lessons from 10 Million Jobs
Patterns and pitfalls I've learned running Laravel queues in production — from connection pooling and job chunking to dead-letter handling and zero-downtime deployments.
· 8 min read
Hunting N+1 Queries in Laravel: Tools, Strict Mode, and Fixes
How to find N+1 queries with Telescope, Debugbar, and preventLazyLoading() — and the eager-loading patterns that fix them, including the polymorphic gotcha.
· 9 min read
10 Eloquent Query Optimizations, in Order of Effectiveness
A systematic optimization checklist for Eloquent — select(), chunk(), chunkById(), withCount(), pluck(), subquery selects, and when to bypass the model layer entirely.
· 10 min read
Six Redis Patterns Every Laravel App Eventually Needs
Cache, sessions, queues, rate limiting, locks, pub/sub — the Redis patterns I use in production Laravel apps, with the trade-offs and the failure modes.
· 9 min read
Building a Dark Design System with Tailwind CSS v4
How I designed the D1 "Dark Precision" system for this site — CSS-first @theme config, custom tokens, and a palette that passes WCAG at every level.
· 8 min read
Scaling WordPress: Redis Object Cache, Query Optimization, and Page Caching
A systematic guide to making WordPress fast — from Redis object caching and WP_Query optimization to FastCGI page cache and CDN asset delivery.