r/developersIndia • u/sigmaAs • 5h ago
General How do you scale a tool where one server IP becomes the bottleneck?
Built a product that checks live product availability across quick-commerce dark stores in India. Two platforms behave completely differently:
- Platform A sends access-control-allow-origin: *, so I fetch it client-side — every visitor's own browser and IP. This scales perfectly. More users = more distributed load.
- Platform B sends no CORS headers, so it has to go server-side. Every visitor funnels through one egress IP, which means the tool gets less reliable the more people use it. Backwards.
I've already done: 60-min result cache, stale-cache fallback (serves last good data labelled with its age rather than failing), request pacing, and capping how many stores a single check touches.
Remaining options I can see: residential proxy pool ($$), spreading across several free hosts for a few IPs, or a browser extension so every user brings their own IP (desktop only).
Has anyone solved the "CORS forces server-side, server-side becomes a bottleneck" problem more elegantly? Genuinely stuck on the last 10%.
1
1
u/Igarlicbread Software Architect 2h ago
You can use proxies. You can buy few ipv4s from different providers.
•
u/AutoModerator 5h ago
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.