r/programming • • Feb 17 '16

Stack Overflow: The Architecture - 2016 Edition

http://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/
1.7k Upvotes

461 comments sorted by

View all comments

Show parent comment

17

u/nickcraver Feb 17 '16 edited Feb 17 '16

To clarify: This is the total wall time spent in a category, summed up from all requests that day. It is not CPU hours (that's higher, but more expensive to measure) as some assume. And we're handling many simultaneous requests. If someone has a way to concisely make this much clearer, I'll happily update the post. I'm just not sure how to be convey this without being more confusing.

Example requests:

  1. 10ms spent waiting on SQL (wall time)
  2. 11ms spent waiting on SQL (wall time)
  3. 14ms spent waiting on SQL (wall time)

Total: 35 ms of wall time combined, possibly in the same 14ms window - does that make sense?

8

u/contrarian_barbarian Feb 17 '16

I was wondering if this was the explanation. So essentially it's the sum total of all time threads on the web servers spent waiting for responses from the SQL servers?

8

u/nickcraver Feb 17 '16

Yeah that's a good way to think about it - we're literally starting and stopping a high resolution timer around every SQL call we make inside the application, via MiniProfiler.