CN113448748A - Refreshing method and refreshing system driven by message - Google Patents

Refreshing method and refreshing system driven by message Download PDF

Info

Publication number
CN113448748A
CN113448748A CN202110621741.1A CN202110621741A CN113448748A CN 113448748 A CN113448748 A CN 113448748A CN 202110621741 A CN202110621741 A CN 202110621741A CN 113448748 A CN113448748 A CN 113448748A
Authority
CN
China
Prior art keywords
refreshed
message
target object
refreshing
request
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110621741.1A
Other languages
Chinese (zh)
Other versions
CN113448748B (en
Inventor
王朝文
廖军利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Seeyon Internet Software Corp
Original Assignee
Beijing Seeyon Internet Software Corp
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 Beijing Seeyon Internet Software Corp filed Critical Beijing Seeyon Internet Software Corp
Priority to CN202110621741.1A priority Critical patent/CN113448748B/en
Publication of CN113448748A publication Critical patent/CN113448748A/en
Application granted granted Critical
Publication of CN113448748B publication Critical patent/CN113448748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a refreshing method and a refreshing system driven by messages, wherein the method comprises the following steps: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information; step 2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if not, returning to the step 1 to continuously acquire the current user information; and step 3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed. The invention forms a uniform standard through the technology of the splitting of the module and the association of the message types, successfully solves the problems of inconsistent display content and actual conditions, untimely update of the display content and the like, has high loading speed, does not interrupt the current behavior, and has good user experience.

Description

Refreshing method and refreshing system driven by message
Technical Field
The invention relates to the technical field of communication, in particular to a refreshing method and a refreshing system driven by messages.
Background
The message list control used by the existing website server is a global refreshing control, all visible messages in a message list need to be refreshed when a new message is refreshed, meanwhile, the refreshing frequency of each new message is 2 times, one time is refreshing of a state during sending, and the other time is refreshing of a state after successful sending, so that the refreshing frequency of the message list is 2 times of the number of the visible messages of a page (refreshing of N messages is 2N times), therefore, problems such as page blockage and the like can be derived, the behaviors of current users can be interrupted, and the user experience is poor.
Disclosure of Invention
The invention aims to provide a refreshing method and a refreshing system driven by a message, and aims to timely and accurately display related information, realize non-inductive updating and improve user experience by the technology of refreshing a portal, refreshing a navigation menu and refreshing a designated column when the message is received so as to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a message-driven refresh method, comprising the steps of:
step 1: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information;
step 2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if not, returning to the step 1 to continuously acquire the current user information;
and step 3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed.
Preferably, when the target object to be refreshed is a single element, an asynchronous request is initiated through a data interface of the element, the latest data is acquired in a callback function, and then the template rendering engine is called to locally refresh the display effect of the element.
Preferably, when the target object to be refreshed is a plurality of elements, traversing the element queue needing to be refreshed, and sequentially performing the data request re-rendering operation of a single element.
Preferably, when the target object to be refreshed is a single column, an asynchronous request is initiated through the existing parameters of the column, the latest data is acquired in the callback function, and then the template rendering engine is called to locally refresh the display effect of the column.
Preferably, when the target object to be refreshed is a type, columns meeting the conditions are found from the current space, then the queue needing to be refreshed is traversed, and the data request re-rendering operation of the single column is sequentially executed.
A message-driven refresh system, comprising the following modules:
module M1: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information;
module M2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if the unread message is not contained, returning to the module M1 to continue to acquire the current user information;
module M3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed.
Preferably, when the target object to be refreshed is a single element, an asynchronous request is initiated through a data interface of the element, the latest data is acquired in a callback function, and then the template rendering engine is called to locally refresh the display effect of the element.
Preferably, when the target object to be refreshed is a plurality of elements, traversing the element queue needing to be refreshed, and sequentially performing the data request re-rendering operation of a single element.
Preferably, when the target object to be refreshed is a single column, an asynchronous request is initiated through the existing parameters of the column, the latest data is acquired in the callback function, and then the template rendering engine is called to locally refresh the display effect of the column.
Preferably, when the target object to be refreshed is a type, columns meeting the conditions are found from the current space, then the queue needing to be refreshed is traversed, and the data request re-rendering operation of the single column is sequentially executed.
Compared with the prior art, the invention has the beneficial effects that:
the invention forms a uniform standard through the technology of the splitting of the module and the association of the message types, and successfully solves the problems of inconsistent display content and actual conditions, untimely update of the display content and the like. After the related data is operated, the technology can be used for realizing partial refreshing and timely updating to the latest data state, the loading speed of the technology is high, the current behavior cannot be interrupted, and the user experience is good.
Drawings
FIG. 1 is a flow chart of a refresh method driven by a message;
FIG. 2 is a schematic view of a portal page.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and fig. 2, the present invention provides a technical solution:
the method comprises the steps of splitting all areas on a portal page into elements through module splitting, wherein each element has a unique data source and can be rendered together or separately and independently. In addition, the page also provides a container with column layout, and the container is composed of N columns, as shown in FIG. 2;
after each front-end user logs in, starting a heartbeat request process, and regularly sending a request to a back end to acquire some information of the current user; and when the returned information contains unread messages, continuing to deeply analyze the messages, summarizing the messages into a queue to be refreshed according to the type of each message, and then finding a refreshed target object according to the type queue needing refreshing, wherein the target object needing refreshing can be a single element or a group of columns of the same type.
Elements:
when the target object to be refreshed is a single element, an asynchronous request is initiated through the data interface of the element, the latest data is taken in the callback function, and then the template rendering engine is called to locally refresh the display effect of the element; and when the target object of the refreshing is a plurality of elements, traversing the element queue needing refreshing and sequentially executing the operations.
Hurdles:
based on the type of incoming, a refresh range is determined.
When the target object of refresh is a single designated column, an asynchronous request is initiated through the existing parameters of the column, the latest data is taken in the callback function, and then the template rendering engine is called to locally refresh the display effect of the column.
When the target object of the refresh is a type, find the eligible column from the current space, which is generally a combination of multiple columns, and then traverse the element queue to be refreshed, and perform the data request re-rendering operation in turn.
Through the technology of module splitting and message type association, a unified standard is formed, and the problems that the display content is not consistent with the actual condition, the display content is not updated timely and the like are successfully solved. After the related data operation, the technology can be used for realizing partial refreshing and timely updating to the latest data state. The technology has high loading speed, cannot interrupt the current behavior, and has good user experience.
Application method
A message-driven refresh method, comprising the steps of:
step 1: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information;
step 2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if not, returning to the step 1 to continuously acquire the current user information;
and step 3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A message-driven refresh method, comprising the steps of:
step 1: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information;
step 2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if not, returning to the step 1 to continuously acquire the current user information;
and step 3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed.
2. A message-driven refresh method according to claim 1, characterized in that: when the target object to be refreshed is a single element, an asynchronous request is initiated through a data interface of the element, the latest data is acquired in a callback function, and then a template rendering engine is called to locally refresh the display effect of the element.
3. A message-driven refresh method according to claim 2, characterized in that: and when the target object to be refreshed is a plurality of elements, traversing the element queue needing refreshing, and sequentially executing the data request re-rendering operation of a single element.
4. A message-driven refresh method according to claim 1, characterized in that: when the target object to be refreshed is a single column, an asynchronous request is initiated through the existing parameters of the column, the latest data is obtained in a callback function, then a template rendering engine is called, and the display effect of the column is refreshed locally.
5. A message-driven refresh method according to claim 4, characterized in that: when the target object to be refreshed is a type, finding the column meeting the condition from the current space, then traversing the queue needing to be refreshed, and sequentially executing the operation of re-rendering the data request of the single column.
6. A message-driven refresh system, comprising:
module M1: after a front-end user logs in, starting a heartbeat request process, and regularly sending a request to a rear end to acquire current user information;
module M2: judging whether the obtained current user information contains unread messages or not, if so, carrying out deep analysis, and summarizing the unread messages into a queue to be refreshed according to the types of the unread messages; if the unread message is not contained, returning to the module M1 to continue to acquire the current user information;
module M3: and determining a refresh range and refreshing the target object according to the type of the unread message in the queue to be refreshed.
7. A message-driven refresh system according to claim 6, wherein: when the target object to be refreshed is a single element, an asynchronous request is initiated through a data interface of the element, the latest data is acquired in a callback function, and then a template rendering engine is called to locally refresh the display effect of the element.
8. A message-driven refresh system according to claim 7, wherein: and when the target object to be refreshed is a plurality of elements, traversing the element queue needing refreshing, and sequentially executing the data request re-rendering operation of a single element.
9. A message-driven refresh system according to claim 6, wherein: when the target object to be refreshed is a single column, an asynchronous request is initiated through the existing parameters of the column, the latest data is obtained in a callback function, then a template rendering engine is called, and the display effect of the column is refreshed locally.
10. A message-driven refresh system according to claim 9, wherein: when the target object to be refreshed is a type, finding the column meeting the condition from the current space, then traversing the queue needing to be refreshed, and sequentially executing the operation of re-rendering the data request of the single column.
CN202110621741.1A 2021-06-03 2021-06-03 Refreshing method and refreshing system driven by message Active CN113448748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110621741.1A CN113448748B (en) 2021-06-03 2021-06-03 Refreshing method and refreshing system driven by message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110621741.1A CN113448748B (en) 2021-06-03 2021-06-03 Refreshing method and refreshing system driven by message

Publications (2)

Publication Number Publication Date
CN113448748A true CN113448748A (en) 2021-09-28
CN113448748B CN113448748B (en) 2023-09-22

Family

ID=77810679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110621741.1A Active CN113448748B (en) 2021-06-03 2021-06-03 Refreshing method and refreshing system driven by message

Country Status (1)

Country Link
CN (1) CN113448748B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002958A1 (en) * 2002-06-26 2004-01-01 Praveen Seshadri System and method for providing notification(s)
US20060092857A1 (en) * 2004-11-01 2006-05-04 Lucent Technologies Inc. Softrouter dynamic binding protocol
US7155729B1 (en) * 2000-03-28 2006-12-26 Microsoft Corporation Method and system for displaying transient notifications
EP1852789A1 (en) * 2000-03-16 2007-11-07 Microsoft Corporation Priorities generation and management
US20120149342A1 (en) * 2010-12-08 2012-06-14 Gabriel Cohen Priority Inbox Notifications and Synchronization for Mobile Messaging Application
US20130031564A1 (en) * 2011-07-28 2013-01-31 Microsoft Corporation Asynchronously Refreshing, Networked Application with Single-Threaded User Interface
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN104601544A (en) * 2014-12-05 2015-05-06 中国航空工业集团公司第六三一研究所 Aviation data service communication method for airborne network service system
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106936698A (en) * 2017-04-13 2017-07-07 合肥市群智科技有限公司 A kind of pc ends instant messaging application process based on websocket
CN110457609A (en) * 2019-08-02 2019-11-15 广州虎牙科技有限公司 A kind of method, apparatus, computer equipment and the storage medium of page processing
CN111432067A (en) * 2020-03-03 2020-07-17 上海掌门科技有限公司 Unread message number processing method, unread message number processing device, unread message number processing equipment and unread message number processing medium
US10825449B1 (en) * 2019-09-27 2020-11-03 CrowdAround Inc. Systems and methods for analyzing a characteristic of a communication using disjoint classification models for parsing and evaluation of the communication
CN112214699A (en) * 2019-07-10 2021-01-12 腾讯科技(深圳)有限公司 Page processing method and related device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1852789A1 (en) * 2000-03-16 2007-11-07 Microsoft Corporation Priorities generation and management
US7155729B1 (en) * 2000-03-28 2006-12-26 Microsoft Corporation Method and system for displaying transient notifications
US20040002958A1 (en) * 2002-06-26 2004-01-01 Praveen Seshadri System and method for providing notification(s)
US20060092857A1 (en) * 2004-11-01 2006-05-04 Lucent Technologies Inc. Softrouter dynamic binding protocol
US20120149342A1 (en) * 2010-12-08 2012-06-14 Gabriel Cohen Priority Inbox Notifications and Synchronization for Mobile Messaging Application
US20130031564A1 (en) * 2011-07-28 2013-01-31 Microsoft Corporation Asynchronously Refreshing, Networked Application with Single-Threaded User Interface
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN104601544A (en) * 2014-12-05 2015-05-06 中国航空工业集团公司第六三一研究所 Aviation data service communication method for airborne network service system
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106936698A (en) * 2017-04-13 2017-07-07 合肥市群智科技有限公司 A kind of pc ends instant messaging application process based on websocket
CN112214699A (en) * 2019-07-10 2021-01-12 腾讯科技(深圳)有限公司 Page processing method and related device
CN110457609A (en) * 2019-08-02 2019-11-15 广州虎牙科技有限公司 A kind of method, apparatus, computer equipment and the storage medium of page processing
US10825449B1 (en) * 2019-09-27 2020-11-03 CrowdAround Inc. Systems and methods for analyzing a characteristic of a communication using disjoint classification models for parsing and evaluation of the communication
CN111432067A (en) * 2020-03-03 2020-07-17 上海掌门科技有限公司 Unread message number processing method, unread message number processing device, unread message number processing equipment and unread message number processing medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUMAN BANERJEE等: "Scalable Application Layer Multicast", 《2002 CONFERENCE ON APPLICATION, TECHNOLOGIES, ARCHITECTURES, AND PROTOCOLS FOR COMPUTER COMMUNICATIONS》, pages 205 - 217 *
赵东晓: "基于轮询和MQTT的私信系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 1, pages 138 - 634 *

Also Published As

Publication number Publication date
CN113448748B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US8479090B2 (en) Rich content in a browser-based work processor
US9720898B2 (en) Row heights in electronic documents
AU2011240674B2 (en) Collaborative cursors in a hosted word processor
CN109873904B (en) User message state reporting processing method, device and storage medium for message pushing
CA2795917A1 (en) Real-time collaboration in a hosted word processor
AU2011240674A1 (en) Collaborative cursors in a hosted word processor
CN105224343A (en) A kind of renewal reminding method of application program and device
CN109981715B (en) Session management method and device
CN111008246A (en) Database log synchronization method and device, computer equipment and readable storage medium
EP3407186B1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN113448748A (en) Refreshing method and refreshing system driven by message
CN109165259B (en) Index table updating method based on network attached storage, processor and storage device
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
US20140164892A1 (en) Consuming content incrementally
WO2014124127A9 (en) Methods and systems for inter-application communication
CN112818015A (en) Data tracking method, system and storage medium based on data blood margin analysis
CN110727677A (en) Method and device for tracing blood relationship of table in data warehouse
CN111143464A (en) Data acquisition method and device and electronic equipment
US20140071158A1 (en) Interface Integrating Key Peformance Indicator (KPI) to Custom Control
EP2859445A1 (en) System and method for managing network navigation
US11740867B2 (en) Data sorting method, apparatus and device, storage medium and program product
CN116610724B (en) Log data tracking method and device, electronic equipment and storage medium
CN117971872A (en) Database query method, device, equipment and storage medium
CN113761037A (en) Import and export method, device, server, medium and service system
CN115599828A (en) Information processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant