CN101087263B - A method and system for capturing user status information via search engine - Google Patents

A method and system for capturing user status information via search engine Download PDF

Info

Publication number
CN101087263B
CN101087263B CN2006100839093A CN200610083909A CN101087263B CN 101087263 B CN101087263 B CN 101087263B CN 2006100839093 A CN2006100839093 A CN 2006100839093A CN 200610083909 A CN200610083909 A CN 200610083909A CN 101087263 B CN101087263 B CN 101087263B
Authority
CN
China
Prior art keywords
user
server
state
information
state information
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.)
Active
Application number
CN2006100839093A
Other languages
Chinese (zh)
Other versions
CN101087263A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN2006100839093A priority Critical patent/CN101087263B/en
Publication of CN101087263A publication Critical patent/CN101087263A/en
Priority to HK08103814.0A priority patent/HK1111543A1/en
Application granted granted Critical
Publication of CN101087263B publication Critical patent/CN101087263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method of inquiring net station user state, in current technique, when user state information is inquired based on user identification included in searching information, speed of response is slow, and load of system is big, the invention resolves problems above; the user state information in state server is transferred to searching engine server, and user state information in searching engine server and state server are made to keep in-phase; when said searching engine server discovers information searched includes user identification, checking the state information from local position, and returns state information searched and inquired to user. The invention also discloses a searching engine server and a communication system.

Description

A kind of method and system of obtaining user state information by search engine
Technical field
The present invention relates to communication and computer realm, relate in particular to the method and system of obtaining user state information by search engine.
Background technology
Network instant communication service (IM, Instant Messenger) is a kind of communication service based on the Internet, generally to realize instant communication function on the network, in network service, by the binding of website and instantaneous communication system state server, can realize the function of query web state of user information.
At present, when user inquiring information, web server generated query webpage comprises the script of inquiring user state in the webpage; Then, carry out script and inquire about the pairing state of user information of the user ID that comprises in this webpage to the state server interface of instant messaging, and state of user information returned to webpage, represent that with different icons whether online the user is, and whether registered instantaneous communication system.Like this when user inquiring information, if the webpage that returns is a lot, and every page of user who relates to is when a lot, whenever open a webpage or refresh and once all will re-execute script is submitted the inquiring user state information to the state server interface of instant messaging request, like this, not only cause the response of webpage slack-off, and the load pressure of state server is also bigger, the system resources consumption height.
Summary of the invention
In view of this, the invention provides a kind of method and system of obtaining user state information by search engine, when solving the user ID inquiring user state information that in according to search information, comprises in the prior art, there is the slow and big problem of system loading of response speed.
The invention provides following technical scheme:
A kind of method of obtaining user state information, the method comprising the steps of:
User state information in the state server is sent to search engine server, and the user state information in search engine server and the state server is kept synchronously;
When comprising user ID in the information that described search engine server is found to search,, and the information that searches and the user state information that inquires are returned to the user of request search information from this user's of local search user state information.
According to said method:
Described search engine server is embedded into user state information the user who returns to the request search information in the webpage.
Described state server directly sends user state information to each search engine server.
Described state server is sent to each background server with user state information earlier, user state information is sent to each search engine server of being managed by each background server.Described each background server and state server keep user state information synchronous; Each search engine server of described each background server and its administration keeps user state information synchronous.
State server before the transmission user state information earlier conversion user ID wherein with the byte number of compression user ID; Described search engine server is pressed earlier the mode converting users sign that state server adopts conversion before the inquiring user state information, and then utilizes the user ID after the conversion to inquire about.
A kind of search engine server comprises:
Memory cell is used to store state of user information;
Communication unit is used for and other devices communicatings;
Lock unit is used for making the state information of described memory cell synchronous with the information maintenance on the equipment that this state information is provided;
Search unit, the keyword that is used for providing according to the user comprises the relevant information of this keyword from the network search, and offers the user;
Query unit is used for when the relevant information that search unit searches comprises user ID, inquiry and acquisition state of user information from described memory cell, and offer the user.
A kind of communication system comprises:
State server is used to store state of user information;
Search engine server, be used for comprising the relevant information of the keyword that the user provides from network search, and store described state information and keep synchronously with state information on the described state server, and when in the relevant information that searches, comprising user ID, according to this user ID from local search state of user information and return to the user.
Described communication system also comprises:
Background server, be connected between described state server and the search engine server, be used to store described state information and provide this state information to described search engine server, and the state information on this background server and the state server keeps synchronously, and the state information on described search engine server and this background server keeps synchronously.
The present invention combines search engine with instant messaging, realize the information synchronization between search engine and the state server, by search engine directly from local search and obtain user state information, need not carry out script to state server inquiring user state information, therefore, the present invention can significantly improve the reaction speed of webpage, reduces the load pressure of state server; Especially when the presence of the concurrent inquiry a large number of users of a large number of users, can reduce system consumption, significantly improve systematic function.
Description of drawings
Figure 1A, Figure 1B are the structural representation of communication system in the embodiment of the invention;
Fig. 2 is the structural representation of search engine server in the embodiment of the invention;
Fig. 3 A, Fig. 3 B are the flow chart of transmission user state information and hold mode information synchronization between state server and the background server in the embodiment of the invention;
Fig. 4 is the flow chart of transmission user state information and hold mode information synchronization between background server and the search engine server in the embodiment of the invention;
Fig. 5 is the flow chart of search engine server search information and inquiring user state information in the embodiment of the invention.
Embodiment
Exist response speed slow when solving in the prior art query web state of user information, bring excessive deficiencies such as load pressure to state server, the present invention is synchronized to search engine server with the user state information on the state server, when search engine server comprises user ID in the information of finding to search, directly in local search state of user information and offer the user who needs this information.
Consult Figure 1A, the communication system in the present embodiment mainly comprises state server, and with the search engine server that this state server is connected, this search engine server can be for a plurality of.Described state server is used to preserve all websites state information of (comprising instant communication users), the keyword that search engine server is used for providing according to the user comprises the relevant information of this keyword from the network search, and obtain user state information, and keep user state information synchronous with state server from state server.When including user ID in the webpage that search engine is found to return, according to this user ID from the local search user state information and offer the user of request search information.
In order to ensure information security, search engine is registered on the state server earlier before obtaining user state information from state server.Described state of user information comprises the sign that user ID and this user be whether online at least.
Synchronous for state information, preferable mode is to adopt increment synchronous, promptly only transmits the user state information that changes has taken place.On the synchronous time, can adopt in real time synchronously, when promptly state of user changes by state server proactive notification search engine server; Also can adopt regularly synchronously, promptly state server regularly sends to search engine server with state information, or by search engine server regularly initiatively to state server request user state information.During Synchronization Status Message, preferable mode is that state server adopts the multicast mode that state information is sent to search engine server between search engine server and the state server.
System shown in Figure 1A needs state server directly to provide user state information to each search engine server, and it mainly is suitable in the scene of search engine server negligible amounts.Have under the situation of a large amount of search engine servers,, between search engine server and state server, increasing background server (or claiming the search engine background server) in order further to alleviate the load pressure of state server.
Shown in Figure 1B, background server is connected between state server and the search engine server, and background server can have a plurality of, and each background server can connect a plurality of search engine servers.Background server is used for obtaining user state information from described state server, and is responsible for all user state informations are offered each search engine server.Keep user state information synchronous between each background server and the state server, the user state information on each search engine server of each background server and its administration keeps synchronously.The method of synchronization can adopt in real time synchronously, also can adopt regularly synchronously.
During Synchronization Status Message, preferable mode is that state server adopts the multicast mode that user state information is sent to each background server, and each background server adopts the multicast mode that user state information is sent to each search engine server.
A kind of search engine server in the present embodiment comprises memory cell, communication unit, lock unit, search unit and query unit as shown in Figure 2; Wherein: described memory cell is used to store state information and other relevant informations of instant communication users; Described communication unit is used to connect other communication equipments, receives and transmission information; Described lock unit is connected with communication unit with memory cell by interface, is used for by described communication unit, makes the user state information in the described memory cell synchronous with the user state information maintenance on the state server that this information is provided; Be connected by interface between described search unit and communication unit and the memory cell, the keyword that provides according to the user is provided, search for the relevant information that comprises this keyword through described communication unit from network, the information that searches can be cached in the memory cell; Described query unit is connected with search unit with described memory cell by interface, is used for when the relevant information that described search unit searches comprises user ID inquiry and acquisition user state information from described memory cell; The user state information that relevant information that search unit searches and query unit inquire sends to the requestor through described communication unit.Described interface can be the intercommunication interface.Described lock unit, search unit and query unit can separately be provided with, and also can partly or entirely be set to one.
In order in the process that transmits user state information, to reduce the transmission quantity of data as far as possible, in the present embodiment, state server is earlier changed byte number with the compression user ID to user ID, and user ID is being preserved with the form after the conversion on background server and the search engine server.Accordingly, search engine adopts the mode converting users sign identical with state server before inquiry, and then the inquiring user state information.For example, user ID for 20 bytes, adopt hash algorithm (also can adopt other algorithms) to convert thereof into the integer data (or being exactly that the uniquely identified 8 bytes numeral that is used for of lane database replaces for ID number) of one 8 byte, adopt a bit to represent whether a user is online simultaneously, not online as " 0 " expression, " 1 " expression is online.Therefore, the registered user for 10,000 ten thousand, committed memory is 100M*8+100M*1/8=812.5M, is sufficient for sb.'s need for 32 machine with 4G memory configurations.
Below main be that example is elaborated with system configuration shown in Figure 2.
Consult shown in Fig. 3 A, background server obtains user state information from state server, and initiatively sends the user state information that changes to keep synchronous processing procedure as follows to background server by state server:
Step 300, background server send login request message to state server.
Step 301, state server are verified background server, and are returned registration reply message to it.Show in this message whether registration is successful.
Step 302, succeed in registration after, background server sends the user state information request message to state server.
Step 303, state server confirm that described background server is a registered users, send all user state informations to background server, and wherein the user ID in the user state information adopts the aforementioned manner compression.
Step 304, background server are preserved user state information.
State of user changes on step 305, the state server, the user state information that state server changes to each background server in the multicast mode.
Step 306, background server upgrade the local user state information of preserving.
Consult shown in Fig. 3 B, background server obtains state of user information from state server, and the user state information that upgrade to be changed to the state server request by background server is to keep synchronous processing procedure as follows:
Step 310,311,312,313 identical with above-mentioned steps 300,301,302,303.
Step 314, timer expiry, background server sends the user state information updating request to state server, the time that comprises request last time in this request message or upgrade user state information.
Step 315, state server asked or upgraded the time of user state information last time according to background server, whether judgement user state information in the time period up till now described time changes, if change, then the user state information that changes is sent to background server by upgrading response message, otherwise, return the response message (the expression user state information changes among the figure) that does not comprise user state information to background server.
After step 316, background server receive and upgrade response,, then upgrade the local user state information of preserving if user state information is wherein arranged, otherwise, do not do to upgrade and handle.
In the handling process of Fig. 3 B, after state server receives that the message of user state information is upgraded in one of them background server request, also can adopt the multicast mode to send the user state information that has changed to all background servers, background server receives the timer that resets after the updating message and gets final product.
Consult Fig. 4, search engine server obtains state of user information from background server, and initiatively sends the user state information that changes to keep synchronous processing procedure as follows to search engine server by background server:
Step 400, search engine server send login request message to background server.
Step 401, background server verify search engine server, and return registration reply message to it, shows whether success of registration in this message.
Step 402, succeed in registration after, search engine server sends the user state information request message to background server.
Step 403, background server confirm that described search engine server is a registered users, send all user state informations to the back search engine server, and wherein the user ID in the user state information adopts the aforementioned manner compression.
Step 404, search engine server are preserved user state information.
After step 405, background server are upgraded user state information, the user state information that changes to each search engine server in the multicast mode.
Step 406, the search engine server that receives update notification upgrade the local user state information of preserving.
Consult shown in Figure 5, search engine server search information and to obtain the processing procedure of User Status as follows:
Step 500, user provide keyword request search relevant information by client.
Step 501, search engine server are searched for the relevant information that comprises this keyword according to the information resources service device of keyword from network.
Step 502, search engine server are received the webpage that the information resources service device returns, and wherein include the information of needs search and the user's of this information of issue sign (ID).
Step 503, search engine server extract from webpage and converting users sign (conversion regime is identical with the state server side), and in the pairing User Status of local search user ID.
Step 504, search engine server are embedded into the User Status sign in the webpage, and return to client.For example,, can in webpage, represent,, can represent with grey colored lights when the user is in off-line with green light when the user is in line states.
System for structure shown in Figure 1A, transmission user state information and keep synchronous processing between state server and the search engine server, and transmission user state information and keep synchronous processing in like manner between above-mentioned state server and the background server repeats no more.
From the foregoing description as can be known, the present invention has realized combining of search engine and immediate communication user state information, user state information in the instantaneous communication system state server is synchronized in the search engine, when user inquiring information, search engine returns to the state information that directly comprises instant communication users in user's the webpage, thereby improved the reaction speed of webpage, reduced the pressure of instant messaging state server.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (14)

1. one kind is obtained the method for user state information by search engine, it is characterized in that the method comprising the steps of:
User state information in the state server is sent to search engine server, and the user state information in search engine server and the state server is kept synchronously;
When comprising user ID in the information that described search engine server is found to search,, and the information that searches and the user state information that inquires are returned to the user of request search information from this user's of local search user state information.
2. the method for claim 1 is characterized in that, described search engine server is embedded into user state information the user who returns to the request search information in the webpage.
3. the method for claim 1 is characterized in that, described state server directly sends user state information to each search engine server.
4. the method for claim 1 is characterized in that, described state server is sent to each background server with user state information earlier, user state information is sent to each search engine server of being managed by each background server.
5. method as claimed in claim 4 is characterized in that, described each background server and state server keep user state information synchronous; Each search engine server of described each background server and its administration keeps user state information synchronous.
6. method as claimed in claim 5 is characterized in that, each background server sends user state information to each search engine server of being administered in the multicast mode.
7. as each described method of claim 1 to 6, it is characterized in that search engine server is registered on the described state server before state server obtains user state information.
8. as each described method of claim 1 to 6, it is characterized in that, state server before the transmission user state information earlier conversion user ID wherein with the byte number of compression user ID; Described search engine server is pressed earlier the mode converting users sign that state server adopts conversion before the inquiring user state information, and then utilizes the user ID after the conversion to inquire about.
9. a search engine server is characterized in that, comprising:
Memory cell is used to store state of user information;
Communication unit is used for and other devices communicatings;
Lock unit is used for making the state information of described memory cell synchronous with the information maintenance on the equipment that this state information is provided;
Search unit, the keyword that is used for providing according to the user comprises the relevant information of this keyword from the network search, and offers the user;
Query unit is used for when the relevant information that search unit searches comprises user ID, inquiry and acquisition state of user information from described memory cell, and offer the user.
10. search engine server as claimed in claim 9 is characterized in that, the separate setting of described lock unit, search unit and query unit; Perhaps, partly or entirely be set to one in described lock unit, search unit and the query unit.
11. a communication system is characterized in that, comprising:
State server is used to store state of user information;
Search engine server, be used for comprising the relevant information of the keyword that the user provides from network search, and store described state information and keep synchronously with state information on the described state server, and when in the relevant information that searches, comprising user ID, according to this user ID from local search state of user information and return to the user.
12. communication system as claimed in claim 11 is characterized in that, also comprises:
Background server, be connected between described state server and the search engine server, be used to store described state information and provide this state information to described search engine server, and the state information on this background server and the state server keeps synchronously, and the state information on described search engine server and this background server keeps synchronously.
13., it is characterized in that described search engine server comprises as claim 11 or 12 described communication systems:
Memory cell is used to store state of user information;
Communication unit is used for and other devices communicatings;
Lock unit is used for making the state information of described memory cell synchronous with the information maintenance on the equipment that this state information is provided;
Search unit, the keyword that is used for providing according to the user comprises the relevant information of this keyword from the network search, and offers the user;
Query unit is used for when the relevant information that search unit searches comprises user ID, inquiry and acquisition state of user information from described memory cell, and offer the user.
14. communication system as claimed in claim 13 is characterized in that, the separate setting of described lock unit, search unit and query unit; Perhaps, partly or entirely be set to one in described lock unit, search unit and the query unit.
CN2006100839093A 2006-06-06 2006-06-06 A method and system for capturing user status information via search engine Active CN101087263B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006100839093A CN101087263B (en) 2006-06-06 2006-06-06 A method and system for capturing user status information via search engine
HK08103814.0A HK1111543A1 (en) 2006-06-06 2008-04-07 A method and system for acquiring information on user state through search engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100839093A CN101087263B (en) 2006-06-06 2006-06-06 A method and system for capturing user status information via search engine

Publications (2)

Publication Number Publication Date
CN101087263A CN101087263A (en) 2007-12-12
CN101087263B true CN101087263B (en) 2011-09-28

Family

ID=38938030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100839093A Active CN101087263B (en) 2006-06-06 2006-06-06 A method and system for capturing user status information via search engine

Country Status (2)

Country Link
CN (1) CN101087263B (en)
HK (1) HK1111543A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009039703A1 (en) * 2007-09-26 2009-04-02 Alibaba Group Holding Limited A method, system and searching engine server for acquiring user state information
CN101511042B (en) * 2009-03-23 2012-05-16 中兴通讯股份有限公司 Data synchronization method and device
GB201603785D0 (en) * 2016-03-04 2016-04-20 Microsoft Technology Licensing Llc Communication system
CN110782310B (en) * 2019-09-26 2024-05-17 北京淇瑀信息科技有限公司 Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN114185500B (en) * 2021-12-14 2024-04-02 深圳市润天智数字设备股份有限公司 Control method and device for printing job

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642147A (en) * 2004-01-16 2005-07-20 腾讯科技(深圳)有限公司 Quick positioning method for contacting person in immediate communication
CN1780264A (en) * 2004-11-26 2006-05-31 腾讯科技(深圳)有限公司 Method and system for the third party with instant telecommunication user state information offer
CN2929830Y (en) * 2006-06-06 2007-08-01 阿里巴巴公司 Search engine server and search system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642147A (en) * 2004-01-16 2005-07-20 腾讯科技(深圳)有限公司 Quick positioning method for contacting person in immediate communication
CN1780264A (en) * 2004-11-26 2006-05-31 腾讯科技(深圳)有限公司 Method and system for the third party with instant telecommunication user state information offer
CN2929830Y (en) * 2006-06-06 2007-08-01 阿里巴巴公司 Search engine server and search system

Also Published As

Publication number Publication date
CN101087263A (en) 2007-12-12
HK1111543A1 (en) 2008-08-08

Similar Documents

Publication Publication Date Title
CN103457905B (en) Method of data synchronization, system and equipment
CN103297529A (en) Timestamp-based tree structure data synchronization method
CN101087263B (en) A method and system for capturing user status information via search engine
CN103905574A (en) DNS service access method and DNS data synchronization method and device
CN102025595A (en) Flow optimization method and system
CN104468852A (en) Method, device and system for client to select IP link address
CN103078899A (en) Method and device for synchronizing enterprise address book
CN102487375B (en) Method, device and system for downloading videos online
CN113572864B (en) Data processing method, network element equipment and readable storage medium
CN103024050B (en) Distributor and the method that multiple server is distributed
CN118018517A (en) Data processing method, network element equipment and readable storage medium
CN102611724A (en) Server notice data synchronization and synchronization server migration method, system and device
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN103209195A (en) Data acquisition method, terminal and far-end device
CN2929830Y (en) Search engine server and search system
CN112328632B (en) Distributed two-level caching method and system
CN101751421A (en) Anisomerous synchronization method, system and device of database in video monitoring system
CN103024049A (en) System capable of achieving browser data synchronization
CN110895583B (en) Method, device and system for acquiring data resources
CN107147651B (en) Gray level publishing system and publishing method thereof
CN107968798A (en) A kind of network management resources label acquisition method, cache synchronization method, apparatus and system
KR101258990B1 (en) Method for retrieving object from device management client and associated device management system
CN103064899B (en) A kind of distribution information database system
CN105635280A (en) Method and apparatus for improving message push efficiency, and push server
CN103036989B (en) Socket server and sockets services method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1111543

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1111543

Country of ref document: HK