You don't, really. You can use Django or Perl today and just enable nginx caching for non authenticated users, for many applications.
Stack Overflow didn't need these optimizations. They could have just deployed 20 servers instead and still been profitable. People optimized just because they like to.