Lambda functions are incredibly useful. They are affordable and can be triggered in a variety of ways. One of the most common is through an HTTP endpoint.
You can make an entire API without ever having to manage a server by writing Lambda functions and creating HTTP endpoints for them using API Gateway.