[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2014078989A1 - Message processing method and server - Google Patents

Message processing method and server Download PDF

Info

Publication number
WO2014078989A1
WO2014078989A1 PCT/CN2012/084897 CN2012084897W WO2014078989A1 WO 2014078989 A1 WO2014078989 A1 WO 2014078989A1 CN 2012084897 W CN2012084897 W CN 2012084897W WO 2014078989 A1 WO2014078989 A1 WO 2014078989A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
message
operation event
request message
event
Prior art date
Application number
PCT/CN2012/084897
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 华为技术有限公司
Priority to PCT/CN2012/084897 priority Critical patent/WO2014078989A1/en
Priority to CN201280003447.3A priority patent/CN103370917B/en
Publication of WO2014078989A1 publication Critical patent/WO2014078989A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • Embodiments of the present invention relate to the Internet (Internet Technology, IT for short) technology, and in particular, to a message processing method and a server. Background technique
  • the IT system usually includes two types of communication entities, one is a client and the other is a server.
  • the server usually provides services for multiple clients, and the client and the server establish a connection by sending and receiving messages.
  • the client sends a message to the server from time to time, so that the server performs a corresponding operation according to the message; accordingly, after receiving the message of the client, the server can process the message content to complete the processing of the message content.
  • the processing result is returned to the corresponding client.
  • the server will process the messages of these clients at the same time, which causes the server to have a large overhead, which affects the server's message processing efficiency, and may even have problems in accepting new client messages.
  • the embodiment of the invention provides a message processing method and a server to solve the problem that the server has a large overhead when processing a large number of client messages.
  • a first aspect of the embodiments of the present invention provides a message processing method, including:
  • the server receives the first request message sent by the client
  • the queue is used to cache different request messages sent by different clients, and the server needs to perform the same first operation event for different request messages sent by different clients in the first cache message queue;
  • the server performs the first operation event, the server sends a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
  • the method further includes:
  • the server The first request message is cached before the first cache message queue, and further includes: the server determining whether the first operation event is a preset merge processing event, and if yes, performing the first request message The step of caching in the first cache message queue; if not, the server initiating execution of the first operation event for the first request message.
  • the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
  • the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
  • Add operation create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • the method further includes: Deleting the first cached message queue.
  • a second aspect of the embodiments of the present invention provides a server, including:
  • a receiving module configured to receive a first request message sent by the client
  • a determining module configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message
  • a processing module configured to determine whether the first operation event has been started, and if the first operation event has been started, buffering the first request message in a first cache message queue, the first cache message
  • the queue is used to cache different request messages sent by different clients, and the same first operation event needs to be performed for different request messages sent by different clients in the first cache message queue;
  • a sending module configured to send, when the first operation event is completed, a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
  • the determining module is specifically configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof The first operation event corresponding to the first request message is described.
  • the processing module is further configured to: after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding operation The first cached message queue of the first operational event.
  • the method further includes:
  • a pre-processing module configured to determine whether the first operation event is a preset merge processing event, and if yes, the processing module performs the step of buffering the first request message in a first cache message queue; If no, the processing module initiates execution of the first operational event for the first request message.
  • the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
  • the adding The operation processing event of the server CPU processing time and efficiency includes at least one of the following operational events:
  • Add operation create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • a deleting module configured to delete the first cached message queue after the sending module sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue.
  • a third aspect of the embodiments of the present invention provides a server, including:
  • a receiver configured to receive a first request message sent by the client
  • a processor configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, determine whether the first operation event has been started, and if the first operation event has been started An operation event, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, for different clients in the first cached message queue. Different request messages sent by the terminal need to perform the same first operation event;
  • a transmitter configured to send, when the first operation event is completed, a response message of the first operation event to each client corresponding to a different request message in the first cache message queue.
  • the processor is specifically configured to determine, according to any one of an operation object, an operation content, or an operation result of the first request message, or any combination thereof.
  • the first operation event corresponding to the first request message is described.
  • the processor is further configured to, after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding to the The first cached message queue of the first operational event.
  • the processor Also used to determine whether the first operational event is a preset merge processing event, such as If yes, performing the step of buffering the first request message in the first cache message queue; if not, initiating execution of the first operation event for the first request message.
  • a preset merge processing event such as If yes, performing the step of buffering the first request message in the first cache message queue; if not, initiating execution of the first operation event for the first request message.
  • the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
  • the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
  • Add operation create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • the processor is further configured to delete the first message after the sender sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. A cached message queue.
  • a fourth aspect of the embodiments of the present invention provides a server, including:
  • a processor for executing instructions stored in a memory
  • a communication interface for storing data
  • a memory for storing instructions
  • the communication interface is configured to receive a request message of the client and output a response message to the client;
  • the processor is configured to execute a program;
  • the first operation event, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, where the server is for the first cache Different request messages sent by different clients in the message queue need to perform the same first operation event; when the server finishes executing the first operation event, corresponding to different request messages in the first cache message queue
  • Each client sends a response message for the first operational event.
  • the program is further configured to: if it is determined that the first operation event is not started, start executing the first operation event, and create a pair The first cached message queue should be in the first operational event.
  • the program is further configured to: determine, according to any one of an operation object, an operation content, or an operation result of the first request message, or any combination thereof The first operation event corresponding to the first request message.
  • the program is further And, after determining that the first operation event is not started, starting to execute the first operation event, and creating a first cache message queue 1 corresponding to the first operation event.
  • the program is further configured to: determine whether the first operation event is a preset merge processing event, and if yes, execute the The step of buffering the first request message in the first cache message queue; if not, initiating execution of the first operation event for the first request message.
  • the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
  • Add operation create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • the program is further configured to delete the first message after the communication interface sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. Cache message queues.
  • the message processing method and the server of the embodiment of the present invention obtain the response message of the first operation event by performing processing on the first operation event corresponding to the first request message, and send the response message to the storage to perform the same first operation.
  • Each client corresponding to a different request message in the first cache message queue of the different request message of the event therefore, the server only needs to perform processing for the first operation event corresponding to the multiple clients, thereby reducing server processing
  • the overhead of the same operational events improves the processing efficiency of the server, enabling the server to receive and process more client messages.
  • Embodiment 1 is a flowchart of Embodiment 1 of a message processing method according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a message processing method according to the present invention
  • Embodiment 1 of a server according to the present invention is a schematic structural diagram of Embodiment 1 of a server according to the present invention.
  • Embodiment 2 of a server according to the present invention is a schematic structural diagram of Embodiment 2 of a server according to the present invention.
  • FIG. 5 is a schematic structural diagram of Embodiment 3 of a server according to the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a first embodiment of a message processing method according to the present invention. As shown in FIG. 1, the message processing method in this embodiment may include:
  • the server receives a first request message sent by the client.
  • the server may receive a request message sent to the client by at least one client, the first request message being one of the request messages received by the server.
  • the first request message is a request message of any event that can be processed by the client requesting the server.
  • the server determines, according to the attribute information of the first request message, a first operation event corresponding to the first request message.
  • the server may determine, according to the attribute information included in the first request message, that the first request message requests the server to perform an operation, that is, determine the first operation event.
  • the attribute information may be, for example, an operation content and an operation object included in the first request message.
  • the operation object included in the first request message is a server information list
  • the operation content is a query
  • the first request message requesting server may perform the "query server information list" operation, That is, the first operation event is "Query Server Information List”.
  • the server determines whether it has started to execute the first operation event.
  • the server may determine whether the operation currently being executed contains the same operation event as the first operation event by querying its own maintenance list or the like.
  • the first request message is cached in the first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, where the server is in the first cached message queue. Different request messages sent by different clients need to perform the same first operational event.
  • the server puts the first request message into the first cache message queue and waits for the first operation event requested by the server.
  • the first cache message queue is a cache area set by the server, and is used to store different request messages sent by different clients to the server requesting the server to perform the same first operation event. That is, from the start of the first operation event by the server, until the server executes the first operation event, all the request messages received by the server to execute the first operation event are placed in the first cache message queue to wait for the server. The result of processing the first operational event.
  • the server When the server finishes performing the first operation event, the server sends a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
  • the server processes the first operation event, acquiring, from the first cache message queue, the corresponding at least one client identifier of the at least one request message stored in the first cache message queue, and the first A response message to the operational event is sent to the corresponding client identified by the at least one client.
  • the response message of the first operation event is obtained by performing processing on the first operation event corresponding to the first request message, and the response message is sent to the storage to perform the same first operation event.
  • the server only needs to perform processing for the first operation event corresponding to the multiple clients, thereby reducing the server processing the same operation event. of Overhead, improve the processing efficiency of the server, enabling the server to receive and process more client messages.
  • the server determines that it has not started executing the first operation event, it starts executing the first operation event and creates a first cache message queue corresponding to the first operation event.
  • the server may determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first operation event corresponding to the first request message, if the server determines according to the attribute information.
  • the operation event that is, the first operation event does not start execution, the server starts executing the first operation event, and creates a queue, that is, the first cache message queue, to store the first request message.
  • the server caches the first request message before the first cache message queue, and the server may further determine whether the first operation event is a preset merge processing event, and if yes, execute the The step of the first request message being cached in the first cache message queue; if not, the server initiating execution of the first operation event for the first request message.
  • the server caches the first request message before the first cache message queue, and further determines whether the first operation event corresponding to the first request message is a preset merge processing event by searching corresponding record information, where the Set merge processing events include, but are not limited to, operational processing events that increase server CPU processing time and efficiency.
  • the operational processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
  • Add operation create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • the first operation event is a preset merge processing event
  • the first request message is cached in the first cache message queue
  • the server may start for the first request message. Execute the first operational event.
  • the "query A server” event is a preset merge processing event
  • the "query current user number” event is a preset non-merging processing event
  • the server learns the request message according to the attribute information of the received request message.
  • the corresponding operation event is a "query A server” event
  • the request message is cached in a cache queue that needs to execute the "query A server” event, and the server learns the request message according to the attribute information of the received request message.
  • the corresponding operation event is the "query the current number of users” event, and the server executes the "query the current number of users” event, so that the server determines whether the received request is a preset merge processing event, and requests the server to execute the preset.
  • the request message for merging the processing event is cached, and the request message for requesting the server to execute the non-preset merge processing event is directly processed, thereby improving the processing efficiency of the server, improving compatibility with the existing server, and facilitating operation.
  • the method further includes: deleting the first cache message queue.
  • the server may also delete the first cache message queue to avoid sending the first operation event.
  • the response message is followed by a new first request message placed in the first cache message queue waiting for a response to the first operational event.
  • FIG. 2 is a flowchart of a second embodiment of a message processing method according to the present invention.
  • FIG. 2 is processed by a Hypertext Transfer Protocol (http) server.
  • http Hypertext Transfer Protocol
  • the message interaction module of the http server receives the request message sent by the http client, and the http client may be multiple.
  • the message management module learns that the request message is a query operation event by using an attribute of the request message, and the attribute of the request message is http://10.122.101.43: 8080/hwm/server, where the query name is namel, htt server By judging that the query operation event is a preset merge processing event, the message management module may further determine whether the processing module of the http server has started to execute the request message request.
  • the query name is namel http://10.122.101.43:8080 /hwm/server" Query operation event, if the processing module is currently positive
  • the operation management event does not have the operation, and the message management module creates a new message queue to store the request message.
  • the request message is placed.
  • the request sent by the http client in the message queue is http.
  • the server performs the query operation of the query name name http://10.122.101.43:8080/hwm/server" The message of the event.
  • the notification message processing module processes the request message.
  • the message management module notifies the message processing module to process the first request message placed in the newly created message queue, and the message management module can also notify the message processing module to process the request message with the highest priority level in the newly created message queue.
  • the message processing module processes the query operation name for the query name name http://10.122.101.43 :8080/hwm/server.
  • the processing module notifies the message management module of the response to the query operation event of the query name http_10.122.101.43: 8080/hwm/server.
  • the message management module obtains the client information of all the request messages from the message queue of the query request server http://10.122.101.43:8080/hwm/server query operation event.
  • the notification message interaction module returns the result of the request.
  • the message management module notifies the message interaction module to return the message processing module to all the obtained clients.
  • the query name is http: ⁇ 10.122.101.43:8080/hwm/server, and the response message of the operation event is queried.
  • the message interaction module returns the above response message to all of the above clients.
  • the message management module may delete and store the query operation event corresponding to the query name http://10.122.101.43: 8080/hwm/server.
  • the message queue for the request message the message processing method in the embodiment of the present invention can also be applied to the Transmission Control Protocol/User Datagram Protocol (Tcp/udp) server to process the tcp/udp client to send to the Tcp/udp client.
  • Tcp/udp Transmission Control Protocol/User Datagram Protocol
  • the message, the execution process, and the beneficial effects are similar to the second embodiment of the message processing method. For details, refer to the second embodiment of the message processing method, and details are not described herein again.
  • the server in this embodiment includes: a receiving module 301, a determining module 302, a processing module 303, and a sending module 304, where the receiving module 301 is configured to Receiving a first request message sent by the client; the determining module 302, configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, where the processing module 303 is configured to determine whether it is The first operation event has been started, and if the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different client sending Different request messages, the same first operation event needs to be executed for different request messages sent by different clients in the first cache message queue; the sending module 304 is configured to execute the first operation event when the first operation event is completed Sending, to each client corresponding to different request messages in the first cache message queue The response message of the first operational event.
  • the server of this embodiment may be used to implement the technical solution of the first embodiment of the message processing method, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing module 303 is further configured to: after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding operation event.
  • First cache message queue
  • the determining module 302 may be further configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first request message The first operational event.
  • the server of the embodiment of the present invention may further include a preprocessing module, a preprocessing module. a block, configured to determine, before the processing module 303 caches the first request message in the first cache message queue, whether the first operation event is a preset merge processing event, and if yes, the processing module 303: Perform the step of buffering the first request message in a first cache message queue; if not, the processing module 303 starts to execute the first operation event for the first request message.
  • the pre-processing module determines whether the first operation event corresponding to the first request message is a preset merge by searching corresponding record information.
  • the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency, and the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events : Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • the server in the embodiment of the present invention may further include a deleting module, where the deleting module is used by all the clients corresponding to all the request messages in the first cached message queue in the sending module 304. After transmitting the response message of the first operation event, deleting the first cache message queue.
  • the server in this embodiment includes: a receiver 401, a processor 402, and a transmitter 403, where the receiver 401 is configured to receive a client.
  • a first request message where the processor 402 is configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, and determine whether the first operation event has been started, If the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, for the first The different request messages sent by different clients in the cache message queue need to perform the same first operation event; the sender 403 is configured to: when the first operation event is completed, to the first cache message queue Each client corresponding to the different request message sends a response message of the first operation event.
  • the server of this embodiment may be used to implement the technical solution of the first embodiment of the message processing method, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processor 402 is further configured to determine that the self does not start to execute the first After an operation event, the first operation event is started to be executed, and a first cache message queue corresponding to the first operation event is created.
  • processor 402 is specifically configured to: if it is determined that the first operation event is not started, initiate execution of the first operation event, and create a first cache message queue corresponding to the first operation event.
  • the processor 402 is further configured to determine whether the first operation event is a preset merge processing event, and if yes, perform the step of buffering the first request message in the first cache message queue. And if not, initiating execution of the first operational event for the first request message.
  • the processor 402 caches the first request message before the first cache message queue, and determines whether the first operation event corresponding to the first request message is a preset merge processing event by searching corresponding record information.
  • the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency, and the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operation events: Create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
  • processor 402 may be further configured to delete the response message after the sender sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue.
  • the first cached message queue may be further configured to delete the response message after the sender sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue.
  • FIG. 5 is a schematic structural diagram of Embodiment 3 of a server according to the present invention, as shown in FIG. 5, the server
  • 500 includes:
  • processor Rocessor
  • communication interface 520 a communication interface 520
  • memory 530 a memory 530
  • bus 540 a bus 540
  • the communication interface 520 is configured to receive a request message of the client and output a response message to the client.
  • the processor 510 is configured to execute the program 511.
  • the memory 530 is configured to store the program 511.
  • the program 511 can include program code, and the program code includes computer operation instructions.
  • the processor 510 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • the memory 530 is used to store the program 511.
  • Memory 530 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • Program 511 can specifically include a piece of code.
  • the program 511 is configured to receive a first request message of the client that is forwarded by the communication interface, determine a first operation event corresponding to the first request message according to the attribute information of the first request message, and determine whether the user has started executing the first An operation event, if the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients.
  • the server needs to perform the same first operation event for different request messages sent by different clients in the first cache message queue; when the server finishes executing the first operation event, to the first cache
  • Each client corresponding to a different request message in the message queue sends a response message of the first operation event.
  • the program 511 is configured to, if it is determined that the first operation event is not started, start executing the first operation event, and create a first cache message queue corresponding to the first operation event.
  • the program 511 is configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first operation event corresponding to the first request message.
  • program 51 1 is configured to, after determining that the first operation event is not started, start to execute the first operation event, and create a first cache message queue corresponding to the first operation event.
  • the program 511 is configured to: determine whether the first operation event is a preset merge processing event, and if yes, perform the step of buffering the first request message in a first cache message queue; if not, Executing the first operational event is initiated for the first request message.
  • the preset merge processing event includes: an operation processing event that increases server CPU processing time and efficiency.
  • the operation processing event for increasing server CPU processing time and efficiency includes at least one of the following operation events: an increase operation, a create operation, a delete operation, a modify operation, a query operation, a restart operation, a backup operation, a startup operation, a stop operation .
  • the program 51 1 is configured to delete the first cache after the communication interface sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. message queue.
  • the server of the embodiment receives the first request message of the client through the communication interface, and the processor executes the program stored in the memory to perform processing on the first operation event corresponding to the first request message to obtain a response message of the first operation event, and The response message is sent to each client corresponding to the different request message in the first cache message queue of the different request message that needs to execute the same first operation event through the communication interface, and therefore, the server is corresponding to the multiple clients.
  • the first operation event only needs to be processed once, thereby reducing the overhead of the server processing the same operation event, improving the processing efficiency of the server, and enabling the server to receive and process more client messages.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present invention provide a message processing method and a server. The message processing method comprises: the server receiving a first request message sent by a client; according to property information of the first request message, determining a first operation event corresponding to the first request message; if the server has started to execute the first operation event, caching the first request message in a first cached message queue, wherein the first cached message queue is used to cache different request messages sent by different clients, and the server needs to execute the same first operation event for the different request messages sent by different clients in the first cached message queue; and when the server finishes executing the first operation event, the server sending a response message of the first operation event to each client corresponding to the different request messages in the first cached message queue, which reduces overheads of the server for processing the same operation event, and improves processing efficiency of the server.

Description

消息处理方法及服务器  Message processing method and server
技术领域 本发明实施例涉及互联网 ( Internet Technology, 简称 IT )技术, 尤其涉 及一种消息处理方法及服务器。 背景技术 TECHNICAL FIELD Embodiments of the present invention relate to the Internet (Internet Technology, IT for short) technology, and in particular, to a message processing method and a server. Background technique
IT系统中通常包含两类通信实体, 一类为客户端, 一类为服务器, 服 务器通常为多个客户端提供服务, 客户端和服务器之间通过收发消息建立 连接。  The IT system usually includes two types of communication entities, one is a client and the other is a server. The server usually provides services for multiple clients, and the client and the server establish a connection by sending and receiving messages.
通常情况下, 客户端不定时地向服务器发送消息, 以使得服务器根据 该消息执行相应的操作; 相应地, 服务器在接收客户端的消息后, 可以对 消息内容进行处理, 完成对消息内容的处理后再将处理结果返回给相应的 客户端。 当大量客户端同时向服务器发送消息时, 服务器将同时对这些客 户端的消息——处理, 导致服务器的开销很大, 从而影响服务器的消息处 理效率, 甚至可能出现无法接受新客户端的消息的问题。 发明内容  Generally, the client sends a message to the server from time to time, so that the server performs a corresponding operation according to the message; accordingly, after receiving the message of the client, the server can process the message content to complete the processing of the message content. The processing result is returned to the corresponding client. When a large number of clients send messages to the server at the same time, the server will process the messages of these clients at the same time, which causes the server to have a large overhead, which affects the server's message processing efficiency, and may even have problems in accepting new client messages. Summary of the invention
本发明实施例提供一种消息处理方法及服务器, 以解决服务器在处理 大量客户端的消息时开销较大的问题。  The embodiment of the invention provides a message processing method and a server to solve the problem that the server has a large overhead when processing a large number of client messages.
本发明实施例第一方面提供一种消息处理方法, 包括:  A first aspect of the embodiments of the present invention provides a message processing method, including:
服务器接收客户端发送的第一请求消息;  The server receives the first request message sent by the client;
所述服务器根据所述第一请求消息的属性信息, 确定所述第一请求消 息对应的第一操作事件;  Determining, by the server, the first operation event corresponding to the first request message according to the attribute information of the first request message;
所述服务器确定自身是否已经开始执行所述第一操作事件, 若已经开 始执行所述第一操作事件, 将所述第一请求消息緩存在第一緩存消息队 歹 ij , 所述第一緩存消息队列用于緩存不同客户端发送的不同请求消息, 所 述服务器针对所述第一緩存消息队列中的不同客户端发送的不同请求消 息需要执行相同的所述第一操作事件; 当所述服务器执行完毕所述第一操作事件, 所述服务器向所述第一緩 存消息队列中的不同请求消息对应的每个客户端发送所述第一操作事件 的响应消息。 Determining, by the server, whether the first operation event has been started, and if the first operation event has been started, buffering the first request message in the first cache message queue ij, the first cache message The queue is used to cache different request messages sent by different clients, and the server needs to perform the same first operation event for different request messages sent by different clients in the first cache message queue; When the server performs the first operation event, the server sends a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
在第一方面的第一种可能的实现方式中, 所述服务器根据所述第一请 求消息的属性信息, 确定所述第一请求消息对应的第一操作事件, 包括: 所述服务器根据所述第一请求消息的操作对象、 操作内容或操作结果 中的任意之一或其任意组合, 确定所述第一请求消息所对应的第一操作事 件。  In a first possible implementation manner of the first aspect, the determining, by the server, the first operation event corresponding to the first request message according to the attribute information of the first request message, Determining, by any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first operation event corresponding to the first request message.
在第一方面的第二种可能的实现方式中, 若所述服务器确定自身未开 始执行所述第一操作事件, 所述方法还包括:  In a second possible implementation manner of the first aspect, if the server determines that the first operation event is not started, the method further includes:
启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一 緩存消息队列。  Initiating execution of the first operational event and creating a first cached message queue corresponding to the first operational event.
结合第一方面、 第一方面的第一种可能的实现方式、 第一方面的第二 种可能的实现方式中任一可能的实现方式, 在第三种可能的实现方式中, 所述服务器将所述第一请求消息緩存在第一緩存消息队列之前, 还包括: 所述服务器确定所述第一操作事件是否是预置的合并处理事件, 如果 是, 执行所述将所述第一请求消息緩存在第一緩存消息队列的步骤; 如果 否, 所述服务器针对所述第一请求消息启动执行所述第一操作事件。  With reference to the first aspect, the first possible implementation of the first aspect, and the second possible implementation manner of the first aspect, in a third possible implementation, the server The first request message is cached before the first cache message queue, and further includes: the server determining whether the first operation event is a preset merge processing event, and if yes, performing the first request message The step of caching in the first cache message queue; if not, the server initiating execution of the first operation event for the first request message.
结合第三种可能的实现方式, 在第四种可能的实现方式中, 所述预置 的合并处理事件包括但不限于增加服务器 CPU处理时间和效率的操作处 理事件。  In conjunction with the third possible implementation manner, in a fourth possible implementation manner, the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
结合第四种可能的实现方式, 在第五种可能的实现方式中, 所述增加 服务器 CPU处理时间和效率的操作处理事件包括下述操作事件中的至少 一种:  In conjunction with the fourth possible implementation manner, in a fifth possible implementation manner, the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
结合第一方面、 第一方面的第一种可能的实现方式、 第一方面的第二 种可能的实现方式、 第三种可能的实现方式中任一可能的实现方式, 在第 六中可能的实现方式中, 所述向所述第一緩存消息队列中的所有请求消息 对应的所有客户端发送所述第一操作事件的响应消息之后, 还包括: 删除所述第一緩存消息队列。 With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, and any possible implementation manner of the third possible implementation manner, In an implementation manner, after all the clients corresponding to all the request messages in the first cache message queue send the response message of the first operation event, the method further includes: Deleting the first cached message queue.
本发明实施例第二方面提供一种服务器, 包括:  A second aspect of the embodiments of the present invention provides a server, including:
接收模块, 用于接收客户端发送的第一请求消息;  a receiving module, configured to receive a first request message sent by the client;
确定模块, 用于根据所述第一请求消息的属性信息, 确定所述第一请 求消息对应的第一操作事件;  a determining module, configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message;
处理模块, 用于确定自身是否已经开始执行所述第一操作事件, 若已 经开始执行所述第一操作事件, 将所述第一请求消息緩存在第一緩存消息 队列, 所述第一緩存消息队列用于緩存不同客户端发送的不同请求消息, 针对所述第一緩存消息队列中的不同客户端发送的不同请求消息需要执 行相同的所述第一操作事件;  a processing module, configured to determine whether the first operation event has been started, and if the first operation event has been started, buffering the first request message in a first cache message queue, the first cache message The queue is used to cache different request messages sent by different clients, and the same first operation event needs to be performed for different request messages sent by different clients in the first cache message queue;
发送模块, 用于当执行完毕所述第一操作事件时, 向所述第一緩存消 息队列中的不同请求消息对应的每个客户端发送所述第一操作事件的响 应消息。  And a sending module, configured to send, when the first operation event is completed, a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
在第二方面的第一种可能的实现方式中, 所述确定模块, 具体用于根 据所述第一请求消息的操作对象、 操作内容或操作结果中的任意之一或其 任意组合, 确定所述第一请求消息所对应的第一操作事件。  In a first possible implementation manner of the second aspect, the determining module is specifically configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof The first operation event corresponding to the first request message is described.
在第二方面的第二种可能的实现方式中, 所述处理模块, 还用于在确 定自身未开始执行所述第一操作事件之后, 启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩存消息队列。  In a second possible implementation manner of the second aspect, the processing module is further configured to: after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding operation The first cached message queue of the first operational event.
结合第二方面、 第二方面的第一种可能的实现方式、 第二方面的第二 种可能的实现方式中任一可能的实现方式, 在第三种可能的实现方式中, 还包括:  With reference to the second aspect, the first possible implementation manner of the second aspect, and the second possible implementation manner of the second aspect, in a third possible implementation manner, the method further includes:
预处理模块, 用于确定所述第一操作事件是否是预置的合并处理事 件, 如果是, 则所述处理模块执行所述将所述第一请求消息緩存在第一緩 存消息队列的步骤; 如果否, 则所述处理模块针对所述第一请求消息启动 执行所述第一操作事件。  a pre-processing module, configured to determine whether the first operation event is a preset merge processing event, and if yes, the processing module performs the step of buffering the first request message in a first cache message queue; If no, the processing module initiates execution of the first operational event for the first request message.
结合第三种可能的实现方式, 在第四种可能的实现方式中, 所述预置 的合并处理事件包括但不限于增加服务器 CPU处理时间和效率的操作处 理事件。  In conjunction with the third possible implementation manner, in a fourth possible implementation manner, the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
结合第四种可能的实现方式, 在第五种可能的实现方式中, 所述增加 服务器 CPU处理时间和效率的操作处理事件包括下述操作事件中的至少 一种: In combination with the fourth possible implementation manner, in the fifth possible implementation manner, the adding The operation processing event of the server CPU processing time and efficiency includes at least one of the following operational events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
结合第二方面、 第二方面的第一种可能的实现方式、 第二方面的第二 种可能的实现方式、 第三种可能的实现方式中任一可能的实现方式、 在第 六中可能的实现方式中, 还包括:  With reference to the second aspect, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, any possible implementation manner of the third possible implementation manner, possible in the sixth In the implementation, it also includes:
删除模块, 用于在所述发送模块向所述第一緩存消息队列中的所有请 求消息对应的所有客户端发送所述第一操作事件的响应消息之后, 删除所 述第一緩存消息队列。  And a deleting module, configured to delete the first cached message queue after the sending module sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue.
本发明实施例第三方面提供一种服务器, 包括:  A third aspect of the embodiments of the present invention provides a server, including:
接收器, 用于接收客户端发送的第一请求消息;  a receiver, configured to receive a first request message sent by the client;
处理器, 用于根据所述第一请求消息的属性信息, 确定所述第一请求 消息对应的第一操作事件; 确定自身是否已经开始执行所述第一操作事 件, 若已经开始执行所述第一操作事件, 将所述第一请求消息緩存在第一 緩存消息队列, 所述第一緩存消息队列用于緩存不同客户端发送的不同请 求消息, 针对所述第一緩存消息队列中的不同客户端发送的不同请求消息 需要执行相同的所述第一操作事件;  a processor, configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, determine whether the first operation event has been started, and if the first operation event has been started An operation event, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, for different clients in the first cached message queue. Different request messages sent by the terminal need to perform the same first operation event;
发送器, 用于当执行完毕所述第一操作事件时, 向所述第一緩存消息 队列中的不同请求消息对应的每个客户端发送所述第一操作事件的响应 消息。  And a transmitter, configured to send, when the first operation event is completed, a response message of the first operation event to each client corresponding to a different request message in the first cache message queue.
在第三方面的第一种可能的实现方式中, 所述处理器, 具体用于根据 所述第一请求消息的操作对象、 操作内容或操作结果中的任意之一或其任 意组合, 确定所述第一请求消息所对应的第一操作事件。  In a first possible implementation manner of the third aspect, the processor is specifically configured to determine, according to any one of an operation object, an operation content, or an operation result of the first request message, or any combination thereof. The first operation event corresponding to the first request message is described.
在第三方面的第二种可能的实现方式中, 所述处理器还用于在确定自 身未开始执行所述第一操作事件之后, 启动执行所述第一操作事件, 并创 建对应于所述第一操作事件的第一緩存消息队列。  In a second possible implementation manner of the third aspect, the processor is further configured to, after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding to the The first cached message queue of the first operational event.
结合第三方面、 第三方面的第一种可能的实现方式、 第三方面的第二 种可能的实现方式中任一可能的实现方式, 在第三种可能的实现方式中, 所述处理器还用于确定所述第一操作事件是否是预置的合并处理事件, 如 果是, 执行所述将所述第一请求消息緩存在第一緩存消息队列的步骤; 如 果否, 针对所述第一请求消息启动执行所述第一操作事件。 With reference to the third aspect, the first possible implementation manner of the third aspect, and the second possible implementation manner of the third aspect, in a third possible implementation manner, the processor Also used to determine whether the first operational event is a preset merge processing event, such as If yes, performing the step of buffering the first request message in the first cache message queue; if not, initiating execution of the first operation event for the first request message.
结合第三种可能的实现方式, 在第四种可能的实现方式中, 所述预置 的合并处理事件包括但不限于增加服务器 CPU处理时间和效率的操作处 理事件。  In conjunction with the third possible implementation manner, in a fourth possible implementation manner, the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency.
结合第四种可能的实现方式, 在第五种可能的实现方式中, 所述增加 服务器 CPU处理时间和效率的操作处理事件包括下述操作事件中的至少 一种:  In conjunction with the fourth possible implementation manner, in a fifth possible implementation manner, the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
结合第三方面、 第三方面的第一种可能的实现方式、 第三方面的第二 种可能的实现方式、 第三种可能的实现方式中任一可能的实现方式, 在第 六中可能的实现方式中, 所述处理器还用于在所述发送器向所述第一緩存 消息队列中的所有请求消息对应的所有客户端发送所述第一操作事件的 响应消息之后, 删除所述第一緩存消息队列。  With reference to the third aspect, the first possible implementation manner of the third aspect, the second possible implementation manner of the third aspect, and any possible implementation manner of the third possible implementation manner, where possible in the sixth In an implementation manner, the processor is further configured to delete the first message after the sender sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. A cached message queue.
本发明实施例第四方面提供一种服务器, 包括:  A fourth aspect of the embodiments of the present invention provides a server, including:
处理器、 通信接口和存储器;  a processor, a communication interface, and a memory;
其中, 所述通信接口, 用于接收客户端的请求消息以及输出对客户端 的响应消息; 所述处理器, 用于执行程序; 所述存储器, 用于存放程序; 所述程序用于接收通信接口转发的客户端的第一请求消息, 根据所述 第一请求消息的属性信息, 确定所述第一请求消息对应的第一操作事件; 确定自身是否已经开始执行所述第一操作事件, 若已经开始执行所述第一 操作事件, 将所述第一请求消息緩存在第一緩存消息队列, 所述第一緩存 消息队列用于緩存不同客户端发送的不同请求消息, 所述服务器针对所述 第一緩存消息队列中的不同客户端发送的不同请求消息需要执行相同的 所述第一操作事件; 当所述服务器执行完毕所述第一操作事件, 向所述第 一緩存消息队列中的不同请求消息对应的每个客户端发送所述第一操作 事件的响应消息。  The communication interface is configured to receive a request message of the client and output a response message to the client; the processor is configured to execute a program; the memory is configured to store a program; and the program is configured to receive a communication interface to forward Determining, by the first request message of the client, the first operation event corresponding to the first request message according to the attribute information of the first request message; determining whether the first operation event has been started, if the execution has already started The first operation event, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, where the server is for the first cache Different request messages sent by different clients in the message queue need to perform the same first operation event; when the server finishes executing the first operation event, corresponding to different request messages in the first cache message queue Each client sends a response message for the first operational event.
在第四方面的第一种可能的实现方式中, 所述程序还用于, 若确定自 身未开始执行所述第一操作事件, 启动执行所述第一操作事件, 并创建对 应于所述第一操作事件的第一緩存消息队列。 In a first possible implementation manner of the fourth aspect, the program is further configured to: if it is determined that the first operation event is not started, start executing the first operation event, and create a pair The first cached message queue should be in the first operational event.
在第四方面的第二种可能的实现方式中, 所述程序还用于, 根据所述 第一请求消息的操作对象、 操作内容或操作结果中的任意之一或其任意组 合, 确定所述第一请求消息所对应的第一操作事件。  In a second possible implementation manner of the fourth aspect, the program is further configured to: determine, according to any one of an operation object, an operation content, or an operation result of the first request message, or any combination thereof The first operation event corresponding to the first request message.
结合第四方面、 第四方面的第一种可能的实现方式、 第四方面的第二 种可能的实现方式中任一可能的实现方式, 在第三种可能的实现方式中, 所述程序还用于, 在确定自身未开始执行所述第一操作事件之后, 启动执 行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩存消息队 歹1。  With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, and the second possible implementation manner of the fourth aspect, in a third possible implementation, the program is further And, after determining that the first operation event is not started, starting to execute the first operation event, and creating a first cache message queue 1 corresponding to the first operation event.
结合第三种可能的实现方式, 在第四种可能的实现方式中, 所述程序 还用于, 确定所述第一操作事件是否是预置的合并处理事件, 如果是, 执 行所述将所述第一请求消息緩存在第一緩存消息队列的步骤; 如果否, 针 对所述第一请求消息启动执行所述第一操作事件。  In conjunction with the third possible implementation, in a fourth possible implementation, the program is further configured to: determine whether the first operation event is a preset merge processing event, and if yes, execute the The step of buffering the first request message in the first cache message queue; if not, initiating execution of the first operation event for the first request message.
结合第四种可能的实现方式, 在第五种可能的实现方式中, 所述增加 服务器 CPU处理时间和效率的操作处理事件包括下述操作事件中的至少 一种:  In conjunction with the fourth possible implementation manner, in a fifth possible implementation manner, the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
结合第四方面、 第四方面的第一种可能的实现方式、 第四方面的第二 种可能的实现方式、 第三种可能的实现方式中任一可能的实现方式, 在第 六中可能的实现方式中, 所述程序还用于在所述通信接口向所述第一緩存 消息队列中的所有请求消息对应的所有客户端发送所述第一操作事件的 响应消息之后, 删除所述第一緩存消息队列。  With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, the second possible implementation manner of the fourth aspect, and any possible implementation manner of the third possible implementation manner, where possible in the sixth In an implementation manner, the program is further configured to delete the first message after the communication interface sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. Cache message queues.
本发明实施例的消息处理方法及服务器, 通过对与第一请求消息对应 的第一操作事件执行处理获得该第一操作事件的响应消息, 将该响应消息 发送给存放需要执行相同的第一操作事件的不同请求消息的第一緩存消 息队列中的不同请求消息对应的每个客户端, 因此, 服务器针对与多个客 户端对应的第一操作事件, 只需执行一次处理, 从而减少了服务器处理相 同操作事件的开销, 提高了服务器的处理效率, 使服务器能够接收和处理 更多客户端的消息。 附图说明 The message processing method and the server of the embodiment of the present invention obtain the response message of the first operation event by performing processing on the first operation event corresponding to the first request message, and send the response message to the storage to perform the same first operation. Each client corresponding to a different request message in the first cache message queue of the different request message of the event, therefore, the server only needs to perform processing for the first operation event corresponding to the multiple clients, thereby reducing server processing The overhead of the same operational events improves the processing efficiency of the server, enabling the server to receive and process more client messages. DRAWINGS
实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。 The drawings used in the embodiments or the description of the prior art are briefly introduced. It is obvious that the drawings in the following description are some embodiments of the present invention, and are not creative to those skilled in the art. Other drawings can also be obtained from these drawings on the premise of labor.
图 1为本发明消息处理方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a message processing method according to the present invention;
图 2为本发明消息处理方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a message processing method according to the present invention;
图 3为本发明服务器实施例一的结构示意图;  3 is a schematic structural diagram of Embodiment 1 of a server according to the present invention;
图 4为本发明服务器实施例二的结构示意图;  4 is a schematic structural diagram of Embodiment 2 of a server according to the present invention;
图 5为本发明服务器实施例三的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 虽然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。  FIG. 5 is a schematic structural diagram of Embodiment 3 of a server according to the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明消息处理方法实施例一的流程图, 如图 1所示, 本实施 例的消息处理方法可以包括:  1 is a flowchart of a first embodiment of a message processing method according to the present invention. As shown in FIG. 1, the message processing method in this embodiment may include:
101、 服务器接收客户端发送的第一请求消息。  101. The server receives a first request message sent by the client.
具体地, 服务器可以接收至少一个客户端向其发送的请求消息, 该第 一请求消息为服务器接收的请求消息之一。  Specifically, the server may receive a request message sent to the client by at least one client, the first request message being one of the request messages received by the server.
可以理解的是, 该第一请求消息是可以客户端请求服务器处理的任意 事件的请求消息。  It can be understood that the first request message is a request message of any event that can be processed by the client requesting the server.
102、 服务器根据第一请求消息的属性信息, 确定第一请求消息对应 的第一操作事件。  102. The server determines, according to the attribute information of the first request message, a first operation event corresponding to the first request message.
具体地, 服务器可以根据该第一请求消息中包含的属性信息确定该第 一请求消息请求服务器执行的操作即确定第一操作事件。  Specifically, the server may determine, according to the attribute information included in the first request message, that the first request message requests the server to perform an operation, that is, determine the first operation event.
其中, 该属性信息例如可以是该第一请求消息中包含的操作内容和操 作对象。 举例来说, 若该第一请求消息中包括的操作对象为服务器信息列表, 操作内容为查询, 根据该操作对象和操作内容可以确定该第一请求消息请 求服务器执行 "查询服务器信息列表" 操作, 即第一操作事件为 "查询服 务器信息列表" 。 The attribute information may be, for example, an operation content and an operation object included in the first request message. For example, if the operation object included in the first request message is a server information list, and the operation content is a query, according to the operation object and the operation content, the first request message requesting server may perform the "query server information list" operation, That is, the first operation event is "Query Server Information List".
103、 服务器确定自身是否已经开始执行第一操作事件。  103. The server determines whether it has started to execute the first operation event.
具体地, 例如服务器可以通过查询自身的维护列表等方式确定当前正 在执行的操作中是否包含与该第一操作事件相同的操作事件。  Specifically, for example, the server may determine whether the operation currently being executed contains the same operation event as the first operation event by querying its own maintenance list or the like.
104、 若已经开始执行第一操作事件, 将第一请求消息緩存在第一緩 存消息队列, 第一緩存消息队列用于緩存不同客户端发送的不同请求消 息, 服务器针对第一緩存消息队列中的不同客户端发送的不同请求消息需 要执行相同的第一操作事件。  104. If the first operation event has been started, the first request message is cached in the first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, where the server is in the first cached message queue. Different request messages sent by different clients need to perform the same first operational event.
具体地, 若通过查询服务器确定当前正在处理的操作中存在对该第一 操作事件的处理, 服务器将该第一请求消息放入第一緩存消息队列中等待 服务器对其请求的第一操作事件的处理结果, 该第一緩存消息队列为服务 器设置的緩存区域, 用于存放不同客户端向该服务器发送的请求该服务器 执行相同的第一操作事件的不同请求消息。 即自服务器开始执行该第一操 作事件起, 到服务器执行完该第一操作事件止, 期间服务器接收的所有请 求服务器执行该第一操作事件的请求消息都放入该第一緩存消息队列等 待服务器对该第一操作事件的处理结果。  Specifically, if the query server determines that there is processing for the first operation event in the operation currently being processed, the server puts the first request message into the first cache message queue and waits for the first operation event requested by the server. As a result, the first cache message queue is a cache area set by the server, and is used to store different request messages sent by different clients to the server requesting the server to perform the same first operation event. That is, from the start of the first operation event by the server, until the server executes the first operation event, all the request messages received by the server to execute the first operation event are placed in the first cache message queue to wait for the server. The result of processing the first operational event.
105、 当服务器执行完毕第一操作事件, 服务器向第一緩存消息队列 中的不同请求消息对应的每个客户端发送第一操作事件的响应消息。  105. When the server finishes performing the first operation event, the server sends a response message of the first operation event to each client corresponding to the different request message in the first cache message queue.
具体地, 服务器处理完该第一操作事件以后, 从该第一緩存消息队列 中获取该第一緩存消息队列中存放的至少一个请求消息的相对应的至少 一个客户端标识, 并将该第一操作事件的响应消息发送给与该至少一个客 户端标识的对应的客户端。  Specifically, after the server processes the first operation event, acquiring, from the first cache message queue, the corresponding at least one client identifier of the at least one request message stored in the first cache message queue, and the first A response message to the operational event is sent to the corresponding client identified by the at least one client.
本实施例的消息处理方法, 通过对与第一请求消息对应的第一操作事 件执行处理获得该第一操作事件的响应消息, 将该响应消息发送给存放需 要执行相同的第一操作事件的不同请求消息的第一緩存消息队列中的不 同请求消息对应的每个客户端, 因此, 服务器针对与多个客户端对应的第 一操作事件, 只需执行一次处理, 从而减少了服务器处理相同操作事件的 开销, 提高了服务器的处理效率, 使服务器能够接收和处理更多客户端的 消息。 In the message processing method of the embodiment, the response message of the first operation event is obtained by performing processing on the first operation event corresponding to the first request message, and the response message is sent to the storage to perform the same first operation event. Each client corresponding to a different request message in the first cache message queue of the request message, therefore, the server only needs to perform processing for the first operation event corresponding to the multiple clients, thereby reducing the server processing the same operation event. of Overhead, improve the processing efficiency of the server, enabling the server to receive and process more client messages.
进一步地, 若服务器确定自身未开始执行第一操作事件, 启动执行第 一操作事件, 并创建对应于第一操作事件的第一緩存消息队列。  Further, if the server determines that it has not started executing the first operation event, it starts executing the first operation event and creates a first cache message queue corresponding to the first operation event.
具体地, 服务器例如可以根据第一请求消息的操作对象、 操作内容或 操作结果中的任意之一或其任意组合, 确定第一请求消息所对应的第一操 作事件, 若服务器根据该属性信息确定的操作事件即第一操作事件未开始 执行, 该服务器启动执行该第一操作事件, 并创建一队列即第一緩存消息 队列存放该第一请求消息。  Specifically, the server may determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first operation event corresponding to the first request message, if the server determines according to the attribute information. The operation event, that is, the first operation event does not start execution, the server starts executing the first operation event, and creates a queue, that is, the first cache message queue, to store the first request message.
进一步地, 所述服务器将所述第一请求消息緩存在第一緩存消息队列 之前, 所述服务器还可以确定所述第一操作事件是否是预置的合并处理事 件, 如果是, 执行所述将所述第一请求消息緩存在第一緩存消息队列的步 骤; 如果否, 所述服务器针对所述第一请求消息启动执行所述第一操作事 件。  Further, the server caches the first request message before the first cache message queue, and the server may further determine whether the first operation event is a preset merge processing event, and if yes, execute the The step of the first request message being cached in the first cache message queue; if not, the server initiating execution of the first operation event for the first request message.
具体地, 该服务器将第一请求消息緩存在第一緩存消息队列之前, 还 可以通过查找相应的记录信息确定与第一请求消息对应的第一操作事件 是否是预置的合并处理事件, 该预置的合并处理事件包括但不限于增加服 务器 CPU处理时间和效率的操作处理事件。  Specifically, the server caches the first request message before the first cache message queue, and further determines whether the first operation event corresponding to the first request message is a preset merge processing event by searching corresponding record information, where the Set merge processing events include, but are not limited to, operational processing events that increase server CPU processing time and efficiency.
举例来说, 该增加服务器 CPU处理时间和效率的操作处理事件包括 下述操作事件中的至少一种:  For example, the operational processing event that increases server CPU processing time and efficiency includes at least one of the following operational events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
如果第一操作事件是预置的合并处理事件, 则将该第一请求消息緩存 在第一緩存消息队列, 如果第一操作事件不是预置的合并处理事件, 服务 器可以针对该第一请求消息启动执行该第一操作事件。  If the first operation event is a preset merge processing event, the first request message is cached in the first cache message queue, and if the first operation event is not a preset merge processing event, the server may start for the first request message. Execute the first operational event.
具体地, 例如 "查询 A服务器" 事件是预置的合并处理事件, "查询 当前用户数量" 事件是预置的非合并处理事件, 若服务器根据接收到的请 求消息的属性信息获知与该请求消息所对应的操作事件为 "查询 A 服务 器" 事件, 则将该请求消息緩存在需要执行 "查询 A服务器" 事件的緩存 队列中, 若服务器根据接收到的请求消息的属性信息获知与该请求消息所 对应的操作事件为 "查询当前用户数量" 事件, 服务器则执行该 "查询当 前用户数量" 事件, 这样, 服务器通过判断接收的请求进行是否为预置的 合并处理事件, 将请求服务器执行预置的合并处理事件的请求消息进行緩 存, 将请求服务器执行非预置的合并处理事件的请求消息直接处理, 提高 了服务器的处理效率, 还能够提高与现有服务器的兼容性, 方便操作。 Specifically, for example, the "query A server" event is a preset merge processing event, and the "query current user number" event is a preset non-merging processing event, and the server learns the request message according to the attribute information of the received request message. If the corresponding operation event is a "query A server" event, the request message is cached in a cache queue that needs to execute the "query A server" event, and the server learns the request message according to the attribute information of the received request message. The corresponding operation event is the "query the current number of users" event, and the server executes the "query the current number of users" event, so that the server determines whether the received request is a preset merge processing event, and requests the server to execute the preset. The request message for merging the processing event is cached, and the request message for requesting the server to execute the non-preset merge processing event is directly processed, thereby improving the processing efficiency of the server, improving compatibility with the existing server, and facilitating operation.
进一步地, 在上述实施例的基础上, 向所述第一緩存消息队列中的所 有请求消息对应的所有客户端发送所述第一操作事件的响应消息之后, 还 包括: 删除所述第一緩存消息队列。  Further, after the sending, by the client, the response message of the first operation event to all the clients corresponding to all the request messages in the first cache message queue, the method further includes: deleting the first cache message queue.
具体地, 服务器向第一緩存消息队列中所有请求消息对应的所有客户 端发送该第一操作事件的响应消息之后, 还可以将该第一緩存消息队列删 除, 以避免在发送该第一操作事件的响应消息之后有新的第一请求消息放 入该第一緩存消息队列等待该第一操作事件的响应。  Specifically, after the server sends the response message of the first operation event to all the clients corresponding to all the request messages in the first cache message queue, the server may also delete the first cache message queue to avoid sending the first operation event. The response message is followed by a new first request message placed in the first cache message queue waiting for a response to the first operational event.
图 2为本发明消息处理方法实施例二的流程图, 为了详细说明本发明 实施例的消息处理方法, 请参考图 2, 图 2以超文本传送协议 (Hypertext transfer protocol, 简称 http)服务端处理 http客户端向其发送的请求消息为 例对消息处理方法进行解释。  2 is a flowchart of a second embodiment of a message processing method according to the present invention. To describe the message processing method in the embodiment of the present invention, please refer to FIG. 2, and FIG. 2 is processed by a Hypertext Transfer Protocol (http) server. The request message sent by the http client is an example to explain the message processing method.
201、 接收请求消息。  201. Receive a request message.
在 201中, http服务端的消息交互模块接收 http客户端向其发送的请 求消息, 该 http客户端可以是多个。  In 201, the message interaction module of the http server receives the request message sent by the http client, and the http client may be multiple.
202、 发送请求消息到消息管理模块。  202. Send a request message to the message management module.
在 202中, http服务端的消息交互模块将 http客户端发送的请求消息 "get http:〃10.122.101.43:8080/hwm/server?name=namel"发送到 http服务端 的消息管理模块。  In 202, the message interaction module of the http server sends the request message "get http: 〃 10.122.101.43:8080/hwm/server?name=namel" sent by the http client to the message management module of the http server.
203、 将请求消息放入消息队列。  203. Put the request message into the message queue.
在 203中, 消息管理模块通过该请求消息的属性获知该请求消息为查 询操作事件 , 该请求消 息 的属性为 查询名 称为 namel 的 http://10.122.101.43: 8080/hwm/server , htt 服务端通过判断获知该查询操作 事件为预置的合并处理事件, 消息管理模块还可以确定 http服务端的处理 模块是否已经开始执行该请求消息请求的 "查询名称为 namel 的 http://10.122.101.43 :8080/hwm/server" 查询操作事件, 若处理模块当前正 在执行的操作事件中没有该操作, 消息管理模块新建一消息队列存放该请 求消息; 若消息管理模块确定该 http服务端的处理模块当前正在执行的操 作事件中有该操作, 将该请求消息放入与该消息相应的消息队列中, 该消 息队列中存放的有不同的 http客户端发送的请求 http服务端执行"查询名 称为 namel的 http://10.122.101.43 :8080/hwm/server"查询操作事件的消息。 In 203, the message management module learns that the request message is a query operation event by using an attribute of the request message, and the attribute of the request message is http://10.122.101.43: 8080/hwm/server, where the query name is namel, htt server By judging that the query operation event is a preset merge processing event, the message management module may further determine whether the processing module of the http server has started to execute the request message request. The query name is namel http://10.122.101.43:8080 /hwm/server" Query operation event, if the processing module is currently positive The operation management event does not have the operation, and the message management module creates a new message queue to store the request message. If the message management module determines that the operation operation event currently being executed by the processing module of the http server has the operation, the request message is placed. In the message queue corresponding to the message, the request sent by the http client in the message queue is http. The server performs the query operation of the query name name http://10.122.101.43:8080/hwm/server" The message of the event.
204、 通知消息处理模块处理请求消息。  204. The notification message processing module processes the request message.
消息管理模块通知消息处理模块对放入新建的消息队列中的第一个 请求消息进行处理, 消息管理模块还可以通知消息处理模块对新建的消息 队列中优先级等级最高的请求消息进行处理。  The message management module notifies the message processing module to process the first request message placed in the newly created message queue, and the message management module can also notify the message processing module to process the request message with the highest priority level in the newly created message queue.
205、 处理请求消息。  205. Process the request message.
消 息 处 理 模 块 对 " 查 询 名 称 为 namel 的 http://10.122.101.43 :8080/hwm/server,,查询操作事件进行处理。  The message processing module processes the query operation name for the query name name http://10.122.101.43 :8080/hwm/server.
206、 返回请求消息处理结果。  206. Return the result of the request message processing.
处 理 模 块 将 处 理 " 查 询 名 称 为 namel 的 http ://10.122.101.43: 8080/hwm/server"查询操作事件的响应通知给消息管 理模块。  The processing module notifies the message management module of the response to the query operation event of the query name http_10.122.101.43: 8080/hwm/server.
207、 获取客户端信息。  207. Obtain client information.
消息管理模块向存放请求 http 服务端执行 "查询名称为 namel 的 http://10.122.101.43 :8080/hwm/server"查询操作事件的消息队列获取所有 请求消息的客户端信息。  The message management module obtains the client information of all the request messages from the message queue of the query request server http://10.122.101.43:8080/hwm/server query operation event.
208、 通知消息交互模块返回请求结果。  208. The notification message interaction module returns the result of the request.
消息管理模块通知消息交互模块向获取的所有客户端返回消息处理 模块对 "查询名称为 namel的 http:〃10.122.101.43:8080/hwm/server,,查询操 作事件的响应消息。  The message management module notifies the message interaction module to return the message processing module to all the obtained clients. The query name is http:〃10.122.101.43:8080/hwm/server, and the response message of the operation event is queried.
209、 返回请求结果。  209. Return the result of the request.
消息交互模块向上述所有客户端返回上述响应消息。  The message interaction module returns the above response message to all of the above clients.
进一步地, 消息管理模块在消息交互模块向上述所有客户端返回上述 响应 消 息之后还可 以 删 除存放与 "查询名 称 为 namel 的 http://10.122.101.43: 8080/hwm/server"查询操作事件相对应的请求消息的 消息队列。 此外,本发明实施例的消息处理方法还可以应用于传输控制协议 /用户 数据才艮十办议 (Transmission Control Protocol/User Datagram Protocol, 简称 tcp/udp )服务端处理 tcp/udp客户端向其发送的消息, 执行过程和有益效 果与上述消息处理方法实施例二类似, 可以参见上述消息处理方法实施例 二, 此处不再赘述。 Further, after the message interaction module returns the foregoing response message to all the clients, the message management module may delete and store the query operation event corresponding to the query name http://10.122.101.43: 8080/hwm/server. The message queue for the request message. In addition, the message processing method in the embodiment of the present invention can also be applied to the Transmission Control Protocol/User Datagram Protocol (Tcp/udp) server to process the tcp/udp client to send to the Tcp/udp client. The message, the execution process, and the beneficial effects are similar to the second embodiment of the message processing method. For details, refer to the second embodiment of the message processing method, and details are not described herein again.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程 序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
图 3为本发明服务器实施例一的结构示意图, 如图 3所示, 本实施例 的服务器包括: 接收模块 301、 确定模块 302、 处理模块 303和发送模块 304, 其中, 接收模块 301 , 用于接收客户端发送的第一请求消息; 确定模 块 302, 用于根据所述第一请求消息的属性信息, 确定所述第一请求消息 对应的第一操作事件; 处理模块 303 , 用于确定自身是否已经开始执行所 述第一操作事件, 若已经开始执行所述第一操作事件, 将所述第一请求消 息緩存在第一緩存消息队列, 所述第一緩存消息队列用于緩存不同客户端 发送的不同请求消息, 针对所述第一緩存消息队列中的不同客户端发送的 不同请求消息需要执行相同的所述第一操作事件; 发送模块 304 , 用于当 执行完毕所述第一操作事件时, 向所述第一緩存消息队列中的不同请求消 息对应的每个客户端发送所述第一操作事件的响应消息。  3 is a schematic structural diagram of a first embodiment of a server according to the present invention. As shown in FIG. 3, the server in this embodiment includes: a receiving module 301, a determining module 302, a processing module 303, and a sending module 304, where the receiving module 301 is configured to Receiving a first request message sent by the client; the determining module 302, configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, where the processing module 303 is configured to determine whether it is The first operation event has been started, and if the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different client sending Different request messages, the same first operation event needs to be executed for different request messages sent by different clients in the first cache message queue; the sending module 304 is configured to execute the first operation event when the first operation event is completed Sending, to each client corresponding to different request messages in the first cache message queue The response message of the first operational event.
本实施例的服务器, 可以用于执行消息处理方法实施例一的技术方 案, 其实现原理和技术效果类似, 此处不再赘述。  The server of this embodiment may be used to implement the technical solution of the first embodiment of the message processing method, and the implementation principle and technical effects are similar, and details are not described herein again.
在上述实施例的基础上, 进一步地, 处理模块 303还用于在确定自身 未开始执行所述第一操作事件之后, 启动执行所述第一操作事件, 并创建 对应于所述第一操作事件的第一緩存消息队列,  On the basis of the foregoing embodiment, the processing module 303 is further configured to: after determining that the first operation event is not started, start to execute the first operation event, and create a corresponding operation event. First cache message queue,
进一步地, 所述确定模块 302具体地还可以用于根据所述第一请求消 息的操作对象、 操作内容或操作结果中的任意之一或其任意组合, 确定所 述第一请求消息所对应的第一操作事件。  Further, the determining module 302 may be further configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first request message The first operational event.
进一步地, 本发明实施例的服务器还可以包括预处理模块, 预处理模 块, 用于在所述处理模块 303将所述第一请求消息緩存在第一緩存消息队 列之前, 确定所述第一操作事件是否是预置的合并处理事件, 如果是, 则 所述处理模块 303执行所述将所述第一请求消息緩存在第一緩存消息队列 的步骤; 如果否, 则所述处理模块 303针对所述第一请求消息启动执行所 述第一操作事件。 Further, the server of the embodiment of the present invention may further include a preprocessing module, a preprocessing module. a block, configured to determine, before the processing module 303 caches the first request message in the first cache message queue, whether the first operation event is a preset merge processing event, and if yes, the processing module 303: Perform the step of buffering the first request message in a first cache message queue; if not, the processing module 303 starts to execute the first operation event for the first request message.
具体地, 预处理模块在所述处理模块 303将第一请求消息緩存在第一 緩存消息队列之前, 通过查找相应的记录信息确定与第一请求消息对应的 第一操作事件是否是预置的合并处理事件, 所述预置的合并处理事件包括 但不限于增加服务器 CPU处理时间和效率的操作处理事件, 所述增加服 务器 CPU 处理时间和效率的操作处理事件包括下述操作事件中的至少一 种: 增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。  Specifically, before the processing module 303 caches the first request message in the first cache message queue, the pre-processing module determines whether the first operation event corresponding to the first request message is a preset merge by searching corresponding record information. Processing the event, the preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency, and the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operational events : Add operation, create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
进一步地, 在上述实施例的基础上, 本发明实施例的服务器还可以包 括删除模块, 删除模块用于在所述发送模块 304向所述第一緩存消息队列 中的所有请求消息对应的所有客户端发送所述第一操作事件的响应消息 之后, 删除所述第一緩存消息队列。  Further, on the basis of the foregoing embodiment, the server in the embodiment of the present invention may further include a deleting module, where the deleting module is used by all the clients corresponding to all the request messages in the first cached message queue in the sending module 304. After transmitting the response message of the first operation event, deleting the first cache message queue.
图 4为本发明服务器实施例二的结构示意图, 如图 4所示, 本实施例 的服务器包括:接收器 401和处理器 402和发送器 403 ,其中,接收器 401 , 用于接收客户端发送的第一请求消息; 处理器 402, 用于根据所述第一请 求消息的属性信息, 确定所述第一请求消息对应的第一操作事件; 确定自 身是否已经开始执行所述第一操作事件, 若已经开始执行所述第一操作事 件, 将所述第一请求消息緩存在第一緩存消息队列, 所述第一緩存消息队 列用于緩存不同客户端发送的不同请求消息, 针对所述第一緩存消息队列 中的不同客户端发送的不同请求消息需要执行相同的所述第一操作事件; 发送器 403 , 用于当执行完毕所述第一操作事件时, 向所述第一緩存消息 队列中的不同请求消息对应的每个客户端发送所述第一操作事件的响应 消息。  4 is a schematic structural diagram of a second embodiment of a server according to the present invention. As shown in FIG. 4, the server in this embodiment includes: a receiver 401, a processor 402, and a transmitter 403, where the receiver 401 is configured to receive a client. a first request message, where the processor 402 is configured to determine, according to the attribute information of the first request message, a first operation event corresponding to the first request message, and determine whether the first operation event has been started, If the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients, for the first The different request messages sent by different clients in the cache message queue need to perform the same first operation event; the sender 403 is configured to: when the first operation event is completed, to the first cache message queue Each client corresponding to the different request message sends a response message of the first operation event.
本实施例的服务器, 可以用于执行消息处理方法实施例一的技术方 案, 其实现原理和技术效果类似, 此处不再赘述。  The server of this embodiment may be used to implement the technical solution of the first embodiment of the message processing method, and the implementation principle and technical effects are similar, and details are not described herein again.
进一步地, 所述处理器 402还可以用于在确定自身未开始执行所述第 一操作事件之后, 启动执行所述第一操作事件, 并创建对应于所述第一操 作事件的第一緩存消息队列。 Further, the processor 402 is further configured to determine that the self does not start to execute the first After an operation event, the first operation event is started to be executed, and a first cache message queue corresponding to the first operation event is created.
进一步地, 所述处理器 402具体用于若确定自身未开始执行所述第一 操作事件, 启动执行所述第一操作事件, 并创建对应于所述第一操作事件 的第一緩存消息队列。  Further, the processor 402 is specifically configured to: if it is determined that the first operation event is not started, initiate execution of the first operation event, and create a first cache message queue corresponding to the first operation event.
进一步地, 所述处理器 402还可以用于确定所述第一操作事件是否是 预置的合并处理事件, 如果是, 执行所述将所述第一请求消息緩存在第一 緩存消息队列的步骤; 如果否, 针对所述第一请求消息启动执行所述第一 操作事件。  Further, the processor 402 is further configured to determine whether the first operation event is a preset merge processing event, and if yes, perform the step of buffering the first request message in the first cache message queue. And if not, initiating execution of the first operational event for the first request message.
具体地, 所述处理器 402将第一请求消息緩存在第一緩存消息队列之 前, 通过查找相应的记录信息确定与第一请求消息对应的第一操作事件是 否是预置的合并处理事件, 所述预置的合并处理事件包括但不限于增加服 务器 CPU处理时间和效率的操作处理事件, 所述增加服务器 CPU处理时 间和效率的操作处理事件包括下述操作事件中的至少一种: 增加操作、 创 建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操 作、 停止操作。  Specifically, the processor 402 caches the first request message before the first cache message queue, and determines whether the first operation event corresponding to the first request message is a preset merge processing event by searching corresponding record information. The preset merge processing event includes, but is not limited to, an operation processing event that increases server CPU processing time and efficiency, and the operation processing event that increases server CPU processing time and efficiency includes at least one of the following operation events: Create operation, delete operation, modify operation, query operation, restart operation, backup operation, start operation, stop operation.
进一步地, 所述处理器 402还可以用于在所述发送器向所述第一緩存 消息队列中的所有请求消息对应的所有客户端发送所述第一操作事件的 响应消息之后, 删除所述第一緩存消息队列。  Further, the processor 402 may be further configured to delete the response message after the sender sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. The first cached message queue.
图 5为本发明服务器实施例三的结构示意图, 如图 5所示, 该服务器 FIG. 5 is a schematic structural diagram of Embodiment 3 of a server according to the present invention, as shown in FIG. 5, the server
500包括: 500 includes:
处理器 ( rocessor ) 510、 通信接口 ( Communications Interface ) 520、 存储器 (memory ) 530和总线 540; 其中, 所述处理器 510、 所述通信接 口 520和所述存储器 530通过所述总线 540完成相互间的通信。  a processor (Rocessor) 510, a communication interface 520, a memory 530, and a bus 540; wherein the processor 510, the communication interface 520, and the memory 530 are completed by the bus 540 Communication.
所述通信接口 520, 用于接收客户端的请求消息以及输出对客户端的 响应消息。  The communication interface 520 is configured to receive a request message of the client and output a response message to the client.
所述处理器 510, 用于执行程序 511。  The processor 510 is configured to execute the program 511.
所述存储器 530, 用于存放程序 511。  The memory 530 is configured to store the program 511.
具体的, 所述程序 511可以包括程序代码, 所述程序代码包括计算机 操作指令。 处理器 510 可能是一个中央处理器 (CPU ) , 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ) , 或者是被配置成实施本发 明实施例的一个或多个集成电路。 Specifically, the program 511 can include program code, and the program code includes computer operation instructions. The processor 510 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
存储器 530用于存放程序 511。 存储器 530可能包含高速 RAM存储 器, 也可能还包括非易失性存储器 ( non- volatile memory ) , 例如至少一 个磁盘存储器。 程序 511具体可以包括一段代码。  The memory 530 is used to store the program 511. Memory 530 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory. Program 511 can specifically include a piece of code.
程序 511用于接收通信接口转发的客户端的第一请求消息, 根据所述第 一请求消息的属性信息, 确定所述第一请求消息对应的第一操作事件; 确定 自身是否已经开始执行所述第一操作事件, 若已经开始执行所述第一操作事 件, 将所述第一请求消息緩存在第一緩存消息队列, 所述第一緩存消息队列 用于緩存不同客户端发送的不同请求消息, 所述服务器针对所述第一緩存消 息队列中的不同客户端发送的不同请求消息需要执行相同的所述第一操作事 件; 当所述服务器执行完毕所述第一操作事件, 向所述第一緩存消息队列中 的不同请求消息对应的每个客户端发送所述第一操作事件的响应消息。  The program 511 is configured to receive a first request message of the client that is forwarded by the communication interface, determine a first operation event corresponding to the first request message according to the attribute information of the first request message, and determine whether the user has started executing the first An operation event, if the first operation event has been started, the first request message is cached in a first cache message queue, and the first cache message queue is used to cache different request messages sent by different clients. The server needs to perform the same first operation event for different request messages sent by different clients in the first cache message queue; when the server finishes executing the first operation event, to the first cache Each client corresponding to a different request message in the message queue sends a response message of the first operation event.
进一步地, 程序 511用于, 若确定自身未开始执行所述第一操作事件, 启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩存消 息队列。  Further, the program 511 is configured to, if it is determined that the first operation event is not started, start executing the first operation event, and create a first cache message queue corresponding to the first operation event.
进一步地, 程序 511用于, 根据所述第一请求消息的操作对象、 操作内 容或操作结果中的任意之一或其任意组合, 确定所述第一请求消息所对应的 第一操作事件。  Further, the program 511 is configured to determine, according to any one of the operation object, the operation content, or the operation result of the first request message, or any combination thereof, the first operation event corresponding to the first request message.
进一步地, 程序 51 1用于, 在确定自身未开始执行所述第一操作事件之 后, 启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩 存消息队列。  Further, the program 51 1 is configured to, after determining that the first operation event is not started, start to execute the first operation event, and create a first cache message queue corresponding to the first operation event.
进一步地, 程序 511用于, 确定所述第一操作事件是否是预置的合并 处理事件, 如果是, 执行所述将所述第一请求消息緩存在第一緩存消息队 列的步骤; 如果否, 针对所述第一请求消息启动执行所述第一操作事件。 所述预置的合并处理事件包括: 增加服务器 CPU处理时间和效率的操作 处理事件。 所述增加服务器 CPU处理时间和效率的操作处理事件包括下 述操作事件中的至少一种: 增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备份操作、 启动操作、 停止操作。 进一步地, 程序 51 1用于, 在所述通信接口向所述第一緩存消息队列中 的所有请求消息对应的所有客户端发送所述第一操作事件的响应消息之后, 删除所述第一緩存消息队列。 Further, the program 511 is configured to: determine whether the first operation event is a preset merge processing event, and if yes, perform the step of buffering the first request message in a first cache message queue; if not, Executing the first operational event is initiated for the first request message. The preset merge processing event includes: an operation processing event that increases server CPU processing time and efficiency. The operation processing event for increasing server CPU processing time and efficiency includes at least one of the following operation events: an increase operation, a create operation, a delete operation, a modify operation, a query operation, a restart operation, a backup operation, a startup operation, a stop operation . Further, the program 51 1 is configured to delete the first cache after the communication interface sends the response message of the first operation event to all clients corresponding to all the request messages in the first cache message queue. message queue.
本实施例的服务器, 通过通信接口接收客户端的第一请求消息, 处理 器执行存储器中存放的程序对与第一请求消息对应的第一操作事件执行 处理获得该第一操作事件的响应消息, 将该响应消息通过通信接口发送给 存放需要执行相同的第一操作事件的不同请求消息的第一緩存消息队列 中的不同请求消息对应的每个客户端, 因此, 服务器针对与多个客户端对 应的第一操作事件, 只需执行一次处理, 从而减少了服务器处理相同操作 事件的开销, 提高了服务器的处理效率, 使服务器能够接收和处理更多客 户端的消息。  The server of the embodiment receives the first request message of the client through the communication interface, and the processor executes the program stored in the memory to perform processing on the first operation event corresponding to the first request message to obtain a response message of the first operation event, and The response message is sent to each client corresponding to the different request message in the first cache message queue of the different request message that needs to execute the same first operation event through the communication interface, and therefore, the server is corresponding to the multiple clients. The first operation event only needs to be processed once, thereby reducing the overhead of the server processing the same operation event, improving the processing efficiency of the server, and enabling the server to receive and process more client messages.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种消息处理方法, 其特征在于, 包括: 1. A message processing method, characterized by including:
服务器接收客户端发送的第一请求消息; The server receives the first request message sent by the client;
所述服务器根据所述第一请求消息的属性信息 , 确定所述第一请求消息 对应的第一操作事件; The server determines the first operation event corresponding to the first request message according to the attribute information of the first request message;
所述服务器确定自身是否已经开始执行所述第一操作事件, 若已经开始 执行所述第一操作事件, 将所述第一请求消息緩存在第一緩存消息队列, 所 述第一緩存消息队列用于緩存不同客户端发送的不同请求消息, 所述服务器 针对所述第一緩存消息队列中的不同客户端发送的不同请求消息需要执行相 同的所述第一操作事件; The server determines whether it has started executing the first operation event. If it has started executing the first operation event, caches the first request message in a first cache message queue. The first cache message queue uses In order to cache different request messages sent by different clients, the server needs to execute the same first operation event for different request messages sent by different clients in the first cache message queue;
当所述服务器执行完毕所述第一操作事件, 所述服务器向所述第一緩存 消息队列中的不同请求消息对应的每个客户端发送所述第一操作事件的响应 消息。 When the server completes executing the first operation event, the server sends a response message to the first operation event to each client corresponding to different request messages in the first cache message queue.
2、 根据权利要求 1所述的方法, 其特征在于, 所述服务器根据所述第一 请求消息的属性信息, 确定所述第一请求消息对应的第一操作事件, 包括: 所述服务器根据所述第一请求消息的操作对象、 操作内容或操作结果中 的任意之一或其任意组合, 确定所述第一请求消息所对应的第一操作事件。 2. The method according to claim 1, characterized in that, the server determines the first operation event corresponding to the first request message according to the attribute information of the first request message, including: the server determines the first operation event corresponding to the first request message according to the attribute information of the first request message. Determine the first operation event corresponding to the first request message based on any one of the operation object, operation content or operation result of the first request message, or any combination thereof.
3、 根据权利要求 1所述的方法, 其特征在于, 若所述服务器确定自身未 开始执行所述第一操作事件, 所述方法还包括: 3. The method according to claim 1, wherein if the server determines that it has not started executing the first operation event, the method further includes:
启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩 存消息队列。 Start executing the first operation event, and create a first cached message queue corresponding to the first operation event.
4、 根据权利要求 1〜3中任一项所述的方法, 其特征在于, 所述服务器将 所述第一请求消息緩存在第一緩存消息队列之前, 还包括: 4. The method according to any one of claims 1 to 3, characterized in that the server caches the first request message before the first cached message queue, and further includes:
所述服务器确定所述第一操作事件是否是预置的合并处理事件,如果是, 执行所述将所述第一请求消息緩存在第一緩存消息队列的步骤; 如果否, 所 述服务器针对所述第一请求消息启动执行所述第一操作事件。 The server determines whether the first operation event is a preset merge processing event, and if so, performs the step of caching the first request message in the first cache message queue; if not, the server The first request message initiates execution of the first operation event.
5、 根据权利要求 4所述的方法, 其特征在于, 所述预置的合并处理事件 包括: 增加服务器 CPU处理时间和效率的操作处理事件。 5. The method according to claim 4, wherein the preset merge processing events include: operation processing events that increase server CPU processing time and efficiency.
6、 根据权利要求 5所述的方法, 其特征在于, 所述增加服务器 CPU处 理时间和效率的操作处理事件包括下述操作事件中的至少一种: 增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备 份操作、 启动操作、 停止操作。 6. The method according to claim 5, characterized in that the operation processing events that increase the server CPU processing time and efficiency include at least one of the following operation events: Add operations, create operations, delete operations, modify operations, query operations, restart operations, backup operations, start operations, and stop operations.
7、 根据权利要求 1〜4中任一项所述的方法, 其特征在于, 所述向所述第 一緩存消息队列中的所有请求消息对应的所有客户端发送所述第一操作事件 的响应消息之后, 还包括: 7. The method according to any one of claims 1 to 4, wherein the response to the first operation event is sent to all clients corresponding to all request messages in the first cached message queue. After the message, it also includes:
删除所述第一緩存消息队列。 Delete the first cached message queue.
8、 一种服务器, 其特征在于, 包括: 8. A server, characterized by including:
接收模块, 用于接收客户端发送的第一请求消息; The receiving module is used to receive the first request message sent by the client;
确定模块, 用于根据所述第一请求消息的属性信息, 确定所述第一请求 消息对应的第一操作事件; Determining module, configured to determine the first operation event corresponding to the first request message according to the attribute information of the first request message;
处理模块, 用于确定自身是否已经开始执行所述第一操作事件, 若已经 开始执行所述第一操作事件,将所述第一请求消息緩存在第一緩存消息队列, 所述第一緩存消息队列用于緩存不同客户端发送的不同请求消息, 针对所述 第一緩存消息队列中的不同客户端发送的不同请求消息需要执行相同的所述 第一操作事件; The processing module is used to determine whether it has started to execute the first operation event. If it has started to execute the first operation event, cache the first request message in the first cache message queue. The first cache message The queue is used to cache different request messages sent by different clients, and the same first operation event needs to be executed for different request messages sent by different clients in the first cached message queue;
发送模块, 用于当执行完毕所述第一操作事件时, 向所述第一緩存消息 队列中的不同请求消息对应的每个客户端发送所述第一操作事件的响应消 息。 A sending module, configured to send a response message of the first operation event to each client corresponding to different request messages in the first cache message queue when the execution of the first operation event is completed.
9、 根据权利要求 8所述的服务器, 其特征在于, 所述确定模块, 具体用 于根据所述第一请求消息的操作对象、 操作内容或操作结果中的任意之一或 其任意组合, 确定所述第一请求消息所对应的第一操作事件。 9. The server according to claim 8, characterized in that the determination module is specifically configured to determine based on any one of the operation object, operation content or operation result of the first request message, or any combination thereof. The first operation event corresponding to the first request message.
10、 根据权利要求 8所述的服务器, 其特征在于, 所述处理模块, 还用 于在确定自身未开始执行所述第一操作事件之后, 启动执行所述第一操作事 件, 并创建对应于所述第一操作事件的第一緩存消息队列。 10. The server according to claim 8, wherein the processing module is further configured to start executing the first operation event after determining that it has not started executing the first operation event, and create a corresponding A first cached message queue for the first operation event.
1 1、 根据权利要求 8〜10中任一项所述的服务器, 其特征在于, 还包括: 预处理模块, 用于确定所述第一操作事件是否是预置的合并处理事件, 如果是, 则所述处理模块执行所述将所述第一请求消息緩存在第一緩存消息 队列的步骤; 如果否, 则所述处理模块针对所述第一请求消息启动执行所述 第一操作事件。 1 1. The server according to any one of claims 8 to 10, further comprising: a preprocessing module, used to determine whether the first operation event is a preset merge processing event, and if so, Then the processing module performs the step of caching the first request message in the first cache message queue; if not, the processing module starts executing the first operation event for the first request message.
12、 根据权利要求 1 1所述的服务器, 其特征在于, 所述预置的合并处理 事件包括: 增加服务器 CPU处理时间和效率的操作处理事件。 12. The server according to claim 11, characterized in that, the preset merging process Events include: Operation processing events that increase server CPU processing time and efficiency.
13、根据权利要求 12所述的服务器, 其特征在于, 所述增加服务器 CPU 处理时间和效率的操作处理事件包括下述操作事件中的至少一种: 13. The server according to claim 12, characterized in that the operation processing events that increase the server CPU processing time and efficiency include at least one of the following operation events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备 份操作、 启动操作、 停止操作。 Add operations, create operations, delete operations, modify operations, query operations, restart operations, backup operations, start operations, and stop operations.
14、 根据权利要求 8〜11中任一项所述的服务器, 其特征在于, 还包括: 删除模块, 用于在所述发送模块向所述第一緩存消息队列中的所有请求 消息对应的所有客户端发送所述第一操作事件的响应消息之后, 删除所述第 一緩存消息队列。 14. The server according to any one of claims 8 to 11, further comprising: a deletion module, configured to send in the sending module to all requests corresponding to all request messages in the first cache message queue. After sending the response message of the first operation event, the client deletes the first cached message queue.
15、 一种服务器, 其特征在于, 包括: 15. A server, characterized by including:
接收器, 用于接收客户端发送的第一请求消息; Receiver, used to receive the first request message sent by the client;
处理器, 用于根据所述第一请求消息的属性信息, 确定所述第一请求消 息对应的第一操作事件; 确定自身是否已经开始执行所述第一操作事件, 若 已经开始执行所述第一操作事件, 将所述第一请求消息緩存在第一緩存消息 队列, 所述第一緩存消息队列用于緩存不同客户端发送的不同请求消息, 针 对所述第一緩存消息队列中的不同客户端发送的不同请求消息需要执行相同 的所述第一操作事件; The processor is configured to determine the first operation event corresponding to the first request message according to the attribute information of the first request message; determine whether it has started to execute the first operation event. If it has started to execute the first operation event, An operation event, cache the first request message in a first cache message queue, the first cache message queue is used to cache different request messages sent by different clients, for different clients in the first cache message queue Different request messages sent by the terminal need to execute the same first operation event;
发送器, 用于当执行完毕所述第一操作事件时, 向所述第一緩存消息队 列中的不同请求消息对应的每个客户端发送所述第一操作事件的响应消息。 A sender, configured to send a response message of the first operation event to each client corresponding to different request messages in the first cache message queue when the execution of the first operation event is completed.
16、 根据权利要求 15所述的服务器, 其特征在于, 所述处理器, 具体用 于根据所述第一请求消息的操作对象、 操作内容或操作结果中的任意之一或 其任意组合, 确定所述第一请求消息所对应的第一操作事件。 16. The server according to claim 15, characterized in that the processor is specifically configured to determine based on any one of the operation object, operation content or operation result of the first request message, or any combination thereof. The first operation event corresponding to the first request message.
17、 根据权利要求 15所述的服务器, 其特征在于, 所述处理器还用于在 确定自身未开始执行所述第一操作事件之后, 启动执行所述第一操作事件, 并创建对应于所述第一操作事件的第一緩存消息队列。 17. The server according to claim 15, wherein the processor is further configured to start executing the first operation event after determining that it has not started executing the first operation event, and create a server corresponding to the first operation event. The first cached message queue for the first operation event.
18、 根据权利要求 15〜17中任一项所述的服务器, 其特征在于, 所述处 理器还用于确定所述第一操作事件是否是预置的合并处理事件, 如果是, 执 行所述将所述第一请求消息緩存在第一緩存消息队列的步骤; 如果否, 针对 所述第一请求消息启动执行所述第一操作事件。 18. The server according to any one of claims 15 to 17, wherein the processor is further configured to determine whether the first operation event is a preset merge processing event, and if so, execute the The step of caching the first request message in the first cached message queue; if not, initiating execution of the first operation event for the first request message.
19、 根据权利要求 18中所述的服务器, 其特征在于, 所述预置的合并处 理事件包括: 增加服务器 CPU处理时间和效率的操作处理事件。 19. The server according to claim 18, characterized in that: the preset merging location Processing events include: Operation processing events that increase server CPU processing time and efficiency.
20、根据权利要求 19所述的服务器, 其特征在于, 所述增加服务器 CPU 处理时间和效率的操作处理事件包括下述操作事件中的至少一种: 20. The server according to claim 19, characterized in that the operation processing events that increase the server CPU processing time and efficiency include at least one of the following operation events:
增加操作、 创建操作、 删除操作、 修改操作、 查询操作、 重启操作、 备 份操作、 启动操作、 停止操作。 Add operations, create operations, delete operations, modify operations, query operations, restart operations, backup operations, start operations, and stop operations.
21、 根据权利要求 15〜18中任一项所述的服务器, 其特征在于, 所述处 理器还用于在所述发送器向所述第一緩存消息队列中的所有请求消息对应的 所有客户端发送所述第一操作事件的响应消息之后, 删除所述第一緩存消息 队列。 21. The server according to any one of claims 15 to 18, characterized in that, the processor is further configured to send messages from the sender to all clients corresponding to all request messages in the first cache message queue. After the terminal sends the response message of the first operation event, the first cached message queue is deleted.
PCT/CN2012/084897 2012-11-20 2012-11-20 Message processing method and server WO2014078989A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/084897 WO2014078989A1 (en) 2012-11-20 2012-11-20 Message processing method and server
CN201280003447.3A CN103370917B (en) 2012-11-20 2012-11-20 Message treatment method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084897 WO2014078989A1 (en) 2012-11-20 2012-11-20 Message processing method and server

Publications (1)

Publication Number Publication Date
WO2014078989A1 true WO2014078989A1 (en) 2014-05-30

Family

ID=49370150

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084897 WO2014078989A1 (en) 2012-11-20 2012-11-20 Message processing method and server

Country Status (2)

Country Link
CN (1) CN103370917B (en)
WO (1) WO2014078989A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677844B (en) * 2013-12-20 2017-02-01 国云科技股份有限公司 Lightweight class data processing method based on message chain
CN105656853B (en) * 2014-11-14 2018-11-20 华为技术有限公司 A kind of message delivery method and relevant apparatus
CN104618517B (en) * 2015-03-05 2018-08-07 国家电网公司 A kind of method, system and device of PUSH message
CN104683731B (en) * 2015-03-20 2019-02-19 苏州科达科技股份有限公司 A kind of method and system for being communicated between heterogeneous platform
CN105049240B (en) * 2015-06-26 2018-08-21 大唐移动通信设备有限公司 A kind of message treatment method and server
CN108694075B (en) * 2017-04-12 2021-03-30 北京京东尚科信息技术有限公司 Method and device for processing report data, electronic equipment and readable storage medium
CN110020271A (en) * 2017-08-04 2019-07-16 北京京东尚科信息技术有限公司 Method and system for cache management
CN107592556B (en) * 2017-08-08 2020-02-04 福建星网视易信息系统有限公司 Control information synthesis method based on mobile terminal, controlled terminal and mobile terminal
CN110505257A (en) * 2018-05-17 2019-11-26 北京国双科技有限公司 Request message processing method and processing device
CN111753164A (en) * 2019-03-27 2020-10-09 北京京东尚科信息技术有限公司 Link event guiding method and device, electronic equipment and storage medium
CN111917617B (en) * 2020-07-31 2022-03-29 宁波奥克斯电气股份有限公司 Intelligent household electrical appliance control method and device, server and storage medium
CN112199215B (en) * 2020-10-13 2024-01-19 恒生电子股份有限公司 Message processing method, device, equipment and storage medium
CN114598894A (en) * 2020-12-03 2022-06-07 北京字节跳动网络技术有限公司 Interactive message processing method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008085324A1 (en) * 2006-12-19 2008-07-17 Ianywhere Solutions, Inc. Assigning tasks to threads requiring limited resources using programmable queues
CN101447981A (en) * 2008-04-03 2009-06-03 中兴通讯股份有限公司 Client-server interaction method based on LDAP protocol and system thereof
CN101998682A (en) * 2009-08-27 2011-03-30 中兴通讯股份有限公司 Device and method for acquiring service content by personal network equipment and related device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008008532A2 (en) * 2006-07-14 2008-01-17 Exxonmobil Research And Engineering Company Rapid serial experimentation of catalysts and catalyst systems
CN101639792B (en) * 2008-07-29 2016-04-06 阿里巴巴集团控股有限公司 A kind of concurrent data disposal route, device and a kind of electronic accounting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008085324A1 (en) * 2006-12-19 2008-07-17 Ianywhere Solutions, Inc. Assigning tasks to threads requiring limited resources using programmable queues
CN101447981A (en) * 2008-04-03 2009-06-03 中兴通讯股份有限公司 Client-server interaction method based on LDAP protocol and system thereof
CN101998682A (en) * 2009-08-27 2011-03-30 中兴通讯股份有限公司 Device and method for acquiring service content by personal network equipment and related device thereof

Also Published As

Publication number Publication date
CN103370917A (en) 2013-10-23
CN103370917B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
WO2014078989A1 (en) Message processing method and server
WO2017190641A1 (en) Crawler interception method and device, server terminal and computer readable medium
WO2017114205A1 (en) Short link processing method, device and server
WO2016023357A1 (en) Webpage access method and apparatus, and router
WO2015067117A1 (en) Cloud upload method and system, scheduling device and client
JP2017529793A5 (en)
WO2012139474A1 (en) Data acquisition method, device and system
WO2017185633A1 (en) Cdn server and data caching method thereof
CN102984286A (en) Method and device and system of domain name server (DNS) for buffering updating
US20180013610A1 (en) File delivery method, apparatus and system
WO2021007752A1 (en) Return-to-source method and related device in content delivery network
WO2012034518A1 (en) Method and system for providing message including universal resource locator
WO2014179950A1 (en) File uploading method, client, and server
CN111414208A (en) Application program starting method, device and equipment
US8375124B1 (en) Resumable upload for hosted storage systems
WO2019006775A1 (en) Data transmission method and system thereof
WO2013071747A1 (en) Method and apparatus for obtaining file
WO2015061938A1 (en) Method, device and system for redirecting data service proxy
US9967360B2 (en) Method and system for information exchange utilizing an asynchronous persistent store protocol
CN102546612A (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
WO2014205842A1 (en) Content sharing method and social synchronizing apparatus
GB2510192A (en) Intermediate proxy server caching buffer searched with key (URI hash)
US9832268B2 (en) System, method, and medium for managing priority in requests to in-memory data grid (IMDG)
JP6089346B2 (en) Method, apparatus and system for obtaining an object
WO2013097234A1 (en) Service processing method and system

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: 12888675

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: 12888675

Country of ref document: EP

Kind code of ref document: A1