The Daily
A note a day on APIs and the realities of shipping web applications. Stuff I've actually learned across 25 years of doing the work.
nginx split config: cached HTML for marketing, PHP-FPM for the rest
Serving static cached HTML for your marketing pages while Laravel handles auth routes cuts PHP-FPM load dramatically. Here's the exact nginx config I use.
I've been running this split for about three years now and I'm still surprised more Laravel shops don't do it. Your marketing pages — homepage, pricing, about, blog — don't need PHP-FPM. They need to be fast. Your authenticated app routes do need PHP, but they're a fraction of your total traffic. Splitting the two at…
Read the daily →Laravel Octane: What Bites You When Real Traffic Hits
Octane is genuinely fast, but the memory and state bugs it surfaces are silent until you're live. Here's what to instrument before you ship.
Octane made one of my apps feel like a different stack. Response times dropped from ~180ms to under 20ms on cached reads. I shipped it, felt clever, and then watched a healthcare portal start returning stale user data to the wrong sessions three days later. Not security-related, thankfully — just a singleton holding…
Read the daily →You Don't Need Kubernetes for a 3-Person Team
Kubernetes is impressive engineering. It's also overkill for 90% of the teams reaching for it. Here's what a well-configured single VM actually handles.
I've watched three separate clients spend meaningful engineering time migrating to Kubernetes in the last two years. In all three cases, the problem they were solving was not the problem they actually had. The problem they had was a poorly configured single server. The pitch vs. the reality Kubernetes solves real…
Read the daily →AWS SES: The Unglamorous Setup That Keeps You Off Blocklists
SES sandbox mode is easy. Production SES that doesn't get you blocklisted is a different project entirely. Here's what I've learned the hard way.
Getting SES out of sandbox mode feels like an accomplishment. It isn't. It's just the beginning of a setup that, if you skip any of it, will eventually get your sending domain blacklisted and your clients calling you on a Saturday morning. I've done this setup probably a dozen times now — for e-commerce clients…
Read the daily →How Much Traffic a $40 VPS Actually Handles (Real Numbers)
Everyone assumes you need Kubernetes and auto-scaling. I've been running production Laravel apps on single VMs for years. Here's what the numbers actually look like.
The reflex in this industry is to reach for complexity before you've earned it. I've watched clients spend $800/month on managed Kubernetes clusters running apps that serve 200 visitors a day. I run production Laravel apps — real ones, for paying clients — on $40 VMs, and they handle more than most people expect. This…
Read the daily →