(05)NOTES FROM THE WORK
Blog.
Notes from the work: what I learn while building scalable systems, APIs and web apps, written down so you can skip the mistakes I already made.

WEB SECURITY · 6 MIN READ
How to Stop Spam Bots on Your Contact Form Without a Captcha
READ ARTICLE- SCALABILITY · 15 MINHow to Keep Your API Fast When the Work Is SlowStop awaiting everything. The 5 problems we faced with background jobs at work, the fix for each one with a tested queue and worker in TypeScript, and the step to event-driven architecture.

- META ADS API · 7 MINMeta Won't Give You Ad Spend by Country and Device. Here Is How to Get It AnywayMeta's API refuses the country × device breakdown, and a formula gives the wrong answer. Here is the real problem, the wrong shortcut, and the fix we built from ad set targeting.

- SCALABILITY · 9 MINHow to Retry Failed Requests Without Crashing Your ServerA simple retry loop can keep your own server down. Here are the 5 problems we faced with retries, and the fix for each one, with a 12-line retry in TypeScript.

- SCALABILITY · 10 MINHow to Stop One User From Crashing Your APIAn API allowed us 10 requests a second and we were sending more, so our requests failed. Here are the 4 problems we faced and the rate limiter that fixed them, in 48 lines.

- SCALABILITY · 9 MINHow to Handle Millions of Requests on a ServerOur server was getting thousands of requests in the same minute and the database ran out of connections. Here are the 4 problems we faced and the solution we made for each one.
