WO2017024976A1 - 实时信息的展现方法和装置 - Google Patents

实时信息的展现方法和装置 Download PDF

Info

Publication number
WO2017024976A1
WO2017024976A1 PCT/CN2016/093185 CN2016093185W WO2017024976A1 WO 2017024976 A1 WO2017024976 A1 WO 2017024976A1 CN 2016093185 W CN2016093185 W CN 2016093185W WO 2017024976 A1 WO2017024976 A1 WO 2017024976A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
real
time data
time
server
Prior art date
Application number
PCT/CN2016/093185
Other languages
English (en)
French (fr)
Inventor
栾砚强
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017024976A1 publication Critical patent/WO2017024976A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a method and apparatus for displaying real-time information.
  • Financial service providers provide a variety of real-time market software to present real-time information on various financial products such as stocks, funds, and futures to users on the terminal.
  • Users usually open several interactive interfaces on the terminal to view real-time information of their objects of interest. For example, the user can open 3 interfaces at the same time to view the real-time chart of a stock, the K-line chart of the stock, and the moving average of the stock.
  • each interaction interface requests the latest real-time data from the server at regular intervals, and obtains the original real-time returned by the server. After the data is used, the value of one to multiple indicators to be presented on the interactive interface is calculated by using the original real-time data, and presented to the user on the interactive interface.
  • the implementation of the real-time data obtained from the server by each of the interactive interfaces causes a large amount of traffic consumption. When the network condition of the terminal is not good, the information may be delayed due to insufficient bandwidth, causing loss to the user.
  • the present application provides a method for displaying real-time information, which is applied to a terminal, and includes:
  • the aggregated data is used to present one or more interactive interfaces;
  • the interactive interface associated with the aggregated data is presented using aggregated data.
  • the application also provides a real-time information presentation device, which is applied to the terminal, and includes:
  • a real-time data receiving unit for receiving raw real-time data from the server
  • Aggregating data units for generating aggregated data from raw real-time data the aggregated data is used to represent one Or more than one interactive interface;
  • An interface display unit is configured to present an interaction interface associated with the aggregated data with aggregated data.
  • the embodiment of the present application generates aggregated data that can be reused for multiple interactive interfaces by using original real-time data from the server, and uses the aggregated data to display all the interactive interfaces associated with the same, thereby avoiding different transmissions.
  • the same raw real-time data used by the interactive interface reduces traffic consumption and speeds up the display of real-time information.
  • FIG. 1 is a flowchart of a method for displaying real-time information in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a logical module of a financial application of a terminal in an application example of the present application
  • 3 is a hardware structure diagram of a terminal
  • FIG. 4 is a logical structural diagram of a real-time information presentation apparatus in an embodiment of the present application.
  • the embodiment of the present application proposes a new real-time information presentation method, which can reuse an original real-time data obtained from a server for presentation of multiple interactive interfaces, thereby avoiding repeated transmission of original real-time data, thereby saving traffic and improving
  • the transmission efficiency and the speed of propagation of real-time information solve the problems in the prior art.
  • the embodiments of the present application can be used not only for the real-time information presentation of financial products, but also for scenes in other fields that need to perform information processing on the original real-time data and then display them at different angles through one to multiple interactive interfaces.
  • the terminal and the server are mutually accessible through a network
  • the terminal may be a mobile phone, a tablet computer, a PC (Personal Computer, a personal computer), a notebook, a smart TV with computing functions, and the like; It is a physical or logical server, and may be a physical or logical server that shares two or more different responsibilities and cooperate with each other to implement various functions of the server in the embodiment of the present application.
  • the embodiments of the present application do not limit the types of terminals, servers, and types and protocols of communication networks between terminals and servers.
  • the flow of the method for presenting real-time information applied to the terminal is as shown in FIG. 1.
  • Step 110 receiving raw real-time data from the server.
  • the terminal may request all original real-time data required by each interaction interface to the server at a certain time interval, and the receiving server returns the requested data.
  • Such a method of pulling data by the terminal may also perform a request and response process of the data in the case where the original real-time data required is not updated, thereby causing unnecessary traffic.
  • the original real-time data updated by the server may be actively pushed to the terminal when the original real-time data required by each interaction interface on the terminal is updated.
  • the terminal After receiving the data packet pushed by the server, the terminal decodes the updated original real-time data from the data packet.
  • the server sends the original real-time data required by each interaction interface to the terminal, so that the original real-time data used by the multiple interaction interfaces only needs to be sent once, thereby reducing the traffic between the terminal and the server.
  • the server Since the server usually sends the original real-time data required by the multiple interaction interfaces to the terminal, when the number of bytes of one or some of the original real-time data that is updated is relatively large when the push mode is adopted, the amount of data pushed by the server may be caused. Larger, such that interaction interfaces that do not require these raw real-time data (ie, interaction interfaces that are not associated with these raw real-time data) cannot be presented to the user in time.
  • the updated original real-time data with a small number of bytes and one or some original real-time with a large number of bytes may be carried.
  • the data has updated notifications.
  • the server may request the updated at least one original real-time data, and receive the requested original real-time data returned by the server.
  • the original real-time data with a large number of bytes is set to start the pull process of the terminal by using an update notification manner; each original real-time data may be set according to the network bandwidth between the server and the terminal.
  • the number of bytes threshold when the original real-time data whose number of bytes exceeds the threshold is updated, the update notification of the original real-time data is carried in the pushed data packet; the total length threshold of each push data may also be set, if the data is pushed If the total length exceeds the threshold, one or more original real-time data of the maximum number of bytes are carried in the form of an update notification, so that the size of the push data is lower than the threshold; and other judgments may be adopted according to the needs of the specific application scenario.
  • the standard is used to determine which original real-time data is in the form of an update notification.
  • the embodiment of the present application is not limited.
  • Step 120 Generate aggregated data according to the original real-time data; the aggregated data is used to display one or more interactive interfaces.
  • the real-time information (hereinafter referred to as display data) displayed on the interactive interface may be the original real-time data itself, or may be data obtained by performing operations or other processing on one or more original real-time data.
  • the original data itself can be used as the aggregated data; if the two or more display data are obtained, the same original real-time data is partially processed in the same process.
  • the result of the same process ie, the intermediate result in the process of obtaining the display data
  • the display data can then be used as aggregated data.
  • the aggregated data may include raw real-time data, intermediate processing results in the process of obtaining display data using the raw real-time data, and/or display data.
  • the method for generating the aggregated data may include directly aggregating the original real-time data, a part of the processing process when the display data is obtained, and/or a complete processing process of obtaining the display data, and may be implemented by referring to the prior art, and details are not described herein.
  • the repeated data processing process when the plurality of interactive interfaces are displayed on the terminal can be reduced, and the computing load of the terminal is reduced.
  • Step 130 using the aggregated data to present an interactive interface associated with the aggregated data.
  • the terminal updates all of the interactive interfaces associated with the changed aggregated data, and presents the updated real-time information to the user in time.
  • the terminal when the terminal needs the latest real-time information, the terminal requests the original real-time data from the server, and uses the received original real-time data to perform response processing in the memory to obtain display data corresponding to the interaction interface, and displays the display data on the interaction interface. user.
  • the terminal does not save the received raw real-time data (that is, does not store the received raw real-time data in the non-volatile storage space). Since the data in the memory is not persistent, when the network is in poor condition, the server may not be able to Get all the raw real-time data needed to display an interactive interface without displaying the interactive interface.
  • the raw real-time data received from the server may be stored locally in the terminal (ie, stored in a local non-volatile storage space). Medium), and use the saved original real-time data to generate aggregated data, so that even when the network is in poor condition, even if the latest updated original real-time data cannot be obtained, the user can display the interactive interface based on the saved original real-time data, thereby improving the user.
  • the server including the sum extracted from the server or the original real-time data pushed by the server
  • the raw real-time data received from the server may be stored locally in the terminal (ie, stored in a local non-volatile storage space).
  • Medium use the saved original real-time data to generate aggregated data, so that even when the network is in poor condition, even if the latest updated original real-time data cannot be obtained, the user can display the interactive interface based on the saved original real-time data, thereby improving the user.
  • Such an implementation is equivalent to synchronizing the locally saved original real-time data with the server side, and can store the original real-time data locally in the terminal by using the same content and format as the server side, thereby simplifying the process of data synchronization and improving the efficiency of synchronization.
  • aggregated data that can be used for multiple interactive interfaces is generated by using one piece of raw real-time data obtained from a server, and the same original real-time used by different interactive interfaces is avoided by multiplexing the aggregated data.
  • Data reducing traffic consumption, increasing transmission speed and speeding up the display of real-time information.
  • the financial application (application) on the terminal can present real-time quotes, real-time messages and real-time information of the financial product to the user, wherein the real-time market includes the rise and fall of the financial product and the transaction situation;
  • the real-time message includes a message sent to a user who uses the terminal, such as a response of the server to the user operation, and a message sent to the user by other users;
  • the real-time information includes related to the financial market, the company participating in or affecting the financial market, and the like.
  • Instant news included in an application.
  • the financial product App includes various logic modules as shown in FIG. 2.
  • the synchronization controller reports the real-time information subscribed by the user or the original real-time data (including the market data, message data and information data of the financial product) required by all the user-opened interaction interfaces to the server.
  • the server sends the original real-time data to the terminal, and when the original real-time data is updated, the updated original real-time data itself or the original real-time data updated notification is encapsulated in the push data packet and sent to the terminal.
  • the synchronization controller of the terminal After receiving the push data packet from the server, the synchronization controller of the terminal decodes the original real-time data from the data packet, calls the storage controller, and stores it as the market data, the message data or the information data in the local non-volatile storage. In space. If the original real-time data is decoded from the data packet, the update request is sent to the server according to the real-time information display requirement of the current financial product App, and the server receives the pull request of all the original real-time data in the notification; After the request is fetched, the original real-time data requested is returned to the terminal in response; after receiving the response, the synchronization controller of the terminal saves the original real-time data therein locally through the storage controller.
  • the synchronization controller uses the same content and format as the server to store market data, message data and information data, which is equivalent to mirroring part of the market data, message data and information data on the server established on the terminal.
  • the synchronous controller is equivalent to real-time synchronization of these mirrored data.
  • the aggregation controller uses the raw real-time data to generate aggregated data.
  • the aggregated data includes original real-time data, display data displayed on the interactive interface, and/or intermediate results in the process of acquiring the display data using the original real-time data.
  • the aggregation controller updates the aggregated data affected by the changed original real-time data.
  • the interface controller reads the aggregated data, uses the aggregated data to obtain the display data, and displays it on the interactive interface opened by the user.
  • the change notification controller monitors the update of the aggregated data and sends an update signal to the interface controller when it is found that the aggregated data is updated. After receiving the update signal, the interface controller uses the aggregated data to refresh all the interaction interfaces associated with the updated aggregated data.
  • the two-way synchronization method combining push and pull can achieve high real-time performance of data mirroring; multiplexing the mirror data by aggregating data reduces the communication traffic between the terminal and the server; when the network between the terminal and the server When the conditions are poor and it is difficult to obtain the latest raw real-time data, the saved original real-time data can still be used to display the information to the user.
  • the embodiment of the present application further provides a real-time information display device applied to a terminal.
  • the device can be implemented by software, or can be implemented by hardware or a combination of hardware and software.
  • a CPU Central Process Unit
  • the terminal in which the real-time information presentation device is located generally includes for wireless signal transceiving, and/or for implementing network communication.
  • Functional hardware such as boards.
  • FIG. 4 is a schematic diagram of a real-time information display apparatus, which is applied to a terminal, and includes a real-time data receiving unit, an aggregated data unit, and an interface display unit, where the real-time data receiving unit is configured to receive the original from the server.
  • Real-time data the aggregated data unit is configured to generate aggregated data according to the original real-time data; the aggregated data is used to display one or more interactive interfaces; and the interface display unit is configured to use the aggregated data to present an interactive interface associated with the aggregated data .
  • the interface display unit is specifically configured to: when the original real-time data causes the at least one aggregated data to change, update all interaction interfaces associated with the changed aggregated data.
  • the aggregated data may include raw real-time data, display data presented at the interactive interface, and/or intermediate results in the process of obtaining display data using the raw real-time data.
  • the real-time data receiving unit is specifically configured to: receive, by the server, a data packet that is pushed to the terminal; the pushed data packet includes an updated part of the original real-time data, and one or some of the original real-time data has The updated notification; the apparatus further includes a pull requesting unit, configured to request, from the server, the updated at least one original real-time data according to the notification in the push data packet; the original real-time data from the server includes: the server pushes Raw real-time data, and the requested raw real-time data returned by the server.
  • the device further includes a real-time data storage unit for saving the original real-time data received from the server locally.
  • the saved original real-time data has the same content and format as the server end.
  • the real-time information includes real-time information of the financial product;
  • the original real-time data includes: market data, message data, and information data.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种实时信息的展现方法和装置,应用在终端上。所述方法包括:接收来自服务器的原始实时数据(110);根据原始实时数据生成聚合数据,所述聚合数据用来展现一个或一个以上的交互界面(120);采用聚合数据呈现与所述聚合数据相关联的交互界面(130)。所述方法避免了重复传输不同交互界面使用的相同原始实时数据,减少了流量消耗,提高了展现实时信息的速度。

Description

实时信息的展现方法和装置
本申请要求2015年08月13日递交的申请号为201510497719.5、发明名称为“实时信息的展现方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种实时信息的展现方法和装置。
背景技术
对于各种类型金融市场的参与者而言,及时获取到准确的信息至关重要。金融服务商提供了各种实时行情软件,来将股票、基金、期货等各种金融产品的实时信息在终端上呈现给用户。用户通常在终端上同时打开若干个交互界面,来查看其关注对象的实时信息。例如,用户可以同时打开3个界面,查看某只股票的即时走势图、该只股票的K线图和该只股票的均线图。
现有技术中,终端上每个交互界面的实时数据获取和数据处理是独立进行的,具体而言,每个交互界面每隔一定时间向服务器请求最新的实时数据,在得到服务器返回的原始实时数据后,利用原始实时数据计算得到该交互界面上要展现的一个到多个指标的值,并在该交互界面上呈现给用户。这种每个交互界面分别从服务器获取实时数据的实现方式造成了很大的流量消耗,当终端的网络状况不佳时可能因带宽不足而造成信息的延迟,给用户带来损失。
发明内容
有鉴于此,本申请提供一种实时信息的展现方法,应用在终端上,包括:
接收来自服务器的原始实时数据;
根据原始实时数据生成聚合数据;所述聚合数据用来展现一个或一个以上的交互界面;
采用聚合数据呈现与所述聚合数据相关联的交互界面。
本申请还提供了一种实时信息的展现装置,应用在终端上,包括:
实时数据接收单元,用于接收来自服务器的原始实时数据;
聚合数据单元,用于根据原始实时数据生成聚合数据;所述聚合数据用来展现一个 或一个以上的交互界面;
界面显示单元,用于采用聚合数据呈现与所述聚合数据相关联的交互界面。
由以上技术方案可见,本申请的实施例中通过来自服务器的原始实时数据生成能够复用于多个交互界面的聚合数据,并利用聚合数据展现与之关联的所有交互界面,避免了重复传输不同交互界面使用的相同原始实时数据,减少了流量消耗,提高了展现实时信息的速度。
附图说明
图1是本申请实施例中一种实时信息的展现方法的流程图;
图2是本申请应用示例中终端的金融App的逻辑模块组成示意图;
图3是终端的一种硬件结构图;
图4是本申请实施例中一种实时信息的展现装置的逻辑结构图。
具体实施方式
当用户通过实时行情软件或实时行情网站查看其关注的金融产品时,通常用多个交互界面来展现其数个关注对象的多个不同指标,计算这些指标常常需要用到相同的原始实时数据。这样,现有技术中多个交互界面分别从服务器获取的原始实时数据中会有一些数据重复传输了多次,造成了流量的浪费。
本申请的实施例提出一种新的实时信息的展现方法,能够将从服务器获得的一份原始实时数据复用于多个交互界面的展现,避免原始实时数据的重复传输,以节约流量,提高传输效率和实时信息的传播速度,从而解决现有技术中存在的问题。本申请的实施例不仅可以用于金融产品的实时信息展现,也可以用于其他领域中需要对原始实时数据进行信息处理后通过一个到多个交互界面来进行不同角度展现的场景。
本申请的实施例中,终端与服务器之间通过网络相互可访问,其中,终端可以是手机、平板电脑、PC(Personal Computer,个人电脑)、笔记本、具有运算功能的智能电视等设备;服务器可以是一个物理或逻辑服务器,也可以是由两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现本申请实施例中服务器的各项功能。本申请实施例对终端、服务器的种类,以及终端与服务器之间通信网络的类型、协议等均不做限定。
应用在终端上的实时信息的展现方法的流程如图1所示。
步骤110,接收来自服务器的原始实时数据。
终端可以以一定的时间间隔向服务器请求各个交互界面所需要的所有原始实时数据,并接收服务器返回被请求的数据。这种由终端拉取数据的方式可能在所需要的原始实时数据没有更新的情况下,也会进行数据的请求和响应过程,从而造成不必要的流量。
为了避免不必要的数据请求和响应过程,也可以由服务器在终端上各个交互界面所需要的原始实时数据有更新时,主动将更新的原始实时数据推送给终端。终端在收到服务器推送的数据包后,从数据包中解码出更新的原始实时数据。
本申请的实施例中,服务器向终端发送各个交互界面需要的原始实时数据,这样被多个交互界面使用的原始实时数据只需要发送一次,从而降低了终端与服务器之间的流量。
由于服务器通常会向终端发送多个交互界面需要的原始实时数据,在采用推送方式时,当发生更新的某个或某些原始实时数据的字节数比较大时,可能使得服务器推送的数据量较大,使得与不需要这些原始实时数据的交互界面(即与这些原始实时数据没有关联的交互界面)不能及时展现给用户。
为了避免这种情形发生,在一种实现方式中,在推送的数据包中,可以携带字节数较小的有更新的原始实时数据,以及字节数较大的某个或某些原始实时数据有更新的通知。在终端根据数据包中的通知得知哪些原始实时数据有更新后,可以向服务器请求有更新的至少一个原始实时数据,并接收服务器返回的所请求的原始实时数据。这种双向同步的实现方式能够进一步提高实时信息展现的速度。
在上述实现方式中,可以将通常字节数较大的原始实时数据设置采用更新通知的方式来启动终端的拉取过程;可以根据服务器与终端之间的网络带宽来设置每个原始实时数据的字节数阈值,在字节数超过该阈值的原始实时数据有更新时在推送的数据包中携带该原始实时数据的更新通知;也可以设置每次推送数据的总长度阈值,如果推送数据的总长度超过该阈值,则将其中最大字节数的一个到多个原始实时数据采用更新通知的形式携带,以使推送数据的大小低于该阈值;还可以根据具体应用场景的需要采用其他判断标准来确定哪些原始实时数据采用更新通知的形式,本申请的实施例不做限定。
步骤120,根据原始实时数据生成聚合数据;聚合数据用来展现一个或一个以上的交互界面。
本申请实施例中,在交互界面上展现的实时信息(以下称为显示数据)可以是原始实时数据本身,也可以是对一个到多个原始实时数据进行运算或其他处理后得到的数据。 根据具体的应用场景以及得到显示数据的处理过程,可以将原始是数据本身作为聚合数据;如果在得到两个或两个以上显示数据的过程中,会对同样的原始实时数据进行部分相同的处理,则可以采用该相同处理过程的结果(即在得到显示数据的处理过程中的中间结果)来作为聚合数据;如果某个显示数据可以作为中间结果,来用于得到其他显示数据的处理过程,则可以将该显示数据作为聚合数据。
换言之,聚合数据可以包括原始实时数据、在利用原始实时数据得到显示数据过程中的中间处理结果、和/或显示数据。对应的,生成聚合数据的方式可以包括直接将原始实时数据聚合数据、在得到显示数据时的部分处理过程、和/或得到显示数据的完整处理过程,可以参照现有技术实现,不再赘述。
当采用在利用原始实时数据得到显示数据过程中的中间处理结果、或显示数据作为聚合数据时,还可以减少终端上在展现多个交互界面时的重复数据处理过程,减轻了终端的运算负荷。
步骤130,采用聚合数据呈现与所述聚合数据相关联的交互界面。
本步骤可参照现有技术实现,不再赘述。
当从服务器接收的原始实时数据的更新导致至少一个聚合数据发生变化时,终端更新与发生变化的聚合数据相关联的所有交互界面,以及时将更新后的实时信息展现给用户。
现有技术中,终端在需要最新实时信息的时候,向服务器请求原始实时数据,利用接收的原始实时数据在内存中进行响应处理后得到对应于交互界面的显示数据,并在交互界面上展现给用户。终端不保存接收的原始实时数据(即不将接收的原始实时数据存储在非易失性存储空间里),由于内存中的数据不具有持久性,在网络状况较差时,可能因不能从服务器获取到展示某个交互界面所需的所有原始实时数据而无法显示该交互界面。在一种实现方式中,可以将从服务器接收的原始实时数据(包括从服务器拉取的和、或由服务器推送的原始实时数据)保存在终端本地(即存储在本地的非易失性存储空间中),并利用保存的原始实时数据生成聚合数据,这样即使在网络状况较差时,即使无法获得最新更新的原始实时数据,仍然可以基于保存的原始实时数据向用户展示交互界面,提高了用户体验。
这样的实现方式相当于将本地保存的原始实时数据与服务器端进行同步,可以采用与服务器端相同的内容和格式来在终端本地保存原始实时数据,以简化数据同步的过程并提高同步的效率。
可见,本申请的实施例中,通过从服务器获得的一份原始实时数据生成可以用于多个交互界面的聚合数据,通过对聚合数据的复用避免了重复传输不同交互界面使用的相同原始实时数据,减少了流量消耗,提高了传输速度从而加快了展现实时信息的速度。
在本申请的一个应用示例中,终端上的金融App(应用程序)可以将金融产品的实时行情、实时消息和实时资讯展现给用户,其中,实时行情包括金融产品的涨跌情况和交易情况;实时消息包括发送给使用该终端的用户的消息,如服务器对该用户操作的响应,再如其他用户发送给该用户的消息;实时资讯包括与金融市场、参与或影响金融市场的公司等相关的即时新闻。
本应用示例中,金融产品App包括如图2所示的各个逻辑模块。同步控制器将用户订阅的实时信息或用户打开的所有交互界面所需要的原始实时数据(包括该金融产品的行情数据、消息数据和资讯数据)是哪些上报给服务器。服务器将这些原始实时数据发送给终端,并在这些原始实时数据有更新时,将更新后的原始实时数据本身或原始实时数据有更新的通知封装在推送数据包中,发送给终端。
终端的同步控制器收到来自服务器的推送数据包后,从数据包中解码出原始实时数据,调用存储控制器,将其作为行情数据、消息数据或资讯数据存储在本地的非易失性存储空间中。如果从数据包中解码出原始实时数据有更新的通知,则根据当前金融产品App的实时信息展示需要,向服务器发送对通知中一个到全部原始实时数据的拉取请求;服务器收到终端的拉取请求后,将所请求的原始实时数据在响应中返回给终端;终端的同步控制器收到响应后,将其中的原始实时数据通过存储控制器保存在本地。
同步控制器采用与服务器端相同的内容和格式来保存行情数据、消息数据和资讯数据,相当于在终端上建立的服务器上部分行情数据、消息数据和资讯数据的镜像。而同步控制器则相当于用来实现这些镜像数据的实时同步。
聚合控制器利用原始实时数据生成聚合数据。根据该金融产品的各种技术指标的计算公式,聚合数据包括原始实时数据、在交互界面展示的显示数据、和/或在利用原始实时数据获取显示数据的处理过程中的中间结果。当本地保存的行情数据、消息数据或资讯数据有变化时,聚合控制器更新受变化的原始实时数据影响的聚合数据。
界面控制器读取聚合数据,利用聚合数据得到显示数据,并将其展示在用户打开的交互界面上。变更通知控制器监控着聚合数据的更新,当发现聚合数据有更新时,向界面控制器发出更新信号。界面控制器收到更新信号后,采用聚合数据刷新与该有更新的聚合数据关联的所有交互界面。
通过上述过程,即可将实时信息及时呈现给用户。本应用示例中,推送与拉取相结合的双向同步方式能够达到数据镜像的高实时性;通过聚合数据复用镜像数据减少了终端与服务器之间的通信流量;当终端与服务器之间的网络条件较差难以获得最新的原始实时数据时,仍然可以利用保存的原始实时数据向用户进行信息展示。
与上述流程实现对应,本申请的实施例还提供了一种应用在终端上的实时信息的展现装置。该装置可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为逻辑意义上的装置,是通过终端的CPU(Central Process Unit,中央处理器)将对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,除了图3所示的CPU、内存以及非易失性存储器之外,实时信息的展现装置所在的终端通常还包括用于进行无线信号收发、和/或用于实现网络通信功能的板卡等其他硬件。
图4所示为本实施例提供的一种实时信息的展现装置,应用在终端上,包括实时数据接收单元、聚合数据单元和界面显示单元,其中:实时数据接收单元用于接收来自服务器的原始实时数据;聚合数据单元用于根据原始实时数据生成聚合数据;所述聚合数据用来展现一个或一个以上的交互界面;界面显示单元用于采用聚合数据呈现与所述聚合数据相关联的交互界面。
可选的,所述界面显示单元具体用于:当原始实时数据导致至少一个聚合数据发生变化时,更新与发生变化的聚合数据相关联的所有交互界面。
所述聚合数据可以包括:原始实时数据、在交互界面展示的显示数据、和/或在利用原始实时数据获取显示数据的处理过程中的中间结果。
可选的,所述实时数据接收单元具体用于:接收服务器向所述终端推送的数据包;所述推送的数据包中包括更新的部分原始实时数据,和某个或某些原始实时数据有更新的通知;所述装置还包括拉起请求单元,用于根据推送数据包中的所述通知向服务器请求有更新的至少一个原始实时数据;所述来自服务器的原始实时数据包括:服务器推送的原始实时数据,和服务器返回的所请求的原始实时数据。
可选的,所述装置还包括实时数据存储单元,用于将从服务器接收的原始实时数据保存在本地。
可选的,所述保存的原始实时数据与服务器端具有相同的内容和格式。
可选的,所述实时信息包括金融产品的实时信息;所述原始实时数据包括:行情数据、消息数据和资讯数据。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神 和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。

Claims (14)

  1. 一种实时信息的展现方法,应用在终端上,其特征在于,包括:
    接收来自服务器的原始实时数据;
    根据原始实时数据生成聚合数据;所述聚合数据用来展现一个或一个以上的交互界面;
    采用聚合数据呈现与所述聚合数据相关联的交互界面。
  2. 根据权利要求1所述的方法,其特征在于,所述采用聚合数据呈现与所述聚合数据相关联的交互界面,包括:当原始实时数据导致至少一个聚合数据发生变化时,更新与发生变化的聚合数据相关联的所有交互界面。
  3. 根据权利要求1所述的方法,其特征在于,所述聚合数据包括:原始实时数据、在交互界面展示的显示数据、和/或在利用原始实时数据获取显示数据的处理过程中的中间结果。
  4. 根据权利要求1所述的方法,其特征在于,所述接收来自服务器的原始实时数据,包括:接收服务器向所述终端推送的数据包;所述推送的数据包中包括更新的部分原始实时数据,和某个或某些原始实时数据有更新的通知;
    所述方法还包括:根据推送数据包中的所述通知向服务器请求有更新的至少一个原始实时数据;
    所述来自服务器的原始实时数据包括:服务器推送的原始实时数据,和服务器返回的所请求的原始实时数据。
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,所述方法还包括:将从服务器接收的原始实时数据保存在本地。
  6. 根据权利要求5所述的方法,其特征在于,所述保存的原始实时数据与服务器端具有相同的内容和格式。
  7. 根据权利要求1所述的方法,其特征在于,所述实时信息包括金融产品的实时信息;所述原始实时数据包括:行情数据、消息数据和资讯数据。
  8. 一种实时信息的展现装置,应用在终端上,其特征在于,包括:
    实时数据接收单元,用于接收来自服务器的原始实时数据;
    聚合数据单元,用于根据原始实时数据生成聚合数据;所述聚合数据用来展现一个或一个以上的交互界面;
    界面显示单元,用于采用聚合数据呈现与所述聚合数据相关联的交互界面。
  9. 根据权利要求8所述的装置,其特征在于,所述界面显示单元具体用于:当原始实时数据导致至少一个聚合数据发生变化时,更新与发生变化的聚合数据相关联的所有交互界面。
  10. 根据权利要求8所述的装置,其特征在于,所述聚合数据包括:原始实时数据、在交互界面展示的显示数据、和/或在利用原始实时数据获取显示数据的处理过程中的中间结果。
  11. 根据权利要求8所述的装置,其特征在于,所述实时数据接收单元具体用于:接收服务器向所述终端推送的数据包;所述推送的数据包中包括更新的部分原始实时数据,和某个或某些原始实时数据有更新的通知;
    所述装置还包括:拉起请求单元,用于根据推送数据包中的所述通知向服务器请求有更新的至少一个原始实时数据;
    所述来自服务器的原始实时数据包括:服务器推送的原始实时数据,和服务器返回的所请求的原始实时数据。
  12. 根据权利要求8至11任意一项所述的装置,其特征在于,所述装置还包括:实时数据存储单元,用于将从服务器接收的原始实时数据保存在本地。
  13. 根据权利要求12所述的装置,其特征在于,所述保存的原始实时数据与服务器端具有相同的内容和格式。
  14. 根据权利要求8所述的装置,其特征在于,所述实时信息包括金融产品的实时信息;所述原始实时数据包括:行情数据、消息数据和资讯数据。
PCT/CN2016/093185 2015-08-13 2016-08-04 实时信息的展现方法和装置 WO2017024976A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510497719.5 2015-08-13
CN201510497719.5A CN106445978A (zh) 2015-08-13 2015-08-13 实时信息的展现方法和装置

Publications (1)

Publication Number Publication Date
WO2017024976A1 true WO2017024976A1 (zh) 2017-02-16

Family

ID=57983461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093185 WO2017024976A1 (zh) 2015-08-13 2016-08-04 实时信息的展现方法和装置

Country Status (2)

Country Link
CN (1) CN106445978A (zh)
WO (1) WO2017024976A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116630048A (zh) * 2023-06-08 2023-08-22 深圳华锐分布式技术股份有限公司 基于期货行情k线的交易方法、装置、设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659098B (zh) * 2019-09-23 2021-01-29 北京城市网邻信息技术有限公司 数据更新方法、装置、终端设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481159A (zh) * 2002-09-04 2004-03-10 北京中视联数字系统有限公司 实时传送与接收股票数据的方法
CN1776738A (zh) * 2005-12-06 2006-05-24 倚天资讯股份有限公司 股市信息自动切换规则产生方法及应用该方法的系统
US20090089204A1 (en) * 2006-02-06 2009-04-02 Sk Telecom Co., Ltd. Stock account/order/market price inquiry sevice method using a mobile terminal
CN101778125A (zh) * 2009-12-23 2010-07-14 宇龙计算机通信科技(深圳)有限公司 一种移动终端及其获取证券信息的方法、装置和系统
CN102111577A (zh) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 一种股票资讯信息实时播出字幕系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1910992A4 (en) * 2005-06-20 2008-12-24 Cfph Llc OPTIMIZED SYSTEM AND METHOD FOR MANAGING INFORMATION CONCERNING FINANCIAL MARKETS
CN102609877A (zh) * 2011-01-25 2012-07-25 腾讯科技(深圳)有限公司 一种证券行情与证券资讯聚合显示的方法及系统
CN104239062B (zh) * 2014-09-23 2017-08-04 深圳市富途网络科技有限公司 基于客户端的多种类型标签页显示方法及其系统
CN104407965B (zh) * 2014-12-17 2018-05-04 北京元心科技有限公司 一种图形界面窗口的显示方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481159A (zh) * 2002-09-04 2004-03-10 北京中视联数字系统有限公司 实时传送与接收股票数据的方法
CN1776738A (zh) * 2005-12-06 2006-05-24 倚天资讯股份有限公司 股市信息自动切换规则产生方法及应用该方法的系统
US20090089204A1 (en) * 2006-02-06 2009-04-02 Sk Telecom Co., Ltd. Stock account/order/market price inquiry sevice method using a mobile terminal
CN101778125A (zh) * 2009-12-23 2010-07-14 宇龙计算机通信科技(深圳)有限公司 一种移动终端及其获取证券信息的方法、装置和系统
CN102111577A (zh) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 一种股票资讯信息实时播出字幕系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116630048A (zh) * 2023-06-08 2023-08-22 深圳华锐分布式技术股份有限公司 基于期货行情k线的交易方法、装置、设备及介质
CN116630048B (zh) * 2023-06-08 2023-12-22 深圳华锐分布式技术股份有限公司 基于期货行情k线的交易方法、装置、设备及介质

Also Published As

Publication number Publication date
CN106445978A (zh) 2017-02-22

Similar Documents

Publication Publication Date Title
CN109684358B (zh) 数据查询的方法和装置
WO2018210062A1 (zh) 用于服务器系统的确定物品库存的方法和装置
US8825749B2 (en) Method of tracking offline user interaction in a rendered document on a mobile device
CN107547484B (zh) 消息获取、推送的方法、设备及系统
CN104199970B (zh) 网页数据更新处理方法及装置
CN112311656B (zh) 消息聚合、展示方法、装置、电子设备和计算机可读介质
WO2018024116A1 (zh) 基于卡片的信息展示方法、信息展示业务的处理方法及装置
CN103312751A (zh) 一种基于浏览器的即时通信方法
CN112256223A (zh) 显示流畅度的调节方法、装置和电子设备
US20170017677A1 (en) Application event bridge
US11070499B1 (en) Analysis of content sharing in a messaging platform
US20160255174A1 (en) Data file and rule driven synchronous or asynchronous document generation
US10157588B2 (en) Systems and methods for image optimization
WO2017024976A1 (zh) 实时信息的展现方法和装置
US20130031160A1 (en) Web 3.0 Content Aggregation, Delivery and Navigation System
CN112838980B (zh) 一种消息处理方法、系统、装置、电子设备及存储介质
CN113342759A (zh) 内容共享方法、装置、设备以及存储介质
US20150256502A1 (en) Method and system for processing social network information
TW201445987A (zh) 傳輸資訊的方法及裝置
CN105872004A (zh) 一种针对终端的信息推送方法及装置
US20160127496A1 (en) Method and system of content caching and transmission
US20180218086A1 (en) Systems and methods for accessing content
KR20220027904A (ko) Mp4 파일을 온라인으로 재생하는 방법, 장치, 전자 기기, 저장 매체 및 컴퓨터 프로그램
TW201828017A (zh) 即時資訊的展現方法和裝置
US9602594B2 (en) Processing requests

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16834600

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16834600

Country of ref document: EP

Kind code of ref document: A1