WO2012159537A1 - Instant messaging system and method for sharing user information - Google Patents

Instant messaging system and method for sharing user information Download PDF

Info

Publication number
WO2012159537A1
WO2012159537A1 PCT/CN2012/075527 CN2012075527W WO2012159537A1 WO 2012159537 A1 WO2012159537 A1 WO 2012159537A1 CN 2012075527 W CN2012075527 W CN 2012075527W WO 2012159537 A1 WO2012159537 A1 WO 2012159537A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
server
user information
task
query server
Prior art date
Application number
PCT/CN2012/075527
Other languages
French (fr)
Chinese (zh)
Inventor
胡加明
Original Assignee
苏州阔地网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州阔地网络科技有限公司 filed Critical 苏州阔地网络科技有限公司
Publication of WO2012159537A1 publication Critical patent/WO2012159537A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages

Definitions

  • the invention belongs to information processing technology, and in particular relates to an instant messaging system and method for sharing user information. Background technique
  • the invention provides an instant messaging system and method for sharing user information to solve the above problems.
  • the invention provides an instant messaging system for sharing user information, comprising a plurality of clients and at least one communication server.
  • the client connects to the communication server.
  • the above system also includes at least one global server and a query server.
  • the client is connected to the query server and the global server through the communication server, and the communication server is connected to the global server through the query server.
  • the client transmits and stores the user information to the global server through the communication server, and the global server synchronizes the user information to the query server.
  • the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy.
  • the number of query servers is at least two.
  • the client passes The corresponding query server performs user information query, and the query server allocates the query task exceeding its threshold to other query servers according to the task processing priority and the task receiving policy.
  • the working efficiency of the query server and the global server can be improved, and the query efficiency of the user information can be improved.
  • it also effectively improves the throughput of the instant messaging system, and improves communication efficiency, making communication more immediate and smooth.
  • FIG. 1 is a schematic diagram of an instant messaging system for sharing user information according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic diagram of a query server according to a preferred embodiment of the present invention
  • FIG. 3 is a flow chart showing a method for instant messaging of user information sharing according to a preferred embodiment of the present invention. detailed description
  • the instant messaging system for sharing user information provided by the preferred embodiment of the present invention includes a plurality of clients, at least one communication server, at least one global server, and at least two query servers. As shown in Figure 1, six client A10, Al l, A20, A2 A30, and A3 global servers, three communication servers B1 to B3, and three query servers C1 to C3 are used as an example. However, the present invention does not limit the number of clients, global servers, communication servers, and query servers.
  • the client A10 ⁇ A11 is connected to the communication server Bl
  • the client A20 ⁇ A21 is connected to the communication server B2
  • the client A30 ⁇ A31 is connected to the communication server B3.
  • the present invention also does not limit the number of clients to which each communication server is connected.
  • the client A10 ⁇ A11 is connected to the query server C1 and the global server through the communication server B1
  • the client A20 ⁇ A21 is connected to the query server C2 and the global server through the communication server B2
  • the client A30 ⁇ A31 are connected to the query server C3 and the global server through the communication server B3.
  • the communication servers Bl, B2, and B3 are connected to the global server through the query servers CI, C2, and C3, respectively.
  • the client in Shanghai is connected to the query server in Shanghai through the communication server in Shanghai.
  • the client in Suzhou is connected to the query server in Suzhou through the communication server in Suzhou.
  • the client in Beijing passes the communication server in Beijing and the query server in Beijing. Connected.
  • the number of query servers is the same as the number of communication servers.
  • the invention is not limited thereto.
  • the number of communication servers may be one, and the communication server may be connected to multiple query servers.
  • the clients A10 ⁇ A11, A20-A21, and A30 ⁇ A31 respectively transmit and store the user information to the global server through the communication servers B1 ⁇ B3, and the global server synchronizes the user information to the query servers C1 ⁇ C3.
  • the user information is not limited to the user login information, and may also include user modification information, user update information, and the like. Specifically, clients in different areas share the global server by connecting to different query servers through the communication server.
  • the corresponding query server can serve the client of the corresponding area, and execute the query task sent by the client (for example, querying the user information).
  • the query server in Shanghai can provide user information query service for Shanghai users
  • the query server in Suzhou can provide user information query service for Suzhou users.
  • the distributed query server is responsible for the query tasks of clients in different regions, which improves the query efficiency and makes the communication more immediate and smooth.
  • the query server when the number of query tasks received by the query server from the plurality of clients exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy.
  • the threshold value can be set, for example, according to the working efficiency of different query servers.
  • the query server sets the task processing priority based on the idle rate of the query server.
  • the query server may preset a comparison table of the idle rate and the task processing priority level.
  • the relationship between the idle rate and the task processing priority level is as follows:
  • the query server with an idle rate of 80% to 100% corresponds to the fourth level, and the idle rate is 60% to 80.
  • the query server of % corresponds to the third level
  • the query server with the idle rate of 40% to 60% corresponds to the second level
  • the query server with the idle rate of 0% to 40% corresponds to the first level.
  • the query server having a higher idle rate has a higher priority level.
  • the invention is not limited thereto.
  • the level of the above task processing priority and its correspondence with the idle rate can be set according to actual needs.
  • the three query servers C1 to C3 and the task processing priority level are set to level 4 as an example for specific description.
  • the clients A10 ⁇ A11, A20-A21, and A30-A31 send query tasks to the corresponding query servers C1 ⁇ C3 through the communication servers B1 ⁇ B3 respectively.
  • the query servers C1 ⁇ C3 monitor all query servers C1 ⁇ in real time. The working status of C3.
  • the query server C1 updates the rank of the task processing priorities according to the idle rates of the query servers C2 and C3.
  • the query server C1 can set the query server C2 to the fourth level according to the idle rate and the task processing priority level comparison table, and query the server.
  • C3 is the third level, that is, the priority level of the query server C2 is higher than that of the query server C3.
  • the task processing priority of the query server can be updated in real time.
  • query server C1 will assign its query task that exceeds the threshold to query server C2 (that is, the level 4 query server).
  • the query server C2 receives a corresponding number of query tasks according to the task receiving policy.
  • the task receiving policy is the difference between the threshold of the query server and the current task amount.
  • the query server C2 receives the query task assigned by the query server C1, the total number of query tasks processed by the query server C2 does not exceed Querying the threshold set by the server C2, the query server C2 is responsible for executing all the query tasks exceeding the threshold of the query server C1. If the total number of query tasks processed by the query server C2 exceeds the threshold set by the query server C2, the query server C1 reallocates the query task exceeding the threshold of the query server C2 to the query server C3 (ie, the query server of the third level).
  • the invention is not limited thereto.
  • the query server C2 may re-allocate the query task exceeding the threshold of the query server C2 to the query server C3 (ie, level 3). Query the server). Next, it is determined whether the total number of query tasks after the query server C3 receives the query task exceeds the threshold of the query server C3. If exceeded, the query server C1 or the query server C3 can invoke the query server of the next level in the priority sequence to execute the query task. When there is no next level of query server, the query tasks to be processed are queued for processing. In this case, the query server allocates the query task according to the combination of the idle rate and the priority, and fully utilizes the query server, thereby avoiding waste of resources and improving information query efficiency.
  • the query server includes a monitoring module 100, a control module 101, a storage module 102, and a receiving module 103.
  • the control module 101 is connected to the monitoring module 100, and the storage module 102 is connected to the receiving module 103.
  • the monitoring module 100 monitors the number of query tasks received by all of the query servers and transmits the monitored data to the control module 101.
  • the control module 101 updates the task processing priority according to the idle rate of the query server, and allocates a query task exceeding the threshold according to the task processing priority and the task receiving policy.
  • the receiving module 103 synchronously receives user information from the global server, and the storage module 102 stores user information.
  • the user logs in to the client, and the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server.
  • the receiving module 103 of the query server receives the user information synchronously from the global server.
  • the query server receives the query task from the client through the communication server, and the monitoring module 100 of the query server monitors the number of query tasks received by all the query servers. At the same time, the monitoring module 100 transmits the number of query tasks received by the monitored query server to the control module 101.
  • the control module 101 can determine whether the data exceeds the set threshold and calculate the idle rate of the query server.
  • step 101 the user logs in to the client, and the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server.
  • step 102 the query server receives the query task from the client through the communication server.
  • step 103 when the number of query tasks received by the query server from the client exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority of the query server and the task receiving policy.
  • the instant messaging system and method for sharing user information uses a distributed query server to be responsible for query tasks of clients in different regions, and the query server processes the query tasks exceeding their thresholds according to tasks.
  • Priority and task receiving policies are assigned to other query servers.
  • the working efficiency of the query server and the global server can be improved, and the query efficiency of the user information can be improved.
  • it also effectively improves the throughput of the instant messaging system, and improves communication efficiency, making communication more immediate and smooth.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides an instant messaging system and method for sharing user information. The system comprises multiple clients and a messaging server. The clients are connected to the messaging server. The system further comprises a global server and query servers. The clients are connected to the query servers and the global server respectively through the messaging server, and the messaging server is connected to the global server through the query servers. The clients transmit user information to the global server through the messaging server, the user information is stored in the global server, and the global server synchronizes the user information to the query servers. When the number of query tasks received by the query servers from the clients exceeds a threshold, the query servers allocate the query tasks exceeding the threshold according to a task processing priority and a task receiving policy. The number of the query servers is at least two.

Description

一种用户信息共享的即时通讯***及方法 技术领域  Instant messaging system and method for sharing user information
本发明属于信息处理技术, 尤其涉及一种用户信息共享的即时通讯***及方法。 背景技术  The invention belongs to information processing technology, and in particular relates to an instant messaging system and method for sharing user information. Background technique
互联网技术的发展使我们可以足不出户就实现即时通讯, 与好友聊天, 与合作伙伴谈判 等等。 目前, 基于需要下载安装的即时通讯工具, 如 MSN, QQ, 网易泡泡已经深受大家的 喜爱, 它为人们的沟通、 信息交流提供了新的途径, 是除了手机、 固话、 电子邮件之外的又 一种重要的信息交流方式; 借助这些工具, 用户可以实现单人或者多人视频, 可以召开网络 视频会议, 可以进行网络远程教育, 还可以让人和人之间的交流成本大大降低, 且提高了效 率。  The development of Internet technology allows us to realize instant messaging, chat with friends, negotiate with partners, etc. without leaving home. At present, based on the need to download and install instant messaging tools, such as MSN, QQ, Netease bubble has been well received by everyone, it provides a new way for people to communicate, information exchange, is in addition to mobile phones, fixed-line, e-mail Another important way to exchange information; with these tools, users can realize single or multi-person video, can hold network video conferences, can conduct network distance education, and can greatly reduce the communication cost between people. And improve efficiency.
于上述即时通讯工具的使用过程中, 用户需要进行用户信息查询等操作。 然而, 当即时 通讯***的吞吐量十分大, 且信息交流十分频繁时, 会导致即时通讯***查询用户共享信息 的效率低下, 亦会导致即时通讯***延迟或业务处理失败, 更严重地甚至引起***崩溃。 发明内容  During the use of the above instant messaging tools, the user needs to perform operations such as querying user information. However, when the throughput of the instant messaging system is very large and the information exchange is very frequent, it may cause the instant messaging system to query the user to share the information inefficiently, which may also cause the instant messaging system to delay or the business processing failure, and even more seriously cause the system. collapse. Summary of the invention
本发明提供一种用户信息共享的即时通讯***及方法以解决上述问题。  The invention provides an instant messaging system and method for sharing user information to solve the above problems.
本发明提供一种用户信息共享的即时通讯***,包括多个客户端及至少一个通讯服务器。 客户端连接通讯服务器。 上述***还包括至少一个全局服务器以及查询服务器。 客户端通过 通讯服务器分别与查询服务器及全局服务器相连, 通讯服务器通过查询服务器与全局服务器 相连。 客户端通过通讯服务器将用户信息传输并存储至全局服务器, 全局服务器将用户信息 同步至查询服务器。 当查询服务器从客户端接收的查询任务的数目超过阈值时, 查询服务器 根据任务处理优先级以及任务接收策略分配超过阈值的查询任务。 其中, 查询服务器的数目 为至少两个。  The invention provides an instant messaging system for sharing user information, comprising a plurality of clients and at least one communication server. The client connects to the communication server. The above system also includes at least one global server and a query server. The client is connected to the query server and the global server through the communication server, and the communication server is connected to the global server through the query server. The client transmits and stores the user information to the global server through the communication server, and the global server synchronizes the user information to the query server. When the number of query tasks received by the query server from the client exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy. The number of query servers is at least two.
本发明还提供一种用户信息共享的即时通讯方法。 上述方法包括以下步骤: 用户登录客 户端, 客户端将用户信息传输并存储至全局服务器, 全局服务器将用户信息同步至查询服务 器; 查询服务器通过通讯服务器从客户端群接收查询任务; 当查询服务器从客户端接收的查 询任务的数目超过阈值时, 查询服务器根据任务处理优先级以及任务接收策略分配超过阈值 的查询任务。 其中, 查询服务器的数目为至少两个。  The invention also provides an instant messaging method for sharing user information. The above method includes the following steps: a user logs in to the client, the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server; the query server receives the query task from the client group through the communication server; When the number of query tasks received by the client exceeds the threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy. The number of query servers is at least two.
相较于先前技术, 根据本发明提供的用户信息共享的即时通讯***及方法, 客户端通过 对应的查询服务器进行用户信息查询, 且查询服务器根据任务处理优先级及任务接收策略将 超过其阈值的查询任务分配至其他查询服务器。 如此, 可提高查询服务器及全局服务器的工 作效率, 并提高用户信息的查询效率。 此外, 亦有效地提高了即时通讯***的吞吐量, 并提 高了通信效率, 使得通讯更加即时流畅。 附图说明 Compared with the prior art, the instant messaging system and method for sharing user information according to the present invention, the client passes The corresponding query server performs user information query, and the query server allocates the query task exceeding its threshold to other query servers according to the task processing priority and the task receiving policy. In this way, the working efficiency of the query server and the global server can be improved, and the query efficiency of the user information can be improved. In addition, it also effectively improves the throughput of the instant messaging system, and improves communication efficiency, making communication more immediate and smooth. DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发明的示 意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中:  The drawings are intended to provide a further understanding of the present invention, and are intended to be a part of the present invention, and the description of the present invention is not intended to limit the invention. In the drawing:
图 1所示为根据本发明的较佳实施例提供的用户信息共享的即时通讯***的示意图; 图 2所示为根据本发明的较佳实施例提供的查询服务器的示意图;  1 is a schematic diagram of an instant messaging system for sharing user information according to a preferred embodiment of the present invention; FIG. 2 is a schematic diagram of a query server according to a preferred embodiment of the present invention;
图 3所示为根据本发明的较佳实施例提供的用户信息共享的即时通讯方法的流程图。 具体实施方式  FIG. 3 is a flow chart showing a method for instant messaging of user information sharing according to a preferred embodiment of the present invention. detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
图 1所示为根据本发明的较佳实施例提供的用户信息共享的即时通讯***的示意图。 本 发明较佳实施例提供的用户信息共享的即时通讯***包括多个客户端、至少一个通讯服务器、 至少一个全局服务器以及至少两个查询服务器。如图 1所示, 以六个客户端 A10、 Al l , A20、 A2 A30、 A3 全局服务器、 三个通讯服务器 B1~B3以及三个查询服务器 C1~C3为例进 行说明。 然而, 本发明并不限定客户端、 全局服务器、 通讯服务器以及查询服务器的数目。 另夕卜, 如图 1所示, 客户端 A10~A11连接通讯服务器 Bl, 客户端 A20~A21连接通讯服务器 B2, 客户端 A30~A31连接通讯服务器 B3。 于此, 本发明亦并不限定每个通讯服务器连接的 客户端的数目。  1 is a schematic diagram of an instant messaging system for sharing user information according to a preferred embodiment of the present invention. The instant messaging system for sharing user information provided by the preferred embodiment of the present invention includes a plurality of clients, at least one communication server, at least one global server, and at least two query servers. As shown in Figure 1, six client A10, Al l, A20, A2 A30, and A3 global servers, three communication servers B1 to B3, and three query servers C1 to C3 are used as an example. However, the present invention does not limit the number of clients, global servers, communication servers, and query servers. In addition, as shown in Figure 1, the client A10~A11 is connected to the communication server Bl, the client A20~A21 is connected to the communication server B2, and the client A30~A31 is connected to the communication server B3. Here, the present invention also does not limit the number of clients to which each communication server is connected.
于本实施例中, 如图 1所示, 客户端 A10~A11通过通讯服务器 B1与查询服务器 C1及 全局服务器相连, 客户端 A20~A21通过通讯服务器 B2与查询服务器 C2及全局服务器相连, 客户端 A30~A31通过通讯服务器 B3与查询服务器 C3及全局服务器相连。 通讯服务器 Bl, B2, B3分别通过查询服务器 CI, C2, C3与全局服务器相连。 举例而言, 上海的客户端通过 上海的通讯服务器与上海的查询服务器相连, 苏州的客户端通过苏州的通讯服务器与苏州的 查询服务器相连, 北京的客户端通过北京的通讯服务器与北京的查询服务器相连。 于此, 查 询服务器的数目与通讯服务器的数目一致。 然而, 本发明并不限定于此。 于其他实施例中, 通讯服务器的数目可为一个, 且通讯服务器可与多个查询服务器相连。 于本实施例中, 客户端 A10~A11, A20-A21 , A30~A31分别通过通讯服务器 B1~B3将 用户信息传输并存储至全局服务器,全局服务器将用户信息同步至查询服务器 C1~C3。其中, 用户信息不限于用户登录信息, 亦可包括用户修改信息, 用户更新信息等。 具体而言, 不同 区域的客户端通过通讯服务器与不同的查询服务器相连而共用全局服务器。 相应的查询服务 器可为对应区域的客户端服务,执行客户端发送的查询任务(例如查询用户信息)。举例而言, 上海的查询服务器可为上海用户提供用户信息查询服务, 苏州的查询服务器可为苏州用户提 供用户信息查询服务。 如此, 采用分布式的查询服务器负责不同区域客户端的查询任务, 提 高了查询效率, 使得通讯更即时流畅。 In this embodiment, as shown in FIG. 1, the client A10~A11 is connected to the query server C1 and the global server through the communication server B1, and the client A20~A21 is connected to the query server C2 and the global server through the communication server B2, and the client A30~A31 are connected to the query server C3 and the global server through the communication server B3. The communication servers Bl, B2, and B3 are connected to the global server through the query servers CI, C2, and C3, respectively. For example, the client in Shanghai is connected to the query server in Shanghai through the communication server in Shanghai. The client in Suzhou is connected to the query server in Suzhou through the communication server in Suzhou. The client in Beijing passes the communication server in Beijing and the query server in Beijing. Connected. Here, the number of query servers is the same as the number of communication servers. However, the invention is not limited thereto. In other embodiments, the number of communication servers may be one, and the communication server may be connected to multiple query servers. In this embodiment, the clients A10~A11, A20-A21, and A30~A31 respectively transmit and store the user information to the global server through the communication servers B1~B3, and the global server synchronizes the user information to the query servers C1~C3. The user information is not limited to the user login information, and may also include user modification information, user update information, and the like. Specifically, clients in different areas share the global server by connecting to different query servers through the communication server. The corresponding query server can serve the client of the corresponding area, and execute the query task sent by the client (for example, querying the user information). For example, the query server in Shanghai can provide user information query service for Shanghai users, and the query server in Suzhou can provide user information query service for Suzhou users. In this way, the distributed query server is responsible for the query tasks of clients in different regions, which improves the query efficiency and makes the communication more immediate and smooth.
于本实施例中, 当查询服务器从多个客户端接收的查询任务的数目超过阈值时, 查询服 务器根据任务处理优先级以及任务接收策略分配超过阈值的查询任务。 其中, 阈值例如可根 据不同查询服务器的工作效率进行设定。 此外, 查询服务器根据查询服务器的空闲率设定任 务处理优先级。  In this embodiment, when the number of query tasks received by the query server from the plurality of clients exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy. The threshold value can be set, for example, according to the working efficiency of different query servers. In addition, the query server sets the task processing priority based on the idle rate of the query server.
具体而言, 查询服务器可预设空闲率与任务处理优先级等级对照表。 例如, 当任务处理 优先级的等级设置为四级时, 空闲率与任务处理优先级等级对应关系如下: 空闲率为 80%~100%的查询服务器对应第 4等级, 空闲率为 60%~80%的查询服务器对应第 3等级, 空 闲率为 40%~60%的查询服务器对应第 2等级,空闲率为 0%~40%的查询服务器对应第 1等级。 于此, 空闲率越大的查询服务器的优先级等级越高。 然而, 本发明并不限定于此。 上述任务 处理优先级的等级以及其与空闲率的对应关系可根据实际需要进行设定。  Specifically, the query server may preset a comparison table of the idle rate and the task processing priority level. For example, when the task processing priority level is set to four levels, the relationship between the idle rate and the task processing priority level is as follows: The query server with an idle rate of 80% to 100% corresponds to the fourth level, and the idle rate is 60% to 80. The query server of % corresponds to the third level, the query server with the idle rate of 40% to 60% corresponds to the second level, and the query server with the idle rate of 0% to 40% corresponds to the first level. Here, the query server having a higher idle rate has a higher priority level. However, the invention is not limited thereto. The level of the above task processing priority and its correspondence with the idle rate can be set according to actual needs.
接下来以三个查询服务器 C1~C3及任务处理优先级等级设置为 4级为例进行具体说明。 如图 1所示, 客户端 A10~A11, A20-A21 , A30-A31分别通过通讯服务器 B1~B3发送查询 任务至对应的查询服务器 C1~C3, 查询服务器 C1~C3实时监测所有查询服务器 C1~C3的工 作状态。 当查询服务器 C1通过通讯服务器 B1从客户端 A10~A11接收的查询任务的数目超 过查询服务器 C1的阈值时, 查询服务器 C1会根据查询服务器 C2、 C3的空闲率更新任务处 理优先级的排列。 若查询服务器 C2的实时空闲率为 85%, 查询服务器 C3 的实时空闲率为 70%, 则查询服务器 C1依照空闲率与任务处理优先级等级对照表可设置查询服务器 C2为第 4等级, 查询服务器 C3为第 3等级, 即查询服务器 C2的优先级等级高于查询服务器 C3。 于 本实施例中, 根据查询服务器的实时空闲率, 查询服务器的任务处理优先级可实时更新。 如 此, 查询服务器 C1会将其超过阈值的查询任务先分配至查询服务器 C2 (即, 第 4级的查询 服务器)。 查询服务器 C2会根据任务接收策略接收相应数目的查询任务。 于此, 任务接收策 略为查询服务器的阈值与当前任务量的差值。  Next, the three query servers C1 to C3 and the task processing priority level are set to level 4 as an example for specific description. As shown in Figure 1, the clients A10~A11, A20-A21, and A30-A31 send query tasks to the corresponding query servers C1~C3 through the communication servers B1~B3 respectively. The query servers C1~C3 monitor all query servers C1~ in real time. The working status of C3. When the number of query tasks received by the query server C1 from the client A10~A11 through the communication server B1 exceeds the threshold of the query server C1, the query server C1 updates the rank of the task processing priorities according to the idle rates of the query servers C2 and C3. If the real-time idle rate of the query server C2 is 85%, and the real-time idle rate of the query server C3 is 70%, the query server C1 can set the query server C2 to the fourth level according to the idle rate and the task processing priority level comparison table, and query the server. C3 is the third level, that is, the priority level of the query server C2 is higher than that of the query server C3. In this embodiment, according to the real-time idle rate of the query server, the task processing priority of the query server can be updated in real time. As such, query server C1 will assign its query task that exceeds the threshold to query server C2 (that is, the level 4 query server). The query server C2 receives a corresponding number of query tasks according to the task receiving policy. Here, the task receiving policy is the difference between the threshold of the query server and the current task amount.
若查询服务器 C2接收查询服务器 C1分配的查询任务后, 其处理的查询任务总数未超过 查询服务器 C2设置的阈值, 则查询服务器 C2负责执行所有超过查询服务器 C1的阈值的查 询任务。 若查询服务器 C2处理的查询任务总数超过查询服务器 C2设置的阈值, 则查询服务 器 C1将超过查询服务器 C2阈值的查询任务再分配至查询服务器 C3 (即, 第 3等级的查询 服务器)。 然而, 本发明并不限定于此。 于其他实施例中, 若查询服务器 C2处理的查询任务 总数超过查询服务器 C2设置的阈值, 则查询服务器 C2可将超过查询服务器 C2阈值的查询 任务再分配至查询服务器 C3 (即, 第 3等级的查询服务器)。 接着, 判断查询服务器 C3接收 上述查询任务后查询任务的总数是否超过查询服务器 C3的阈值。 若超过, 查询服务器 C1或 查询服务器 C3 可调用优先级序列中下一等级的查询服务器执行查询任务。 当不存在下一等 级的查询服务器时, 待处理的查询任务排队等候处理。 于此, 查询服务器根据空闲率及优先 级的组合分配查询任务, 充分利用了查询服务器, 避免了资源浪费, 亦提高了信息查询效率。 If the query server C2 receives the query task assigned by the query server C1, the total number of query tasks processed by the query server C2 does not exceed Querying the threshold set by the server C2, the query server C2 is responsible for executing all the query tasks exceeding the threshold of the query server C1. If the total number of query tasks processed by the query server C2 exceeds the threshold set by the query server C2, the query server C1 reallocates the query task exceeding the threshold of the query server C2 to the query server C3 (ie, the query server of the third level). However, the invention is not limited thereto. In other embodiments, if the total number of query tasks processed by the query server C2 exceeds the threshold set by the query server C2, the query server C2 may re-allocate the query task exceeding the threshold of the query server C2 to the query server C3 (ie, level 3). Query the server). Next, it is determined whether the total number of query tasks after the query server C3 receives the query task exceeds the threshold of the query server C3. If exceeded, the query server C1 or the query server C3 can invoke the query server of the next level in the priority sequence to execute the query task. When there is no next level of query server, the query tasks to be processed are queued for processing. In this case, the query server allocates the query task according to the combination of the idle rate and the priority, and fully utilizes the query server, thereby avoiding waste of resources and improving information query efficiency.
图 2所示为根据本发明较佳实施例的查询服务器的示意图。 如图 1与图 2所示, 查询服 务器包括监测模块 100、控制模块 101、存储模块 102以及接收模块 103。其中,控制模块 101 连接监测模块 100, 存储模块 102连接接收模块 103。监测模块 100监测所有查询服务器接收 的查询任务的数目并将监测到的上述数据传输至控制模块 101。 控制模块 101根据查询服务 器的空闲率更新任务处理优先级, 并根据任务处理优先级及任务接收策略分配超过阈值的查 询任务。 接收模块 103从全局服务器同步接收用户信息, 存储模块 102存储用户信息。  2 is a schematic diagram of a query server in accordance with a preferred embodiment of the present invention. As shown in FIG. 1 and FIG. 2, the query server includes a monitoring module 100, a control module 101, a storage module 102, and a receiving module 103. The control module 101 is connected to the monitoring module 100, and the storage module 102 is connected to the receiving module 103. The monitoring module 100 monitors the number of query tasks received by all of the query servers and transmits the monitored data to the control module 101. The control module 101 updates the task processing priority according to the idle rate of the query server, and allocates a query task exceeding the threshold according to the task processing priority and the task receiving policy. The receiving module 103 synchronously receives user information from the global server, and the storage module 102 stores user information.
于本实施例中, 用户登录客户端, 客户端将用户信息传输并存储至全局服务器, 全局服 务器将用户信息同步至查询服务器。 查询服务器的接收模块 103从全局服务器同步接收用户 信息。 查询服务器通过通讯服务器从客户端接收查询任务, 且查询服务器的监测模块 100监 测所有查询服务器接收的查询任务的数目。 同时, 监测模块 100把监测到的查询服务器接收 的查询任务的数目传输至控制模块 101。 控制模块 101接收上述数据后可判断上述数据是否 超过设置的阈值并计算查询服务器的空闲率。 当查询服务器从客户端接收的查询任务的数目 超过其设置的阈值时, 查询服务器的控制模块 101根据任务处理优先级及任务接收策略分配 超过阈值的查询任务。 关于查询服务器根据任务处理优先级及任务接收策略分配查询任务的 过程同前所述, 故于此不再赘述。  In this embodiment, the user logs in to the client, and the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server. The receiving module 103 of the query server receives the user information synchronously from the global server. The query server receives the query task from the client through the communication server, and the monitoring module 100 of the query server monitors the number of query tasks received by all the query servers. At the same time, the monitoring module 100 transmits the number of query tasks received by the monitored query server to the control module 101. After receiving the above data, the control module 101 can determine whether the data exceeds the set threshold and calculate the idle rate of the query server. When the number of query tasks received by the query server from the client exceeds the threshold set by the client, the control module 101 of the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy. The process of assigning a query task according to the task processing priority and the task receiving policy by the query server is the same as that described above, and thus will not be described herein.
图 3所示为根据本发明较佳实施例的用户信息共享的即时通讯方法的流程图。 如图 3所 示, 于步骤 101, 用户登录客户端, 客户端将用户信息传输并存储至全局服务器, 全局服务 器将用户信息同步至查询服务器。 于步骤 102, 查询服务器通过通讯服务器从客户端接收查 询任务。 于步骤 103, 当查询服务器从客户端接收的查询任务的数目超过阈值时, 查询服务 器根据查询服务器的任务处理优先级以及任务接收策略分配超过阈值的查询任务。 关于上述 步骤的具体过程同前所述, 故于此不再赘述。 综上所述, 根据本发明较佳实施例提供的用户信息共享的即时通讯***及方法, 采用分 布式的查询服务器负责不同区域客户端的查询任务, 查询服务器对超过其阈值的查询任务根 据任务处理优先级以及任务接收策略分配至其他查询服务器。 如此, 可提高查询服务器及全 局服务器的工作效率, 并提高用户信息的查询效率。 此外, 亦有效地提高了即时通讯***的 吞吐量, 并提高了通信效率, 使得通讯更加即时流畅。 3 is a flow chart showing an instant messaging method for user information sharing in accordance with a preferred embodiment of the present invention. As shown in FIG. 3, in step 101, the user logs in to the client, and the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server. In step 102, the query server receives the query task from the client through the communication server. In step 103, when the number of query tasks received by the query server from the client exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority of the query server and the task receiving policy. The specific process of the above steps is the same as described above, and therefore will not be described again. In summary, the instant messaging system and method for sharing user information according to the preferred embodiment of the present invention uses a distributed query server to be responsible for query tasks of clients in different regions, and the query server processes the query tasks exceeding their thresholds according to tasks. Priority and task receiving policies are assigned to other query servers. In this way, the working efficiency of the query server and the global server can be improved, and the query efficiency of the user information can be improved. In addition, it also effectively improves the throughput of the instant messaging system, and improves communication efficiency, making communication more immediate and smooth.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人员 来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何修改、 等 同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、一种用户信息共享的即时通讯***, 包括多个客户端及至少一个通讯服务器, 所述多 个客户端连接所述通讯服务器, 其特征在于, 所述用户信息共享的即时通讯***还包括: 至少一个全局服务器; 以及 查询服务器, 所述多个客户端通过所述通讯服务器分别与所述查询服务器及所述全局服 务器相连, 所述通讯服务器通过所述查询服务器与所述全局服务器相连, 所述多个客户端通 过所述通讯服务器将用户信息传输并存储至所述全局服务器, 所述全局服务器将所述用户信 息同步至所述查询服务器,  An instant messaging system for sharing user information, comprising a plurality of clients and at least one communication server, wherein the plurality of clients are connected to the communication server, wherein the instant messaging system for sharing the user information further comprises And at least one global server; and a query server, wherein the plurality of clients are respectively connected to the query server and the global server by using the communication server, and the communication server is connected to the global server by using the query server, The plurality of clients transmit and store user information to the global server through the communication server, and the global server synchronizes the user information to the query server.
当所述查询服务器从所述多个客户端接收的查询任务的数目超过阈值时, 所述查询服务 器根据任务处理优先级以及任务接收策略分配超过所述阈值的查询任务, 其中, 所述查询服 务器的数目为至少两个。  When the number of the query tasks received by the query server from the plurality of clients exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy, where the query server The number is at least two.
2、 根据权利要求 1所述的用户信息共享的即时通讯***, 其特征在于, 所述查询服务器 依据查询服务器的空闲率设定所述任务处理优先级。  2. The instant messaging system for sharing user information according to claim 1, wherein the query server sets the task processing priority according to an idle rate of the query server.
3、 根据权利要求 2所述的用户信息共享的即时通讯***, 其特征在于, 若所述查询服务 器的所述任务处理优先级依据所述查询服务器的空闲率设定为 4级, 则所述查询服务器将超 过阈值的查询任务分配至第 4等级的查询服务器。  The user information sharing instant messaging system according to claim 2, wherein if the task processing priority of the query server is set to 4 levels according to the idle rate of the query server, The query server assigns a query task that exceeds the threshold to the query server of level 4.
4、 根据权利要求 3所述的用户信息共享的即时通讯***, 其特征在于, 若第 4等级的查 询服务器接收分配的查询任务后, 第 4等级的查询服务器处理的查询任务的数目超过设置的 阈值, 则所述查询服务器调用第 3等级的查询服务器执行查询任务。  4. The instant messaging system for sharing user information according to claim 3, wherein if the query server of the fourth level receives the assigned query task, the number of query tasks processed by the query server of the fourth level exceeds the set Threshold, then the query server invokes the third level query server to perform the query task.
5、 根据权利要求 3所述的用户信息共享的即时通讯***, 其特征在于, 若第 4等级的查 询服务器接收分配的查询任务后, 第 4等级的查询服务器处理的查询任务的数目超过设置的 阈值, 则所述第 4等级的查询服务器调用第 3等级的查询服务器执行查询任务。  The instant messaging system for sharing user information according to claim 3, wherein if the query server of the fourth level receives the assigned query task, the number of query tasks processed by the query server of the fourth level exceeds the set Threshold, then the fourth level query server invokes the third level query server to execute the query task.
6、 根据权利要求 1所述的用户信息共享的即时通讯***, 其特征在于, 所述任务接收策 略为查询服务器的阈值与当前任务数的差值。  The instant messaging system for sharing user information according to claim 1, wherein the task receiving policy is a difference between a threshold of the query server and a current task number.
7、 根据权利要求 1所述的用户信息共享的即时通讯***, 其特征在于, 所述查询服务器 包括控制模块以及监测模块, 所述控制模块连接所述监测模块, 所述监测模块监测所述查询 服务器接收的查询任务的数目并将上述查询任务的数目传输至所述控制模块, 所述控制模块 根据所述查询服务器的空闲率更新所述任务处理优先级, 并根据所述任务处理优先级及所述 任务接收策略分配超过所述阈值的所述查询任务。 7. The instant messaging system for sharing user information according to claim 1, wherein the query server comprises a control module and a monitoring module, the control module is connected to the monitoring module, and the monitoring module monitors the query. The number of the query tasks received by the server is transmitted to the control module, and the control module updates the task processing priority according to the idle rate of the query server, and processes the priority according to the task and The task receiving policy allocates the query task that exceeds the threshold.
8、 根据权利要求 1所述的用户信息共享的即时通讯***, 其特征在于, 所述查询服务器 包括存储模块, 所述存储模块存储所述用户信息。 8. The instant messaging system for sharing user information according to claim 1, wherein the query server comprises a storage module, and the storage module stores the user information.
9、 根据权利要求 8所述的用户信息共享的即时通讯***, 其特征在于, 所述查询服务器 还包括接收模块, 所述接收模块连接所述存储模块, 用于从所述全局服务器同步接收所述用 户信息。  The user information sharing instant messaging system according to claim 8, wherein the query server further comprises a receiving module, wherein the receiving module is connected to the storage module, and is configured to synchronously receive the receiving device from the global server. User information.
10、 一种用户信息共享的即时通讯方法, 其特征在于, 包括如下步骤:  10. An instant messaging method for sharing user information, comprising the steps of:
用户登录客户端, 所述客户端将用户信息传输并存储至全局服务器, 所述全局服务器将 所述用户信息同步至查询服务器;  The user logs in to the client, and the client transmits and stores the user information to the global server, and the global server synchronizes the user information to the query server;
所述查询服务器通过通讯服务器从所述客户端接收查询任务;  The query server receives a query task from the client through a communication server;
当所述查询服务器从所述客户端接收的所述查询任务的数目超过阈值时, 所述查询服务 器根据任务处理优先级以及任务接收策略分配超过所述阈值的查询任务, 其中, 所述查询服 务器的数目为至少两个。  When the number of the query tasks received by the query server from the client exceeds a threshold, the query server allocates a query task that exceeds the threshold according to the task processing priority and the task receiving policy, where the query server The number is at least two.
PCT/CN2012/075527 2011-05-24 2012-05-15 Instant messaging system and method for sharing user information WO2012159537A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110135445.7 2011-05-24
CN 201110135445 CN102209050B (en) 2011-05-24 2011-05-24 Instant messaging system and method for realizing user information sharing

Publications (1)

Publication Number Publication Date
WO2012159537A1 true WO2012159537A1 (en) 2012-11-29

Family

ID=44697719

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075527 WO2012159537A1 (en) 2011-05-24 2012-05-15 Instant messaging system and method for sharing user information

Country Status (2)

Country Link
CN (1) CN102209050B (en)
WO (1) WO2012159537A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209048B (en) * 2011-05-24 2012-05-23 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing for users
CN102209050B (en) * 2011-05-24 2012-07-18 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN102209051B (en) * 2011-05-24 2012-07-04 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN102209049B (en) * 2011-05-24 2012-07-18 苏州阔地网络科技有限公司 Instant messaging system and method for user information processing
CN107786621B (en) * 2016-08-31 2020-10-16 阿里巴巴集团控股有限公司 User information management method, access processing method, device and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022395A (en) * 2007-03-16 2007-08-22 钱晓东 User information sharing and controlling method based on immediate communication platform
CN101072166A (en) * 2007-04-28 2007-11-14 腾讯科技(深圳)有限公司 System and method for realizing network reserved storage
CN101715003A (en) * 2009-11-12 2010-05-26 北京交通大学 Load control optimization method of interoperable platform
CN102209047A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing
CN102209049A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for user information processing
CN102209050A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN102209048A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing for users
CN102209051A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090371B (en) * 2006-06-14 2011-02-02 阿里巴巴集团控股有限公司 Method and system for user information management in at-once communication system
CN101577685B (en) * 2008-05-09 2012-05-23 中国电信股份有限公司 Information inquiry method and system
CN101969468B (en) * 2010-10-14 2013-09-18 广州从兴电子开发有限公司 Inquiry server cluster system and inquiry method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022395A (en) * 2007-03-16 2007-08-22 钱晓东 User information sharing and controlling method based on immediate communication platform
CN101072166A (en) * 2007-04-28 2007-11-14 腾讯科技(深圳)有限公司 System and method for realizing network reserved storage
CN101715003A (en) * 2009-11-12 2010-05-26 北京交通大学 Load control optimization method of interoperable platform
CN102209047A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing
CN102209049A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for user information processing
CN102209050A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN102209048A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing for users
CN102209051A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing

Also Published As

Publication number Publication date
CN102209050A (en) 2011-10-05
CN102209050B (en) 2012-07-18

Similar Documents

Publication Publication Date Title
WO2012159538A1 (en) Instant messaging system and method for sharing information
US10367852B2 (en) Multiplexed demand signaled distributed messaging
Habib et al. The past, present, and future of transport-layer multipath
CN1622549A (en) Method and apparatus for sharing applications using p2p protocol
WO2014190791A1 (en) Method for setting identity of gateway device and management gateway device
WO2009097300A2 (en) Bandwidth-aware multicast load balancing on a multi-interface host
US9729347B2 (en) System and method for selection of a conference bridge master server
WO2012159537A1 (en) Instant messaging system and method for sharing user information
WO2010081401A1 (en) Video service system
Kliazovich et al. CA-DAG: Communication-aware directed acyclic graphs for modeling cloud computing applications
WO2012059052A1 (en) Method and apparatus for implementing multimedia conference
US9596063B2 (en) Dynamically allocating network resources for communication session
KR20020010913A (en) Method and apparatus in a communication network
WO2012159539A1 (en) Instant messaging system and method for processing user information
CN102638582A (en) Data communicating method and communication end
WO2012159535A1 (en) Instant messaging system and method for sharing user information
US8385533B2 (en) Bidding work assignment on conference/subscribe RTP clearing house
CN103763206B (en) Network scheduling method and gateway
WO2012159493A1 (en) Instant messaging system and method for sharing user information
US20080235384A1 (en) Web service for coordinating actions of clients
JP5154313B2 (en) SIP message distribution method and SIP message distribution apparatus
EP3257197B1 (en) Distribution of bandwidth in a network
JP2011203810A (en) Server, computer system, and virtual computer management method
WO2020082839A1 (en) Message processing method, related device and computer storage medium
Xing et al. Geographic-based service request scheduling model for mobile cloud computing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12789620

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12789620

Country of ref document: EP

Kind code of ref document: A1