News for hackers. Stuff that matters.
Re:Web CGI programs aren't particularly slow these days by benhoyt on Monday January 08, 2024 @02:40PM (#38916980)
Actually, an article of mine was on the front page of HN the other day, and it only got ~10,000 hits over a day. At its peak it was less than 1 per second. I've been #1 on HN before, and you still only get about 30k hits total with a peak of several per second. So even if your responses take 200ms and you can only handle one at a time, you'll be fine. The HN/Slashdot effect is not hard to handle!
Re:Web CGI programs aren't particularly slow these days by Retr0id on Monday January 08, 2024 @03:18PM (#38917526)
I was also on the front page earlier in the week, and I agree with your numbers. Let's call it 1/s peak.

If a page is using CGI, it's often (but not always) because it's interactive in some way. If users are interacting and generate 10 requests total, on average, you're down to only 100ms per request (which is about how long it takes my system to spin up a new python3 process and `import numpy`).