Data issuing method and apparatus, server and storage medium
A server and data technology, applied in the Internet field, can solve problems such as interruption of market data and failure to deliver market data in time, and achieve the effect of ensuring timeliness and accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 It is a flow chart of a data distribution method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of data distribution. The method can be executed by a data distribution device, and the device can use hardware and / or software Realization can be configured in the server, and the method specifically includes the following steps:
[0027] S110. Buffer the collected data into at least two queues at the same time.
[0028] The collected data can be any type of data that needs to be delivered, such as market data. Market data can refer to data on the rise or fall of interest rates or exchange rates in the financial market. It is an important reference data for investors when conducting related transactions. Therefore, whether market data can be delivered to the client in a timely manner is very important to users of. The market data can be collected by the data collection system or collector from the Internet or the...
Embodiment 2
[0042] figure 2 A flow chart of a data delivery method provided by Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, optionally, the process of delivering data in the target queue is further optimized, as shown in figure 2 As shown, the method specifically includes:
[0043]S210. Buffer the collected data into at least two queues at the same time.
[0044] S220. Determine a target queue from at least two queues according to the time stamps of each queue, and use other queues as idle queues, wherein the time stamps of the queues are updated in real time according to the time stamps of the latest data collected in the queues.
[0045] S230. Deliver the data whose time stamp in the data to be dequeued in the target queue is faster than the time stamp of the latest data that has been delivered, and monitor whether there is a time stamp in the idle queue during the delivery process Stamp the idle queues that are earlier than the timestamp o...
Embodiment 3
[0059] image 3 A schematic structural diagram of a data sending device provided in Embodiment 3 of the present invention, as shown in Figure 4 As shown, the device includes:
[0060] Queue data caching module 310, for simultaneously caching the collected data into at least two queues;
[0061] The target queue determination module 320 is configured to determine a target queue from at least two queues according to the timestamps of each queue, and use other queues as idle queues, wherein the timestamp of the queue is real-time according to the timestamp of the latest data collected in the queue renew;
[0062] Queue data delivery module 330, configured to deliver the data in the target queue, and monitor whether there is an idle queue whose time stamp is faster than the time stamp of the target queue by a preset duration in the idle queue during the delivery process ; If there is an idle queue whose time stamp is earlier than the time stamp of the target queue for a preset...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


