by that_guy_iain · 3y ago · 0 comments
The way I took Reddit's comments were there were things that could be optimised to reduce costs. I've not seen a codebase yet where that isn't true.
Sadly, in the hands of Redditors who think you can host an API on AWS for $1 per million requests comments like come across as "Oh they did shoddy work".
What I think is we're seeing production quality code like the majority of us have running.
A payload of 25 comments vs a payload of 100, takes less time to generate and deliver.
So sometimes, to optimize his users experience, he might request 25 to show something quick to the user and then do a request for 100 and append it.
He also mentioned that he’s being compared to other apps, _not_ to the API limit (which he was under anyway).
So, can it be less?, of course. Heck, he could make it 1/minute or even 1/day. But his quota was 60/min. So why not use the 60?.
As far as the app goes, an average of ~330 reqs/user/day is pretty good, considering they built the platform budgeting for 86,400.
If there’s an issue with the cost to process that many calls I’m much more suspicious of inefficiency on the API side than the client. Those numbers seem very reasonable.
I don't think Reddit cares about the number of requests. They just want paid. They weren't caring before when it was free.