One application would be to embed redis with the online documentation. This would allow to not only show examples but make them executable as well. The user could play with them without having to install anything.
Most of these "try X" features need a user session, allocate a server-side component to that session and then manage recycling. It's much less expensive to stick a JS on a CDN, and also scales much easier horizontally.