Techniques are provided for function execution using selected execution
modes. One method comprises obtaining information characterizing execution
modes, selected by a given user, for
software components of an application, wherein the selected execution
modes are selected from a number of available execution modes, wherein at least two of the available execution modes are associated with different amounts of compute resources to allocate to an execution of functions associated with one or more
software components; obtaining a function, of a given
software component of the application, to be executed for the given user; and initiating an execution of the 10 function using the amount of compute resources associated with the selected execution mode of the given user for the given software component. The available execution modes may comprise a performance execution mode, a
sustainability execution mode and / or an automatic execution mode.