A function is a task or operation. It is a part of an application that can be written as a separate code and can be executed independently. Functions can be considered as an extension of the microservice architecture.