|
|
|
|
|
by CyberRabbi
1517 days ago
|
|
Are you able to measure the latency of processing one request when there is no load? Just back of the envelope, if it takes 200,000 instructions to handle a request and we assume 6 cycles per instruction, then that’s about 25 requests per second. HN is roughly 50K requests over 6 hours, so that’s roughly 2 requests per second on average. I would imagine it peaks to about 25. So in theory you should be able to handle the traffic. |
|
http://bettermotherfuckingwebsite.com/ is 20k, ignoring http overhead.
Maybe strip that to 15k after compression, and cut some content.
Still 15000/38400 <= 3 responses per second.
Add in serial parity overhead, http overhead. Might be able to sustain 2 rps with enough cleverness.
Leaves no room for bursts