Patent attributes
A communication method and a communication apparatus that can be used for application instance switching in a multi-access edge computing (MEC) scenario. The method includes: an MEC network element obtains information about a source application instance of an application accessed by a terminal device and information about a target application instance of the application. The MEC network element sends a first message to a first MEC platform, where the first message is used to request to migrate a user context of the application from the source application instance to the target application instance, the source application instance is deployed on the first MEC platform, and the target application instance is deployed on a second MEC platform. The MEC network element receives a second message from the first MEC platform, where the second message indicates a migration state of the user context of the application.