A network node (100, 200, 500, 600, 750, 730, 740) comprising a memory (240, 540, 640) and a controller (210, 510, 610), wherein said controller (210, 510, 610) is configured to: detect that a handover for a mobile communications terminal (100, 200, 350, 750) from a first base station (540, 340, 740) to a second base station (540, 345, 745) is to be effected and in response thereto determine if an application module (250, 550, 650) associated with the mobile communications terminal (100, 200, 350, 750) is to be migrated from its currently executing network node by querying and receiving a query response, from a database or a second network node, the query response indicating an association between the mobile communications terminal (100, 200, 350, 750) and the application module (250, 550, 650); and determining based on parameters if the application module should be migrated or not, wherein said application module (250, 550, 650) is an executional instance of an application, the application being divided into application modules which are distributed to various network nodes that execute the application modules according to an actor-dataflow model and said application module being executed on a first micro data center of the network node, and where the parameters include programming and/or constraints of the corresponding application, the resources of the network nodes currently executing an application module and/or the resources of a receiving network node, and/or the role of the mobile communications terminal, and if the application module is to be migrated, cause a migration of said application module (250, 550, 650) to be performed from said current executing network node to a receiving network node by performing the migration or by instructing another network node to perform the migration, wherein the migration comprises: preparing the receiving network node to set up application module logic; directing application module communication to receiving network node; instantiating the application module at the receiving network node; transferring the state of the application module to the receiving network node; and executing the application module at the receiving network node. detect that a handover for a mobile communications terminal (100, 200, 350, 750) from a first base station (540, 340, 740) to a second base station (540, 345, 745) is to be effected and in response thereto determine if an application module (250, 550, 650) associated with the mobile communications terminal (100, 200, 350, 750) is to be migrated from its currently executing network node by querying and receiving a query response, from a database or a second network node, the query response indicating an association between the mobile communications terminal (100, 200, 350, 750) and the application module (250, 550, 650); and determining based on parameters if the application module should be migrated or not, wherein said application module (250, 550, 650) is an executional instance of an application, the application being divided into application modules which are distributed to various network nodes that execute the application modules according to an actor-dataflow model and said application module being executed on a first micro data center of the network node, and where the parameters include programming and/or constraints of the corresponding application, the resources of the network nodes currently executing an application module and/or the resources of a receiving network node, and/or the role of the mobile communications terminal, and if the application module is to be migrated, cause a migration of said application module (250, 550, 650) to be performed from said current executing network node to a receiving network node by performing the migration or by instructing another network node to perform the migration, wherein the migration comprises: preparing the receiving network node to set up application module logic; directing application module communication to receiving network node; instantiating the application module at the receiving network node; transferring the state of the application module to the receiving network node; and executing the application module at the receiving network node. preparing the receiving network node to set up application module logic; directing application module communication to receiving network node; instantiating the application module at the receiving network node; transferring the state of the application module to the receiving network node; and executing the application module at the receiving network node.