399 points by fessguid 1 day ago | 41 comments | View on ycombinator
101008 about 22 hours ago |
LetMeLogin 1 day ago |
cowlevel about 23 hours ago |
You can go much lower. The goal was set at "15 million web servers" which is dependent on the definition of "a web server" to include some implementation details. From the client perspective it actually means 15 million IP/port combinations that respond to HTTP - which you can do all in one go with an appropriate wildcard selector (such as with iptables transparent proxy)
pi-rat 1 day ago |
Finding something today that makes you go “i want to subscribe to more of this”, is rare.
gavinray about 13 hours ago |
If you enjoyed this post, you might also like the "Lord of the io_uring" series which walks through how epoll/kqueue work and then onto async services with io_uring:
gonzus about 23 hours ago |
com 1 day ago |
Love the humour and simplicity!
3abiton 1 day ago |
The title is underselling the story. I thought the webserver would've been some extremely beefy server, but no. It's 10GB of RAM. That's a basic M4 mac mini territory (and even that one is much more beefier than OP's server)
athrowaway3z 1 day ago |
Seeing 'web', together with its first few sections, made me initially think about http parsing/switching and almost made me stop reading.
kvirani 1 day ago |
jakintosh about 14 hours ago |
silentprog about 16 hours ago |
anonymousDan about 19 hours ago |
postbase about 18 hours ago |
tempfile about 23 hours ago |
I audibly exhaled from my nose, thank you.
Panzerschrek about 20 hours ago |
lukeh about 12 hours ago |
magahugu 1 day ago |
peter_d_sherman about 23 hours ago |
In this case, the constraint is "one VM with 10GB of RAM and 1 CPU core", which would definitely be able to run a single web server fairly well, and probably could run tens of them fairly well, as well.
But, when we get up to hundreds of them simultaneously, thousands of them, tens of thousands of them, well, the associated resource constraint problems just seem to compound at every level...
But let's not let that stop us, let's "go for broke" -- and attempt 15 Million!
It's an excellent thought and engineering exercise...
Anyway, the article is a great read. Worth reading by anyone into optimization of computing resources, and definitely worth re-reading in the future.
Related:
The C10K Problem (1999):
elendilm 1 day ago |
I was thinking for the last couple of days to have 10M+ app connections on one laptop as an extreme cost optimization excercise. Great timing.
mrheosuper 1 day ago |
bmacho about 22 hours ago |
Putting uncomfortable and sad motivational speak into funny speak! You are not logically supposed to feel good when you fail, but your brain's language parts make you feel good chemically! Great idea!
spwa4 about 15 hours ago |
edumucelli 1 day ago |
JSR_FDED about 18 hours ago |
iercan about 19 hours ago |
igleria about 22 hours ago |
ac2u about 22 hours ago |
publlus_enigma about 23 hours ago |
ZiiS 1 day ago |
undefined 1 day ago |
yoy0721 about 22 hours ago |
MalgorzataKowal 1 day ago |
undefined 1 day ago |
helloKingBryan about 20 hours ago |
shipitx 1 day ago |
kburman about 24 hours ago |
Fivekoto 1 day ago |
carderproo about 16 hours ago |
pomatic about 20 hours ago |
It was like in the 2000s, blogs wanted to share informatin but also be funny, something similar to a talk in a event? Later they only focused on SEO, so they optimized every word and paragraph, removing jokes, etc. I remember noticing this with the Digital Ocean docs, that ranked 1 for every tutorial in how to install stuff on servers.
Anyway, good times! I miss them.