When is it necessary to use dedicated servers to host a website

When is it necessary to use dedicated servers to host a website