·7 min read
Why your serverless function loses its last logs
Batched logs sit in memory until a timer fires. Serverless freezes your function the moment it responds. Here is what I measured, and the one-line fix.
3 posts
Batched logs sit in memory until a timer fires. Serverless freezes your function the moment it responds. Here is what I measured, and the one-line fix.
A tiny sliding-window rate limiter that tracks requests per IP in memory and returns 429 when a client sends too many — plus an honest look at why in-memory limits are only a first line of defence on serverless.
Send a real email from a Vercel serverless handler using Resend — creating the client from an env-based API key, building the message, escaping user input, and handling the failure cases.