WO2017211192A1 - 信息处理方法和装置及动态信息的显示方法和装置 - Google Patents

信息处理方法和装置及动态信息的显示方法和装置 Download PDF

Info

Publication number
WO2017211192A1
WO2017211192A1 PCT/CN2017/085654 CN2017085654W WO2017211192A1 WO 2017211192 A1 WO2017211192 A1 WO 2017211192A1 CN 2017085654 W CN2017085654 W CN 2017085654W WO 2017211192 A1 WO2017211192 A1 WO 2017211192A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
classification
queue
cache
dynamic
Prior art date
Application number
PCT/CN2017/085654
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 阿里巴巴集团控股有限公司
Priority to JP2018563871A priority Critical patent/JP6877467B2/ja
Priority to KR1020197000289A priority patent/KR102175618B1/ko
Priority to EP21183844.6A priority patent/EP3910502A1/en
Priority to EP17809631.9A priority patent/EP3467680B1/en
Publication of WO2017211192A1 publication Critical patent/WO2017211192A1/zh
Priority to US16/210,347 priority patent/US10789171B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/04Addressing variable-length words or parts of words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0877Cache access modes
    • G06F12/0886Variable-length word access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to an information processing method and apparatus, and a method and apparatus for displaying dynamic information.
  • An internet finance solution is Internet crowdfunding. After the user enters the Internet crowdfunding page, it displays the dynamic information of the project corresponding to the crowdfunding project, for example, corresponding to the fundraising project, displaying browsing information, social information, and transaction information.
  • the dynamic information is generated, it is directly written into the cache by the information generating module.
  • the user interface directly writes the browsing information and the social information into the cache
  • the transaction service module directly writes the transaction information. Into the cache.
  • the present application aims to solve at least one of the technical problems in the related art to some extent.
  • an object of the present application is to propose an information processing method and apparatus.
  • the information processing method proposed by the embodiment of the first aspect of the present application includes: determining that a need is more A new information classification; the information in the determined classification is written into the cache; wherein the information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • the information processing apparatus includes: a determining module, configured to determine an information classification that needs to be updated; and a writing module, configured to write information in the determined classification into a cache;
  • the information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • the method for displaying dynamic information includes: obtaining dynamic information from a cache of a server; displaying the dynamic information; wherein the dynamic information is related to information classification.
  • the display device for dynamic information includes: an obtaining module, configured to obtain dynamic information from a cache of a server; and a display module, configured to display the dynamic information;
  • the dynamic information is related to the information classification.
  • an information processing apparatus includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: determine a classification of information that needs to be updated. The information in the determined classification is written into the cache; wherein the information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • a display device for dynamic information includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: cache from a server Obtaining dynamic information; displaying the dynamic information; wherein the dynamic information is related to information classification.
  • the information processing system of the seventh aspect of the present application includes: a collecting device, configured to receive dynamic information generated by a front-end interface; a message device, configured to receive dynamic information generated by a background server; Receiving the dynamic information sent by the collection module and the message module, and storing the storage space corresponding to the classification according to the classification to which the dynamic information belongs, and dynamically changing the determined classification when the cache needs to be updated.
  • the information is written to the cache; the cache device is configured to receive the dynamic information written by the service module.
  • More valuable information can be selected for writing to the cache. More valuable information can be displayed when the user interface reads information from the cache for display.
  • the number of writes can be reduced, thereby reducing the write pressure of the cache and improving the cache performance. Further, by storing the information sent by the information producer, information precipitation can be realized, and data support is provided for the related process.
  • FIG. 1 is a schematic flow chart of an information processing method according to an embodiment of the present application.
  • FIG. 2 is a schematic flow chart of an information processing method according to another embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an information processing method according to another embodiment of the present application.
  • FIG. 4 is a schematic flowchart of an information processing method according to another embodiment of the present application.
  • FIG 5 is a schematic structural view of the processing system corresponding to Figure 4.
  • FIG. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a method for displaying dynamic information according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a display apparatus for dynamic information according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a display apparatus for dynamic information according to another embodiment of the present application.
  • FIG. 1 is a schematic flowchart diagram of an information processing method according to an embodiment of the present application.
  • the method of this embodiment includes:
  • S11 Determine the classification of information that needs to be updated.
  • the information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • the method may further include:
  • S21 Receive information sent by the information producer.
  • a processing module the execution entity of the embodiment is referred to as a processing module, and a unified module may be disposed between the processing module and the information generating party, and the information generated by the information generating party is received by the unified module and sent to the processing module.
  • the step may specifically be receiving information sent by the information generating unit through the unified module.
  • the unified module is not limited to one, and different unified modules may be used according to different information categories. For example, information generated by a foreground (such as a page) is sent to a processing module through a unified module, and information generated by a background (such as a transaction server) is passed. Another unified module is sent to the processing module.
  • a foreground such as a page
  • a background such as a transaction server
  • each information producer After generating the information, each information producer sends the generated information to the same unified module, which can avoid direct dependence between the information producers with dependencies and facilitate expansion. For example, if there is a dependency relationship between the information producer A and the information producer B, if there is no unified module, the information producer A and the information producer B need to be directly connected, and the two directly have a certain limit. Sex, but connected to the unified module, can avoid this limitation.
  • the received information may be specifically a preset type of information to perform the processing of the embodiment on the preset type of information. or,
  • it may be determined whether it is a preset type of information, so as to perform subsequent S22 and subsequent steps in the information of the preset type.
  • the foregoing preset type of information may be specifically dynamic information, and the dynamic information is information that dynamically changes with time.
  • Dynamic information can be further divided into different categories, such as browsing information, social information or transaction information. Taking the dynamic information of a certain item as an example, browsing the information includes, for example, the user A browsing the item; the social information includes, for example, what comment the user A made for the item, or the user A liked the item; the transaction The information includes: how much user A invested in the project.
  • S23 Store the information in a storage space corresponding to the classification.
  • the processing module can create a queue locally. Initially, the queue can be set to null. When the processing module receives the information, it can store the information in the created queue. Specifically, different types of information may be stored in different queues according to the information category (S31).
  • information can be divided into: browsing information, social information, and transaction information, and then three queues can be created, which are called a browsing queue, a social queue, and a transaction queue.
  • the information is stored in a queue of the corresponding category.
  • the browsing information is received, the browsing information is stored in the browsing queue; when the social information is received, the social information is stored in the social queue; when the transaction information is received, the transaction information is stored in the transaction queue.
  • the maximum length of each queue can be set.
  • the maximum length of different queues can be the same or different.
  • it can be related to information stored in a queue. Specifically, it can be positively correlated with the value of the stored information. For example, the higher the value of information stored in a queue, the larger the maximum length of the queue.
  • the value of each type of information can be determined based on actual needs.
  • the maximum lengths of the browse queue, the social queue, and the transaction queue are 1, 5, and 10, respectively. If a message is to be stored in a queue, if the current queue length reaches the maximum length (the queue is full), the storage time can be eliminated. The oldest information, and the new information is stored in the queue.
  • the current queue length can be obtained by detecting the current situation of the queue.
  • a counter can be set in the processing module, and the counter is used to count the number of pieces of information stored in each queue, so that the current queue length can be obtained. For example, if a browsing information is currently stored in the browsing queue, it is determined that the current queue length of the browsing queue is 1.
  • the method may further include:
  • S24 Determine whether the current time reaches the timing of updating the cache. If yes, execute S11 and subsequent steps, otherwise repeat S24 and subsequent steps.
  • the cache may be set to be periodically updated. When the set update time is reached, the corresponding classification may be determined and the information in the determined classification is written into the cache.
  • the weight data may include: a heat value and/or a manual intervention value.
  • the heat value can be obtained by performing heat statistics on the information stored in the queue.
  • the heat value of the browsing queue is the heat value of the browsing information
  • the heat value of the social queue is the heat value of the social information.
  • the popularity value of the category information may be the total number of occurrences of the category information in the statistical time. Therefore, when a category information appears more frequently, the category information and the heat value of the corresponding queue are larger.
  • the manual intervention value is manually set, and the manual intervention value of each queue can be set according to requirements. For example, the greater the value of a certain category information, the larger the manual intervention value of setting the category information and the corresponding queue. For example, if the social information is more valuable than browsing the information, the manual intervention value of the social queue can be set to be greater than the manual intervention value of the browsing queue.
  • the current queue length can be counted by the set counter, the length of each queue.
  • the product of the weight data (such as the heat value and the manual intervention value) and the current queue length can be calculated, and the queue with the largest product is selected.
  • the queue with the largest product is one, the queue with the largest product is determined as the selected one.
  • a queue is further selected according to a preset algorithm. For example, if the preset algorithm is selected according to the manual intervention value, it is assumed that the queue with the largest product includes queue A and queue B. If the manual intervention value of queue A is greater than the manual intervention value of queue B, it is determined that the selected queue is queue A.
  • the information can be read from the queue into the cache.
  • the process of reading the information write cache from the queue may include:
  • the information in the determined classification is written into the cache, and more valuable information can be selected and written to the cache. More valuable information can be displayed when the user interface reads information from the cache for display. Further, by reading the information and writing it to the cache when the buffer needs to be updated, instead of writing the cache directly when the information is generated, the number of writes can be reduced, thereby reducing the write pressure of the cache and improving the cache performance. Further, by storing the information sent by the information producer, information precipitation can be achieved, and data support is provided for the related process.
  • the present application can also give the following embodiments.
  • FIG. 4 is a schematic flowchart diagram of an information processing method according to another embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a processing system corresponding to FIG. 4.
  • the modules involved in the foregoing processing system include: a front-end interface 51, a collection module 52, a dynamic information cache module 53, a market background service module 54, a heat model 55, a manual intervention module 56, a message module 57, and a transaction.
  • Service module 58 and database 59 are examples of the modules involved in the foregoing processing system.
  • the front-end interface is located on the client, and the remaining modules are located on the server. It should be noted that, in FIG. 5, the collection module is located on the server, but the collection module may also be located on the client.
  • Front-end interface The interface that users see after entering the system. All operations of the user pass through the front-end interface, which can also be called user interface.
  • Collection module detects the user's operation behavior (such as click behavior and search behavior) on the front-end interface, and sends it to the market background service and heat model.
  • user's operation behavior such as click behavior and search behavior
  • Dynamic information cache module Set a cache list for each financial item (referred to as project), and store the dynamic information that the item needs to display in each cache list.
  • Market background service processing the information sent by the collection module and the message module, combining the heat model and manual intervention to calculate the weight, and updating the dynamic information in the cache.
  • Heat model analyzes the user's click heat and search information, and gives the heat value of each category of information.
  • Manual intervention module The intervention value of each category of information is set by the background administrator.
  • Message module The transaction message responsible for distributing the transaction service module.
  • the heat model can store the information in the database after receiving the information sent by the collection module.
  • the heat model needs to obtain information from the database and calculate the heat value when calculating the heat value.
  • the process of interaction between the foregoing modules includes:
  • the front-end interface detects a user operation behavior generated by the user on the item, and sends the operation behavior to the collection module.
  • the front-end interface can detect the corresponding specific user operation behavior, such as browsing behavior (detection Go to the project), social behavior (including likes, comments, sharing, etc.), search behavior.
  • the collection module acquires dynamic information that does not depend on the background service, such as browsing information and social information, according to the user operation behavior sent by the front-end interface.
  • the dynamic information may be divided into information that depends on the background service and information that does not depend on the background service, and information that depends on the background service includes, for example, transaction information, and information that does not depend on the background service includes, for example, browsing information and social information.
  • the information that depends on the background service is the transaction information
  • the information that does not depend on the background service is the browsing information and the social information.
  • the collection module sends the browsing information and the social information to the market background service module.
  • the browsing information includes, for example, user A has browsed, user B has browsed, and the like.
  • the social information includes, for example, what the user A said, what the user B said, and/or, the user A likes it, the user B likes it, and the like.
  • S404 The collection module notifies the heat operation model of the user operation behavior.
  • the collecting module sends a notification message to the heat model that currently generates a browsing behavior.
  • the heat model collects the heat value of the information of each category according to the notification message.
  • a counter can be set in the heat model, and the initial value is 0.
  • the heat value of the corresponding information is incremented by one.
  • the heat model adds 1 to the heat value of the browsing information every time the user views the browsing behavior.
  • the heat model adds 1 to the heat value of the social information each time the user has a social behavior.
  • the heat model increases the heat value of the transaction information by one each time the user makes a transaction.
  • the heat model is the statistics performed by all users corresponding to each item when performing the above statistics.
  • the popularity value of the browsing information of item A is the heat value generated by all users who have visited item A.
  • the above browsing may specifically include viewing of all pages of the same item.
  • Socialization mainly includes the behavior of users who like, like, and share these social sections.
  • the transaction mainly includes the current transaction of the user and the transaction already traded.
  • this embodiment takes browsing, socializing, and transaction as an example, and may also include searching.
  • the search can include direct search and indirect search.
  • the system has a project named “Zero Carbon Technology”.
  • the user directly searches for “Zero Carbon Technology” in the search box to search for the project directly.
  • the user inputs “environmental protection” in the search box, and the collection module passes the matching rule.
  • the secondary search is matched to “Zero Carbon Technology”, which is recorded as an indirect search for the project.
  • the transaction service module sends the transaction information to the message module.
  • the message module sends the transaction information to the market background service module.
  • the market background service module stores the received information in a queue of the corresponding category.
  • the browsing information is stored in a browsing queue
  • the social information is stored in a social queue
  • the transaction information is stored in a transaction queue.
  • the information producer can send the information to the market background service module through the collection module or the message module.
  • the market background service module stores information in a queue to achieve information precipitation. In addition, you can store in different queues based on the category of information to select more valuable information.
  • S409-S413 can be executed every second when the time to update the cache for each timing is reached, for example, every second.
  • S409 The market background service module obtains the heat value from the heat model.
  • the market background service module obtains the manual intervention value from the manual intervention module.
  • S411 The market background service module acquires the current queue length of each queue from the counter.
  • the market background service module calculates a product of the heat value of each queue, the manual intervention value, and the current queue length, and selects a queue with the largest product.
  • the information can be read from the cache for display.
  • the front-end interface may adopt a timing update manner when the information is displayed, and may execute the S414-S415 cyclically when the updated update display time is reached or the user triggers the update instruction.
  • S414 The foreground interface reads information from the cache.
  • S415 The front panel displays the read information.
  • the write pressure of the cache can be reduced.
  • more valuable information can be written to the cache to display more valuable information, avoiding social information and The transaction information is drowned in the browsing information.
  • By storing dynamic information in a queue information can be precipitated and data support can be provided for other processes.
  • FIG. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application.
  • the apparatus 60 of the present embodiment includes a determination module 61 and a write module 62.
  • a determining module 61 configured to determine a classification of information that needs to be updated
  • a writing module 62 configured to write information in the determined classification into a cache
  • the information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • the apparatus 60 may further include:
  • the triggering module 63 is configured to determine whether the current time reaches the timing of updating the cache, so that when it is reached, the determining module is triggered to execute.
  • the apparatus 60 may further include:
  • the receiving module 64 is configured to receive information sent by the information generating party
  • a storage module 65 configured to determine a classification to which the information belongs, and store the information to a storage corresponding to the classification Storage space.
  • the apparatus 60 may further include:
  • the determining module 66 is configured to determine whether the information is a preset type of information, to trigger the storage module to execute when the information is a preset type of information.
  • the storage module 65 is specifically configured to:
  • the determining module 61 is specifically configured to:
  • a queue is determined in all queues based on the weight data and the current queue length.
  • the weight data includes: a heat value and/or a manual intervention value, wherein the heat value is a heat value of information stored in the queue, and the heat value of the information is a correspondence to all users.
  • the operational behavior of the information is obtained after heat statistics.
  • the maximum length of the different queues is related to the stored information.
  • the determining a queue in all queues according to the weight data and the current queue length includes:
  • the queue with the largest product is one, the queue with the largest product is used as the determined queue; or
  • a queue is determined according to a preset algorithm among the plurality of queues having the largest product.
  • the writing module 62 is specifically configured to:
  • a piece of information in the determined category that currently exists and is stored for the longest time is written to the cache.
  • the receiving module 64 is specifically configured to:
  • the preset type of information is dynamic information.
  • the classification and reading the information writing cache in the selected classification more valuable information can be selected and written to the cache. More valuable when the user interface reads information from the cache for display Information. Further, by reading the information and writing to the cache when the timing of updating the cache is reached, instead of writing the cache directly when the information is generated, the number of writes can be reduced, thereby reducing the write pressure of the cache and improving the cache performance. . Further, by storing the information sent by the information producer, information precipitation can be achieved, and data support is provided for the related process.
  • FIG. 8 is a schematic flowchart diagram of a method for displaying dynamic information according to an embodiment of the present application.
  • the process of this embodiment includes:
  • the dynamic information is related to information classification.
  • the dynamic information is related to the generation time, and therefore, the displayed dynamic information is the latest generated dynamic information.
  • the dynamic information is related to the information classification. Therefore, the displayed dynamic information belongs to the information in the required classification. For example, if the user prefers to see the transaction information, the displayed dynamic information is more transaction information. .
  • the dynamic information can be written to the cache by using related content in the foregoing embodiment.
  • the dynamic information and the process of processing the dynamic information by the server can be referred to the foregoing embodiment, and will not be described in detail herein.
  • the method may further include:
  • the static information includes, for example, information corresponding to the fixed content of the webpage, such as a specific name, a picture, and related introduction information of a certain financial item.
  • the method may further include: further comprising:
  • the generated dynamic information is sent to the server.
  • the client can also generate dynamic information such as browsing information and social information.
  • dynamic information such as browsing information and social information.
  • the client can send it to the server.
  • the server can classify and store the dynamic information.
  • FIG. 9 is a schematic structural diagram of a display apparatus for dynamic information according to an embodiment of the present application.
  • the device 90 of the embodiment includes a first acquiring module 91 and a display module 92.
  • the first obtaining module 91 is configured to obtain dynamic information from a cache of the server;
  • a display module 92 configured to display the dynamic information
  • the dynamic information is related to information classification.
  • the apparatus 90 further includes:
  • the second obtaining module 93 is configured to obtain static information from a database of the server.
  • the apparatus 90 further includes:
  • the sending module 94 is configured to send the generated dynamic information to the server.
  • the application also provides an information processing apparatus.
  • the apparatus includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: determine a classification of information that needs to be updated; write information in the determined classification to a cache; The information in the classification is stored in the storage space corresponding to the classification according to the classification to which the information belongs after receiving.
  • the processor is further configured to:
  • the processor is further configured to: receive information transmitted by the information producer; determine a classification to which the information belongs; store the information to a storage space corresponding to the classification.
  • the method after receiving the information sent by the information producer, the method further includes:
  • the storing the information to the storage space corresponding to the classification comprises:
  • the determining the information classification that needs to be updated includes:
  • a queue is determined in all queues based on the weight data and the current queue length.
  • the weight data includes: a heat value and/or a manual intervention value, wherein the heat value is a heat value of information stored in the queue, and the heat value of the information is a correspondence to all users. Operation of the information The behavior is obtained after the heat statistics.
  • the maximum length of the different queues is related to the stored information.
  • the determining a queue in all queues according to the weight data and the current queue length includes:
  • the queue with the largest product is one, the queue with the largest product is used as the determined queue; or
  • a queue is determined according to a preset algorithm among the plurality of queues having the largest product.
  • the writing the information in the determined classification to the cache comprises:
  • a piece of information in the determined category that currently exists and is stored for the longest time is written to the cache.
  • the information sent by the receiving information generating party includes:
  • the preset type of information is dynamic information.
  • the application also provides a display device for dynamic information.
  • the apparatus includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: acquire dynamic information from a cache of a server; display the dynamic information; wherein the dynamic information and Information classification related.
  • the processor is further configured to:
  • the generated dynamic information is sent to the server.
  • the processor is further configured to:
  • the application also provides an information processing system, including: a collecting device, a message device, a service device, and a cache device.
  • a collecting device configured to receive dynamic information generated by a front-end interface
  • a message device configured to receive dynamic information generated by a background server
  • a service device configured to receive dynamic information sent by the collection module and the message module, and store the storage information corresponding to the classification according to a classification to which the dynamic information belongs, and determine the cache when the cache needs to be updated. Dynamic information in the classification is written to the cache;
  • a buffering device configured to receive dynamic information written by the service module.
  • system further comprises:
  • the front-end interface device is configured to send the generated dynamic information to the collection module, and obtain dynamic information from the cache device for display when the dynamic information needs to be displayed.
  • the service device is specifically configured to:
  • the weight data of each queue and the current queue length are obtained, and a queue is determined in all queues according to the weight data and the current queue length;
  • the weight data includes: a heat value and a manual intervention value
  • the system further includes:
  • a manual intervention device for setting the manual intervention value.
  • the collection device, the message device, the service device, the cache device, the front-end interface device, the heat model device and the manual intervention device of the embodiment respectively correspond to the collection module, the message module, the market background service module in the above embodiment
  • the dynamic information cache module, the front-end interface, the heat model, and the manual intervention module, the background server of this embodiment corresponds to the transaction service module in the above embodiment. Therefore, for details, refer to related descriptions in the foregoing embodiments, and details are not described herein again.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Operations Research (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Resources & Organizations (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提出一种信息处理方法和装置及动态信息的显示方法和装置,该信息处理方法包括:确定需要更新的信息分类;将所确定的分类中的信息写入缓存;其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。该方法能够将更有价值的信息写入缓存。

Description

信息处理方法和装置及动态信息的显示方法和装置
本申请要求2016年06月06日递交的申请号为201610393580.4、发明名称为“信息处理方法和装置及动态信息的显示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,尤其涉及一种信息处理方法和装置及动态信息的显示方法和装置。
背景技术
随着互联网技术的发展,很多互联网金融方案应运而生。一种互联网金融方案是互联网众筹。用户进入互联网众筹的页面后,会对应众筹项目显示该项目的动态信息,例如,对应募集中的项目,显示浏览信息、社交信息和交易信息等。
相关技术中,动态信息在产生后,就会被信息产生模块直接写入到缓存中,例如,用户界面会将浏览信息和社交信息直接写入到缓存中,交易服务模块会将交易信息直接写入到缓存中。
由于产生的动态信息的数据量很大,特别是浏览信息,那么就会对缓存产生大量的写操作,而缓存合适的应用场景是写少读多,因此会对缓存造成很大的写压力,影响缓存性能。
进一步的,对于每个项目来说,只缓存最新的若干条信息,当用户界面从缓存中读取信息进行显示时,显示的就是相对较新的信息。由于用户更常用的行为是浏览,因此缓存中较新的信息通常就是浏览信息,相应的,通常显示的也是浏览信息,而社交信息和交易信息就会被淹没掉。但是,对于用户更有参考价值的信息却是社交信息和交易信息,而浏览信息的参考价值相对较小,因此,就会造成显示的信息的价值不高,而价值高的信息无法被显示。
发明内容
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本申请的一个目的在于提出一种信息处理方法和装置。
为达到上述目的,本申请第一方面实施例提出的信息处理方法,包括:确定需要更 新的信息分类;将所确定的分类中的信息写入缓存;其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
为达到上述目的,本申请第二方面实施例提出的信息处理装置,包括:确定模块,用于确定需要更新的信息分类;写入模块,用于将所确定的分类中的信息写入缓存;其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
为达到上述目的,本申请第三方面实施例提出的动态信息的显示方法,包括:从服务端的缓存中获取动态信息;显示所述动态信息;其中,所述动态信息与信息分类相关。
为达到上述目的,本申请第四方面实施例提出的动态信息的显示装置,包括:获取模块,用于从服务端的缓存中获取动态信息;显示模块,用于显示所述动态信息;其中,所述动态信息与信息分类相关。
为达到上述目的,本申请第五方面实施例提出的信息处理装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:确定需要更新的信息分类;将所确定的分类中的信息写入缓存;其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
为达到上述目的,本申请第六方面实施例提出的动态信息的显示装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:从服务端的缓存中获取动态信息;显示所述动态信息;其中,所述动态信息与信息分类相关。
为达到上述目的,本申请第七方面实施例提出的信息处理系统,包括:收集装置,用于接收前台界面产生的动态信息;消息装置,用于接收后台服务器产生的动态信息;服务装置,用于接收所述收集模块和所述消息模块发送的动态信息,并根据所述动态信息所属的分类存储到所述分类对应的存储空间,以及在缓存需要更新时,将所确定的分类中的动态信息写入缓存;缓存装置,用于接收所述服务模块写入的动态信息。
本申请实施例提供的技术方案可以包括以下有益效果:
通过将所确定的分类中的信息写入缓存,可以选择更有价值的信息写入到缓存。当用户界面从缓存中读取信息进行显示时,可以显示更有价值的信息。
进一步的,通过在达到更新缓存的定时时间时,才将信息写入缓存,而不是在产生信息时直接就写入缓存,可以降低写次数,从而降低缓存的写压力,提高缓存性能。进一步的,通过对信息产生方发送的信息进行存储,可以实现信息沉淀,为相关流程提供数据支持。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本申请一个实施例提出的信息处理方法的流程示意图;
图2是本申请另一个实施例提出的信息处理方法的流程示意图;
图3是本申请另一个实施例提出的信息处理方法的流程示意图;
图4是本申请另一个实施例提出的信息处理方法的流程示意图;
图5是图4对应的处理系统的结构示意图;
图6是本申请一个实施例提出的信息处理装置的结构示意图;
图7是本申请一个实施例提出的信息处理装置的结构示意图;
图8是本申请一个实施例提出的动态信息的显示方法的流程示意图;
图9是本申请一个实施例提出的动态信息的显示装置的结构示意图;
图10是本申请另一个实施例提出的动态信息的显示装置的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的模块或具有相同或类似功能的模块。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。相反,本申请的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。
图1是本申请一个实施例提出的信息处理方法的流程示意图。
参见图1,本实施例的方法包括:
S11:确定需要更新的信息分类。
S12:将所确定的分类中的信息写入缓存。
其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
一些实施例中,参见图2,在S11之前,还可以包括:
S21:接收信息产生方发送的信息。
其中,假设本实施例的执行主体称为处理模块,在处理模块和信息产生方之间可以设置统一模块,由统一模块接收信息产生方产生的信息,并发送给处理模块。
因此,该步骤可以具体是接收信息产生方通过统一模块发送的信息。
其中,统一模块不限于一个,可以依据信息类别的不同,采用不同的统一模块,例如,前台(如页面)产生的信息通过一个统一模块发送给处理模块,后台(如交易服务器)产生的信息通过另一个统一模块发送给处理模块。
每个信息产生方在产生信息后,将各自产生的信息都发给相同的统一模块,这样可以避免存在依赖关系的信息产生者之间的直接依赖,便于扩展。例如,如果信息产生者A与信息产生者B之间存在依赖关系,如果不存在统一模块,则信息产生者A和信息产生者B之间需要直接连接,而两者直接相连会存在一定的限定性,而都连接到统一模块,可以避免这种限定。
一些实施例中,接收的上述的信息可以具体是预设类型的信息,以对预设类型的信息进行本实施例的处理。或者,
一些实施例中,也可以是在S21接收到信息后,判断是否是预设类型的信息,以便在是预设类型的信息进行后续的S22及其后续步骤。
进一步的,上述的预设类型的信息可以具体是动态信息,动态信息是随着时间的不同动态变化的信息。动态信息又可以进一步分为不同类别,如分为浏览信息、社交信息或交易信息。以某个项目的动态信息为例,浏览信息例如包括:用户A浏览了该项目;社交信息例如包括:用户A针对该项目进行了什么评论,或者,用户A对该项目进行了点赞;交易信息包括:用户A对该项目投资了多少钱。
S22:确定所述信息所属的分类。
S23:将所述信息存储到所述分类对应的存储空间。
其中,参见图3,处理模块可以在本地创建队列,初始时,队列可以设置为空。当处理模块接收到信息后,可以将信息存储到已创建的队列中。具体的,可以根据信息类别,将不同类别的信息存储到不同的队列中(S31)。
例如,可以将信息分为:浏览信息、社交信息和交易信息,则可以创建三个队列,分别称为浏览队列、社交队列和交易队列。当接收到信息后,将信息存储到对应类别的队列中。例如,当接收到浏览信息时,将浏览信息存储到浏览队列;当接收到社交信息时,将社交信息存储到社交队列;当接收到交易信息,将交易信息存储到交易队列。
进一步的,可以设置每个队列的最大长度。
不同队列的最大长度可以相同或不同。
例如,可以与队列中存储的信息相关。具体的,可以与所存储的信息的价值正相关。例如,一个队列中存储的信息的价值越高,该队列的最大长度越大。而每种信息的价值可以根据实际需要确定。
例如,浏览队列、社交队列和交易队列的最大长度分别是1、5、10,则如果要在一个队列中存储一条信息时,如果当前队列长度达到最大长度(队列满)时,可以剔除存储时间最久的信息,而将新来的信息存储到队列中。
其中,当前队列长度可以通过检测队列的当前情况得到。例如,可以在处理模块中设置计数器,计数器用于对每个队列中存储的信息的个数进行统计,从而可以得到当前队列长度。例如,浏览队列中当前存储一条浏览信息,则确定浏览队列的当前队列长度是1。
进一步的,参见图2,S11之前还可以包括:
S24:判断当前时间是否达到更新缓存的定时时间,若是,执行S11及其后续步骤,否则重复执行S24及其后续步骤。
其中,缓存可以设置为定时更新的,当达到设置的更新时间时,可以确定相应的分类并将所确定的分类中的信息写入缓存。
如图3所示,在确定需要更新的信息的分类时,可以包括:
S32:获取每个队列的权重数据和当前队列长度。
其中,权重数据可以包括:热度值和/或人工干预值。
热度值可以通过对队列中存储的信息进行热度统计后得到,例如,浏览队列的热度值是浏览信息的热度值,社交队列的热度值是社交信息的热度值等。其中,一种类别信息的热度值可以是该类别信息在统计时间内的出现总次数。因此,当一种类别信息越频繁出现时,该类别信息及对应队列的热度值越大。
人工干预值是人工设置的,可以根据需求设置每个队列的人工干预值,例如,某个类别信息的价值越大,则设置该类别信息及对应队列的人工干预值越大。例如,社交信息相对于浏览信息更为价值,则可以设置社交队列的人工干预值大于浏览队列的人工干预值。
当前队列长度可以通过设置的计数器,对每个队列的长度进行计数得到。
S33:根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列。
其中,对应每个队列,可以计算权重数据(如热度值和人工干预值)和当前队列长度的乘积,选择乘积最大的队列。
进一步的,当乘积最大的队列为一个时,则将乘积最大的队列确定为选择的一个队列。
当乘积最大的队列为多个时,则在乘积最大的多个队列中,进一步根据预设算法,选择出一个队列。例如,预设算法是根据人工干预值选择,则假设乘积最大的队列包括队列A和队列B,如果队列A的人工干预值大于队列B的人工干预值,则确定选择的一个队列是队列A。
可以理解的是,在人工设置时,需要对应每个队列分别设置不同的干预值。
在选择出队列后,可以从队列中读取信息写入缓存中。
如图3所示,从队列中读取信息写入缓存的流程可以包括:
S34:将所确定的队列中的当前存在且存储时间最久的一条信息,写入缓存。
其中,在队列中读取信息时,依据先进先出原则。
另外,在将信息写入到缓存时,缓存中可以仅存储最新的若干条信息。
本实施例中,通过确定需要更新的信息的分类,在确定的分类中的信息写入缓存中,可以选择更有价值的信息写入到缓存。当用户界面从缓存中读取信息进行显示时,可以显示更有价值的信息。进一步的,通过在需要更新缓冲时,才读取信息并写入缓存中,而不是在产生信息时直接就写入缓存,可以降低写次数,从而降低缓存的写压力,提高缓存性能。进一步的,通过对信息产生者发送的信息进行存储,可以实现信息沉淀,为相关流程提供数据支持。
将上述的信息缓存方法应用到金融项目的动态信息的处理场景时,本申请还可以给出如下的实施例。
图4是本申请另一个实施例提出的信息处理方法的流程示意图。图5是图4对应的处理系统的结构示意图。
如图5所示,上述的处理系统会涉及的模块包括:前台界面51、收集模块52、动态信息缓存模块53、市场后台服务模块54、热度模型55、人工干预模块56、消息模块57、交易服务模块58和数据库59。
如图5所示,前台界面位于客户端,其余模块位于服务端。需要说明的是,图5以收集模块位于服务端为例,但是,收集模块也可以位于客户端。
对各模块的说明如下:
前台界面:用户进入系统之后看到的界面,用户所有操作都通过前台界面,也可以称为用户界面。
收集模块:对前台界面上用户的操作行为(如点击行为、搜索行为)进行检测,并发送给市场后台服务和热度模型。
动态信息缓存模块:针对每个金融项目(简称项目)设置一个缓存列表,每个缓存列表中存储该项目需要显示的动态信息。
市场后台服务:针对收集模块和消息模块发送过来的信息进行处理,结合热度模型和人工干预进行权重计算,并更新缓存中的动态信息。
热度模型:对用户的点击热度和搜索信息进行分析,给出每种类别的信息的热度值。
人工干预模块:由后台管理员设置对各类别的信息的干预值。
消息模块:负责分发交易服务模块的交易消息。
数据库:用于存储信息。例如,热度模型接收到收集模块发送的信息后可以将信息存储到数据库中,热度模型需要计算热度值时从数据库中获取信息并计算热度值。
参见图4,上述各模块之间交互的流程包括:
S401:前台界面检测用户对项目产生的用户操作行为,并发送给收集模块。
其中,用户打开项目所在页面后,用户可以对项目进行浏览、点赞、评论、分享、交易、搜索等操作,相应的,前台界面可以检测到相应的具体的用户操作行为,如浏览行为(检测到对项目的点击)、社交行为(包括点赞、评论、分享等)、搜索行为。
S402:收集模块根据前台界面发送的用户操作行为,获取浏览信息和社交信息等不依赖后台服务的动态信息。
其中,动态信息可以分为依赖后台服务的信息和不依赖后台服务的信息,依赖后台服务的信息例如包括交易信息,不依赖后台服务的信息例如包括浏览信息和社交信息等。
本实施例以依赖后台服务的信息是交易信息,不依赖后台服务的信息是浏览信息和社交信息为例。
因此,当用户操作行为是浏览或社交时,则可以获取相应的浏览信息和社交信息。
S403:收集模块将浏览信息和社交信息发送给市场后台服务模块。
浏览信息例如包括:用户A已浏览、用户B已浏览等。
社交信息例如包括:用户A说了什么,用户B说了什么;和/或,用户A点赞,用户B点赞等。
S404:收集模块将用户操作行为通知给热度模型。
例如,用户在前台界面上产生一次浏览行为,则收集模块向热度模型发送当前产生一次浏览行为的通知消息。
S405:热度模型根据通知消息,统计每种类别的信息的热度值。
例如,热度模型中可以设置计数器,初始值为0,当接收到对一种行为的一次通知消息,则将该行为对应信息的热度值加1。
如,热度模型在用户每发生一次浏览行为时,则将浏览信息的热度值加1。热度模型在用户每发生一次社交行为时,则将社交信息的热度值加1。热度模型在用户每发生一次交易行为时,则将交易信息的热度值加1。
可以理解的是,热度模型在进行上述统计时,是对应每个项目的所有用户进行的统计。例如,项目A的浏览信息的热度值,是浏览过项目A的所有用户产生的热度值。
进一步的,上述的浏览可以具体包括对同一项目的所有页面的查看。社交主要包括用户在点赞、评论和分享这些社交板块产生的行为。交易主要包括用户当前交易及已成交交易。
另外,本实施例以浏览、社交和交易为例,还可以包括搜索。
进一步的,搜索可以包括直接搜索和间接搜索。例如系统中有项目名为“零碳科技”,用户在搜索框直接搜索“零碳科技”为对该项目的直接搜索,用户在搜索框输入“环保”,收集模块通过匹配规则,会将该次搜索匹配到“零碳科技”上,这记为对项目的间接搜索。
S406:交易服务模块将交易信息,发送给消息模块。
S407:消息模块将交易信息发送给市场后台服务模块。
S408:市场后台服务模块将接收的信息存储到对应类别的队列中。
例如,将浏览信息存储到浏览队列,将社交信息存储到社交队列,将交易信息存储到交易队列。
通过上述流程,信息产生者可以通过收集模块或消息模块将信息发送给市场后台服务模块。
市场后台服务模块将信息存储到队列中,可以实现信息沉淀。另外,可以依据信息类别存储到不同队列中,以选择更有价值的信息。
在达到每个定时的更新缓存的时间时,例如每秒更新一次,则可以每秒循环执行S409-S413:
S409:市场后台服务模块从热度模型获取热度值。
S410:市场后台服务模块从人工干预模块获取人工干预值。
S411:市场后台服务模块从计数器获取每个队列的当前队列长度。
S412:市场后台服务模块,计算每个队列的热度值、人工干预值和当前队列长度的乘积,选择乘积最大的一个队列。
S413:从选择的队列中,读取一条信息写入到动态信息缓存模块中。
进一步的,当前台界面需要显示信息时,可以从缓存中读取信息进行显示。
其中,前台界面在显示信息时可以采用定时更新的方式,则达到定时的更新显示时间或接收到用户触发更新的指令时,可以循环执行S414-S415。
S414:前台界面从缓存中读取信息。
S415:前台界面显示读取的信息。
可以理解的是,本实施例中无特殊说明的地方,可以参见上述实施例中的相关描述,在此不再赘述。
本实施例中,通过在达到缓存的更新时间时,向缓存中写入信息,可以降低缓存的写压力。通过根据热度值、人工干预值和当前队列长度的乘积选择队列,并在选择的队列中读取信息,可以将更有价值的信息写入缓存,以显示更有价值的信息,避免社交信息和交易信息淹没在浏览信息中。通过将动态信息存储到队列中,可以实现信息沉淀,为其他流程提供数据支持。通过消息模块转发交易消息,可以避免不同服务间的依赖限制。
图6是本申请一个实施例提出的信息处理装置的结构示意图。
参见图6,本实施例的装置60包括:确定模块61和写入模块62。
确定模块61,用于确定需要更新的信息分类;
写入模块62,用于将所确定的分类中的信息写入缓存;
其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
一些实施例中,参见图7,该装置60还可以包括:
触发模块63,用于判断当前时间是否达到更新缓存的定时时间,以便在达到时,触发所述确定模块执行。
一些实施例中,参见图7,该装置60还可以包括:
接收模块64,用于接收信息产生方发送的信息;
存储模块65,用于确定所述信息所属的分类,将所述信息存储到所述分类对应的存 储空间。
一些实施例中,参见图7,该装置60还可以包括:
判断模块66,用于判断所述信息是否是预设类型的信息,以在所述信息是预设类型的信息时,触发存储模块执行。
一些实施例中,所述存储模块65具体用于:
将不同类别的信息,存储到不同的队列中。
一些实施例中,所述确定模块61具体用于:
获取每个队列的权重数据和当前队列长度;
根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列。
一些实施例中,所述权重数据包括:热度值和/或人工干预值,其中,所述热度值是所述队列中存储的信息的热度值,所述信息的热度值是对所有用户的对应所述信息的操作行为进行热度统计后得到的。
一些实施例中,所述不同的队列的最大长度与存储的信息相关。
一些实施例,所述根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列,包括:
计算所述权重数据与所述当前队列长度的乘积,在所有队列中选择乘积最大的队列;
如果乘积最大的队列为一个,则将所述乘积最大的队列,作为确定出的一个队列;或者,
如果乘积最大的队列大于一个,则在乘积最大的多个队列中,根据预设算法,确定出一个队列。
一些实施例中,所述写入模块62具体用于:
将所确定的分类中的当前存在且存储时间最久的一条信息,写入缓存。
一些实施例中,所述接收模块64具体用于:
接收信息产生方通过统一模块发送的信息,其中,当同种类别的信息由多个信息产生方产生时,所述多个信息产生方均与所述统一模块连接。
一些实施例中,所述预设类型的信息是动态信息。
可以理解的是,本实施例的装置与上述方法实施例对应,具体内容可以参见上述相关描述,在此不再赘述。
本实施例中,通过选择分类,在选择的分类中读取信息写入缓存中,可以选择更有价值的信息写入到缓存。当用户界面从缓存中读取信息进行显示时,可以显示更有价值 的信息。进一步的,通过在达到更新缓存的定时时间时,才读取信息并写入缓存中,而不是在产生信息时直接就写入缓存,可以降低写次数,从而降低缓存的写压力,提高缓存性能。进一步的,通过对信息产生者发送的信息进行存储,可以实现信息沉淀,为相关流程提供数据支持。
图8是本申请一个实施例提出的动态信息的显示方法的流程示意图。
参见图8,本实施例的流程包括:
S81:从服务端的缓存中获取动态信息;
S82:显示所述动态信息;
其中,所述动态信息与信息分类相关。
当采用相关技术中的产生动态信息后直接写入缓存的方案时,动态信息是与产生时间相关的,因此,显示的动态信息是最新产生的动态信息。
而本实施例中,上述的动态信息与信息分类相关,因此,显示的动态信息属于所需要分类中的信息,例如,用户更希望看到交易信息,则显示的动态信息更多的是交易信息。
具体的,为了实现动态信息与信息分类相关,可以采用上述实施例中的相关内容将动态信息写入到缓存。
具体的,动态信息及服务端对动态信息的处理流程可以参见上述实施例,在此不再详细说明。
一些实施例中,该方法还可以包括:
从所述服务端的数据库中获取静态信息。
静态信息例如包括:网页的固定内容对应的信息,例如某个金融项目的具体名称、图片、相关介绍信息等。
一些实施例中,该方法还可以包括:还包括:
将产生的动态信息发送给所述服务端。
例如,客户端还可以产生浏览信息、社交信息等动态信息,当客户端产生这些信息后可以将其发送给服务端。相应的,服务端接收到动态信息后,可以对其进行分类存储。
可以理解的是,本实施例的具体内容可以参见上述实施例中的相关说明,在此不再赘述。
图9是本申请一个实施例提出的动态信息的显示装置的结构示意图。
参见图9,本实施例的装置90包括:第一获取模块91和显示模块92。
第一获取模块91,用于从服务端的缓存中获取动态信息;
显示模块92,用于显示所述动态信息;
其中,所述动态信息与信息分类相关。
一些实施例中,参见图10,该装置90还包括:
第二获取模块93,用于从所述服务端的数据库中获取静态信息。
一些实施例中,参见图10,该装置90还包括:
发送模块94,用于将产生的动态信息发送给所述服务端。
可以理解的是,本实施例的装置与上述方法实施例对应,具体内容可以参见上述相关描述,在此不再赘述。
本实施例中,通过显示动态信息,并且动态信息与信息分类相关,可以显示更有价值的信息。
本申请还提供了一种信息处理装置。该装置包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:确定需要更新的信息分类;将所确定的分类中的信息写入缓存;其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
一些实施例中,所述处理器还被配置为:
判断当前时间是否达到更新缓存的定时时间,以便在达到时,执行确定需要更新的信息分类的步骤。
一些实施例中,所述处理器还被配置为:接收信息产生方发送的信息;确定所述信息所属的分类;将所述信息存储到所述分类对应的存储空间。
一些实施例中,在接收信息产生方发送的信息之后,所述方法还包括:
判断所述信息是否是预设类型的信息,以便在所述信息是预设类型的信息时,执行确定所述信息所属的分类的步骤。
一些实施例中,所述将所述信息存储到所述分类对应的存储空间,包括:
将不同类别的信息,存储到不同的队列中。
一些实施例中,所述确定需要更新的信息分类,包括:
获取每个队列的权重数据和当前队列长度;
根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列。
一些实施例中,所述权重数据包括:热度值和/或人工干预值,其中,所述热度值是所述队列中存储的信息的热度值,所述信息的热度值是对所有用户的对应所述信息的操 作行为进行热度统计后得到的。
一些实施例中,所述不同的队列的最大长度与存储的信息相关。
一些实施例中,所述根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列,包括:
计算所述权重数据与所述当前队列长度的乘积,在所有队列中选择乘积最大的队列;
如果乘积最大的队列为一个,则将所述乘积最大的队列,作为确定出的一个队列;或者,
如果乘积最大的队列大于一个,则在乘积最大的多个队列中,根据预设算法,确定出一个队列。
一些实施例中,所述将所确定的分类中的信息写入缓存,包括:
将所确定的分类中的当前存在且存储时间最久的一条信息,写入缓存。
一些实施例中,所述接收信息产生方发送的信息,包括:
接收信息产生方通过统一模块发送的信息,其中,当同种类别的信息由多个信息产生方产生时,所述多个信息产生方均与所述统一模块连接。
一些实施例中,所述预设类型的信息是动态信息。
可以理解的是,本实施例与上述的信息处理方法实施例对应,具体内容可以参见上述实施例中的相关描述,在此不再详细说明。
本申请还提供了一种动态信息的显示装置。该装置包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:从服务端的缓存中获取动态信息;显示所述动态信息;其中,所述动态信息与信息分类相关。
一些实施例中,所述处理器还被配置为:
将产生的动态信息发送给所述服务端。
一些实施例中,所述处理器还被配置为:
从所述服务端的数据库中获取静态信息。
可以理解的是,本实施例与上述的动态信息的显示方法实施例对应,具体内容可以参见上述实施例中的相关描述,在此不再详细说明。
本申请还提供了一种信息处理系统,包括:收集装置、消息装置、服务装置和缓存装置。
收集装置,用于接收前台界面产生的动态信息;
消息装置,用于接收后台服务器产生的动态信息;
服务装置,用于接收所述收集模块和所述消息模块发送的动态信息,并根据所述动态信息所属的分类存储到所述分类对应的存储空间,以及在缓存需要更新时,将所确定的分类中的动态信息写入缓存;
缓存装置,用于接收所述服务模块写入的动态信息。
一些实施例中,该系统还包括:
前台界面装置,用于将产生的动态信息发送给所述收集模块,以及,在需要显示动态信息时,从所述缓存装置获取动态信息进行显示。
一些实施例中,所述服务装置具体用于:
将不同类别的动态信息,存储到不同的队列中;以及,
在缓存需要更新时,获取每个队列的权重数据和当前队列长度,根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列;以及,
将所确定队列中的当前存在且存储时间最久的一条信息,写入缓存。
一些实施例中,所述权重数据包括:热度值和人工干预值,所述系统还包括:
热度模型装置,用于计算所述热度值;
人工干预装置,用于设置所述人工干预值。
可以理解的是,本实施例的收集装置、消息装置、服务装置、缓存装置、前台界面装置、热度模型装置和人工干预装置分别对应上述实施例中的收集模块、消息模块、市场后台服务模块、动态信息缓存模块、前台界面、热度模型、人工干预模块,本实施例的后台服务器对应上述实施例中的交易服务模块。因此,具体内容可以参见上述实施例中的相关描述,在此不再详细说明。
需要说明的是,在本申请的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本申请的描述中,除非另有说明,“多个”的含义是指至少两个。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (24)

  1. 一种信息处理方法,其特征在于,包括:
    确定需要更新的信息分类;
    将所确定的分类中的信息写入缓存;
    其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    判断当前时间是否达到更新缓存的定时时间,以便在达到时,执行确定需要更新的信息分类的步骤。
  3. 根据权利要求1所述的方法,其特征在于,还包括:
    接收信息产生方发送的信息;
    确定所述信息所属的分类;
    将所述信息存储到所述分类对应的存储空间。
  4. 根据权利要求3所述的方法,其特征在于,在接收信息产生方发送的信息之后,所述方法还包括:
    判断所述信息是否是预设类型的信息,以便在所述信息是预设类型的信息时,执行确定所述信息所属的分类的步骤。
  5. 根据权利要求3所述的方法,其特征在于,所述将所述信息存储到所述分类对应的存储空间,包括:
    将不同类别的信息,存储到不同的队列中。
  6. 根据权利要求5所述的方法,其特征在于,所述确定需要更新的信息分类,包括:
    获取每个队列的权重数据和当前队列长度;
    根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列。
  7. 根据权利要求6所述的方法,其特征在于,所述权重数据包括:热度值和/或人工干预值,其中,所述热度值是所述队列中存储的信息的热度值,所述信息的热度值是对所有用户的对应所述信息的操作行为进行热度统计后得到的。
  8. 根据权利要求5所述的方法,其特征在于,所述不同的队列的最大长度与存储的信息相关。
  9. 根据权利要求6所述的方法,其特征在于,所述根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列,包括:
    计算所述权重数据与所述当前队列长度的乘积,在所有队列中选择乘积最大的队列;
    如果乘积最大的队列为一个,则将所述乘积最大的队列,作为确定出的一个队列;或者,
    如果乘积最大的队列大于一个,则在乘积最大的多个队列中,根据预设算法,确定出一个队列。
  10. 根据权利要求1所述的方法,其特征在于,所述将所确定的分类中的信息写入缓存,包括:
    将所确定的分类中的当前存在且存储时间最久的一条信息,写入缓存。
  11. 根据权利要求3所述的方法,其特征在于,所述接收信息产生方发送的信息,包括:
    接收信息产生方通过统一模块发送的信息,其中,当同种类别的信息由多个信息产生方产生时,所述多个信息产生方均与所述统一模块连接。
  12. 根据权利要求4所述的方法,其特征在于,所述预设类型的信息是动态信息。
  13. 一种动态信息的显示方法,其特征在于,包括:
    从服务端的缓存中获取动态信息;
    显示所述动态信息;
    其中,所述动态信息与信息分类相关。
  14. 根据权利要求13所述的方法,其特征在于,还包括:
    从所述服务端的数据库中获取静态信息。
  15. 根据权利要求13所述的方法,其特征在于,还包括:
    将产生的动态信息发送给所述服务端。
  16. 一种信息处理装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    确定需要更新的信息分类;
    将所确定的分类中的信息写入缓存;
    其中,所述分类中的信息,在接收后根据信息所属的分类被存储到所述分类对应的存储空间。
  17. 根据权利要求16所述的装置,其特征在于,所述处理器还被配置为:
    判断当前时间是否达到更新缓存的定时时间,以便在达到时,执行确定需要更新的信息分类的步骤。
  18. 根据权利要求16所述的装置,其特征在于,所述处理器还被配置为:
    接收信息产生方发送的信息;
    确定所述信息所属的分类;
    将所述信息存储到所述分类对应的存储空间。
  19. 一种动态信息的显示装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    从服务端的缓存中获取动态信息;
    显示所述动态信息;
    其中,所述动态信息与信息分类相关。
  20. 根据权利要求19所述的装置,其特征在于,所述处理器还被配置为:
    将产生的动态信息发送给所述服务端。
  21. 一种信息处理系统,其特征在于,包括:
    收集装置,用于接收前台界面产生的动态信息;
    消息装置,用于接收后台服务器产生的动态信息;
    服务装置,用于接收所述收集模块和所述消息模块发送的动态信息,并根据所述动态信息所属的分类存储到所述分类对应的存储空间,以及在缓存需要更新时,将所确定的分类中的动态信息写入缓存;
    缓存装置,用于接收所述服务模块写入的动态信息。
  22. 根据权利要求21所述的系统,其特征在于,还包括:
    前台界面装置,用于将产生的动态信息发送给所述收集模块,以及,在需要显示动态信息时,从所述缓存装置获取动态信息进行显示。
  23. 根据权利要求21所述的系统,其特征在于,所述服务装置具体用于:
    将不同类别的动态信息,存储到不同的队列中;以及,
    在缓存需要更新时,获取每个队列的权重数据和当前队列长度,根据所述权重数据和所述当前队列长度,在所有队列中确定一个队列;以及,
    将所确定队列中的当前存在且存储时间最久的一条信息,写入缓存。
  24. 根据权利要求23所述的系统,其特征在于,所述权重数据包括:热度值和人工干预值,所述系统还包括:
    热度模型装置,用于计算所述热度值;
    人工干预装置,用于设置所述人工干预值。
PCT/CN2017/085654 2016-06-06 2017-05-24 信息处理方法和装置及动态信息的显示方法和装置 WO2017211192A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2018563871A JP6877467B2 (ja) 2016-06-06 2017-05-24 情報処理方法及び装置、並びに動的情報を表示するための方法及び装置
KR1020197000289A KR102175618B1 (ko) 2016-06-06 2017-05-24 정보 처리 방법 및 장치, 및 동적 정보를 디스플레이하는 방법 및 장치
EP21183844.6A EP3910502A1 (en) 2016-06-06 2017-05-24 Information processing method and device, and method and device for displaying dynamic information
EP17809631.9A EP3467680B1 (en) 2016-06-06 2017-05-24 Information processing method and device, and method and device for displaying dynamic information
US16/210,347 US10789171B2 (en) 2016-06-06 2018-12-05 Information processing method and device, and method and device for displaying dynamic information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610393580.4 2016-06-06
CN201610393580.4A CN107016008B (zh) 2016-06-06 2016-06-06 信息处理方法和装置及动态信息的显示方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/210,347 Continuation US10789171B2 (en) 2016-06-06 2018-12-05 Information processing method and device, and method and device for displaying dynamic information

Publications (1)

Publication Number Publication Date
WO2017211192A1 true WO2017211192A1 (zh) 2017-12-14

Family

ID=59439050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085654 WO2017211192A1 (zh) 2016-06-06 2017-05-24 信息处理方法和装置及动态信息的显示方法和装置

Country Status (7)

Country Link
US (1) US10789171B2 (zh)
EP (2) EP3467680B1 (zh)
JP (1) JP6877467B2 (zh)
KR (1) KR102175618B1 (zh)
CN (1) CN107016008B (zh)
TW (1) TWI670597B (zh)
WO (1) WO2017211192A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941483B (zh) * 2019-10-23 2023-02-03 创耀(苏州)通信科技股份有限公司 一种队列处理方法、装置及设备
CN112925999A (zh) * 2019-12-05 2021-06-08 北京沃东天骏信息技术有限公司 数据处理方法、数据存储方法、服务器和客户端
CN111026532B (zh) * 2019-12-10 2022-07-12 思必驰科技股份有限公司 用于语音数据的消息队列管理方法
KR20240000768A (ko) * 2022-06-24 2024-01-03 쿠팡 주식회사 캐시 업데이트를 수행하는 전자 장치의 동작 방법 및 이를 지원하는 전자 장치

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1869979A (zh) * 2005-12-30 2006-11-29 华为技术有限公司 一种缓存管理方法
CN1881899A (zh) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 一种网络流量监控的系统和方法
CN102740367A (zh) * 2012-05-31 2012-10-17 华为技术有限公司 数据流的传输方法及装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5335224A (en) * 1992-06-30 1994-08-02 At&T Bell Laboratories Service guarantees/congestion control in high speed networks
US5631694A (en) * 1996-02-01 1997-05-20 Ibm Corporation Maximum factor selection policy for batching VOD requests
US6058389A (en) * 1997-10-31 2000-05-02 Oracle Corporation Apparatus and method for message queuing in a database system
AU2001292801A1 (en) * 2000-09-11 2002-04-29 Sitara Networks, Inc. Central policy manager
US7487319B2 (en) * 2004-11-18 2009-02-03 International Business Machines Corporation Resource allocation unit queue
CN100499492C (zh) * 2005-03-01 2009-06-10 华为技术有限公司 一种实现电子工单排队的方法
US8179896B2 (en) * 2006-11-09 2012-05-15 Justin Mark Sobaje Network processors and pipeline optimization methods
US8261029B1 (en) * 2007-03-28 2012-09-04 Emc Corporation Dynamic balancing of writes between multiple storage devices
JP5650441B2 (ja) * 2010-06-07 2015-01-07 キヤノン株式会社 演算装置、キャッシュ装置、その制御方法及びコンピュータプログラム
US8705363B2 (en) * 2011-04-05 2014-04-22 Telefonaktiebolaget L M Ericsson (Publ) Packet scheduling method and apparatus
US9098525B1 (en) * 2012-06-14 2015-08-04 Emc Corporation Concurrent access to data on shared storage through multiple access points
US9641481B2 (en) * 2014-02-21 2017-05-02 Htc Corporation Smart conversation method and electronic device using the same
CN104243581B (zh) * 2014-09-15 2017-11-24 成都北纬航信网络科技有限责任公司 实现高内聚与低耦合的多级缓存方法及其系统
CN105354258B (zh) * 2015-10-22 2019-11-15 努比亚技术有限公司 一种更新网站数据缓存的装置及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1869979A (zh) * 2005-12-30 2006-11-29 华为技术有限公司 一种缓存管理方法
CN1881899A (zh) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 一种网络流量监控的系统和方法
CN102740367A (zh) * 2012-05-31 2012-10-17 华为技术有限公司 数据流的传输方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3467680A4 *

Also Published As

Publication number Publication date
TWI670597B (zh) 2019-09-01
US10789171B2 (en) 2020-09-29
CN107016008A (zh) 2017-08-04
EP3467680A1 (en) 2019-04-10
TW201743214A (zh) 2017-12-16
EP3467680B1 (en) 2021-07-07
CN107016008B (zh) 2020-06-09
KR20190015517A (ko) 2019-02-13
EP3467680A4 (en) 2019-05-08
EP3910502A1 (en) 2021-11-17
US20190108129A1 (en) 2019-04-11
JP6877467B2 (ja) 2021-05-26
JP2019527398A (ja) 2019-09-26
KR102175618B1 (ko) 2020-12-16

Similar Documents

Publication Publication Date Title
US11893703B1 (en) Precise manipulation of virtual object position in an extended reality environment
WO2017211192A1 (zh) 信息处理方法和装置及动态信息的显示方法和装置
US10410258B2 (en) Graphical user interface for high volume data analytics
US10277480B2 (en) Method, apparatus, and system for determining a location corresponding to an IP address
US10146855B2 (en) Content resonance
US10909772B2 (en) Precise scaling of virtual objects in an extended reality environment
US20160314498A1 (en) Promoting content in a real-time messaging platform
JP2019503525A (ja) 連続クエリ処理におけるイベントバッチ処理、出力シーケンス化、およびログベースの状態記憶
US20210089452A1 (en) Graph-based predictive cache
WO2014090027A1 (zh) 一种消息处理方法和装置
WO2014110122A1 (en) Methods and apparatus for providing effectiveness score of advertisements
CN105224529A (zh) 一种基于用户浏览行为的个性化推荐方法和装置
CN111966887B (zh) 动态缓存方法及装置、电子设备、存储介质
US8874666B2 (en) Publisher-assisted, broker-based caching in a publish-subscription environment
WO2016124099A1 (zh) 网页展示方法及装置
CN115080625B (zh) 基于Spring Cache缓存框架的缓存方法、装置、设备及存储介质
WO2022199494A1 (zh) 一种基于用户兴趣的内容推荐方法与终端设备
WO2022095775A1 (zh) 消息通知显示方法、装置及设备
CN114417112A (zh) 数据处理方法、数据处理装置、电子设备和存储介质
US8645377B2 (en) Aggregating data from a work queue
US11055267B2 (en) Handling time series index updates at ingestion
CN109271580B (zh) 搜索方法、装置、客户端和搜索引擎
US10037155B2 (en) Preventing write amplification during frequent data updates
JP2015022562A (ja) 情報処理装置および情報処理方法
US20120041963A1 (en) Providing selected attributes of streaming data for display by a visualization engine

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: 17809631

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018563871

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20197000289

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017809631

Country of ref document: EP

Effective date: 20190107