Method and device for real-time adjustment, server and medium

The embodiment of the invention discloses a method and device for real-time adjustment, a server and a medium. According to one specific embodiment, the method comprises the steps that in response to a received adjustment request, sending a message queue delay message corresponding to the adjustment...

Full description

Saved in:
Bibliographic Details
Main Author REN CHAOCHAO
Format Patent
LanguageChinese
English
Published 28.12.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The embodiment of the invention discloses a method and device for real-time adjustment, a server and a medium. According to one specific embodiment, the method comprises the steps that in response to a received adjustment request, sending a message queue delay message corresponding to the adjustment request, wherein the adjustment request comprises an adjustment amount; in response to determining that the delay message of the message queue is sent completely, updating quota data corresponding to the adjustment request from a preset cache; and updating corresponding data in a database corresponding to the preset cache according to the updated quota data. According to the embodiment, the performance and the response timeliness of the system are improved on the premise of ensuring the data consistency. 本公开的实施例公开了用于实时理算的方法、装置、服务器和介质。该方法的一具体实施方式包括:响应于接收到理算请求,发送与该理算请求对应的消息队列延时消息,其中,该理算请求中包括理算金额;响应于确定该消息队列延时消息发送完毕,从预设缓存中更新该理算请求对应的额度数据;根据更新后的额度数据,更新与该预设缓存对应的数据库中的相应数据。该实施方式在保证数据一致性的前提下提升了系统的性能及响应时效。
Bibliography:Application Number: CN202111127135