Left an AI endpoint without a rate limit and one retry loop burned through my API credits fast.
Added a Redis rate limiter to cap requests per user per minute, blocking bursts before they hit the LLM.
If an endpoint costs money per call, rate-limit it before sharing it.
My cron job ran twice today because two server instances picked up the same batch at once.
Added a distributed lock in Redis (SET NX EX) so only one worker claims the job window.
Always lock scheduled jobs when multiple servers run.
Hey let's all who want to connect to people in
Tech
Ai
Startup
Development
Say hi in comments
And let's connect with each other.
I'm gonna follow all who follow me through this post.
Spent way too long digging through logs today trying to trace one failed API request into a worker.
Concurrent logs mix together fast. Added a request_id in middleware and passed it to every job so one search shows the full trail. Tag logs early.
@Rifle_Blade The idea is cool, you can try it with android too ig, that's easier than windows.
That would be for phones For Googlebooks
Just a suggestion.