The "new" interface is actually entirely JavaScript and just exchanges JSON with an HTTP endpoint. This removes a big chunk of "slow" in Rails, which is view rendering. Of course, the actual services behind this endpoint could be based on Scala or Rails or any other language and are probably heavily cached.
They switched the code requiring high performance to Scala a couple of years ago.