←back to thread

770 points ta988 | 9 comments | | HN request time: 0s | source | bottom
1. 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 #
2. 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 #
3. 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 #
4. Aeolun ◴[] No.42551985{3}[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 #
5. joshdavham ◴[] No.42553486{4}[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 #
6. ribadeo ◴[] No.42557683{5}[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.
7. acheong08 ◴[] No.42558804[source]
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
replies(1): >>42578561 #
8. Saris ◴[] No.42574739{5}[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.

9. lanstin ◴[] No.42578561{3}[source]
Wow that really works? So cool. I should bring my VMs back in house. Spare laptops I have.