how can I be sure my website can handle 15k traffic even if it comes in 1 min?
Hi. I am gonna launch my website a publisher platform. One push notification can bring around 15k traffic in 1-2 mins. How can I be sure that my website will not get down? Is there a test for that? Thanks.
9 Replies
Try to do stress testing
https://github.com/mcollina/autocannon
That's a good one.
GitHub
GitHub - mcollina/autocannon: fast HTTP/1.1 benchmarking tool writt...
fast HTTP/1.1 benchmarking tool written in Node.js - mcollina/autocannon
Thank you for your answer. However I couldn't understand how this can work as testing, I am not good at coding 😦
You just need to install it with
npm i -g autocannon
with Admin und run this command:
autocannon -c 100 -d 40 -p 10 localhost:3000
-c = The number of concurrent connections to use. default: 10.
-d = The number of seconds to run the autocannon. default: 10.
-p = The number of pipelined requests to use. default: 1.
localhost:3000 = Your Domain
There are all other features and functions you can set:
https://github.com/mcollina/autocannon?tab=readme-ov-file#command-lineGitHub
GitHub - mcollina/autocannon: fast HTTP/1.1 benchmarking tool writt...
fast HTTP/1.1 benchmarking tool written in Node.js - mcollina/autocannon
Please ping me on reply so I can answere faster, just lurking sometimes in here :gx_laugh:
If you are on pages, your UI will be fine.
If you are on a traditional server, your API will like die. If you are on serverless, your database will likely die. But all depends on the type of app.
If it's just traffic on the landing page, I wouldn't be much concerned.
it's like a blog page, see here: www.scrolli.co. I managed to make this test and i got a lot of timeouts, I'd like to ask one more thing. How can i read the result?
Yesterday, cache status: DYNAMIC
Today, i changed to HIT
Yesterday: (Cf-Cache-Status:DYNAMIC), and -c 10000 -d 20 -p 100
Today (Cf-Cache-Status:HIT) -c 20000 -d 20 -p 100. Two times higher