The on-demand model functions by utilizing a robust technological infrastructure that connects customers with service providers in real-time. For instance, a ride-sharing service uses a mobile app to connect passengers with drivers. The system is designed to handle sudden spikes in demand by efficiently routing the nearest available driver to the customer.