During stock software development, customers often mention full implementation and on-demand pricing, real-time stock selection, intraday warning, and other terms.
[Full push]
The so-called Full push refers to the synchronous transmission of all securities data, regardless of whether the disk is viewed or not, data is synchronized, and there is no sense of stagnation during reading, and some operations can be performed in real time, for example, stock selection or real-time warning.
[VOD]
On the current page, the stock market and the Shanghai stock index are the fastest updated. The Shanghai Stock Index is unconditionally updated (function design). The second is the stock market list or the stock market layout. The screen size is 30-50 shares, this layout shows that the stock is automatically updated, and other stocks are not updated. The new generation of apsaravideo for VOD is even more powerful (only the current stock can be updated in real time ).
[Advantages and disadvantages of the two]
Advantages of comprehensive market promotion: Real-time reception, no delay in stock switching, and the ability to stock Stock selection and real-time warning can be realized. for the new generation of investors, there are usually requirements for comprehensive market promotion.
Disadvantages of full market promotion: Data Transmission occupies a large amount of network resources, and if there is a network problem, it is easy to see incomplete data, there will be a large result, at the same time, real-time stock selection and early warning indicators occupy a large amount of resources. If the software is not well processed, it may be stuck or even stuck.
Advantages of on-demand video streaming: it consumes less network resources and is conducive to the stability of servers.
Disadvantages of the on-demand video market: it is impossible to select stocks in real time. When each stock is opened, it will delay downloading existing data.
[Thoughts and measures between the two]
Full market promotion is the trend of the future, especially in the T + 0 market in the future. So how can we develop software to meet future needs? I personally think that we should integrate the on-demand video and the overall push market. When you log on to the system or look at a stock, if the data on the key line is missing, the VOD market is used. If the data on the key line is complete, the time-sharing data is fully pushed. To put it simply, the time-sharing data is fully pushed, and the market data is on-demand. At the same time, the compression algorithm with a high degree of compression is adopted to reduce network bandwidth and avoid the problem of incomplete data.
[Technical points]
You can use a TCP persistent connection to transmit time chart data and adopt the full push mode. Using UDP and p2p to transmit non-current stock's K-line data can reduce the pressure on the server and enable full market promotion.