3 ms·
> a raspberry pi can pretty much serve 100k req. / second. An average dev laptop should be able to handle 1M req. / second without much issues How big are thes
by tbrownaw 4y ago
> a raspberry pi can pretty much serve 100k req. / second. An average dev laptop should be able to handle 1M req. / second without much issues
How big are these requests? If you're returning more than 1kB including all the headers, you're not beating 100kreq/s on a standard consumer-level 1Gbit link.
- gpderetta 4y agoThe argument is about the power of a single machine. If your enterprise is somehow limited by 1Gb links, no amount of scaling is going to address that.
- seedless-sensat 4y agoI think the parent's argument is that a Raspberry Pi is limited to 1Gb link, so how can do 100k reqs/sec
- tbrownaw 4y agoThat, plus if I open dev tools and look at requests for even this site, the only things that small are three of the images (the orange Y in the corner, the vote arrow, and a 1x1 somewhere). It wouldn't be possible to get that request rate outside of a microbenchmark, just because of the network speed the pi supports.
- gpderetta 4y agoyou can buy faster network cards for a RPi but this is missing the point: 100k req/sec is not a huge volume and a decent server should be able to handle it without issues.
- jcelerier 4y agoit's not, people have been able to put >1G network cards on a Pi: - 2.5G: https://www.jeffgeerling.com/blog/2020/testing-25-gbps-ethernet-on-raspberry-pi-cm4 https://www.jeffgeerling.com/blog/2020/testing-25-gbps-ether... - 10G (in practice 3.6G max which is more than what most can expect from their ISP): https://www.hackster.io/news/10-gbps-ethernet-on-a-raspberry-pi-a3596d276f16 https://www.hackster.io/news/10-gbps-ethernet-on-a-raspberry...