AWS Lambda is a service that lets you run back-end code without the need to provision or manage servers. AWS Lambda takes care of scaling and high availability. The cost directly depends on how often and how long your code executes.
You will find examples of how to create and deploy AWS Lambda functions in different languages.