Single-page web apps or mobile apps often need to call server-side APIs to store data, process it, call external services, and more.
Azure functions are the perfect companion since they can scale up and down very quickly depending on application usage patterns, which can be difficult to predict, especially for web and mobile apps.