Stack Overflow: The Architecture – 2016 Edition
nickcraver.com
nickcraver.com
It's impressive that SO held the connection open for 18 months! That's some seriously good uptime for a process that manages a TCP connection.
What do we need to run Stack Overflow? That hasn’t changed much since 2013, but due to the optimizations and new hardware mentioned above, we’re down to needing only 1 web server. We have unintentionally tested this, successfully, a few times. To be clear: I’m saying it works. I’m not saying it’s a good idea. It’s fun though, every time.
Sure there is other stuff backing that one, but the next time you hear someone talk about big clusters and hundreds or thousands of nodes, just take a moment to appreciate how much can be done with one rack of gear these days.
I could be wrong but from the article and the numbers you posted it seems that you do cache 89% of your db queries results so maybe this is what jldugger referred to : 504,816,843 (+170,244,740) SQL Queries (from HTTP requests alone) 5,831,683,114 (+5,418,818,063) Redis hits
"The new web tier has dual Intel 2687W v3 processors and 64GB of DDR4 memory. We re-used the same dual Intel 320 300GB SSDs for the OS RAID 1."
Are there any other examples of big (largely) Windows stacks? Stack Exchange is the only one I've seen discussed.
Source: I work at one.
In the corporate world however....
How is that actually possible to keep a single TCP/IP connection open over 18 months?!
I'm using SSH's ControlMaster in persistent mode on my desktop at work. The connections stay open for as long as the desktop is up, which can be months at a time.
It also seems like average query is 1.2ms - am I missing something?