Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2019-02-22
上海银赛计算机科技有限公司
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method, device, server and storage medium for sending data, which solves the problem that the market cannot be delivered in time due to the interruption of market data during the process of sending the market

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data issuing method and apparatus, server and storage medium
  • Data issuing method and apparatus, server and storage medium
  • Data issuing method and apparatus, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a data issuing method and apparatus, a server and a storage medium. The method comprises the following steps: buffering collected data into at least two queues at the same time; determining a target queue from the at least two queues according to the time stamps of the queues, and using the other queues as idle queues, wherein the time stamps of the queuesare updated in real time according to the time stamps of the latest data collected in the queues; issuing the data of the target queue, and monitoring whether an idle queue having a time stamp fasterthan the time stamp of the target queue by a preset time length exists in the idle queues in the issuing process; and if the idle queue having the time stamp faster than the time stamp of the targetqueue by the preset time length exists, switching the idle queue as a new target queue, using the other queues as new idle queues, and issuing the data in the new target queue. The data are buffered in multiple queues, and the data in the queue with the fastest queue are dynamically selected and issued, thereby ensuring the timeliness and accuracy of data issuing.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a data delivery method, device, server and storage medium. Background technique [0002] With the development of business, Internet finance companies have a wide variety of data on A-shares, US stocks, Hong Kong stocks, futures, gold, etc., and the peak value of second-level data can reach 10,000-level market data. [0003] In the prior art, the collected data is usually sent to the client using a queue in the server. However, since this process is highly concurrency and the amount of data to be processed is large, once the market data collection process encounters The problem of delay or data loss will lead to the interruption of the delivery of market data in the queue, resulting in the situation that the market data cannot be delivered in time, affecting the user experience. Contents of the invention [0004] The invention provides a method, device, server and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/875H04L47/56
CPCH04L47/562
Inventor 尹战良陈圣标
Owner 上海银赛计算机科技有限公司