1. A method for supporting a context associated with a client-server connection between a user and a first virtual machine of a virtual function, the method comprising: receiving, by a processor, a notification of a change in a behavior of the user that affects the context associated with the client-server connection between the user and the first virtual machine of the virtual function for a first set of services, wherein the context is supported by the first virtual machine of the virtual function, wherein the context describes the client-server connection, wherein the context comprises one or more of: authentication data, session management data, access control data, and data flow information; and reassigning, by the processor, the context to a second virtual machine of the virtual function for a second set of services, the second set of services being different from the first set of services, the second virtual machine being different from the first virtual machine, the reassigning based at least in part on the change in the behavior, wherein the change in the behavior triggers a need for at least one of the second set of services.