TWI496006B - Data updating method, device and system - Google Patents
Data updating method, device and system Download PDFInfo
- Publication number
- TWI496006B TWI496006B TW099117216A TW99117216A TWI496006B TW I496006 B TWI496006 B TW I496006B TW 099117216 A TW099117216 A TW 099117216A TW 99117216 A TW99117216 A TW 99117216A TW I496006 B TWI496006 B TW I496006B
- Authority
- TW
- Taiwan
- Prior art keywords
- user
- information
- identification information
- preset condition
- specified
- Prior art date
Links
Landscapes
- Information Transfer Between Computers (AREA)
Description
本申請涉及網際網路技術,特別涉及一種資料更新的方法、裝置及系統。The present application relates to internet technology, and in particular, to a method, device and system for updating data.
目前,在類目繁多的網際網路業務中,很多業務都是圍繞著用戶資料儲存和用戶資料更新而進行的。在何時以何種方式進行用戶資料儲存,以及在何時以何種方式進行用戶資料更新,對於網站而言至關重要,因為提供準確、及時、豐富的資料資訊將會提升網站服務的性能,從而提高網站服務質量,這也就給網站開發和運行維護帶來了更高的挑戰。At present, in a wide variety of Internet services, many businesses are carried out around user data storage and user data updates. When and how to store user data, and when and how to update user profiles is critical to the site, as providing accurate, timely, and rich information will improve the performance of the site’s services. Improve the quality of website services, which brings more challenges to website development and operation and maintenance.
現有技術下,在網際網路系統中,用戶訪問網站時,進行用戶資料更新的方法包括以下四種:In the prior art, in the Internet system, when a user visits a website, the method for updating the user data includes the following four methods:
1)用戶停等的同步方式。即是在用戶訪問網頁頁面時,網站伺服器執行代碼按照邏輯逐步執行,從用戶身份識別,到業務資料的獲取,再到業務資料的邏輯組織和展現構造,最終完成資料的更新。1) The synchronization mode in which the user stops. That is, when the user visits the webpage page, the web server execution code is executed step by step, from the user identification to the acquisition of the business data, to the logical organization and presentation structure of the business data, and finally the data update is completed.
這種方法的典型特徵是:網站伺服器停等和按佇列一步一步執行,直到各步驟都完成,用戶才能看到希望訪問的網頁頁面。這種方法的優點是資料資訊準確而即時;而缺點是當存在執行較慢的邏輯步驟時,需要用戶等待的時間較長,甚至會因超時而無結果出現,從而令網站的服務 質量降低。因此,這種方法只適合處理邏輯簡單,能快速獲得的資料頁面。The typical feature of this method is that the web server stops and waits step by step until the steps are completed, and the user can see the web page that he wants to visit. The advantage of this method is that the data information is accurate and immediate; the disadvantage is that when there are slow logic steps, the user needs to wait for a long time, and even the timeout will result in no result, thus making the website service The quality is reduced. Therefore, this method is only suitable for processing data pages that are simple in logic and can be quickly obtained.
2)AJAX的非同步方式。AJAX全稱為“Asynchronous JavaScript and XML”(非同步JavaScript和XML),是一種建立互動式網頁應用的網頁開發技術。2) AJAX's asynchronous mode. AJAX, dubbed "Asynchronous JavaScript and XML" (asynchronous JavaScript and XML), is a web development technology for building interactive web applications.
這種方法的典型特徵是:網站伺服器先執行簡單的邏輯處理和資料展現,而同時卻通過AJAX非同步技術執行複雜、長時間的邏輯處理,執行完成後對之前展現部分資料的頁面進行更新,從而完成最終的資料展現。這種方法的優點是能夠更為有效、及時地更新基於各種業務的用戶資料,並且不影響系統當前的運行,亦不影響用戶當前的使用感受。是大大提高了用戶的使用感受,但是,這種方法並沒有從根本上改變用戶需要經過長時間等待,才能獲得經過複雜邏輯處理的業務資料的本質。The typical feature of this method is that the web server first performs simple logic processing and data presentation, while at the same time, it performs complex and long-term logic processing through AJAX non-synchronization technology. After the execution is completed, the page that previously displayed some data is updated. To complete the final data presentation. The advantage of this method is that it can update the user data based on various services more effectively and timely, and does not affect the current operation of the system, nor does it affect the user's current usage experience. It greatly improves the user experience, but this method does not fundamentally change the nature of the business data that the user needs to wait for a long time to obtain the complex logic.
3)定期預先構造資料的方式。即網站伺服器預先完成每個用戶訪問其業務頁面時所需的邏輯處理,並將獲得的資料保存起來,在用戶訪問時,將已構造好的資料迅速展現給用戶。3) The method of pre-constructing data on a regular basis. That is, the web server pre-completes the logical processing required for each user to access its business page, and saves the obtained data, and promptly presents the constructed data to the user when the user accesses.
這種方法的優點同樣是大大提高了用戶的使用感受,而缺點是用戶資訊不能即時更新,並且對所有的用戶都進行資料的預先構造,使得系統資源消耗過大,尤其是新業務的增加會導致系統複雜度和資源消耗成倍增加。The advantage of this method is also greatly improved the user's experience, but the disadvantage is that the user information can not be updated in real time, and the pre-construction of the data for all users, so that the system resources consumption is too large, especially the increase of new services will lead to System complexity and resource consumption have multiplied.
4)資料暫存法。即當暫存中的資料不存在或者暫存資料過期失效的時候,系統就按照方法1)或者方法2) 執行資料更新,同時把複雜耗時的邏輯資料放到暫存系統中暫存起來,當用戶下次訪問的時候,直接從暫存中讀取即可。4) Data temporary storage method. That is, when the data in the temporary storage does not exist or the temporary storage data expires, the system follows Method 1) or Method 2) The data is updated, and the complicated and time-consuming logic data is temporarily stored in the temporary storage system. When the user accesses the next time, it can be read directly from the temporary storage.
這種方法的優點是提高了用戶的使用感受,也降低了資料邏輯處理流程的複雜度,但是新業務的增加同樣會導致系統複雜度和資源消耗成倍增加。The advantage of this method is that it improves the user experience and reduces the complexity of the data logic processing flow, but the increase of new services will also lead to a doubling of system complexity and resource consumption.
有鑒於此,需要提供一種新的資料更新方法,以克服上述缺陷。In view of this, it is necessary to provide a new data update method to overcome the above drawbacks.
本申請實施例提供一種資料更新方法、裝置及系統,用以在網際網路系統中,提高資料更新流程的處理效率,降低資料更新流程的執行複雜度。The embodiment of the present application provides a data update method, device, and system for improving the processing efficiency of a data update process and reducing the execution complexity of a data update process in an internet system.
本申請實施例提供的具體技術方案如下:一種資料更新的方法,包括:網站伺服器確定用戶端登錄本地後,指示該用戶端在用戶操作行為符合第一預設條件時,獲取並回傳該用戶的用戶識別資訊;該網站伺服器接收用戶端回傳的用戶識別資訊,並對該用戶識別資訊進行解析,以獲得用戶標識ID;該網站伺服器確定對應該用戶ID保存的用戶屬性資訊符合第二預設條件時,對指定的業務相關資料進行更新。The specific technical solution provided by the embodiment of the present application is as follows: a method for updating a data, comprising: determining, by the website server, that the user end logs in to the local device, and instructing the user end to acquire and return the user operation behavior according to the first preset condition User identification information of the user; the website server receives the user identification information returned by the user end, and parses the user identification information to obtain the user identification ID; the website server determines that the user attribute information corresponding to the user ID is consistent with When the second preset condition is met, the specified business related data is updated.
一種網站伺服器,包括: 第一處理單元,用於在確定用戶端登錄本地後,指示該用戶端在用戶操作行為符合該第一預設條件時,獲取並回傳該用戶的用戶識別資訊;解析單元,用於接收用戶端回傳的用戶識別資訊,並對該用戶識別資訊進行解析,獲得用戶標識ID;第二處理單元,用於確定對應該用戶ID保存的用戶屬性資訊符合該第二預設條件時,對指定的業務相關資料進行更新。A web server that includes: The first processing unit is configured to: after determining that the user end logs in to the local area, instruct the user end to acquire and return the user identification information of the user when the user operation behavior meets the first preset condition; and the parsing unit is configured to receive the user Ending the user identification information, and parsing the user identification information to obtain the user identification ID; the second processing unit is configured to determine that the user attribute information corresponding to the user ID is consistent with the second preset condition, The business related information is updated.
一種網際網路系統,包括若干網站伺服器和應用伺服器13,其中,應用伺服器,用於提供指定的業務服務,對用戶的業務相關資料進行邏輯構造;網站伺服器,用於確定用戶端登錄本地後,指示該用戶端在用戶操作行為符合第一預設條件時,獲取並回傳該用戶的用戶識別資訊,以及在接收到該用戶端回傳的用戶識別資訊時,對該用戶識別資訊進行解析,以獲得用戶標識ID,並在確定對應該用戶ID保存的用戶屬性資訊符合第二預設條件時,從該應用伺服器對指定的業務相關資料進行更新。An internetwork system includes a plurality of web server and application server 13, wherein an application server is configured to provide a specified business service, logically construct a user-related business data, and a web server is used to determine a client end. After logging in to the local area, the user is instructed to obtain and return the user identification information of the user when the user operation behavior meets the first preset condition, and identify the user when receiving the user identification information returned by the user end. The information is parsed to obtain a user identification ID, and when it is determined that the user attribute information corresponding to the user ID is saved according to the second preset condition, the specified service related data is updated from the application server.
通過上述技術方案,網站伺服器通過能夠及時控制新註冊用戶和已註冊用戶的有效操作行為所導致的業務相關資料更新的頻率,從而降低了整個系統的資源消耗和運行負荷,提高了系統的處理效率;另一方面,採用上述技術方案,針對原有系統的技術改動較小,業務耦合度為零, 因此,不會對原有的系統造成明顯影響,從而在一定程度上保障了用戶體驗,以及簡化了後期維護流程。Through the above technical solution, the website server can reduce the resource consumption and the running load of the entire system by being able to timely control the frequency of the service-related data update caused by the effective operation behavior of the newly registered user and the registered user, thereby improving the processing of the system. Efficiency; on the other hand, using the above technical solution, the technical changes to the original system are small, and the service coupling degree is zero. Therefore, it does not significantly affect the original system, thus ensuring the user experience to a certain extent and simplifying the post-maintenance process.
在網際網路系統中,為了提高資料更新流程的處理效率,降低資料更新流程的執行複雜度。本申請實施例中,網站伺服器確定用戶端登錄本地後,指示該用戶端在用戶操作行為符合第一預設條件時,獲取並回傳該用戶的用戶識別資訊;該網站伺服器接收用戶端回傳的用戶識別資訊,並對該用戶識別資訊進行解析,獲得用戶標識(ID);該網站伺服器確定對應該用戶ID保存的用戶屬性資訊符合第二預設條件時,對指定的業務相關資料進行更新。In the Internet system, in order to improve the processing efficiency of the data update process, the implementation complexity of the data update process is reduced. In the embodiment of the present application, after determining that the user end logs in to the local area, the website server instructs the user end to acquire and return the user identification information of the user when the user operation behavior meets the first preset condition; the website server receives the user end. Returning the user identification information, and parsing the user identification information to obtain a user identification (ID); the website server determines that the user attribute information corresponding to the user ID is in compliance with the second preset condition, and is related to the specified service The data is updated.
上述技術方案中,網站伺服器可以通過在網頁頁面中嵌入指定標籤,或者,也可以通過在回應消息中攜帶指定標識,來指示該用戶端在用戶操作行為符合第一預設條件時,獲取並回傳該用戶的用戶識別資訊。本申請實施例中,以第一種情況為例進行介紹。In the above technical solution, the website server may be configured to embed the specified label in the webpage page, or by carrying the specified identifier in the response message, to indicate that the user end acquires the user operation behavior according to the first preset condition. The user identification information of the user is returned. In the embodiment of the present application, the first case is taken as an example for introduction.
本申請實施例中,為了對用戶行為進行監測,需要在給用戶提供的網頁頁面中嵌入用於探測用戶行為的指令代碼,例如,基於HTML的IMG標籤,其代碼內容可以設置為:<img src=http://events.triger.company.com width=’0’height=’0’/>In the embodiment of the present application, in order to monitor user behavior, an instruction code for detecting user behavior needs to be embedded in a webpage provided to the user. For example, an HTML-based IMG tag may be set to: <img src =http://events.triger.company.com width='0'height='0'/>
上述代碼可以部署到登錄用戶有權訪問的任何網頁頁 面之中。本實施例中,由於採用了基於HTML的IMG標籤,因此,根據HTML和當前網頁瀏覽器的協定,上述代碼將會和其他代碼並行執行,並且由於上述代碼中設定了WIDTH=0和Height=0,使得該代碼不會對所在網頁頁面的外觀造成任何影響,因而不會降低用戶的使用感受。The above code can be deployed to any web page that the logged in user has access to. In the face. In this embodiment, since the HTML-based IMG tag is adopted, according to the agreement between the HTML and the current web browser, the above code will be executed in parallel with other codes, and since the above code sets WIDTH=0 and Height=0. So that the code does not have any effect on the appearance of the page on which the page is located, and thus does not reduce the user experience.
下面結合附圖,對本申請優選的實施方式進行詳細說明。Preferred embodiments of the present application will be described in detail below with reference to the accompanying drawings.
參閱圖1所示,本申請實施例中,網際網路系統內包括若干網站伺服器10用戶端11和應用伺服器13,其中,應用伺服器13,用於提供指定的業務服務,對用戶的業務相關資料進行邏輯構造,所謂用戶的業務相關資料有多種,例如,用戶指定業務的標識資訊,對用戶指示進行處理後產生的運算資料等等。Referring to FIG. 1 , in the embodiment of the present application, the Internet system includes a plurality of website server 10 client terminals 11 and an application server 13 , wherein the application server 13 is configured to provide a specified service service to the user. The business-related data is logically constructed. The so-called business-related data of the user is various, for example, the identification information of the user-designated service, the operational data generated after processing the user instruction, and the like.
網站伺服器10,用於確定用戶端11登錄本地後,指示該用戶端11在用戶操作行為符合第一預設條件時,獲取並向網站伺服器10回傳該用戶的用戶識別資訊,以及在網站伺服器10接收到該用戶端11回傳的用戶識別資訊時,對該用戶識別資訊進行解析,獲得用戶ID,並在確定對應該用戶ID保存的用戶屬性資訊符合第二預設條件時,從該應用伺服器13對指定的業務相關資料進行更新。The website server 10 is configured to: after the user terminal 11 logs in to the local area, instruct the user terminal 11 to obtain and return the user identification information of the user to the website server 10 when the user operation behavior meets the first preset condition, and When the website server 10 receives the user identification information returned by the user terminal 11, the user identification information is parsed to obtain the user ID, and when it is determined that the user attribute information corresponding to the user ID is consistent with the second preset condition, The specified service related data is updated from the application server 13.
參閱圖2所示,本申請實施例中,網站伺服器10包括儲存單元100、第一處理單元101、解析單元102和第二處理單元103,其中, 儲存單元100,用於保存第一預設條件和第二預設條件,以及對應用戶ID設置的用戶屬性資訊;第一處理單元101,用於在確定用戶端11登錄本地後,指示該用戶端11在用戶操作行為符合該第一預設條件時,獲取並回傳該用戶的用戶識別資訊;解析單元102,用於接收用戶端11回傳的用戶識別資訊,並對該用戶識別資訊進行解析,獲得用戶ID;第二處理單元103,用於確定對應該用戶ID保存的用戶屬性資訊符合該第二預設條件時,對指定的業務相關資料進行更新。Referring to FIG. 2, in the embodiment of the present application, the website server 10 includes a storage unit 100, a first processing unit 101, a parsing unit 102, and a second processing unit 103, where The storage unit 100 is configured to save the first preset condition and the second preset condition, and the user attribute information corresponding to the user ID setting. The first processing unit 101 is configured to: after determining that the user end 11 logs in to the local area, instruct the user end Obtaining and returning the user identification information of the user when the user operation behavior meets the first preset condition; the parsing unit 102 is configured to receive the user identification information returned by the user terminal 11 and parse the user identification information. And obtaining the user ID; the second processing unit 103 is configured to: when the user attribute information saved corresponding to the user ID meets the second preset condition, update the specified service related data.
基於上述系統架構,參閱圖3所示,本申請實施例中,網站伺服器10針對登錄本地的用戶進行資料更新的詳細流程如下:Based on the above system architecture, referring to FIG. 3, in the embodiment of the present application, the detailed process of the website server 10 for updating the data to the local user is as follows:
步驟300:接收用戶通過用戶端11發送的登錄請求消息,該登錄請求消息中攜帶用戶ID和登錄密碼。Step 300: Receive a login request message sent by the user through the user terminal 11, where the login request message carries a user ID and a login password.
步驟310:根據獲得的用戶ID和登錄密碼對用戶進行驗證,並確認用戶通過驗證流程。Step 310: Verify the user according to the obtained user ID and login password, and confirm that the user passes the verification process.
本申請實施例中,網站伺服器10確認用戶通過驗證流程後,用戶便可以請求瀏覽所需的網頁頁面了。In the embodiment of the present application, after the website server 10 confirms that the user passes the verification process, the user can request to browse the required webpage page.
步驟320:將用戶請求的網頁頁面發往用戶端11,本申請實施例中,在發送給用戶的網頁頁面中均含有IMG標籤,用於指示用戶端11在指定時機獲取並回傳用戶識別資訊(即,Cookie)。Step 320: Send the webpage page requested by the user to the user terminal 11. In the embodiment of the present application, the webpage page sent to the user includes an IMG tag, which is used to instruct the client terminal 11 to obtain and return the user identification information at a specified time. (ie, Cookie).
本實施例中,各IMG標籤的代碼內容由管理人員預 先在網路側設置,網站伺服器10可以根據各網頁的頁面內容預先獲取對應的IMG標籤嵌入至頁面代碼中,並在用戶端11請求獲取網頁頁面時,將相應的網頁頁面發送至用戶端11。用戶端11接收到含有IMG標籤的網頁頁面後,對IMG標籤進行代碼解析,並根據解析結果確定IMG標籤指示的回傳用戶標識資訊的指定時機;所謂指定時候即是指用戶對網頁頁面的瀏覽行為符合預設條件,此時用戶端11將獲取本地保存的用戶識別資訊,並將其發往網站伺服器10,以觸發網路側後續處理流程。In this embodiment, the code content of each IMG tag is pre-processed by the administrator. Firstly, the web server 10 can pre-acquire the corresponding IMG tag to be embedded in the page code according to the page content of each webpage, and send the corresponding webpage page to the client end 11 when the user terminal 11 requests to obtain the webpage page. . After receiving the webpage page containing the IMG tag, the client 11 performs code parsing on the IMG tag, and determines a specified timing of the postback user ID information indicated by the IMG tag according to the parsing result; the so-called designation refers to the user browsing the webpage page. The behavior meets the preset condition. At this time, the client 11 will obtain the locally saved user identification information and send it to the website server 10 to trigger the network side subsequent processing flow.
本申請實施例中,上述預設條件可以根據實際應用環境預設。In the embodiment of the present application, the foregoing preset condition may be preset according to an actual application environment.
例如,預設條件為:用戶瀏覽網頁頁面的停留時間超過設定閾值時,獲取用戶識別資訊。這樣做,是為了在後續的處理流程中過濾掉大量無意繼續瀏覽當前網頁頁面的用戶,只針對部分能夠影響網站伺服器資料處理行為的用戶資料進行處理,從而避免了系統資源的浪費。For example, the preset condition is: when the dwell time of the user browsing the webpage exceeds a set threshold, the user identification information is acquired. This is to filter out a large number of users who do not intend to continue browsing the current web page in the subsequent processing flow, and only process some user data that can affect the web server data processing behavior, thereby avoiding waste of system resources.
又例如,預設條件為:用戶點擊某個特定網頁元素時,獲取點擊該特定網頁元素的用戶的識別資訊。這樣做,可以專門針對該特定網頁元素對應的某一業務下的用戶提供相應的資料處理服務,而不必對所有的用戶資料進行處理,從而提高了系統的處理效率,如,VIP客戶。For another example, the preset condition is: when the user clicks on a specific webpage element, the identification information of the user who clicks on the specific webpage element is obtained. In this way, the data processing service can be provided for the user under a certain service corresponding to the specific webpage element, without having to process all the user data, thereby improving the processing efficiency of the system, for example, a VIP client.
又例如,用戶初次在網站系統註冊時,獲取該用戶的識別資訊。For another example, when the user first registers with the website system, the user's identification information is obtained.
上述內容僅為舉例,並不限制其他設置方式。The above content is only an example and does not limit other settings.
步驟330:接收用戶端11回傳的用戶識別資訊,並對該用戶識別資訊進行解析,以提取出用戶ID。Step 330: Receive user identification information returned by the client 11 and parse the user identification information to extract the user ID.
實際應用中,網站技術通常都是採用Cookie保存用戶身份資訊,所以用戶ID的提取即是指針對用戶的Cookie進行解析識別。本申請實施例中,為了最大程度的降低Cookie解析流程對系統整體性能的影響,網站伺服器10針對該流程的執行速度必須在設定時長內,否則,將會降低用戶體驗。如,網站伺服器10針對當前處理的流程維護一計時器,當計時器記錄的時長超過設定閾值時,向用戶端11回傳提示錯誤的資訊,根據用戶指示重新執行流程或者結束當前流程。In practical applications, website technology usually uses cookies to store user identity information, so the extraction of user IDs is a pointer to the user's cookies. In the embodiment of the present application, in order to minimize the impact of the cookie parsing process on the overall performance of the system, the execution speed of the web server 10 for the process must be within the set duration, otherwise the user experience will be reduced. For example, the website server 10 maintains a timer for the current process. When the duration of the timer record exceeds the set threshold, the information indicating the error is returned to the client 11, and the process is re-executed according to the user instruction or the current process is ended.
步驟340:根據提取出的用戶ID判斷該用戶是否處於當前維護的用戶佇列中,若是,則執行步驟360;否則,執行步驟350。Step 340: Determine, according to the extracted user ID, whether the user is in the currently maintained user queue, and if yes, perform step 360; otherwise, perform step 350.
本申請實施例中,網站伺服器10針對已登錄註冊的用戶維護一組佇列,並定期對該佇列進行更新,以明確用戶的註冊情況,以及用戶上次登錄網站的時間,便於在後續流程中更新其屬性表,並將長時間未登錄本地的用戶從該佇列中刪除。In the embodiment of the present application, the website server 10 maintains a set of queues for the registered users, and periodically updates the queues to clarify the registration status of the user and the time when the user last logged into the website, which is convenient for subsequent The property table is updated in the process, and users who have not logged in locally for a long time are removed from the queue.
另一方面,本申請實施例中,網站伺服器10針對已登錄註冊的用戶均維護一屬性表,該屬性表中至少包含用戶ID和向該用戶發出通知的時間。例如,屬性表的表項內容如表1或表2所示:
步驟350:對用戶的業務相關資料進行更新,並根據提取的用戶ID將用戶添加至當前維護的用戶佇列中,同時將對應該用戶設置的屬性表中“通知時間”這一屬性更新為當前的系統時間;接著,結束當前流程。Step 350: Update the service related data of the user, and add the user to the currently maintained user queue according to the extracted user ID, and update the attribute of the “notification time” in the attribute table corresponding to the user to the current System time; then, the current process ends.
本申請實施例中,若提取的用戶ID對應的用戶未在當前維護的用戶佇列中,則表示該用戶為新註冊用戶,或者,上一次登錄時間距當前時間的時長超過設定閾值,因此,需要將其歸入用戶佇列。In the embodiment of the present application, if the user corresponding to the extracted user ID is not in the currently maintained user queue, it indicates that the user is a newly registered user, or the time of the last login time from the current time exceeds a set threshold, It needs to be classified as a user.
本申請實施例中,所謂“通知”,即是指通知相應的應用伺服器13對用戶的業務相關資料進行更新,以保證用戶在網頁頁面中獲得的業務資訊的即時性。所謂對指定的業務相關資料進行更新,即是指按照預設規則準確調用 相應的應用伺服器13來完成用戶的業務相關資料的更新,其具體實現方式為:網站伺服器10具有調用外部介面的功能,其作用包含但不限於以下兩種:In the embodiment of the present application, the so-called "notification" means that the corresponding application server 13 is notified to update the service related data of the user to ensure the immediacy of the business information obtained by the user in the webpage page. The so-called update of the specified business-related data means that the call is accurately called according to the preset rules. The corresponding application server 13 completes the update of the user's business-related data. The specific implementation manner is as follows: the website server 10 has a function of calling an external interface, and its functions include but are not limited to the following two types:
1、維護外部介面的調用佇列,其中,外部介面的屬性包括被調用的應用伺服器13的名稱、埠號和採用的通信協定類型等等。1. Maintaining a call queue of the external interface, wherein the attributes of the external interface include the name of the called application server 13, the nickname, the type of communication protocol adopted, and the like.
2、確保在接收到相關的通知消息時,能夠正確調用上述佇列中的所有外部介面。2. Ensure that all external interfaces in the above queues are correctly called when the relevant notification message is received.
應用伺服器13對用戶的業務相關資料進行更新時,需要重新根據自身的業務屬性重新計算用戶的業務相關資料,例如,若某應用伺服器13的業務屬性是向用戶提供其聯繫人資訊,則接收到網站伺服器10發送的通知時,重新計算一遍相關用戶的聯繫人資訊,並將重新獲得的最新的聯繫人資訊通過網站伺服器10呈現給用戶端11。When the application server 13 updates the service related data of the user, the service related data of the user needs to be re-calculated according to the service attribute of the user. For example, if the service attribute of the application server 13 is to provide the user with the contact information, Upon receiving the notification sent by the website server 10, the contact information of the relevant user is recalculated, and the newly retrieved contact information is presented to the client 11 through the website server 10.
這樣,在系統運行過程中,用戶的操作行為決定了其所需要使用的業務,那麽網站伺服器10就會定向至相應的應用伺服器13來指示更新用戶的業務相關資料。對於操作行為符合預設條件的用戶,網站伺服器10會立即調用相應的外部介面,從與用戶操作行為相對應的應用伺服器13獲取用戶最新的業務相關資料,並以網頁資訊的形式進行組織展現。另一方面,當有新的業務需求(即在系統中擴展出新的應用伺服器13)時,網站伺服器10根據系統定義的規範,將新業務對應的外部介面加入到本地維 護的調用佇列中即可,接著,再通過調用該外部介面指示對應的應用伺服器13完成用戶的業務相關資料的邏輯構造。In this way, during the operation of the system, the user's operation behavior determines the service that needs to be used, and the website server 10 is directed to the corresponding application server 13 to instruct to update the user's business related information. For the user whose operation behavior meets the preset condition, the website server 10 immediately calls the corresponding external interface, and acquires the latest business related information of the user from the application server 13 corresponding to the user operation behavior, and organizes the information in the form of webpage information. Show. On the other hand, when there is a new business requirement (ie, a new application server 13 is extended in the system), the website server 10 adds the external interface corresponding to the new service to the local dimension according to the system-defined specification. The call queue of the guard can be used, and then the corresponding application server 13 is instructed to complete the logical structure of the user's service related data by calling the external interface.
步驟360:根據提取出的用戶ID獲取對應該用戶ID保存的屬性表。Step 360: Acquire an attribute table saved corresponding to the user ID according to the extracted user ID.
本申請實施例中,若提取的用戶ID對應的用戶已在當前維護的用戶佇列中,則網站伺服器10會從進一步獲取該用戶的屬性表,並提取其中的“通知時間”屬性,以便後續處理。In the embodiment of the present application, if the user corresponding to the extracted user ID is already in the currently maintained user queue, the website server 10 further obtains the attribute table of the user, and extracts the “notification time” attribute therein, so that Follow-up processing.
步驟370:根據獲得的屬性表判斷上一次向用戶發出通知的時間與當前時間相距的時長量是否超過設定閾值,若是,則進行步驟380;否則,結束當前流程。Step 370: Determine, according to the obtained attribute table, whether the time interval between the time when the notification was last sent to the user and the current time exceeds a set threshold. If yes, proceed to step 380; otherwise, end the current flow.
與步驟350記載的內容相同,本申請實施例中,所謂“通知”,即是指通知相應的應用伺服器13對用戶的業務相關資料進行更新,以保證用戶在網頁頁面中獲得的業務資訊的即時性,那麽,若根據用戶的屬性表確定上一次向用戶發出通知的時間與當前時間相距的時長量超過設定閾值,則說明,用戶當前瀏覽的網頁頁面中包含的業務資訊已過期,需要重新進行更新,以保證業務資訊的即時性。In the embodiment of the present application, the so-called "notification" means that the corresponding application server 13 is notified to update the service-related data of the user to ensure the service information obtained by the user in the webpage page. Immediacy, then, if it is determined according to the attribute table of the user that the time when the last notification to the user is separated from the current time exceeds the set threshold, the service information included in the web page currently browsed by the user has expired, and Update again to ensure the immediacy of business information.
步驟380:對用戶的業務相關資料進行更新,並將該用戶相應的屬性表中“通知時間”這一屬性更新為當前的系統時間。Step 380: Update the service related data of the user, and update the attribute of the “notification time” in the corresponding attribute table of the user to the current system time.
通過上述實施例,網站伺服器10通過維護的用戶佇 列及佇列中每個用戶的屬性表,能夠及時控制新註冊用戶和已註冊用戶的有效操作行為所導致的業務相關資料更新的頻率,從而降低了整個系統的資源消耗和運行負荷,提高了系統的處理效率。並且採用上述技術方案,針對原有系統的技術改動較小,業務耦合度為零,因此,不會對原有的系統造成明顯影響,從而在一定程度上保障了用戶體驗,以及簡化了後期維護流程。Through the above embodiment, the website server 10 passes the maintained user伫 The attribute table of each user in the column and the queue can timely control the frequency of update of the business-related data caused by the effective operation behavior of the newly registered user and the registered user, thereby reducing the resource consumption and running load of the entire system, and improving the load. The processing efficiency of the system. And adopting the above technical solution, the technical changes to the original system are small, the service coupling degree is zero, and therefore, the original system is not obviously affected, thereby ensuring the user experience to a certain extent, and simplifying the later maintenance. Process.
基於上述實施例,下面以一個實際應用場景對上述技術方案進行詳細說明。Based on the foregoing embodiment, the foregoing technical solution is described in detail in an actual application scenario.
假設網站伺服器10支援的系統為:用戶登錄進入個人主頁後,系統能夠主動推薦與其存在相關性的其他用戶作為聯繫人,即用戶要求提供的業務相關資訊為“聯繫人推薦資訊”。而用戶的實際需求為:希望聯繫人推薦資訊儘量最新,但不要求完全即時。It is assumed that the system supported by the web server 10 is: after the user logs in to the personal homepage, the system can actively recommend other users who have relevance to the user as the contact, that is, the service related information requested by the user is “contact recommendation information”. The actual needs of users are: I hope that the contact recommendation information is as up-to-date as possible, but does not require full instant.
那麽,通常情況下,登錄網站伺服器10的用戶群體在千萬數量級以上,而一個完整的相關性計算通常需要數分鐘。Then, in general, the user group logging into the website server 10 is more than ten million orders, and a complete correlation calculation usually takes several minutes.
現有技術下的實現方法是:將登錄用戶與所有其他用戶之間的相關性全部計算一遍,再根據計算結果向用戶呈現相關的聯繫人推薦資訊。採用這種方法,當用戶群體過於龐大時,執行一次相關性遍歷計算往往需要很長的時間,而且計算出的很大一部分用戶的推薦資訊價值很低(如,這一部分用戶並不經常登錄網站伺服器10),這樣就造成了大量系統資源的浪費,並且由於計算周期較長, 也導致聯繫人推薦資訊的即時性很差。The implementation method in the prior art is: calculating the correlation between the login user and all other users, and presenting related contact recommendation information to the user according to the calculation result. In this way, when the user group is too large, it takes a long time to perform a correlation traversal calculation, and a large part of the calculated information of the user is very low (for example, this part of the user does not frequently log in to the website). Server 10), which causes a lot of system resources to be wasted, and due to the long calculation period, It also leads to poor immediacy of contact recommendation information.
相應地,採用本實施例中提供的方法,網站伺服器10在計算與登錄用戶存在相關性的其他用戶時,根據用戶的操作行為進行判斷,在用戶的操作行為符合預設條件時,再進行相關性的遍歷計算。Correspondingly, when the method provided in this embodiment is used, the website server 10 judges according to the operation behavior of the user when calculating other users that have relevance to the logged-in user, and when the user's operation behavior meets the preset condition, The traversal calculation of the correlation.
例如:登錄用戶在網頁頁面的停留時間超過設定時長時,再進行相關性的遍歷計算,這樣,以避免登錄用戶無意長時間訪問網頁頁面而觸發不必要的相關性遍歷計算,從而,有效避免了系統資源的浪費,降低了資料更新流程的執行複雜度,提高了系統的處理效率。For example, when the logged-in user stays on the webpage for more than the set time, the traversal calculation of the correlation is performed, so as to avoid the login user unintentionally accessing the webpage for a long time and trigger unnecessary correlation traversal calculation, thereby effectively avoiding The waste of system resources reduces the complexity of the implementation of the data update process and improves the processing efficiency of the system.
又例如:登錄用戶在網頁頁面執行特定操作時,再進行相關性的遍歷計算,如,登錄用戶點擊“服務支援”按鈕進行業務資訊諮詢,那麽,此時,網站伺服器10可以執行相關性遍歷計算,向其推薦所需的聯繫人;進一步地,網站伺服器10還可以根據登錄用戶選擇的業務內容(如,多媒體服務),有針對性地對與該登錄用戶在多媒體服務方面存在相關性的用戶進行遍歷計算,這樣,進一步避免了系統資源的浪費,提高了系統的處理效率,也提高了系統提供的聯繫人推薦資訊的準確性。For another example, when the login user performs a specific operation on the webpage page, the traversal calculation of the correlation is performed. For example, if the login user clicks the “service support” button to perform the business information consultation, then, the website server 10 can perform the correlation traversal. Calculating, recommending the required contact to the user; further, the website server 10 can also specifically correlate the multimedia service with the logged-in user according to the service content (for example, multimedia service) selected by the logged-in user. The user performs the traversal calculation, thereby further avoiding the waste of system resources, improving the processing efficiency of the system, and improving the accuracy of the contact recommendation information provided by the system.
顯然,本領域的技術人員可以對本申請中的實施例進行各種改動和變型而不脫離本申請的精神和範圍。這樣,倘若本申請實施例中的這些修改和變型屬於本申請之申請專利範圍及其等同技術的範圍之內,則本申請中的實施例也意圖包含這些改動和變型在內。It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the application. Thus, the present embodiments of the present application are intended to cover such modifications and variations as the scope of the application and the scope of the invention.
10‧‧‧網站伺服器10‧‧‧Web server
11‧‧‧用戶端11‧‧‧User
13‧‧‧應用伺服器13‧‧‧Application Server
100‧‧‧儲存單元100‧‧‧ storage unit
101‧‧‧第一處理單元101‧‧‧First Processing Unit
102‧‧‧解析單元102‧‧‧ analytical unit
103‧‧‧第二處理單元103‧‧‧Second processing unit
圖1為本申請實施例中網際網路網路體系架構圖;圖2為本申請實施例中網站伺服器功能結構圖;圖3為本申請實施例中網站伺服器進行資料更新流程圖。1 is a network network architecture diagram of an embodiment of the present application; FIG. 2 is a functional structural diagram of a website server according to an embodiment of the present application; FIG. 3 is a flowchart of data update by a website server according to an embodiment of the present application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099117216A TWI496006B (en) | 2010-05-28 | 2010-05-28 | Data updating method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099117216A TWI496006B (en) | 2010-05-28 | 2010-05-28 | Data updating method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201142617A TW201142617A (en) | 2011-12-01 |
TWI496006B true TWI496006B (en) | 2015-08-11 |
Family
ID=46765088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW099117216A TWI496006B (en) | 2010-05-28 | 2010-05-28 | Data updating method, device and system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI496006B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200517909A (en) * | 2003-08-29 | 2005-06-01 | Matsushita Electric Ind Co Ltd | Secure date management apparatus |
US6976077B1 (en) * | 1999-07-06 | 2005-12-13 | Microsoft Corporation | Automatic and transparent synchronization of server-side state information with a client application |
TWM376837U (en) * | 2009-04-10 | 2010-03-21 | Yi-Zhao Yang | Website data updating system |
-
2010
- 2010-05-28 TW TW099117216A patent/TWI496006B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6976077B1 (en) * | 1999-07-06 | 2005-12-13 | Microsoft Corporation | Automatic and transparent synchronization of server-side state information with a client application |
TW200517909A (en) * | 2003-08-29 | 2005-06-01 | Matsushita Electric Ind Co Ltd | Secure date management apparatus |
TWM376837U (en) * | 2009-04-10 | 2010-03-21 | Yi-Zhao Yang | Website data updating system |
Also Published As
Publication number | Publication date |
---|---|
TW201142617A (en) | 2011-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5686815B2 (en) | Data update for website users based on preset conditions | |
JP6646781B2 (en) | System, method and storage medium for improving access to search results | |
US9794242B2 (en) | Method, apparatus and application platform for realizing logon to an application service website | |
US6678791B1 (en) | System and method for session-aware caching | |
CN102868719B (en) | A kind of Network Access Method based on buffer memory and server | |
KR101869133B1 (en) | Method and apparatus for providing web pages | |
US20120210243A1 (en) | Web co-navigation | |
CN107341395B (en) | Method for intercepting reptiles | |
US20110191664A1 (en) | Systems for and methods for detecting url web tracking and consumer opt-out cookies | |
US20110208850A1 (en) | Systems for and methods of web privacy protection | |
WO2013143403A1 (en) | Method and system for accessing website | |
US20110289138A1 (en) | Method, machine and computer program product for sharing an application session across a plurality of domain names | |
CN102932207A (en) | Method for monitoring website access information and server | |
CN103810176A (en) | Pre-fetching accessing method and device of webpage information | |
CN102932206A (en) | Method and system for monitoring website access information | |
EP2449481A1 (en) | System and method for enhancing digital content | |
CN103888540A (en) | Login information synchronization method, synchronized network servers and synchronizing network servers | |
JP5112401B2 (en) | Web action history acquisition system, Web action history acquisition method, gateway device, and program | |
CN106557584A (en) | A kind of web site collection method and device | |
JP6212240B2 (en) | Notification method and notification server for performing push notification by wipe to portable terminal | |
CN107526748B (en) | Method and equipment for identifying user click behavior | |
US20140006916A1 (en) | Pre-reading method and apparatus | |
CN108108381B (en) | Page monitoring method and device | |
JP3755147B2 (en) | Portal site creation method and portal site creation device | |
TWI496006B (en) | Data updating method, device and system |