It's perfectly sane to write web <i>services</i> (computationally heavy processes accessed via REST) in C++. But for the algorithm-light, marketing-heavy <i>frontend</i> to such a service, use something easier—the optimizations C++ offers aren't worth it there.