4 ms·
It averages around 0.0005$ per request according to the footer. Could this end up costing the author quite a bit due to HN traffic? Also, whats stopping bad act
by AkshatJ27 4y ago
It averages around 0.0005$ per request according to the footer. Could this end up costing the author quite a bit due to HN traffic? Also, whats stopping bad actors from writing a script to continuously fetch the page?
I wonder if some sort of caching might help lower costs.
- sillysaurusx 4y agoNothing. And in fact that’s exactly what happened to me. Some fella from HN spawned like 45 simultaneous wget’s in a loop to cause maximum financial damage. All of a sudden we see Firebase’s cost graph go vertical. It happened after I mentioned “just be kind, please! Theoretically this could cost a lot of money.” So there’s at least one person who will do exactly this just for fun. Firebase customer support was super cool about it, but it still knocked us off the paid tier.
- throwaway0x7E6 4y ago>All of a sudden we see Firebase’s cost graph go vertical. think of all the money you have saved by not having to hire a hundred engineers to maintain your website's infrastructure!
- FiloSottile 4y agoIt's part of the bit. There's intentionally no caching, every batch is warm from the AI oven. HN usually drives around 10k visits, so organically it's going to be well within my Saturday night budget. If someone decides to hammer it, well, the OpenAI account has a hard limit of $20/month. It will live until it's killed I guess.
- TeMPOraL 4y ago> HN usually drives around 10k visits You have to account for this not being a regular visit, but rather (I guess) 5-50 "visits" per visit, as people mash F5 to get more titles. > OpenAI account has a hard limit of $20/month That makes me feel better about the couple refreshes I did myself :).