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.
The InnoDB Durability Knob Most VPS Deployments Have Wrong
innodb_flush_log_at_trx_commit defaults to 1 for a reason. Most cheap VPS setups quietly change it and hope nothing bad happens.
I've audited a lot of MariaDB configs over the years, and there's one line I see tweaked on almost every budget VPS setup: . It's in blog posts, DigitalOcean community tutorials, random Stack Overflow answers. Everyone recommends it for performance. Almost nobody explains what you're actually giving up. The short…
Read the daily →OpenAI Batch API: When Slower on Purpose Is the Right Call
The Batch API cuts your OpenAI costs in half and I've been sleeping on it. Here's where it actually earns its keep.
The Batch API cuts your OpenAI bill in half, and most people building with GPT-4o have never touched it. I didn't for a long time either, because "up to 24 hours" sounds like a dealbreaker until you actually audit what your jobs need. Spoiler: a lot of them don't need to be real-time. What the Batch API Actually Is…
Read the daily →Cloudflare's Free WAF Rules That Won't Nuke Your Laravel App
Cloudflare's free WAF is genuinely useful, but the default managed rules will block your own Laravel endpoints if you're not careful. Here's what I actually run.
The Cloudflare free tier gets you a real WAF, not a toy. I've been running it in front of Laravel apps for years and it blocks actual malicious traffic daily - but out of the box, some of the managed rule sets will happily 404 your own form submissions and API endpoints if you let them. Here's exactly how I configure…
Read the daily →Telescope Will Fill Your Disk and You Won't Notice Until It's Too Late
Laravel Telescope's default pruning config is fine for local dev. In production it's a slow disaster. Here's what I actually set.
Telescope's defaults are designed to make local development pleasant. They are not designed to keep your production server alive. I've watched a managed hosting client's MySQL instance balloon past 40GB because nobody thought to revisit the out-of-the-box pruning configuration. The disk alert fired at 2am. Good times…
Read the daily →Mailgun's Log Window Will Burn You Mid-Investigation
Mailgun only keeps event logs for 30 days on most plans. When a deliverability problem surfaces, that window is usually already half-gone.
Mailgun's event log retention is 30 days on the Foundation plan and shorter on some legacy plans. That sounds fine until you're sitting across from a client on day 32 trying to figure out why their invoice emails have been bouncing for six weeks. I've been in that exact seat, and it's not a fun place to be. The…
Read the daily →