←back to thread

770 points ta988 | 5 comments | | HN request time: 0.879s | source
Show context
joshdavham ◴[] No.42551384[source]
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.

replies(1): >>42551774 #
jdndbsndn ◴[] No.42551774[source]
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?

replies(2): >>42551909 #>>42558804 #
1. watermelon0 ◴[] No.42551909[source]
That would still be 86k req/day, which can be quite expensive in a serverless environment, especially if the app is not optimized.
replies(1): >>42551985 #
2. Aeolun ◴[] No.42551985[source]
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
replies(1): >>42553486 #
3. joshdavham ◴[] No.42553486[source]
What would you recommend I do instead? Deploying a Docker container on Cloud Run sorta seemed like the logical way to deploy my micro app.

Also for more context, this was the app in question (now moved to streamlit cloud): https://jreadability-demo.streamlit.app/

replies(2): >>42557683 #>>42574739 #
4. ribadeo ◴[] No.42557683{3}[source]
Skip all that jazz and write some php like it's 1998 and pay 5 bucks a month for Hostens or the equivalent... Well, that's the opposite costing side of the spectrum from serverless containerized dynamic lang runtime and a zillion paid services as a backend.
5. Saris ◴[] No.42574739{3}[source]
Your standard web hosting services, or a cheap VPS are great options.

The whole 'cloud serverless buzzword-here' thing is ridiculous for most use cases.

Heck you can serve quite a few static req/s on a $2 ESP32 microcontroller.