A system, comprising: a non-transitory memory storage comprising instructions; and one or more processors in communication with the memory storage, wherein the one or more processors are configured to execute the instructions to: • activate a function graph, the function graph including a plurality of states and transitions between the states; wherein each state is associated with one or more actions, which can be invoked when said state is entered, said one or more actions including calling one of a plurality of cloud-hosted functions; • in response to the activation of the function graph, determine, from the plurality of cloud-hosted functions, a particular cloud-hosted function associated with a particular state in the plurality of states included in the function graph; • before the particular state is triggered within the function graph to execute the particular cloud-hosted function, cause instantiation of the particular cloud-hosted function; wherein the one or more processors are further configured to determine the particular cloud-hosted function by: • identifying a current state within the function graph; • determining, from the current state, a plurality of possible transition paths within the function graph; • predicting that a particular transition path of the plurality of possible transition paths will be used in association with the activation of the function graph; • determining the particular state as being included in the particular transition path; and • identifying the particular cloud-hosted function as being associated with the particular state for instantiation. a non-transitory memory storage comprising instructions; and one or more processors in communication with the memory storage, wherein the one or more processors are configured to execute the instructions to: • activate a function graph, the function graph including a plurality of states and transitions between the states; wherein each state is associated with one or more actions, which can be invoked when said state is entered, said one or more actions including calling one of a plurality of cloud-hosted functions; • in response to the activation of the function graph, determine, from the plurality of cloud-hosted functions, a particular cloud-hosted function associated with a particular state in the plurality of states included in the function graph; • before the particular state is triggered within the function graph to execute the particular cloud-hosted function, cause instantiation of the particular cloud-hosted function; • activate a function graph, the function graph including a plurality of states and transitions between the states; wherein each state is associated with one or more actions, which can be invoked when said state is entered, said one or more actions including calling one of a plurality of cloud-hosted functions; • in response to the activation of the function graph, determine, from the plurality of cloud-hosted functions, a particular cloud-hosted function associated with a particular state in the plurality of states included in the function graph; • before the particular state is triggered within the function graph to execute the particular cloud-hosted function, cause instantiation of the particular cloud-hosted function; wherein the one or more processors are further configured to determine the particular cloud-hosted function by: • identifying a current state within the function graph; • determining, from the current state, a plurality of possible transition paths within the function graph; • predicting that a particular transition path of the plurality of possible transition paths will be used in association with the activation of the function graph; • determining the particular state as being included in the particular transition path; and • identifying the particular cloud-hosted function as being associated with the particular state for instantiation. • identifying a current state within the function graph; • determining, from the current state, a plurality of possible transition paths within the function graph; • predicting that a particular transition path of the plurality of possible transition paths will be used in association with the activation of the function graph; • determining the particular state as being included in the particular transition path; and • identifying the particular cloud-hosted function as being associated with the particular state for instantiation.