PSA: stop using while loops in production
retained text
We run a social media API with no account limits; given this we have pretty loose limits everywhere in the app, but after today, I will probably implement some guards not to have a similar situation Long story short. User was re-sending the same 7 posts' media about once a minute from Sep 9 to Sep 18, roughly 13,000 times per post. Resulting in this image https://preview.redd.it/lbhcfr4o4urh1.png?width=191&format=png&auto=webp&s=a197603347ede6dde5a361c4c8bddc78740ee764 top is the number of posts he made; the bottom (red bar) is the number of uploads for those posts
document fetched 2026-09-27 00:28 · canonical https://reddit.com/r/indiehackers/comments/1wqmgf3/psa_stop_using_while_loops_in_production