Home > front end >  WeChat - set often biggest problem
WeChat - set often biggest problem

Time:05-08

business requirements: for payment on order in 30 minutes, automatically cancel the order after over time,



problem: WeChat initiate payment interface "time_expire" expiry time, reach the set time, normal cancel orders, sweep code prompt "trade has been cancelled, but not to the local service notice, the local service cannot execute the order status changes,



the current solution: only by the timer, etc will timeout order cancellation, personally think that this way if there is a large amount of data or service restart will appear a series of problems, such as real-time control bad also, later period maintenance cost is higher,



for help: have a big dick can provide a better solution?

CodePudding user response:

The rabbitmq delay queue
  • Related