Days and nights are hot and cold, based on Python3+Tornado6+APScheduler/Celery to create concurrent asynchronous dynamic timing task polling service

Original link: https://v3u.cn/a_id_220

The typical implementation scenarios of timed tasks are common in various industries. For example, in the payment system, due to network or other factors during the payment process, there is a situation where the bill is dropped or the bill is stuck, and the bill becomes a “one-sided bill”. In this case For paying users, it is undoubtedly a disaster-level experience. It is obvious that they have paid and deducted the money, but the order status has not changed. Therefore, the payment task process of each order needs an alternative solution for regular polling. Once a problem occurs in the payment, the regular polling service can detect and correct the order status in time. For another example, in the previous article, it was defeated by the oligopoly, and the construction of uploading large files in fragments was based on Vue.js3.0+Ant-desgin+Tornado6 pure asynchronous IO efficient writing service. In the process of super large file fragmentation transmission tasks , once there is a problem with the uploading of parts or the merging of parts, it may cause the super large file to fail to…

This article is reprinted from: https://v3u.cn/a_id_220
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment