Skip to content

Blog

Writing

Engineering, AI experiments, and software craft.

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.

Filtered by Performance ✕ clear
RAG on SQLite: Pure-PHP Cosine Similarity Without pgvector
Apr 25, 2026
· 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.

Cutting Claude API Costs by 89% with Prompt Caching
Feb 5, 2026
· 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.

Tailwind v4 Migration: From v3 Config to CSS-First Tokens
Aug 12, 2025
· 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.

React 19 in Production: useTransition, useOptimistic, and the End of forwardRef
Jul 28, 2025
· 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.

Splitting Laravel into Three Vite Bundles for Smaller Pages
Jul 5, 2025
· 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.

Laravel Queues at Scale: Lessons from 10 Million Jobs
Mar 20, 2025
· 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.

Hunting N+1 Queries in Laravel: Tools, Strict Mode, and Fixes
Jan 30, 2025
· 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.

10 Eloquent Query Optimizations, in Order of Effectiveness
Jan 12, 2025
· 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.

Six Redis Patterns Every Laravel App Eventually Needs
Nov 22, 2024
· 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.

Building a Dark Design System with Tailwind CSS v4
Oct 20, 2024
· 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.

Scaling WordPress: Redis Object Cache, Query Optimization, and Page Caching
Jul 12, 2023
· 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.