← Back to context

Comment by joshdavham

19 days ago

I deployed a small dockerized app on GCP a couple months ago and these bots ended up costing me a ton of money for the stupidest reason: https://github.com/streamlit/streamlit/issues/9673

I originally shared my app on Reddit and I believe that that’s what caused the crazy amount of bot traffic.

The linked issue talks about 1 req/s?

That seems really reasonable to me, how was this a problem for your application or caused significant cost?

  • 1 req/s being too much sounds crazy to me. A single VPS should be able to handle hundreds if not thousands of requests per second. For more compute intensive stuff I run them on a spare laptop and reverse proxy through tailscale to expose it

    • Wow that really works? So cool. I should bring my VMs back in house. Spare laptops I have.

  • That would still be 86k req/day, which can be quite expensive in a serverless environment, especially if the app is not optimized.

    • That’s a problem of the serverless environment, not of not being a good netizen. Seriously, my toaster from 20 years ago could serve 1req/s

      3 replies →