Method and device for acquiring asynchronous serial number generator capable of adjusting prefetching quantity

The invention discloses a method and a device for acquiring an asynchronous serial number generator capable of adjusting a prefetching quantity. The insufficient serial number can be predicted, the early warning signal is sent out, and the early warning signal is processed in an asynchronous mode. I...

Full description

Saved in:
Bibliographic Details
Main Author HUANG QIXIONG
Format Patent
LanguageChinese
English
Published 10.08.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a method and a device for acquiring an asynchronous serial number generator capable of adjusting a prefetching quantity. The insufficient serial number can be predicted, the early warning signal is sent out, and the early warning signal is processed in an asynchronous mode. In addition, the number of the serial numbers needing to be prefetched can be dynamically calculated according to the serial number consumption speed, and then the serial numbers of the number are prefetched from the database. The serial numbers can be acquired more gently under the high-concurrency condition, and serial number waste can be reduced as much as possible. 本发明公开了一种异步化可调节预取量的序号发生器获取方法及装置。该方法及装置可预测出序号不足并发出预警信号,并利用异步方式对预警信号进行处理。并且还能根据序号消耗速度动态计算需要预取的序号数量,然后从数据库中预取上述数量的序号。该方法及装置在高并发条件下能更加平缓获取序号,并能够尽量减少序号浪费。
Bibliography:Application Number: CN202110387660