CN101620635A - Page data obtaining method and server, page updating method and server - Google Patents
Page data obtaining method and server, page updating method and server Download PDFInfo
- Publication number
- CN101620635A CN101620635A CN200910162864A CN200910162864A CN101620635A CN 101620635 A CN101620635 A CN 101620635A CN 200910162864 A CN200910162864 A CN 200910162864A CN 200910162864 A CN200910162864 A CN 200910162864A CN 101620635 A CN101620635 A CN 101620635A
- Authority
- CN
- China
- Prior art keywords
- data
- identification information
- page
- request message
- page data
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种页面数据获取方法及服务器、页面更新方法及服务器,Web服务器接收Web浏览器发送的数据获取请求消息,Web服务器根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据,然后将获取到的页面数据存储在自身的易失存储空间中。采用本发明技术方案能够解决现有技术中Web浏览器和消息服务器需要一直维持消息通路,因此耗费较多资源的问题。
The invention discloses a method for obtaining page data and a server, a method for updating a page and a server. The Web server receives a data obtaining request message sent by a Web browser, and the Web server respectively obtains corresponding page data, and then store the obtained page data in its own volatile storage space. Adopting the technical scheme of the invention can solve the problem in the prior art that the Web browser and the message server need to maintain the message path all the time, thus consuming more resources.
Description
技术领域 technical field
本发明涉及通信技术领域,特别涉及一种页面数据获取方法及服务器、页面更新方法及服务器。The invention relates to the field of communication technology, in particular to a method for obtaining page data and a server, a method for updating a page and a server.
背景技术 Background technique
在网页(Web)系统中,当Web浏览器访问页面时,通常需要页面能够实时显示网元上报的实时数据,这就需要页面能够进行动态更新,现有的页面动态更新方法如下:In a webpage (Web) system, when a web browser accesses a page, it is usually required that the page can display the real-time data reported by the network element in real time, which requires the page to be able to be dynamically updated. The existing page dynamic update method is as follows:
Web服务器从消息服务器订阅实时数据,并建立消息服务器到Web服务器之间的连接,Web浏览器利用从Web服务器下载到页面的客户端代理与Web服务器之间的套接字(socket)连接,建立Web浏览器与Web服务器之间的持久连接,利用客户端代理与Web浏览器之间的信息交互实现页面的本地更新,建立一条从消息服务器到Web浏览器之间的消息通路,将网元上报的实时数据通过此消息通路实时的显示于Web浏览器之上。The web server subscribes real-time data from the message server, and establishes a connection between the message server and the web server. The persistent connection between the Web browser and the Web server uses the information interaction between the client agent and the Web browser to realize the local update of the page, establishes a message path from the message server to the Web browser, and reports the network element to the The real-time data is displayed on the Web browser in real time through this message channel.
采用上述方法为Web浏览器提供实时页面数据时,需要在Web浏览器与Web服务器之间使用socket建立持久性连接,那么消息服务器与Web浏览器之间就存在一条消息通路,消息服务器可以将Web浏览器所访问的页面需更新的页面数据通过此消息通路发送给Web浏览器,但是Web浏览器和消息服务器就需要一直维持该消息通路,这样就耗费了较多的资源。When the above method is used to provide real-time page data for the Web browser, a persistent connection needs to be established between the Web browser and the Web server using a socket, then there is a message path between the message server and the Web browser, and the message server can send the Web The page data to be updated of the page visited by the browser is sent to the web browser through this message path, but the web browser and the message server need to maintain the message path all the time, which consumes more resources.
发明内容 Contents of the invention
本发明实施例提供一种页面数据获取方法及服务器、页面更新方法及服务器,用以解决现有技术中Web浏览器和消息服务器需要一直维持消息通路,因此耗费较多资源的问题。Embodiments of the present invention provide a page data acquisition method and server, a page update method and server, to solve the problem in the prior art that Web browsers and message servers need to maintain message paths all the time, thus consuming more resources.
本发明实施例技术方案如下:The technical scheme of the embodiment of the present invention is as follows:
一种页面数据获取方法,该方法包括步骤:网页Web服务器接收Web浏览器发送的数据获取请求消息;以及根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据;并将获取到的页面数据存储在自身的易失存储空间中。A method for acquiring page data, the method comprising steps: a webpage web server receives a data acquisition request message sent by a web browser; and according to each data acquisition request message, respectively acquires corresponding page data from a service processor; and acquires The received page data is stored in its own volatile storage space.
一种服务器,包括:接收单元,用于接收网页Web浏览器发送的数据获取请求消息;数据获取单元,用于根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据;数据存储单元,用于将数据获取单元获取到的页面数据存储在所述服务器的易失存储空间中。A server, comprising: a receiving unit, configured to receive a data acquisition request message sent by a webpage web browser; a data acquisition unit, configured to acquire corresponding page data from a service processor according to each data acquisition request message; The storage unit is configured to store the page data obtained by the data obtaining unit in the volatile storage space of the server.
一种页面更新方法,该方法包括步骤:网页Web服务器接收Web浏览器定时发送的页面更新请求消息;所述Web服务器根据每个页面更新请求消息,分别在自身的易失存储空间中查找对应的页面数据;并将查找到的页面数据发送给发送该页面更新请求消息的Web浏览器;Web浏览器根据接收到的页面数据,对需更新的页面数据进行更新。A method for updating a page, the method comprising steps: a webpage web server receives a page update request message regularly sent by a web browser; and the web server searches for a corresponding page update request message in its own volatile storage space according to each page update request message. page data; and send the found page data to the web browser that sends the page update request message; the web browser updates the page data to be updated according to the received page data.
一种服务器,包括:接收单元,用于接收网页Web浏览器定时发送的页面更新请求消息;数据查找单元,用于根据每个页面更新请求消息,分别在所述服务器的易失存储空间中查找对应的页面数据;发送单元,用于将数据查找单元查找到的页面数据发送给发送该页面更新请求消息的Web浏览器。A server, comprising: a receiving unit, configured to receive a page update request message regularly sent by a web browser; a data search unit, configured to search in the volatile storage space of the server according to each page update request message Corresponding page data; a sending unit, configured to send the page data found by the data search unit to the web browser that sends the page update request message.
本发明实施例技术方案中,Web服务器首先接收Web浏览器分别发送的数据获取请求消息,然后Web服务器根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据,并将获取到的页面数据存储在自身的易失存储空间中,这样Web服务器的易失存储空间中就存储了需更新的页面数据;Web服务器在接收到Web浏览器定时发送的页面更新请求消息后,根据每个页面更新请求消息,分别在自身的易失存储空间中查找对应的页面数据,并将查找到的页面数据发送给发送该页面更新请求消息的Web浏览器,Web浏览器可以根据接收到的页面数据,对需更新的页面数据进行更新,这样Web服务器就可以在Web浏览器请求进行页面更新时,将存储在易失存储空间中的页面数据分别发送给对应的Web浏览器,不再需要一直维持一个消息通路,而是在Web浏览器请求时才发送数据,这样就有效的节省了资源,且提高了页面更新的效率。In the technical solution of the embodiment of the present invention, the Web server first receives the data acquisition request messages sent by the Web browsers respectively, and then the Web server obtains the corresponding page data from the service processor according to each data acquisition request message, and obtains the obtained The page data is stored in its own volatile storage space, so that the volatile storage space of the Web server stores the page data to be updated; after the Web server receives the page update request message sent regularly by the Web browser, it Each page update request message is searched for the corresponding page data in its own volatile storage space, and the found page data is sent to the web browser that sends the page update request message, and the web browser can receive the page according to the received page data. Data, to update the page data to be updated, so that the web server can send the page data stored in the volatile storage space to the corresponding web browser when the web browser requests page update, no longer need to keep Maintain a message path, but only send data when the web browser requests it, which effectively saves resources and improves the efficiency of page updates.
附图说明 Description of drawings
图1为本发明实施例中,页面数据获取方法流程示意图;FIG. 1 is a schematic flow diagram of a page data acquisition method in an embodiment of the present invention;
图2为本发明实施例中,页面更新方法流程示意图;FIG. 2 is a schematic flow chart of a page update method in an embodiment of the present invention;
图3为本发明实施例中,服务器结构示意图;FIG. 3 is a schematic diagram of a server structure in an embodiment of the present invention;
图4为本发明实施例中,服务器结构示意图。FIG. 4 is a schematic structural diagram of a server in an embodiment of the present invention.
具体实施方式 Detailed ways
下面结合各个附图对本发明实施例技术方案的主要实现原理、具体实施方式及其对应能够达到的有益效果进行详细的阐述。The main realization principles, specific implementation modes and corresponding beneficial effects that can be achieved of the technical solutions of the embodiments of the present invention will be described in detail below in conjunction with each accompanying drawing.
如图1所示,若为本发明实施例中页面数据获取方法流程图,其具体处理过程如下:As shown in Figure 1, if it is a flowchart of the page data acquisition method in the embodiment of the present invention, its specific processing process is as follows:
步骤11,Web服务器接收Web浏览器发送的数据获取请求消息,Web浏览器所访问的页面的页面数据进行更新时,Web浏览器需要获取该页面的实时页面数据,而业务处理机中存储的页面数据是与数据源标识信息对应存储的,因此Web浏览器需要通过页面的页面数据对应的数据源标识信息获取相应的页面数据,因此本发明实施例中,Web服务器接收Web浏览器发送的数据获取请求消息可以但不限于为下述两种实施情况:
第一种实施情况:对一指定的Web浏览器所访问的页面的页面数据进行更新时,步骤11中Web服务器接收一指定Web浏览器发送的数据获取请求消息,该数据获取请求消息中只需包含需要更新的页面数据所对应的数据源标识信息即可,由于每个Web浏览器可以同时访问至少一个页面,而每个页面的页面数据都分别对应一个数据源,因此数据获取请求消息中可以包含至少一个数据源标识信息;The first kind of implementation situation: when updating the page data of the page visited by a designated Web browser, in
第二种实施情况:对至少两个Web浏览器所访问的页面的页面数据进行更新时,步骤11中Web服务器接收至少两个Web浏览器分别发送的数据获取请求消息,每个数据获取请求消息中包含发送该数据获取请求消息的Web浏览器对应的浏览器标识信息以及该Web浏览器需更新的页面数据所对应的数据源标识信息,其中每个数据获取请求消息中都包含一个浏览器标识信息以及至少一个数据源标识信息。The second implementation situation: when the page data of the pages visited by at least two Web browsers is updated, the Web server receives the data acquisition request messages sent by at least two Web browsers respectively in
步骤12,Web服务器根据接收到的每个数据获取请求消息,分别从业务处理机中获取对应的页面数据;
本发明实施例中,Web服务器可以但不限于针对每个数据获取请求消息中的每个数据源标识信息,根据该数据源标识信息,从业务处理机中获取对应的页面数据,其中,由于每个页面的页面数据可能分别存储在不同的业务处理机中,因此Web服务器在接收到数据获取请求消息后,针对接收到的每个页面更新请求消息中的每个数据源标识信息,分别根据该数据源标识信息,在所有业务处理机中,确定出存储有该数据源标识信息对应的页面数据的业务处理机,然后将该数据源标识信息发送给确定出的业务处理机,该业务处理机接收到数据源标识信息后,在自身存储的页面数据中查找与该数据源标识信息对应的页面数据,然后将查找到的页面数据发送给Web服务器,当数据获取请求消息中包含至少两个数据源标识信息时,针对每个数据源标识信息,业务处理机也可以将该数据源标识信息和查找到的页面数据对应发送给Web服务器。In the embodiment of the present invention, the Web server may, but not limited to, obtain the corresponding page data from the service processor according to each data source identification information in each data acquisition request message. The page data of each page may be stored in different service processors respectively. Therefore, after receiving the data acquisition request message, the web server updates each data source identification information in the request message for each page received, respectively according to the For data source identification information, among all business processors, determine the business processor that stores the page data corresponding to the data source identification information, and then send the data source identification information to the determined business processor, and the business processor After receiving the data source identification information, search for the page data corresponding to the data source identification information in the page data stored by itself, and then send the found page data to the Web server. When the data acquisition request message contains at least two data For the source identification information, for each data source identification information, the service processor may also send the data source identification information and the found page data to the Web server correspondingly.
针对上述第二种实施情况,由于至少两个Web浏览器都向Web服务器发送了数据获取请求消息,因此Web服务器需要确定业务处理机发送的页面数据是针对哪个Web浏览器的,以便后续Web服务器将页面数据发送给对应的Web浏览器,因此针对每个数据获取请求消息中的每个数据源标识信息,Web服务器还进一步将该数据获取请求消息中携带的浏览器标识信息发送给相应的业务处理机,业务处理机在查找到页面数据后,将该浏览器标识信息、该数据源标识信息和查找到的页面数据对应发送给Web服务器。For the above-mentioned second implementation situation, since at least two web browsers have all sent data acquisition request messages to the web server, the web server needs to determine which web browser the page data sent by the service processor is for, so that the subsequent web server Send the page data to the corresponding web browser, so for each data source identification information in each data acquisition request message, the web server further sends the browser identification information carried in the data acquisition request message to the corresponding business The processor, after finding the page data, the service processor sends the browser identification information, the data source identification information and the found page data to the Web server correspondingly.
此外,Web服务器接收的数据获取请求消息中还可能携带有时间间隔信息,此时Web服务器将该时间间隔信息一并发送给相应的业务处理机,业务处理机后续可以基于该时间间隔信息对应的时间间隔向Web服务器发送页面数据,同时Web服务器可以在每个时间间隔内向业务处理机发送心跳信息,当业务处理机连续N个时间间隔内都没有收到Web服务器的心跳信息时,业务处理机停止向Web服务器发送页面数据,其中N的值可以预先设定,那么当Web服务器出现故障时,业务处理机不会一直向Web服务器发送页面数据,这就有效的节省了传输资源。In addition, the data acquisition request message received by the Web server may also carry time interval information. At this time, the Web server sends the time interval information to the corresponding service processor, and the service processor can follow up based on the time interval information. time interval to send page data to the Web server, and the Web server can send heartbeat information to the business processor in each time interval, when the business processor does not receive the heartbeat information from the Web server for N consecutive time intervals, the business processor Stop sending page data to the Web server, wherein the value of N can be preset, so when the Web server breaks down, the business processor will not send page data to the Web server all the time, which effectively saves transmission resources.
步骤13,Web服务器将获取到的页面数据存储在自身的易失存储空间中。
针对上述第一种实施情况,Web服务器针对接收到的每个数据源标识信息,将该数据源标识信息和从业务处理机中获取到的页面数据对应存储在自身的易失存储空间中;For the above-mentioned first implementation situation, for each data source identification information received, the web server stores the data source identification information and the page data obtained from the service processor in its own volatile storage space;
针对上述第二种实施情况,Web服务器针对接收到的每个数据获取请求消息中的每个数据源标识信息,将该数据获取请求消息中携带的浏览器标识信息、该数据源标识信息和获取到的页面数据对应存储在自身的易失存储空间中。For the above second implementation situation, for each data source identification information in each data acquisition request message received, the web server will obtain the browser identification information carried in the data acquisition request message, the data source identification information and the The received page data is correspondingly stored in its own volatile storage space.
本发明实施例中,将页面数据存储在易失存储空间中,相当于将页面数据进行缓存,这样Web服务器后续就可以向Web浏览器发送相应的页面数据。In the embodiment of the present invention, storing the page data in the volatile storage space is equivalent to caching the page data, so that the web server can subsequently send the corresponding page data to the web browser.
若Web浏览器停止对页面数据的更新,则Web浏览器向Web服务器发送数据获取停止消息,Web服务器向相应的业务处理机发送数据获取停止消息,业务处理机接收到该消息后,不再向Web服务器发送页面数据,Web服务器可以进一步删除缓存的对应该Web浏览器的页面数据。If the Web browser stops updating the page data, the Web browser sends a data acquisition stop message to the Web server, and the Web server sends a data acquisition stop message to the corresponding service processor. The web server sends the page data, and the web server may further delete the cached page data corresponding to the web browser.
此外,如果Web服务器在预设的时间段内没有接收到业务处理机发送的页面数据,则确认该业务处理机发生故障,此时Web服务器向Web浏览器发送故障消息。In addition, if the web server does not receive the page data sent by the service processor within a preset period of time, it is confirmed that the service processor is faulty, and at this time the web server sends a fault message to the web browser.
本发明实施例中,浏览器标识信息可以由Web浏览器携带在数据获取请求消息中发送给Web服务器,也可以由Web服务器在接收到数据获取请求消息后为每个Web浏览器分别分配一个标识信息,然后再发送给相应的Web浏览器。In the embodiment of the present invention, the browser identification information can be carried by the web browser in the data acquisition request message and sent to the web server, or the web server can assign an identification to each web browser after receiving the data acquisition request message information before sending it to the appropriate web browser.
如图2所示,为本发明实施例中页面更新方法流程图,其具体处理过程如下:As shown in Figure 2, it is a flow chart of the page update method in the embodiment of the present invention, and its specific processing process is as follows:
步骤21,Web服务器接收Web浏览器定时发送的页面更新请求消息;
若对至少两个Web浏览器访问的页面的页面数据进行更新,则Web服务器接收到的页面更新请求消息中包含发送该消息的Web浏览器对应的浏览器标识信息。If the page data of the page accessed by at least two web browsers is updated, the page update request message received by the web server includes browser identification information corresponding to the web browser sending the message.
本发明实施例中,Web浏览器可以但不限于通过javascript脚本定时调用直接网页远程调用(DWR,Direct Web Remotinig),来定时向Web服务器发送页面更新请求消息,由于javascript脚本不需要在java环境中执行,因此Web浏览器不需要下载Applet等客户端,这就有效提高了页面更新的处理效率。In the embodiment of the present invention, the web browser can, but not limited to, regularly invoke direct web page remote calls (DWR, Direct Web Remotinig) through the javascript script to regularly send the page update request message to the web server, because the javascript script does not need to be in the java environment Therefore, the Web browser does not need to download clients such as Applets, which effectively improves the processing efficiency of page updates.
步骤22,Web服务器将在自身的易失存储空间中存储的页面数据发送给Web浏览器;
若只对一指定的Web浏览器访问的页面的页面数据进行更新,则Web服务器将在自身的易失存储空间中存储的数据源标识信息和页面数据的对应关系发送给该Web浏览器;If only the page data of the page accessed by a specified web browser is updated, the web server will send the corresponding relationship between the data source identification information and the page data stored in its own volatile storage space to the web browser;
若对至少两个Web浏览器访问的页面的页面数据进行更新,则针对每个浏览器标识信息,Web服务器根据该浏览器标识信息,在自身的易失存储空间中查找与该浏览器标识信息对应的数据源标识信息和页面数据的对应关系,并将查找到的数据源标识信息和页面数据的对应关系发送给该浏览器标识信息对应的Web浏览器。If the page data of the pages accessed by at least two web browsers is updated, then for each browser identification information, the web server searches for the browser identification information in its own volatile storage space according to the browser identification information The corresponding relationship between the data source identification information and the page data, and the found correspondence between the data source identification information and the page data are sent to the web browser corresponding to the browser identification information.
步骤23,Web浏览器根据接收到的页面数据,对需更新的页面数据进行更新。
Web浏览器根据接收到的数据源标识信息和页面数据的对应关系,对需更新的页面数据进行更新。The web browser updates the page data to be updated according to the corresponding relationship between the received data source identification information and the page data.
此外,Web浏览器还可以判断获取到的页面数据是否为空,具体为:Web浏览器判断此次获取到的页面数据是否为空,若不为空,则根据该页面数据进行更新,若为空,则进一步判断获取的页面数据为空的次数是否超过预设的阈值,若超过,则停止向Web服务器发送页面更新请求消息,若没有超过,则继续发送页面更新请求消息。In addition, the web browser can also judge whether the obtained page data is empty, specifically: the web browser judges whether the obtained page data is empty, if not, update according to the page data, if it is Empty, then further judge whether the number of page data obtained is empty exceeds the preset threshold, if exceeded, then stop sending the page update request message to the Web server, if not exceed, then continue to send the page update request message.
本发明实施例中,Web服务器可以但不限于将已经发送给Web浏览器的页面数据删除。In the embodiment of the present invention, the web server may, but is not limited to, delete the page data that has been sent to the web browser.
由上述处理过程可知,本发明实施例技术方案中,Web服务器首先接收Web浏览器分别发送的数据获取请求消息,然后Web服务器根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据,并将获取到的页面数据存储在自身的易失存储空间中,这样Web服务器的易失存储空间中就存储了需更新的页面数据;Web服务器在接收到Web浏览器定时发送的页面更新请求消息后,根据每个页面更新请求消息,分别在自身的易失存储空间中查找对应的页面数据,并将查找到的页面数据发送给发送该页面更新请求消息的Web浏览器,Web浏览器可以根据接收到的页面数据,对需更新的页面数据进行更新,这样Web服务器就可以在Web浏览器请求进行页面更新时,将存储在易失存储空间中的页面数据分别发送给对应的Web浏览器,不再需要一直维持一个消息通路,而是在Web浏览器请求时才发送数据,这样就有效的节省了资源,且提高了页面更新的效率。It can be seen from the above processing that in the technical solution of the embodiment of the present invention, the Web server first receives the data acquisition request messages sent by the Web browsers respectively, and then the Web server obtains the corresponding page from the service processor according to each data acquisition request message. data, and store the obtained page data in its own volatile storage space, so that the volatile storage space of the Web server stores the page data to be updated; the Web server receives the page update regularly sent by the Web browser After the request message, according to each page update request message, search for the corresponding page data in its own volatile storage space, and send the found page data to the web browser that sends the page update request message, and the web browser According to the received page data, the page data to be updated can be updated, so that the web server can send the page data stored in the volatile storage space to the corresponding web browser when the web browser requests page update. The server no longer needs to maintain a message path all the time, but only sends data when the Web browser requests it, which effectively saves resources and improves the efficiency of page updates.
针对页面数据获取方法,本发明实施例提供一种服务器,如图3所示,包括接收单元31、数据获取单元32和数据存储单元33,其中:For the page data acquisition method, an embodiment of the present invention provides a server, as shown in FIG. 3 , including a receiving unit 31, a data acquiring unit 32, and a data storage unit 33, wherein:
接收单元31,用于接收Web浏览器发送的数据获取请求消息;The receiving unit 31 is configured to receive the data acquisition request message sent by the Web browser;
数据获取单元32,用于根据每个数据获取请求消息,分别从业务处理机中获取对应的页面数据;A data acquisition unit 32, configured to acquire corresponding page data from the service processor according to each data acquisition request message;
数据存储单元33,用于将数据获取单元32获取到的页面数据存储在该服务器的易失存储空间中。The data storage unit 33 is configured to store the page data obtained by the data obtaining unit 32 in the volatile storage space of the server.
较佳地,接收单元31接收到的每个数据获取请求消息中分别携带有发送该数据获取请求消息的Web浏览器对应的浏览器标识信息和需更新的页面数据所对应的数据源标识信息;数据获取单元32针对接收单元31接收的每个数据获取请求消息中的每个数据源标识信息,根据该数据源标识信息,从业务处理机中获取对应的页面数据;数据存储单元33针对接收单元31接收的每个数据获取请求消息中的每个数据源标识信息,将该数据获取请求消息中携带的浏览器标识信息、该数据源标识信息以及数据获取单元32根据该数据源标识信息获取到的页面数据对应存储在该服务器的易失存储空间中。Preferably, each data acquisition request message received by the receiving unit 31 respectively carries the browser identification information corresponding to the Web browser sending the data acquisition request message and the data source identification information corresponding to the page data to be updated; For each data source identification information in each data acquisition request message received by the receiving unit 31, the data acquisition unit 32 acquires corresponding page data from the service processor according to the data source identification information; For each data source identification information in each data acquisition request message received at 31, the browser identification information carried in the data acquisition request message, the data source identification information, and the data acquisition unit 32 acquire the data source identification information according to the data source identification information. The page data of is correspondingly stored in the volatile storage space of the server.
更佳地,数据获取单元32具体包括确定子单元和数据获取子单元,其中确定子单元,用于针对接收单元31接收的每个数据获取请求消息中的每个数据源标识信息,根据该数据源标识信息,在所有业务处理机中,确定出存储有该数据源标识信息对应的页面数据的业务处理机;数据获取子单元,用于从确定子单元确定出的业务处理机中获取对应的页面数据。More preferably, the data acquisition unit 32 specifically includes a determination subunit and a data acquisition subunit, wherein the determination subunit is used for each data source identification information in each data acquisition request message received by the receiving unit 31, according to the data Source identification information, among all business processors, determine the business processor that stores the page data corresponding to the data source identification information; the data acquisition subunit is used to obtain the corresponding page data from the business processor determined by the determination subunit page data.
更佳地,接收单元31接收到的数据获取请求消息中还携带有时间间隔信息,此时数据获取单元32具体包括发送子单元接收子单元,其中发送子单元,用于针对接收单元31接收的每个数据获取请求消息中的每个数据源标识信息,将该数据源标识信息和该数据获取请求消息中携带的时间间隔信息发送给对应的业务处理机;接收子单元,用于接收该业务处理机基于上述时间间隔信息对应的时间间隔发送的页面数据,上述页面数据是该业务处理机根据接收的数据源标识信息查找到的。Preferably, the data acquisition request message received by the receiving unit 31 also carries time interval information. At this time, the data acquiring unit 32 specifically includes a sending subunit and a receiving subunit, wherein the sending subunit is used for receiving by the receiving unit 31. For each data source identification information in each data acquisition request message, send the data source identification information and the time interval information carried in the data acquisition request message to the corresponding service processor; the receiving subunit is used to receive the service The page data sent by the processor based on the time interval corresponding to the above time interval information, the above page data is found by the service processor according to the received data source identification information.
针对页面更新方法,本发明实施例提供一种服务器,如图4所示,包括接收单元41、数据查找单元42和发送单元43,其中:For the page update method, an embodiment of the present invention provides a server, as shown in FIG. 4 , including a receiving
接收单元41,用于接收Web浏览器定时发送的页面更新请求消息;The receiving
数据查找单元42,用于根据每个页面更新请求消息,分别在该服务器的易失存储空间中查找对应的页面数据;A
发送单元43,用于将数据查找单元42查找到的页面数据发送给发送该页面更新请求消息的Web浏览器。The sending
较佳地,接收单元41接收到的每个页面更新请求消息中分别携带有发送该页面更新请求消息的Web浏览器对应的浏览器标识信息;数据查找单元42针对每个浏览器标识信息,根据该浏览器标识信息,在上述服务器的易失存储空间中查找与该浏览器标识信息对应的数据源标识信息和页面数据的对应关系;发送单元43针对每个浏览器标识信息,将数据查找单元42根据该浏览器标识信息查找到的数据源标识信息和页面数据的对应关系发送给该浏览器标识信息对应的Web浏览器。Preferably, each page update request message received by the receiving
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (13)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910162864A CN101620635A (en) | 2009-08-07 | 2009-08-07 | Page data obtaining method and server, page updating method and server |
| PCT/CN2009/075410 WO2011015009A1 (en) | 2009-08-07 | 2009-12-08 | Method and server for obtaining page data, and method and server for updating page |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910162864A CN101620635A (en) | 2009-08-07 | 2009-08-07 | Page data obtaining method and server, page updating method and server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101620635A true CN101620635A (en) | 2010-01-06 |
Family
ID=41513869
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910162864A Pending CN101620635A (en) | 2009-08-07 | 2009-08-07 | Page data obtaining method and server, page updating method and server |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101620635A (en) |
| WO (1) | WO2011015009A1 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011088711A1 (en) * | 2010-01-21 | 2011-07-28 | 腾讯科技(深圳)有限公司 | Method and system for updating web page data |
| CN103338236A (en) * | 2013-06-06 | 2013-10-02 | 合一网络技术(北京)有限公司 | Concurrent data acquisition method and concurrent data acquisition system |
| WO2013185557A1 (en) * | 2012-06-14 | 2013-12-19 | 腾讯科技(深圳)有限公司 | Method and system for page display, service-end device, client device and storage medium |
| CN104331306A (en) * | 2014-10-14 | 2015-02-04 | 北京齐尔布莱特科技有限公司 | Content updating method, equipment and system |
| CN104636392A (en) * | 2013-11-13 | 2015-05-20 | 腾讯科技(北京)有限公司 | Method and system for issuing recommending information, server and browser |
| CN106325925A (en) * | 2016-08-18 | 2017-01-11 | 乐视控股(北京)有限公司 | Browser service information updating method and device |
| US10686786B2 (en) * | 2016-08-12 | 2020-06-16 | Alibaba Group Holding Limited | Authentication method, device and authentication client |
| CN111897612A (en) * | 2020-07-31 | 2020-11-06 | 平安普惠企业管理有限公司 | Page updating method and device, electronic equipment and storage medium |
| CN113783830A (en) * | 2020-12-21 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and apparatus for data communication |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| SG10201912639SA (en) * | 2010-08-02 | 2020-02-27 | Regeneron Pharma | Mice that make binding proteins comprising vl domains |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB0326915D0 (en) * | 2003-11-19 | 2003-12-24 | Ibm | A method and system for updating/reloading the content of pages browsed over a network |
| CN101192216B (en) * | 2006-11-28 | 2010-08-04 | 中兴通讯股份有限公司 | Realization method of interaction between static page control and WEB server and WEB server |
-
2009
- 2009-08-07 CN CN200910162864A patent/CN101620635A/en active Pending
- 2009-12-08 WO PCT/CN2009/075410 patent/WO2011015009A1/en not_active Ceased
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011088711A1 (en) * | 2010-01-21 | 2011-07-28 | 腾讯科技(深圳)有限公司 | Method and system for updating web page data |
| US10169302B2 (en) | 2012-06-14 | 2019-01-01 | Tencent Technology (Shenzhen) Company Limited | Method and system for page display, server-end device, client device and storage medium |
| WO2013185557A1 (en) * | 2012-06-14 | 2013-12-19 | 腾讯科技(深圳)有限公司 | Method and system for page display, service-end device, client device and storage medium |
| CN103491066A (en) * | 2012-06-14 | 2014-01-01 | 腾讯科技(深圳)有限公司 | Method, system, server side equipment and client side equipment for page displaying |
| CN103491066B (en) * | 2012-06-14 | 2016-03-16 | 腾讯科技(深圳)有限公司 | The method that the page shows, system, server device and client device |
| CN103338236A (en) * | 2013-06-06 | 2013-10-02 | 合一网络技术(北京)有限公司 | Concurrent data acquisition method and concurrent data acquisition system |
| CN103338236B (en) * | 2013-06-06 | 2016-03-30 | 合一网络技术(北京)有限公司 | A kind of concurrent data acquisition methods and system |
| CN104636392A (en) * | 2013-11-13 | 2015-05-20 | 腾讯科技(北京)有限公司 | Method and system for issuing recommending information, server and browser |
| CN104636392B (en) * | 2013-11-13 | 2018-07-27 | 腾讯科技(北京)有限公司 | Carry out method, system, server and browser that recommendation information issues |
| CN104331306A (en) * | 2014-10-14 | 2015-02-04 | 北京齐尔布莱特科技有限公司 | Content updating method, equipment and system |
| CN104331306B (en) * | 2014-10-14 | 2017-05-10 | 北京齐尔布莱特科技有限公司 | Content updating method, equipment and system |
| US10686786B2 (en) * | 2016-08-12 | 2020-06-16 | Alibaba Group Holding Limited | Authentication method, device and authentication client |
| CN106325925A (en) * | 2016-08-18 | 2017-01-11 | 乐视控股(北京)有限公司 | Browser service information updating method and device |
| CN111897612A (en) * | 2020-07-31 | 2020-11-06 | 平安普惠企业管理有限公司 | Page updating method and device, electronic equipment and storage medium |
| CN113783830A (en) * | 2020-12-21 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and apparatus for data communication |
| CN113783830B (en) * | 2020-12-21 | 2024-05-28 | 北京沃东天骏信息技术有限公司 | Method and apparatus for data communication |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2011015009A1 (en) | 2011-02-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101620635A (en) | Page data obtaining method and server, page updating method and server | |
| US11909639B2 (en) | Request routing based on class | |
| US10412176B2 (en) | Website access method, apparatus, and website system | |
| CN103856569B (en) | A kind of method and apparatus of synchronous domain name system asset information | |
| CN113452808B (en) | Domain name resolution method, device, equipment and storage medium | |
| EP2985705A2 (en) | Webpage access method and apparatus, and router | |
| CN103139279B (en) | file access method and system | |
| CN101287013B (en) | Method for updating Webpage and Web proxy device | |
| US9590947B2 (en) | IP management method, client and server | |
| CN103916277B (en) | The method and apparatus that realization does not interrupt forwarding service when restarting | |
| CN106790629A (en) | Data synchronization unit and its realize the method for data syn-chronization, client access system | |
| CN102111449A (en) | Method, device and system for updating data | |
| CN101616132A (en) | A data acquisition method and its device and system | |
| CN103780714A (en) | Method and apparatus for probing DNS server | |
| CN105653198A (en) | Data processing method and device | |
| CN109167840B (en) | Task pushing method, node autonomous server and edge cache server | |
| CN103516785A (en) | Web page proxy system and communication method thereof | |
| CN102355500A (en) | Business pushing method and device | |
| CN109302437B (en) | Method and device for redirecting website | |
| CN106357539A (en) | Data acquisition method and equipment | |
| US20070214209A1 (en) | Platform and method for mobile servers | |
| CN111221469A (en) | Method, device and system for synchronizing cache data | |
| CN115033656B (en) | Data processing method and device based on map caching technology and electronic device | |
| WO2019041670A1 (en) | Method, device and system for reducing frequency of functional page requests, and storage medium | |
| CN104283920A (en) | Use method, server, terminal and system for Webapp router |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100106 |