The invention discloses a micro-service deployment and task unloading optimization method for tasks with complex dependency relationships. The method comprises the following steps: a
system architecture covers a plurality of base stations, edge servers and
user equipment; an application program generated by the
user equipment comprises a plurality of micro-service tasks with a complex dependency relationship, and the tasks are unloaded to an
edge server to be processed; in a task unloading process, optimizing a task unloading decision in each time slot, and managing a micro-
service layer cache by adopting a long-time scale updating strategy; through joint optimization of a micro-
service layer caching strategy and a task unloading decision, a
system performance problem is constructed into an optimization model; firstly, an unloading path of a task is planned by applying a
belief propagation algorithm, and then a caching strategy is trained by means of a deep
reinforcement learning model; the problem of complicated task unloading and cache updating in different time scale scenes is solved by utilizing an alternative optimization
algorithm, and finally, a trained model is deployed in an
edge server, so that the long-term average time
delay of the
system is minimized, and meanwhile, the load balancing of the
server is realized. According to the method, the utilization efficiency of system resources can be remarkably improved, the time
delay is reduced, and various application requirements sensitive to the
delay are fully met.