WO2021179156A1 - Message processing method, device and system, and server - Google Patents

Message processing method, device and system, and server Download PDF

Info

Publication number
WO2021179156A1
WO2021179156A1 PCT/CN2020/078554 CN2020078554W WO2021179156A1 WO 2021179156 A1 WO2021179156 A1 WO 2021179156A1 CN 2020078554 W CN2020078554 W CN 2020078554W WO 2021179156 A1 WO2021179156 A1 WO 2021179156A1
Authority
WO
WIPO (PCT)
Prior art keywords
message queue
message
call request
request
calling
Prior art date
Application number
PCT/CN2020/078554
Other languages
French (fr)
Chinese (zh)
Inventor
庞大伟
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2020/078554 priority Critical patent/WO2021179156A1/en
Priority to CN202080094695.8A priority patent/CN115039392A/en
Publication of WO2021179156A1 publication Critical patent/WO2021179156A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • This application relates to the field of computer technology, and more specifically, to a message processing method, device, system, and server.
  • a message can be understood as a unit of data transmitted between two computers, and a message queue can be understood as a container for storing messages during the transmission of messages.
  • a message queue proxy services they are all services provided for a single message queue, resulting in a lack of flexibility and compatibility in the processing of messages transmitted by the message queue.
  • this application proposes a message processing method, device, system and server to improve the above problems.
  • this application provides a message processing method, the method includes: if a first message queue call request sent by a client is received, converting the first message queue call request into a second message queue call request The message interaction protocol corresponding to the second message queue call request and the first message queue call request is different; based on the second message queue call request and a specified call interface, a message that is adapted to the specified call interface is generated Message queue calling data; according to the designated calling interface and the message queue calling data, the target message queue engine is called to execute the second message queue calling request.
  • the present application provides a message processing method applied to a message processing system
  • the message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device
  • the method includes: the protocol processing If the device receives the first message queue call request sent by the client, it converts the first message queue call request into a second message queue call request, the second message queue call request and the first message queue call request The corresponding message interaction protocols are different; the message logic implementation device generates message queue calling data adapted to the specified calling interface based on the second message queue calling request and the designated calling interface; the message queue engine bearing device is based on the The designated calling interface and the message queue calling data are described, and the target message queue engine is called to execute the second message queue calling request.
  • the present application provides a message processing device, the device includes: a protocol analysis unit, configured to convert the first message queue calling request into a message queue calling request sent by a client The second message queue call request, the message interaction protocol corresponding to the second message queue call request and the first message queue call request is different; the call logic implementation unit is used to call the request based on the second message queue and specify The calling interface generates message queue calling data adapted to the designated calling interface; a message processing execution unit is used to call the target message queue engine to execute the second message according to the designated calling interface and the message queue calling data Queue call request.
  • a protocol analysis unit configured to convert the first message queue calling request into a message queue calling request sent by a client The second message queue call request, the message interaction protocol corresponding to the second message queue call request and the first message queue call request is different
  • the call logic implementation unit is used to call the request based on the second message queue and specify
  • the calling interface generates message queue calling data adapted to the designated calling interface
  • a message processing execution unit is used to
  • the present application provides a message processing system.
  • the message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device.
  • the system includes: the protocol processing device for receiving To the first message queue call request sent to the client, the first message queue call request is converted into a second message queue call request, and the second message queue call request corresponds to the first message queue call request The message interaction protocol is different; the message logic implementation device is used to generate message queue calling data adapted to the designated calling interface based on the second message queue calling request and the designated calling interface; the message queue engine bearing device is used According to the designated calling interface and the message queue calling data, the target message queue engine is called to execute the second message queue calling request.
  • the present application provides a server including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, so The one or more programs are configured to perform the methods described above.
  • the present application provides a computer-readable storage medium having program code executable by a processor, the program code causing the processor to execute the above-mentioned method.
  • the message interaction protocol can be converted first to convert the first message queue call request Call requests for a second message queue with a different message interaction protocol, and then generate message queue call data adapted to the specified call interface based on the second message queue call request and a designated call interface, and then generate message queue call data adapted to the designated call interface according to the designated call interface and
  • the message queue calls data calls the target message queue engine to execute the second message queue call request, so that through protocol conversion, in the case where the business party sends the message queue call request based on the client with different message interaction protocol,
  • the message queue call request of the business party can be identified, and the message queue call data is generated based on the public designated call interface, and then the second message queue call request is executed through the designated call interface, thereby improving the message queue transmission rate Flexibility and compatibility in processing.
  • Figure 1 shows a schematic diagram of an application scenario of a message processing method proposed in this application
  • Figure 2 shows a schematic diagram of the application architecture of a message processing method proposed in this application
  • FIG. 3 shows a schematic diagram of the application architecture of another message processing method proposed by this application.
  • Figure 4 shows a flow chart of a message processing method proposed by this application
  • FIG. 5 shows a flowchart of yet another message processing method proposed by this application.
  • FIG. 6 shows a flowchart of yet another message processing method proposed by this application.
  • FIG. 7 shows a flowchart of another message processing method proposed by this application.
  • FIG. 8 shows a flowchart of yet another message processing method proposed by this application.
  • FIG. 9 shows a structural block diagram of a message processing method device proposed by this application.
  • FIG. 10 shows a structural block diagram of another message processing method and apparatus proposed by this application.
  • FIG. 11 shows a structural block diagram of another message processing method and device proposed by this application.
  • FIG. 12 shows a structural block diagram of another message processing method and device proposed by this application.
  • Fig. 13 shows a structural block diagram of an electronic device proposed in this application.
  • Fig. 14 is a storage unit for storing or carrying program code for implementing the message processing method according to the embodiment of the present application according to an embodiment of the present application.
  • Message Queue For messages, they can be processed based on a message queue (Message Queue). Among them, the message queue can be compared to a container for storing messages. When you need to use the message, you can take out the message from the message queue for your own use.
  • the message queue is a typical representative of the consumer-producer model. One end continuously writes messages to the message queue, while the other end can read the messages in the queue.
  • the message publisher only publishes the message to the message queue regardless of who gets it, and the message consumer only gets the message from the message queue regardless of who publishes it.
  • message queue is an important component in a distributed system, and the use of message queues can improve system performance, peak clipping, and reduce system coupling through asynchronous processing.
  • Message queues can have ActiveMQ, RabbitMQ, Kafka, RocketMQ and other types, but different message queues use different message exchange protocols.
  • the message interaction protocol can be understood as a protocol for message interaction between the message queue client and the message queue agent server.
  • the message queue server usually only recognizes the message queue call request sent by a message queue client that uses an inherent message interaction protocol, while other message interaction protocols are used.
  • the message queue call request sent by the client cannot be recognized normally, resulting in poor versatility and compatibility of the message queue proxy server.
  • the method provided in this application can at least perform the message first after receiving the first message queue call request sent by the client.
  • the adapted message queue calls data, and then calls the target message queue engine to execute the second message queue call request according to the specified call interface and the message queue call data, so that through protocol conversion, the business side is based on the message
  • a client with a different interaction protocol sends a message queue call request, it can still identify the message queue call request of the business party, and then generate the message queue call data based on the public designated call interface, and then execute the message queue call data through the designated call interface
  • the second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
  • the message processing system 100 shown in FIG. 1 includes a protocol analysis unit, a call logic implementation unit, and a message processing execution unit.
  • the protocol analysis unit is used to perform protocol identification and conversion on the message queue request sent by the message queue client, so that the purpose of calling the message queue by the message queue client can be identified. For example, if the first message queue call request sent by the client is received in this application, the first message queue call request can be converted into the second message queue call request.
  • the calling logic implementation unit is used to generate message queue calling data adapted to the designated calling interface according to the public designated calling interface and the converted second queue calling request.
  • the protocol analysis unit can obtain at least one actual logic call data from metadata viewing, metadata creation, message sending, and message consumption after the protocol conversion.
  • the call logic implementation unit will obtain the data according to the public designated call interface and the conversion.
  • the actual call data is generated, and the message queue call data adapted to the specified call interface is generated.
  • the common designated call interface means that no matter what message interaction protocol is used by the message queue client to generate a message queue call request, and no matter which message queue engine is actually used to execute the message queue call request, it is Based on the specified call interface.
  • the message processing execution unit is configured to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data. It should be noted that a variety of message queue engines can be encapsulated in the message processing execution unit, and the target message queue engine refers to the message queue engine currently responsible for executing the message queue call request among the various message queue engines. .
  • the protocol analysis unit, the calling logic implementation unit, and the message processing execution unit may be deployed in the same hardware device (for example, a server), and in addition, they may also be deployed in different hardware devices.
  • the protocol analysis unit is deployed in the first hardware device
  • the calling logic implementation unit is deployed in the second hardware device
  • the message processing execution unit is deployed in the third hardware device.
  • the first hardware device can be regarded as a protocol processing device
  • the second hardware device can be regarded as a message logic implementation device
  • the third hardware device can be understood as a message queue engine bearing device.
  • protocol parsing unit and the calling logic implementation unit can be deployed in the same hardware device, and the message processing execution unit can be in a single step in a hardware device.
  • the multiple message queue engines encapsulated in the message processing execution unit may be separately partly in one hardware device.
  • the hardware device 121 carries a message proxy service
  • the hardware device 131, the hardware device 132, and the hardware device 133 each carry a message queue engine.
  • the hardware device 121 runs with The aforementioned protocol analysis unit and call logic implementation unit
  • the hardware device 131, the hardware device 132, and the hardware device 133 each carry a message processing execution unit.
  • the hardware device 121 that carries the message proxy service can call any one of the hardware device 131, the hardware device 132, and the hardware device 133 based on the network address of the message queue as needed to execute the data sent by the client 10.
  • Message queue call request can call any one of the hardware device 131, the hardware device 132, and the hardware device 133 based on the network address of the message queue as needed to execute the data sent by the client 10.
  • the message queue proxy service can be a service cluster, as shown in Figure 3, multiple message queue proxy services can be configured, for example, in Figure 3
  • the message queue proxy service 121 and the message queue proxy service 122 of the message queue proxy service 122 can be configured, for example, in Figure 3
  • the message queue proxy service 121 and the message queue proxy service 122 of the message queue proxy service 122 can be configured, for example, in Figure 3
  • the message queue call request of the same client 10 can be sent by the message queue proxy service 121 and the message queue proxy service 122 under different circumstances.
  • One for processing For example, when the message queue proxy service 121 is unavailable, the message queue proxy service 122 may process the message queue call request of the client 10.
  • the hardware device 132 is unavailable, the message queue agent service 122 in the hardware device 131 or the hardware device 133 can be switched to execute the message queue request.
  • a message processing method provided by this application includes:
  • the client can be understood as a client running the Message Queuing SDK, and the client running the Message Queuing SDK can be deployed on the business side.
  • subsequent generation of message queue call data is generated based on the message queue call request of the same protocol.
  • the message exchange protocol based on the first message queue call request sent by the client is different from the same protocol, the message exchange protocol will be converted first to change the first message originally sent by the client
  • the queue call request is converted into a second message queue call request based on the same protocol.
  • the message queue proxy service provided in this embodiment is executed, the subsequent message queue call data generation is performed based on the message interaction protocol A.
  • the first message queue call request based on message interaction protocol B will undergo protocol conversion and be converted to message interaction protocol based A's first message queue call request.
  • the first message queue call request based on message interaction protocol C will also be converted to message-based The first message queue of the interactive protocol A calls the request.
  • the message queue engine that actually executes the message queue call request will be encapsulated, and after the encapsulation is completed, the data interface will be configured so that the message queue engine can be actually called through the data interface, and then in this case
  • the data interface in order to complete the actual message queue call, it is necessary to generate message queue call data in the form of a data interface, and the data interface can be understood as the aforementioned designated call interface.
  • the message queue call data can be input to a designated call interface, and then the target message queue engine is called through the designated call interface to execute the second message queue call request.
  • the client sends a message queue call request, it is actually preparing to process the message through the message queue.
  • the processing of this message can be understood as sending information to other clients or extracting information sent by other clients.
  • calling the target message queue engine through the designated call interface to execute the second message queue call request can be understood as calling the target message queue engine through the designated call interface to perform information transmission or information extraction. .
  • the corresponding second message queue request after protocol conversion also characterizes information A Send to other clients, then when the target message queue engine executes the second message queue call request, it characterizes the actual process of sending information A.
  • the message interaction protocol conversion may be performed first, so as to convert the first message queue call request into the message interaction protocol Different second message queue call requests, and then based on the second message queue call request and the designated call interface, generate message queue call data adapted to the designated call interface, and then according to the designated call interface and the message queue Call the data, call the target message queue engine to execute the second message queue call request, so that by means of protocol conversion, the business party can still be identified when the message queue call request is sent by the client based on different message interaction protocols. And then generate message queue calling data based on the public designated calling interface, and then execute the second message queue calling request through the designated calling interface, thereby improving the flexibility in the processing of messages transmitted by the message queue Sex and compatibility.
  • a message processing method provided by this application includes:
  • S210 If the first message queue calling request sent by the client is received, obtain the protocol adopted by the first message queue calling request. It can be understood that the protocol used by the first message queue call request refers to the message interaction protocol used, and in this embodiment, there may be multiple ways to obtain the protocol used by the first message queue call request.
  • the client's own identifier can be used to identify the protocol used by the message queue request sent by the device.
  • a mapping table between the client's identity and the protocol used by the corresponding message queue request can be established in advance, and then when the first message queue request sent by the client is obtained, the client's identity can be directly identified, and then the The client's identifier searches the mapping table for the protocol used by the corresponding message queue request.
  • the identification of the client can be a network address.
  • the data format of the message queue request sent by the client can be analyzed to identify the corresponding protocol.
  • S220 Based on the adopted protocol, convert the first message queue call request into a second message queue call request based on the target protocol, and the second message queue call request is the same as the first message queue call request.
  • the corresponding message exchange protocol is different.
  • the converting the first message queue call request to the second message queue call request based on the target protocol based on the adopted protocol includes: calling and calling the second message queue based on the adopted protocol.
  • the conversion plug-in adapted to the first message queue call request converts the first message queue call request into a second message queue call request based on the target protocol.
  • a variety of conversion plug-ins can be configured in the message queue proxy service running the message processing method provided in this embodiment, which corresponds to the message interaction protocol that each client may use.
  • a conversion plug-in is configured, and the multiple conversion plug-ins can convert the message queue call request based on different message interaction protocols into the message queue call request based on the subsequent generation of the message queue call data.
  • a conversion plug-in A, a conversion plug-in B, a conversion plug-in C, and a conversion plug-in D may be configured in the message queue proxy service.
  • the message processing method provided in this embodiment generates message queue call data based on the message queue call request using protocol F (that is, the aforementioned target protocol).
  • protocol F that is, the aforementioned target protocol.
  • the conversion plug-in A can be configured In order to convert the first message queue call request based on protocol A into the second message queue call request based on protocol F, the conversion plug-in B can be configured to convert the first message queue call request based on protocol B into the second message queue call request based on protocol F Message queue call request, conversion plug-in C can be configured to convert the first message queue call request based on protocol C to the second message queue call request based on protocol F, and conversion plug-in D can be configured to convert the first message based on protocol D The queue call request is converted into a second message queue call request based on protocol F.
  • the conversion plug-in adapted to the first message queue call request is called to convert the first message queue call request into a second message queue call based on the target protocol Before the request, it also includes: detecting whether the first message queue has been loaded to call the requested conversion plug-in; if the first message queue has been loaded, calling the requested conversion plug-in, executing the protocol based on the adopted protocol Invoke a conversion plug-in adapted to the first message queue call request to convert the first message queue call request into a second message queue call request based on the target protocol.
  • the first message queue calls the adapted conversion plug-in that is not loaded, search the plug-in storage area for the first message queue to call the adapted conversion plug-in through the plug-in manager; if the first message queue is found, call The conversion plug-in that requests the adaptation is dynamically loaded to the first message queue to call the conversion plug-in that is requested to be adapted, and after the dynamic loading is completed, the conversion plug-in that is adapted to the first message queue call request is called to transfer the The first message queue call request is converted into the second message queue call request based on the target protocol.
  • the message queue invocation data includes various parameters needed to actually invoke the message queue service through the designated invocation interface, and the format and composition of the various parameters are adapted to the designated invocation interface.
  • the multiple parameters may include the request purpose of the second message queue request obtained by converting the protocol (for example, information transmission or information reading), and the message processing object (for example, information to be sent or information to be read) Wait.
  • the method provided in this embodiment further includes: during initialization, acquiring the conversion plug-in stored in the plug-in storage area.
  • the initialization can be understood as the initialization of the message queue proxy service provided by this embodiment at startup.
  • updating the conversion plug-in stored in the plug-in storage area includes: during initialization, obtaining the conversion plug-in stored in the plug-in storage area, and storing the conversion plug-in in the plug-in storage area.
  • the conversion plug-in of is compared with the conversion plug-in stored in the management terminal, and if the inconsistent conversion plug-in is compared, the inconsistent conversion plug-in is obtained and registered, and the registered conversion plug-in is stored in the plug-in storage area.
  • the plug-in storage area here is a different storage area from the aforementioned storage area storing the identifier of the loaded conversion plug-in.
  • the plug-in storage area here can be understood as a pooled plug-in storage area.
  • the message processing method provided by the embodiment of the present application can still identify the message queue calling request of the business party through protocol conversion when the business party sends a message queue calling request based on clients with different message interaction protocols.
  • the message queue calling data is generated based on the public designated calling interface, and then the second message queue calling request is executed through the designated calling interface, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
  • the conversion plug-in corresponding to the message queue used by the client is called to perform the conversion of the call request, so that the client that supports the new message interaction protocol is online. In the case of, just develop the corresponding conversion plug-in for the newly launched client, without updating the overall architecture, which further improves the flexibility of the message queue agent service upgrade.
  • a message processing method includes: S310: If a first message queue call request sent by a client is received, obtain the byte stream corresponding to the first message queue call request .
  • the identification of the protocol used for the first message queue call request based on the byte stream includes: obtaining the byte stream format of the byte stream corresponding to the first message queue call request; The byte stream format is matched with multiple reference byte stream formats; the protocol corresponding to the reference byte stream format matching the byte stream format is used as the protocol adopted by the first message queue call request.
  • the message queue proxy service can start to obtain the first message queue call request sent by the client.
  • the first message queue calls the byte stream corresponding to the request, and at the same time identifies the byte stream format of the byte stream corresponding to the first message queue call request, and then calls the obtained byte stream corresponding to the first message queue call request.
  • the byte stream format of is sent to multiple conversion plug-ins, so that multiple conversion plug-ins will perform internal matching with reference to the byte stream format.
  • a conversion plug-in If it is detected that a conversion plug-in returns information that the matching is successful, it represents the conversion plug-in that feedbacks the successful matching information
  • the corresponding reference byte stream format matches the byte stream format of the byte stream corresponding to the first message queue call request, and the protocol corresponding to the reference byte stream format corresponding to the conversion plug-in is used as the first message queue The protocol used by the call request.
  • the reference byte stream format corresponding to the conversion plug-in can be understood as the byte stream format corresponding to the protocol that can be converted.
  • the conversion plug-in B may be configured to convert the first message queue call request based on protocol B into the second message queue call request based on protocol F, then the reference byte stream format corresponding to the conversion plug-in B is protocol B The corresponding byte stream format.
  • the byte stream format corresponding to the protocol can be understood as the format of the byte stream in the transmission process of the message queue call request generated based on the protocol.
  • the message processing method provided by the embodiment of the present application can determine the message interaction protocol adopted by the first message queue call request based on the byte stream corresponding to the first message queue call request, so that through protocol conversion, the business side
  • clients with different message interaction protocols send message queue call requests, they can still identify the message queue call request of the business party, and then generate message queue call data based on the public designated call interface, and then execute it through the designated call interface
  • the second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
  • a message processing method includes: S410: Select a first message queue engine from a plurality of candidate message queue engines as the target message queue engine. S420: If the first message queue calling request sent by the client is received, the first message queue calling request is converted into a second message queue calling request, and the second message queue calling request is the same as the first message queue calling request.
  • the message exchange protocol corresponding to the request is different.
  • the method provided in this embodiment further includes: if it is detected that the first message queuing engine is in a designated state, using a second message queuing engine of the plurality of message queuing engines to be selected as the target message Queuing engine.
  • the designated state includes when the first message queuing engine is in a state to be upgraded; if it is detected that the first message queuing engine is in the designated state, the selected state of the message queuing engine is selected As the target message queuing engine, the second message queuing engine includes:
  • the second message queuing engine among the plurality of message queuing engines to be selected is used as the target message queuing engine.
  • the designated state includes when the first message queuing engine is in a message sending blocking state; if it is detected that the first message queuing engine is in the designated state, the multiple The second message queuing engine in the message queuing engine to be selected as the target message queuing engine includes: if it is detected that the first message queuing engine is in a message sending blocking state, the first message queuing engine among the plurality of message queuing engines to be selected 2. The message queuing engine serves as the target message queuing engine.
  • the entire message queue proxy service is in a highly available state through the aforementioned switching of the target message queue engine.
  • the multiple message queuing engines to be selected are all plug-in message queuing engines.
  • the message processing method provided by the embodiment of the present application can determine the message interaction protocol adopted by the first message queue call request based on the byte stream corresponding to the first message queue call request, so that through protocol conversion, the business side
  • clients with different message interaction protocols send message queue call requests, they can still identify the message queue call request of the business party, and then generate message queue call data based on the public designated call interface, and then execute it through the designated call interface
  • the second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
  • the target message queue engine can be flexibly selected from multiple candidate message queue engines, which improves the stability of the message queue call request processing.
  • a message processing method provided by this application includes:
  • S510 Perform security verification on the client that sends the first message queue call request.
  • S540 According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request.
  • the message processing method provided by the embodiment of the application can still identify the message queue calling request of the business party when the business party sends a message queue calling request based on clients with different message interaction protocols, and then based on the common designated calling The interface generates message queue call data, and then executes the second message queue call request through the designated call interface, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
  • the target message queue engine can be flexibly selected from multiple candidate message queue engines, which improves the stability of the message queue call request processing.
  • the client that sends the first message queue call request will also perform security verification first, which improves the security of the message queue proxy service.
  • a message processing apparatus 600 provided by the present application includes: a protocol analysis unit 610, configured to: if a first message queue call request sent by a client is received, the first message queue The call request is converted into a second message queue call request, and the message interaction protocol corresponding to the second message queue call request and the first message queue call request are different.
  • the calling logic implementation unit 620 is configured to generate message queue calling data adapted to the designated calling interface based on the second message queue calling request and the designated calling interface.
  • the message processing execution unit 630 is configured to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data.
  • the protocol parsing unit 610 is specifically configured to obtain the protocol adopted by the first message queue calling request if the first message queue calling request sent by the client is received; based on the adopted protocol, The first message queue calling request is converted into a second message queue calling request based on the target protocol.
  • the protocol parsing unit 610 is specifically configured to call a conversion plug-in adapted to the first message queue call request to transfer the first message queue call request based on the adopted protocol. Converted to the second message queue call request based on the target protocol.
  • the protocol parsing unit 610 is also specifically configured to detect whether the first message queue calls the conversion plug-in requesting adaptation has been loaded; if the first message queue calls the conversion plug-in requesting adaptation has been loaded, Execute the protocol based on the adopted, and call a conversion plug-in adapted to the first message queue call request to convert the first message queue call request into a second message queue call request based on the target protocol.
  • the conversion plug-in converts the first message queue call request into a second message queue call request based on the target protocol.
  • the device 600 further includes: a conversion plug-in management unit 640, configured to update the conversion plug-ins stored in the plug-in storage area during initialization.
  • the conversion plug-in management unit 640 is specifically configured to obtain conversion plug-ins stored in the plug-in storage area during initialization; and convert the conversion plug-ins stored in the plug-in storage area to the conversion stored in the management terminal. The plug-ins are compared; if the inconsistent conversion plug-ins are compared, the inconsistent conversion plug-ins are obtained and registered; and the registered conversion plug-ins are stored in the plug-in storage area.
  • the protocol analysis unit 610 is specifically configured to obtain the byte stream corresponding to the first message queue call request; and identify the protocol adopted by the first message queue call request based on the byte stream.
  • the protocol parsing unit 610 is specifically configured to obtain the byte stream format of the byte stream corresponding to the first message queue call request; compare the byte stream format with multiple reference byte stream formats Matching; the protocol corresponding to the reference byte stream format matching the byte stream format is used as the protocol adopted by the first message queue call request.
  • the device 600 further includes: a message queue engine management unit 650, configured to select the first message queue engine from a plurality of candidate message queue engines as the target message queue engine .
  • the message queuing engine management unit 650 is specifically configured to use a second message queuing engine of the plurality of message queuing engines to be selected as the target if it is detected that the first message queuing engine is in a designated state Message queue engine.
  • the specified state includes when the first message queue engine is in a state to be upgraded.
  • the message queuing engine management unit 650 is specifically configured to, if it is detected that the first message queuing engine is in the to-be-upgraded state, set the second message queuing engine of the plurality of message queuing engines to be selected as The target message queue engine.
  • the specified state includes when the first message queuing engine is in a message sending blocking state.
  • the message queuing engine management unit 650 is specifically configured to detect the first message When the queuing engine is in the message sending blocking state, the second message queuing engine among the multiple to-be-selected message queuing engines is used as the target message queuing engine.
  • the multiple message queuing engines to be selected are all plug-in message queuing engines.
  • the device 600 further includes: a security verification unit 660, configured to perform security verification on the client that sends the first message queue call request.
  • the protocol analysis unit 610 is configured to, if the security verification succeeds, execute the first message queue call request sent by the client, and convert the first message queue call request to a second message queue. Message queue call request.
  • the message interaction protocol conversion may be performed first, so as to convert the first message queue calling request into a message interaction protocol with a different first message interaction protocol.
  • a message queue call request and then based on the second message queue call request and a designated call interface, generate message queue call data adapted to the designated call interface, and then call data according to the designated call interface and the message queue , Call the target message queue engine to execute the second message queue call request, so that through protocol conversion, the message queue call request of the business party can still be identified when the business party sends a message queue call request based on a client with a different message interaction protocol Queue call request, and then generate message queue call data based on the public designated call interface, and then execute the second message queue call request through the designated call interface, thereby improving the flexibility in the processing of messages transmitted by the message queue and compatibility.
  • an embodiment of the present application also provides another electronic device 200 including a processor 102 that can execute the foregoing short message pushing method.
  • the electronic device 200 further includes a memory 104 and a network module 106.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104 , Perform various functions of the electronic device 200 and process data.
  • the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 102 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 104 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • the network module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as with an audio playback device.
  • the network module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. .
  • SIM subscriber identity module
  • the network module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the network module 106 can exchange information with the base station.
  • the electronic device 200 may be a server that executes the foregoing method embodiments.
  • FIG. 14 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 1100 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1100 has a storage space for executing the program code 810 of any method step in the above-mentioned method. These program codes can be read from or written into one or more computer program products.
  • the program code 1110 may be compressed in an appropriate form, for example.
  • the message exchange protocol can be converted first to convert the first message queue.
  • the message queue call request is converted into a second message queue call request with a different message interaction protocol, and then based on the second message queue call request and the specified call interface, the message queue call data adapted to the specified call interface is generated, and then according to all The designated calling interface and the message queue calling data are called, the target message queue engine is called to execute the second message queue calling request, and the message queue calling request is sent on the business side based on the client with different message interaction protocols by means of protocol conversion.
  • the message queue call request of the business party can still be identified, and the message queue call data is generated based on the public designated call interface, and then the second message queue call request is executed through the designated call interface, thereby improving the message Flexibility and compatibility in the processing of messages transmitted by the queue.

Abstract

Disclosed are a message processing method, device and system, and a server. The method comprises: if a first message queue calling request sent by a client is received, converting the first message queue calling request into a second message queue calling request; generating, on the basis of the second message queue calling request and a designated calling interface, message queue calling data adapted to the designated calling interface; and calling, according to the designated calling interface and the message queue calling data, a target message queue engine to execute the second message queue calling request. Therefore, by means of protocol conversion, when a service party sends a message queue calling request on the basis of a client having a different protocol, the message queue calling request of the service party can still be adapted, thereby improving the flexibility and compatibility in the processing of messages transmitted by a message queue.

Description

消息处理方法、装置、系统以及服务器Message processing method, device, system and server 技术领域Technical field
本申请涉及计算机技术领域,更具体地,涉及一种消息处理方法、装置、系统以及服务器。This application relates to the field of computer technology, and more specifically, to a message processing method, device, system, and server.
背景技术Background technique
消息可以理解为在两台计算机间传送的数据单位,而消息队列可以理解为在消息的传输过程中保存消息的容器。在相关的提供消息队列代理服务的设备中,都是针对单一的消息队列提供的服务,造成在对消息队列所传输消息的处理中还缺乏一定的灵活性以及兼容性。A message can be understood as a unit of data transmitted between two computers, and a message queue can be understood as a container for storing messages during the transmission of messages. In related devices that provide message queue proxy services, they are all services provided for a single message queue, resulting in a lack of flexibility and compatibility in the processing of messages transmitted by the message queue.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种消息处理方法、装置、系统以及服务器,以改善上述问题。In view of the above problems, this application proposes a message processing method, device, system and server to improve the above problems.
第一方面,本申请提供了一种消息处理方法,所述方法包括:若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。In a first aspect, this application provides a message processing method, the method includes: if a first message queue call request sent by a client is received, converting the first message queue call request into a second message queue call request The message interaction protocol corresponding to the second message queue call request and the first message queue call request is different; based on the second message queue call request and a specified call interface, a message that is adapted to the specified call interface is generated Message queue calling data; according to the designated calling interface and the message queue calling data, the target message queue engine is called to execute the second message queue calling request.
第二方面,本申请提供了一种消息处理方法,应用于消息处理系统,所述消息处理系统包括协议处理设备、消息逻辑实现设备以及消息队列引擎承载设备,所述方法包括:所述协议处理设备若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;所述消息逻辑实现设备基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;消息队列引擎承载设备根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。In a second aspect, the present application provides a message processing method applied to a message processing system, the message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device, and the method includes: the protocol processing If the device receives the first message queue call request sent by the client, it converts the first message queue call request into a second message queue call request, the second message queue call request and the first message queue call request The corresponding message interaction protocols are different; the message logic implementation device generates message queue calling data adapted to the specified calling interface based on the second message queue calling request and the designated calling interface; the message queue engine bearing device is based on the The designated calling interface and the message queue calling data are described, and the target message queue engine is called to execute the second message queue calling request.
第三方面,本申请提供了一种消息处理装置,所述装置包括:协议解析单元,用于若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;调用逻辑实现单元,用于基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适 配的消息队列调用数据;消息处理执行单元,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。In a third aspect, the present application provides a message processing device, the device includes: a protocol analysis unit, configured to convert the first message queue calling request into a message queue calling request sent by a client The second message queue call request, the message interaction protocol corresponding to the second message queue call request and the first message queue call request is different; the call logic implementation unit is used to call the request based on the second message queue and specify The calling interface generates message queue calling data adapted to the designated calling interface; a message processing execution unit is used to call the target message queue engine to execute the second message according to the designated calling interface and the message queue calling data Queue call request.
第四方面,本申请提供了一种消息处理系统,所述消息处理系统包括协议处理设备、消息逻辑实现设备以及消息队列引擎承载设备,所述系统包括:所述协议处理设备,用于若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;所述消息逻辑实现设备,用于基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;消息队列引擎承载设备,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。In a fourth aspect, the present application provides a message processing system. The message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device. The system includes: the protocol processing device for receiving To the first message queue call request sent to the client, the first message queue call request is converted into a second message queue call request, and the second message queue call request corresponds to the first message queue call request The message interaction protocol is different; the message logic implementation device is used to generate message queue calling data adapted to the designated calling interface based on the second message queue calling request and the designated calling interface; the message queue engine bearing device is used According to the designated calling interface and the message queue calling data, the target message queue engine is called to execute the second message queue calling request.
第五方面,本申请提供了一种服务器,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a fifth aspect, the present application provides a server including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, so The one or more programs are configured to perform the methods described above.
第六方面,本申请提供了一种具有处理器可执行的程序代码的计算机可读存储介质,所述程序代码使所述处理器执行上述的方法。In a sixth aspect, the present application provides a computer-readable storage medium having program code executable by a processor, the program code causing the processor to execute the above-mentioned method.
本申请提供的一种消息处理方法、装置、系统以及服务器,若接收到客户端发送的第一消息队列调用请求后可以先进行消息交互协议的转换,以将所述第一消息队列调用请求转换为消息交互协议不同第二消息队列调用请求,然后基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据,继而根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。In the message processing method, device, system and server provided by the present application, if the first message queue call request sent by the client is received, the message interaction protocol can be converted first to convert the first message queue call request Call requests for a second message queue with a different message interaction protocol, and then generate message queue call data adapted to the specified call interface based on the second message queue call request and a designated call interface, and then generate message queue call data adapted to the designated call interface according to the designated call interface and The message queue calls data, calls the target message queue engine to execute the second message queue call request, so that through protocol conversion, in the case where the business party sends the message queue call request based on the client with different message interaction protocol, The message queue call request of the business party can be identified, and the message queue call data is generated based on the public designated call interface, and then the second message queue call request is executed through the designated call interface, thereby improving the message queue transmission rate Flexibility and compatibility in processing.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请提出的一种消息处理方法的应用场景示意图;Figure 1 shows a schematic diagram of an application scenario of a message processing method proposed in this application;
图2示出了本申请提出的一种消息处理方法的应用架构示意图;Figure 2 shows a schematic diagram of the application architecture of a message processing method proposed in this application;
图3示出了本申请提出的另一种消息处理方法的应用架构示意图;FIG. 3 shows a schematic diagram of the application architecture of another message processing method proposed by this application;
图4示出了本申请提出的一种消息处理方法的流程图;Figure 4 shows a flow chart of a message processing method proposed by this application;
图5示出了本申请提出的再一种消息处理方法的流程图;Figure 5 shows a flowchart of yet another message processing method proposed by this application;
图6示出了本申请提出的又一种消息处理方法的流程图;Figure 6 shows a flowchart of yet another message processing method proposed by this application;
图7示出了本申请提出的又一种消息处理方法的流程图;FIG. 7 shows a flowchart of another message processing method proposed by this application;
图8示出了本申请提出的又一种消息处理方法的流程图;FIG. 8 shows a flowchart of yet another message processing method proposed by this application;
图9示出了本申请提出的一种消息处理方法装置的结构框图;FIG. 9 shows a structural block diagram of a message processing method device proposed by this application;
图10示出了本申请提出的另一种消息处理方法装置的结构框图;FIG. 10 shows a structural block diagram of another message processing method and apparatus proposed by this application;
图11示出了本申请提出的另一种消息处理方法装置的结构框图;FIG. 11 shows a structural block diagram of another message processing method and device proposed by this application;
图12示出了本申请提出的另一种消息处理方法装置的结构框图;FIG. 12 shows a structural block diagram of another message processing method and device proposed by this application;
图13示出了本申请提出的一种电子设备的结构框图。Fig. 13 shows a structural block diagram of an electronic device proposed in this application.
图14是本申请实施例的用于保存或者携带实现根据本申请实施例的消息处理方法的程序代码的存储单元。Fig. 14 is a storage unit for storing or carrying program code for implementing the message processing method according to the embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。消息可以看做是客观物质运动或主观思维活动,以及事件发生状态的一种反映,它通过语言、文字、图像和数据等不同形式进行具体描述,消息也可以理解为软件对象之间进行交互作用和通讯利用的一种方式。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application. Messages can be regarded as objective material movement or subjective thinking activities, as well as a reflection of the state of the occurrence of events. It is described in detail through different forms such as language, text, images, and data. Messages can also be understood as interactions between software objects. And a way of communication.
对于消息而言,可以基于消息队列(Message Queue)的方式进行处理。其中,可以把消息队列比作是一个存放消息的容器,当需要使用消息的时候可以从消息队列中取出消息供自己使用。消息队列是消费-生产者模型的一个典型的代表,一端往消息队列中不断写入消息,而另一端则可以读取队列中的消息。消息发布者只管把消息发布到消息队列中而不用管谁来取,消息使用者只管从消息队列中取消息而不管是谁发布的。For messages, they can be processed based on a message queue (Message Queue). Among them, the message queue can be compared to a container for storing messages. When you need to use the message, you can take out the message from the message queue for your own use. The message queue is a typical representative of the consumer-producer model. One end continuously writes messages to the message queue, while the other end can read the messages in the queue. The message publisher only publishes the message to the message queue regardless of who gets it, and the message consumer only gets the message from the message queue regardless of who publishes it.
此外,消息队列是分布式系统中重要的组件,使用消息队列可以通过异步处理提高系统性能和削峰、降低系统耦合性。消息队列有可以有ActiveMQ,RabbitMQ,Kafka,RocketMQ等类型,而不同的消息队列所采用的消息交互协议不同。其中,消息交互协议可以理解为消息队列客户端和消息队列代理服务端之间进行消息交互的协议。In addition, the message queue is an important component in a distributed system, and the use of message queues can improve system performance, peak clipping, and reduce system coupling through asynchronous processing. Message queues can have ActiveMQ, RabbitMQ, Kafka, RocketMQ and other types, but different message queues use different message exchange protocols. Among them, the message interaction protocol can be understood as a protocol for message interaction between the message queue client and the message queue agent server.
发明人在对相关的消息队列中的消息的处理过程研究发现,在相关的提供消息队列代理服务的设备中,都是针对单一的消息队列提供的服务,造成在对消息队列所传输消息的处理中还缺乏一定的灵活性以及兼容性。示例性的,在相关的消息处理方式中,在消息队列的服务端通常只能识别采用固有消息交互协议的一种消息队列客户端所发送的消息队列调用请求,而对于采用其他的消息交互协议的客户端所发送的消息队列调用请求则无法正常识别,进而造成消息队列代理服务端的通用性以及兼容性较差。并且,在这种情况下为了适配采用该固有消息交互协议的客户端,可能还需要再单独完全布置一套消息队列代理服务端,进而又会增加整体成本。The inventor’s research on the process of processing messages in related message queues found that in related devices that provide message queue proxy services, they are all services provided for a single message queue, resulting in the processing of messages transmitted by the message queue. It still lacks a certain degree of flexibility and compatibility. Exemplarily, in related message processing methods, the message queue server usually only recognizes the message queue call request sent by a message queue client that uses an inherent message interaction protocol, while other message interaction protocols are used. The message queue call request sent by the client cannot be recognized normally, resulting in poor versatility and compatibility of the message queue proxy server. In addition, in this case, in order to adapt to the client that adopts the inherent message interaction protocol, it may be necessary to separately and completely deploy a set of message queue proxy server, which will increase the overall cost.
因此,为了改善上述问题,发明人提出了本申请中的消息处理方法、装 置、系统以及服务器,本申请提供的方法至少可以若接收到客户端发送的第一消息队列调用请求后可以先进行消息交互协议的转换,以将所述第一消息队列调用请求转换为消息交互协议不同第二消息队列调用请求,然后基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据,继而根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。下面先对本申请提供的消息处理方法、装置所运行于的一种消息处理系统的环境进行介绍。Therefore, in order to improve the above problems, the inventor proposed the message processing method, device, system and server in this application. The method provided in this application can at least perform the message first after receiving the first message queue call request sent by the client. The conversion of the interaction protocol to convert the first message queue call request into a second message queue call request with a different message interaction protocol, and then based on the second message queue call request and a specified call interface, generate a call interface with the specified call interface The adapted message queue calls data, and then calls the target message queue engine to execute the second message queue call request according to the specified call interface and the message queue call data, so that through protocol conversion, the business side is based on the message When a client with a different interaction protocol sends a message queue call request, it can still identify the message queue call request of the business party, and then generate the message queue call data based on the public designated call interface, and then execute the message queue call data through the designated call interface The second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue. The following first introduces the environment of a message processing system in which the message processing method and device provided in this application run.
如图1所示,图1所示的消息处理系统100中包括协议解析单元、调用逻辑实现单元以及消息处理执行单元。As shown in FIG. 1, the message processing system 100 shown in FIG. 1 includes a protocol analysis unit, a call logic implementation unit, and a message processing execution unit.
其中,协议解析单元用于对消息队列客户端所发送的消息队列请求进行协议识别以及转换,以便可以识别到消息队列客户端调用消息队列的目的是什么。例如,可执行本申请中的若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求。Among them, the protocol analysis unit is used to perform protocol identification and conversion on the message queue request sent by the message queue client, so that the purpose of calling the message queue by the message queue client can be identified. For example, if the first message queue call request sent by the client is received in this application, the first message queue call request can be converted into the second message queue call request.
调用逻辑实现单元,用于根据公用的指定调用接口以及转换得到的第二队列调用请求生成与所述指定调用接口适配的消息队列调用数据。其中,协议解析单元在进行协议转换后,可以得到元数据查看、元数据创建、消息发送、消息消费中至少一个实际逻辑调用数据,调用逻辑实现单元则会根据公用的指定调用接口以及该转换得到的实际调用数据,生成适配指定调用接口的消息队列调用数据。需要说明的是,公用的指定调用接口是指无论消息队列客户端采用何种消息交互协议生成消息队列调用请求,以及无论最终实际是通过哪种消息队列引擎来执行该消息队列调用请求,都是基于该指定调用接口实现的。The calling logic implementation unit is used to generate message queue calling data adapted to the designated calling interface according to the public designated calling interface and the converted second queue calling request. Among them, the protocol analysis unit can obtain at least one actual logic call data from metadata viewing, metadata creation, message sending, and message consumption after the protocol conversion. The call logic implementation unit will obtain the data according to the public designated call interface and the conversion. The actual call data is generated, and the message queue call data adapted to the specified call interface is generated. It should be noted that the common designated call interface means that no matter what message interaction protocol is used by the message queue client to generate a message queue call request, and no matter which message queue engine is actually used to execute the message queue call request, it is Based on the specified call interface.
消息处理执行单元,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。需要说明的是,在消息处理执行单元中可以封装有多种的消息队列引擎,而其中的目标消息队列引擎则是指该多种的消息队列引擎中当前负责执行消息队列调用请求的消息队列引擎。The message processing execution unit is configured to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data. It should be noted that a variety of message queue engines can be encapsulated in the message processing execution unit, and the target message queue engine refers to the message queue engine currently responsible for executing the message queue call request among the various message queue engines. .
在一种方式中,该协议解析单元、调用逻辑实现单元以及消息处理执行单元可以部署在同一个硬件设备(例如服务器)中,此外,也可以分别部署在不同的硬件设备中。可选的,该协议解析单元部署在第一硬件设备中,调用逻辑实现单元部署在第二硬件设备中,消息处理执行单元部署在第三硬件设备中。在这种情况下,该第一硬件设备可以看做协议处理设备,该第二硬件设备可以看做消息逻辑实现设备,该第三硬件设备可以理解为消息队列引擎承载设备。In one manner, the protocol analysis unit, the calling logic implementation unit, and the message processing execution unit may be deployed in the same hardware device (for example, a server), and in addition, they may also be deployed in different hardware devices. Optionally, the protocol analysis unit is deployed in the first hardware device, the calling logic implementation unit is deployed in the second hardware device, and the message processing execution unit is deployed in the third hardware device. In this case, the first hardware device can be regarded as a protocol processing device, the second hardware device can be regarded as a message logic implementation device, and the third hardware device can be understood as a message queue engine bearing device.
在另一种方式中,该协议解析单元以及调用逻辑实现单元可以部署在同 一个硬件设备中,而消息处理执行单元可以单独步骤在一个硬件设备中。再者,消息处理执行单元中封装的多个消息队列引擎又可以分别部分在一个硬件设备中。In another way, the protocol parsing unit and the calling logic implementation unit can be deployed in the same hardware device, and the message processing execution unit can be in a single step in a hardware device. Furthermore, the multiple message queue engines encapsulated in the message processing execution unit may be separately partly in one hardware device.
示例性的,如图2所示,硬件设备121承载了消息代理服务,而硬件设备131、硬件设备132以及硬件设备133分别承载有一种消息队列引擎,在这种情况下,硬件设备121运行有前述的协议解析单元以及调用逻辑实现单元,而硬件设备131、硬件设备132以及硬件设备133中分别承载有一个消息处理执行单元。在这种情况下,承载了消息代理服务的硬件设备121可以基于消息队列殷勤的网络地址根据需要调用硬件设备131、硬件设备132以及硬件设备133中的任一一个来执行客户端10发送的消息队列调用请求。再者,作为再一种方式,为了增加消息队列代理服务的可靠性,消息队列代理服务可以为一个服务集群,如图3所示,可以配置有多个消息队列代理服务,例如,图3中的消息队列代理服务121以及消息队列代理服务122,在这种情况下,同一个客户端10的消息队列调用请求,在不同情况下可以分别由消息队列代理服务121以及消息队列代理服务122中的一个进行处理。例如,当消息队列代理服务121不可用时,可以由消息队列代理服务122来处理客户端10的消息队列调用请求。对应的,当硬件设备132不可用时,可以切换到由硬件设备131或者硬件设备133中的消息队列代理服务122来执行消息队列请求。下面将结合附图具体描述本申请的各实施例。Exemplarily, as shown in FIG. 2, the hardware device 121 carries a message proxy service, and the hardware device 131, the hardware device 132, and the hardware device 133 each carry a message queue engine. In this case, the hardware device 121 runs with The aforementioned protocol analysis unit and call logic implementation unit, and the hardware device 131, the hardware device 132, and the hardware device 133 each carry a message processing execution unit. In this case, the hardware device 121 that carries the message proxy service can call any one of the hardware device 131, the hardware device 132, and the hardware device 133 based on the network address of the message queue as needed to execute the data sent by the client 10. Message queue call request. Furthermore, as another way, in order to increase the reliability of the message queue proxy service, the message queue proxy service can be a service cluster, as shown in Figure 3, multiple message queue proxy services can be configured, for example, in Figure 3 The message queue proxy service 121 and the message queue proxy service 122 of the message queue proxy service 122. In this case, the message queue call request of the same client 10 can be sent by the message queue proxy service 121 and the message queue proxy service 122 under different circumstances. One for processing. For example, when the message queue proxy service 121 is unavailable, the message queue proxy service 122 may process the message queue call request of the client 10. Correspondingly, when the hardware device 132 is unavailable, the message queue agent service 122 in the hardware device 131 or the hardware device 133 can be switched to execute the message queue request. Hereinafter, each embodiment of the present application will be described in detail with reference to the accompanying drawings.
请参阅图4,本申请提供的一种消息处理方法,所述方法包括:Please refer to FIG. 4, a message processing method provided by this application, the method includes:
S110:若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同。在本实施例中客户端可以理解为运行消息队列SDK的客户端,该运行消息队列SDK的客户可以部署在业务方。S110: If the first message queue calling request sent by the client is received, the first message queue calling request is converted into a second message queue calling request, and the second message queue calling request is the same as the first message queue calling request. The message exchange protocol corresponding to the request is different. In this embodiment, the client can be understood as a client running the Message Queuing SDK, and the client running the Message Queuing SDK can be deployed on the business side.
需要说明的是在本实施中,在后续生成消息队列调用数据时都是基于同一协议的消息队列调用请求而生成的。在这种情况下,若客户端发送的第一消息队列调用请求所基于的消息交互协议与该同一协议不同,那么就会先进行消息交互协议的转换,以将客户端原本发送的第一消息队列调用请求转换为基于该同一协议的第二消息队列调用请求。示例性的,若执行本实施例提供的消息队列代理服务中都是基于消息交互协议A进行的后续的消息队列调用数据的生成。那么在识别到客户端发送的第一消息队列调用请求是基于消息交互协议B的情况下,就会将基于消息交互协议B的第一消息队列调用请求经过协议转换,而转换为基于消息交互协议A的第一消息队列调用请求。再例如,在识别到客户端发送的第一消息队列调用请求是基于消息交互协议C的情况下,也会将基于消息交互协议C的第一消息队列调用请求经过协议转换,而转换为基于消息交互协议A的第一消息队列调用请求。It should be noted that in this implementation, subsequent generation of message queue call data is generated based on the message queue call request of the same protocol. In this case, if the message exchange protocol based on the first message queue call request sent by the client is different from the same protocol, the message exchange protocol will be converted first to change the first message originally sent by the client The queue call request is converted into a second message queue call request based on the same protocol. Exemplarily, if the message queue proxy service provided in this embodiment is executed, the subsequent message queue call data generation is performed based on the message interaction protocol A. Then, when it is recognized that the first message queue call request sent by the client is based on message interaction protocol B, the first message queue call request based on message interaction protocol B will undergo protocol conversion and be converted to message interaction protocol based A's first message queue call request. For another example, when it is recognized that the first message queue call request sent by the client is based on message interaction protocol C, the first message queue call request based on message interaction protocol C will also be converted to message-based The first message queue of the interactive protocol A calls the request.
S120:基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。S120: Based on the second message queue calling request and the designated calling interface, generate message queue calling data adapted to the designated calling interface.
需要说明的是,在本实施例中会将实际执行消息队列调用请求的消息队列 引擎进行封装,而在完成封装之后会配置数据接口,以便可以通过数据接口来实际调用消息队列引擎,进而在本实施例中为了完成实际的消息队列调用,就需要按照数据接口的形式生成消息队列调用数据,而该数据接口就可以理解为前述的指定调用接口。It should be noted that in this embodiment, the message queue engine that actually executes the message queue call request will be encapsulated, and after the encapsulation is completed, the data interface will be configured so that the message queue engine can be actually called through the data interface, and then in this case In the embodiment, in order to complete the actual message queue call, it is necessary to generate message queue call data in the form of a data interface, and the data interface can be understood as the aforementioned designated call interface.
S130:根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。S130: According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request.
在本实施例中,在生成消息队列调用数据后,可以将该消息队列调用数据输入到指定调用接口,进而通过该指定调用接口来调用目标消息队列引擎来执行所述第二消息队列调用请求。其中,需要说明的是,客户端在发送消息队列调用请求时实际是准备通过消息队列来进行消息的处理。该消息的处理可以理解为将信息发送给其他客户端或者提取其他客户端发送的信息。在这种情况下,通过该指定调用接口来调用目标消息队列引擎来执行所述第二消息队列调用请求可以理解为通过该指定调用接口来调用目标消息队列引擎来执行信息的发送或者信息的提取。In this embodiment, after the message queue call data is generated, the message queue call data can be input to a designated call interface, and then the target message queue engine is called through the designated call interface to execute the second message queue call request. Among them, it should be noted that when the client sends a message queue call request, it is actually preparing to process the message through the message queue. The processing of this message can be understood as sending information to other clients or extracting information sent by other clients. In this case, calling the target message queue engine through the designated call interface to execute the second message queue call request can be understood as calling the target message queue engine through the designated call interface to perform information transmission or information extraction. .
示例性的,若客户端发送的第一消息队列调用请求表征的是通过消息队列将信息A方到其他客户端,对应的进行过协议转换后的第二消息队列请求所表征的也是将信息A发送给其他客户端,那么在目标消息队列引擎执行该第二消息队列调用请求时,表征的就是实际的发送信息A的过程。Exemplarily, if the first message queue call request sent by the client characterizes information A to other clients through the message queue, the corresponding second message queue request after protocol conversion also characterizes information A Send to other clients, then when the target message queue engine executes the second message queue call request, it characterizes the actual process of sending information A.
本申请实施例提供的一种消息处理方法,若接收到客户端发送的第一消息队列调用请求后可以先进行消息交互协议的转换,以将所述第一消息队列调用请求转换为消息交互协议不同第二消息队列调用请求,然后基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据,继而根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。In the message processing method provided by the embodiment of the present application, if the first message queue call request sent by the client is received, the message interaction protocol conversion may be performed first, so as to convert the first message queue call request into the message interaction protocol Different second message queue call requests, and then based on the second message queue call request and the designated call interface, generate message queue call data adapted to the designated call interface, and then according to the designated call interface and the message queue Call the data, call the target message queue engine to execute the second message queue call request, so that by means of protocol conversion, the business party can still be identified when the message queue call request is sent by the client based on different message interaction protocols. And then generate message queue calling data based on the public designated calling interface, and then execute the second message queue calling request through the designated calling interface, thereby improving the flexibility in the processing of messages transmitted by the message queue Sex and compatibility.
请参阅图5,本申请提供的一种消息处理方法,所述方法包括:Please refer to FIG. 5, a message processing method provided by this application, the method includes:
S210:若接收到客户端发送的第一消息队列调用请求,获取所述第一消息队列调用请求所采用的协议。可以理解的是,第一消息队列调用请求所采用的协议是指所采用的消息交互协议,而在本实施例中可以有多种获取第一消息队列调用请求所采用的协议的方式。S210: If the first message queue calling request sent by the client is received, obtain the protocol adopted by the first message queue calling request. It can be understood that the protocol used by the first message queue call request refers to the message interaction protocol used, and in this embodiment, there may be multiple ways to obtain the protocol used by the first message queue call request.
作为一种方式,可以通过客户端本身的标识来识别器所发送的消息队列请求所采用的协议。在这种方式中,可以预先建立客户端的标识与对应消息队列请求所采用的协议的映射表,进而在获取到客户端所发送的第一消息队列请求时,直接识别该客户端的标识,进而通过客户端的标识在该映射表中查找对应的消息队列请求所采用的协议。其中,客户端的标识可以为网络地址。作为另外一种方式,可以通过对客户端所发送的消息队列请求本身的数据格式进行分析,进而识别出对应所采用的协议。As a way, the client's own identifier can be used to identify the protocol used by the message queue request sent by the device. In this way, a mapping table between the client's identity and the protocol used by the corresponding message queue request can be established in advance, and then when the first message queue request sent by the client is obtained, the client's identity can be directly identified, and then the The client's identifier searches the mapping table for the protocol used by the corresponding message queue request. Wherein, the identification of the client can be a network address. As another way, the data format of the message queue request sent by the client can be analyzed to identify the corresponding protocol.
S220:基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同。S220: Based on the adopted protocol, convert the first message queue call request into a second message queue call request based on the target protocol, and the second message queue call request is the same as the first message queue call request. The corresponding message exchange protocol is different.
作为一种方式,所述基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求,包括:基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。As a way, the converting the first message queue call request to the second message queue call request based on the target protocol based on the adopted protocol includes: calling and calling the second message queue based on the adopted protocol. The conversion plug-in adapted to the first message queue call request converts the first message queue call request into a second message queue call request based on the target protocol.
需要说明的是,作为一种方式,在运行本实施例提供的消息处理方法的消息队列代理服务中可以配置有多种转换插件,进而对应于每一种客户端可能所采用的消息交互协议都对应配置有一种转换插件,而该多种转换插件均可以将基于不同的消息交互协议的消息队列调用请求,转换为后续生成消息队列调用数据时所述基于的那种消息队列调用请求。示例性的,在消息队列代理服务中可以配置有转换插件A、转换插件B、转换插件C以及转换插件D。在一种情况下,本实施例提供的消息处理方法是基于采用协议F(即前述的目标协议)的消息队列调用请求而生成消息队列调用数据的,在这种情况下,转换插件A可以配置为将基于协议A的第一消息队列调用请求转换为基于协议F的第二消息队列调用请求,转换插件B可以配置为将基于协议B的第一消息队列调用请求转换为基于协议F的第二消息队列调用请求,转换插件C可以配置为将基于协议C的第一消息队列调用请求转换为基于协议F的第二消息队列调用请求,而转换插件D可以配置为将基于协议D的第一消息队列调用请求转换为基于协议F的第二消息队列调用请求。It should be noted that, as a way, a variety of conversion plug-ins can be configured in the message queue proxy service running the message processing method provided in this embodiment, which corresponds to the message interaction protocol that each client may use. Correspondingly, a conversion plug-in is configured, and the multiple conversion plug-ins can convert the message queue call request based on different message interaction protocols into the message queue call request based on the subsequent generation of the message queue call data. Exemplarily, a conversion plug-in A, a conversion plug-in B, a conversion plug-in C, and a conversion plug-in D may be configured in the message queue proxy service. In one case, the message processing method provided in this embodiment generates message queue call data based on the message queue call request using protocol F (that is, the aforementioned target protocol). In this case, the conversion plug-in A can be configured In order to convert the first message queue call request based on protocol A into the second message queue call request based on protocol F, the conversion plug-in B can be configured to convert the first message queue call request based on protocol B into the second message queue call request based on protocol F Message queue call request, conversion plug-in C can be configured to convert the first message queue call request based on protocol C to the second message queue call request based on protocol F, and conversion plug-in D can be configured to convert the first message based on protocol D The queue call request is converted into a second message queue call request based on protocol F.
从而通过插件的方式使得在有新的消息交互协议上线时,仅需要针对该新上线的消息交互协议配置对应的转换插件即可,而不用对消息队列代理服务整体上进行改造,提升了消息队列代理服务升级的效率。As a result, when a new message interaction protocol is launched through plug-ins, it is only necessary to configure the corresponding conversion plug-in for the newly online message interaction protocol, instead of modifying the message queue agent service as a whole, which improves the message queue. The efficiency of agency service upgrades.
作为一种方式,所述基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求之前还包括:检测是否已经加载所述第一消息队列调用请求适配的转换插件;若已经加载所述第一消息队列调用请求适配的转换插件,执行所述基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。As a way, based on the adopted protocol, the conversion plug-in adapted to the first message queue call request is called to convert the first message queue call request into a second message queue call based on the target protocol Before the request, it also includes: detecting whether the first message queue has been loaded to call the requested conversion plug-in; if the first message queue has been loaded, calling the requested conversion plug-in, executing the protocol based on the adopted protocol Invoke a conversion plug-in adapted to the first message queue call request to convert the first message queue call request into a second message queue call request based on the target protocol.
若未加载所述第一消息队列调用请求适配的转换插件,通过插件管理器在插件存储区域查找所述第一消息队列调用请求适配的转换插件;若查找到所述第一消息队列调用请求适配的转换插件,动态加载所述第一消息队列调用请求适配的转换插件,并在所述动态加载完成后,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。If the first message queue calls the adapted conversion plug-in that is not loaded, search the plug-in storage area for the first message queue to call the adapted conversion plug-in through the plug-in manager; if the first message queue is found, call The conversion plug-in that requests the adaptation is dynamically loaded to the first message queue to call the conversion plug-in that is requested to be adapted, and after the dynamic loading is completed, the conversion plug-in that is adapted to the first message queue call request is called to transfer the The first message queue call request is converted into the second message queue call request based on the target protocol.
作为一种方式,可以配置一存储区域用户存储已经加载的转换插件的标识,在这种方式下,通过对该存储已经加载的转换插件的标识的存储区域进行遍历,即可获取到当前已经加载的转换插件。As a way, you can configure a storage area to store the identity of the loaded conversion plug-in. In this way, by traversing the storage area where the identity of the loaded conversion plug-in is stored, you can get the currently loaded Conversion plug-in.
S230:基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。消息队列调用数据中包括有后续通过该指定调用接口实际调用消息队列殷勤时所需要的多种参数,并且该多种参数的格式和组成方式是与该指定调用接口所适配的。可选的,该多种参数可以包括转换协议得到的第二消息队列请求的请求目的(例如,信息发送或者信息读取)、消息处理对象(例如,要发送的信息或者要读取的信息)等。S230: Based on the second message queue calling request and the designated calling interface, generate message queue calling data adapted to the designated calling interface. The message queue invocation data includes various parameters needed to actually invoke the message queue service through the designated invocation interface, and the format and composition of the various parameters are adapted to the designated invocation interface. Optionally, the multiple parameters may include the request purpose of the second message queue request obtained by converting the protocol (for example, information transmission or information reading), and the message processing object (for example, information to be sent or information to be read) Wait.
S240:根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。作为一种方式,本实施例提供的方法还包括:在初始化时,获取所述插件存储区域中存储的转换插件。需要说明的是,该初始化可以理解为执行本实施例提供的消息队列代理服务在启动时的初始化。可选的,所述在初始化时,更新所述插件存储区域中存储的转换插件,包括:在初始化时,获取所述插件存储区域中存储的转换插件,将所述所述插件存储区域中存储的转换插件与管理端中存储的转换插件进行比对,若比对出不一致的转换插件,获取所述不一致的转换插件并进行注册,并将注册后的转换插件存储到所述插件存储区域。需要说明的是,这里的插件存储区域与前述存储已经加载的转换插件的标识的存储区域为不同的存储区域,这里的插件存储区域可以理解为一个池化的插件存储区域。S240: According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request. As a way, the method provided in this embodiment further includes: during initialization, acquiring the conversion plug-in stored in the plug-in storage area. It should be noted that the initialization can be understood as the initialization of the message queue proxy service provided by this embodiment at startup. Optionally, during initialization, updating the conversion plug-in stored in the plug-in storage area includes: during initialization, obtaining the conversion plug-in stored in the plug-in storage area, and storing the conversion plug-in in the plug-in storage area. The conversion plug-in of is compared with the conversion plug-in stored in the management terminal, and if the inconsistent conversion plug-in is compared, the inconsistent conversion plug-in is obtained and registered, and the registered conversion plug-in is stored in the plug-in storage area. It should be noted that the plug-in storage area here is a different storage area from the aforementioned storage area storing the identifier of the loaded conversion plug-in. The plug-in storage area here can be understood as a pooled plug-in storage area.
本申请实施例提供的一种消息处理方法,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。并且,在本实施例中在进行协议转换的过程中,是调用与客户端所采用的消息队列对应的转换插件来执行调用请求的转换,从而使得在有支持新的消息交互协议的客户端上线的情况下,仅仅针对新上线的客户端开发对应的转换插件即可,而不用对整体的架构进行更新,进一步的提升了消息队列代理服务升级的灵活性。The message processing method provided by the embodiment of the present application can still identify the message queue calling request of the business party through protocol conversion when the business party sends a message queue calling request based on clients with different message interaction protocols. In addition, the message queue calling data is generated based on the public designated calling interface, and then the second message queue calling request is executed through the designated calling interface, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue. Moreover, in the process of protocol conversion in this embodiment, the conversion plug-in corresponding to the message queue used by the client is called to perform the conversion of the call request, so that the client that supports the new message interaction protocol is online. In the case of, just develop the corresponding conversion plug-in for the newly launched client, without updating the overall architecture, which further improves the flexibility of the message queue agent service upgrade.
请参阅图6,本申请提供的一种消息处理方法,所述方法包括:S310:若接收到客户端发送的第一消息队列调用请求,获取所述第一消息队列调用请求对应的字节流。S320:基于所述字节流识别所述第一消息队列调用请求所采用的协议。作为一种方式,所述基于所述字节流识别所述第一消息队列调用请求所采用的协议,包括:获取所述第一消息队列调用请求对应的字节流的字节流格式;将所述字节流格式与多个参考字节流格式进行匹配;将与所述字节流格式匹配的参考字节流格式对应的协议作为所述第一消息队列调用请求所采用的协议。作为一种方式,客户端通过长连接与执行消息处理方法的消息队列代理服务之间建立通信后,消息队列代理服务在接收到客户端发送的第一消息队列调用请求时,可以开始获取所述第一消息队列调用请求对应的字节流,并同时识别所述第一消息队列调用请求对应的字节流的字节流格式,然后将获取到的第一消息队列调用请求对应的字节流的字节流格式发送给多个转换插件,使多个转换插件内部进行参考字节流格式进行匹配,若检测到有转换插件返回匹配成功的信息,则表征该反馈匹配成功的信息的转换插件所对应的参考字节流格式 与第一消息队列调用请求对应的字节流的字节流格式匹配,进而将该转换插件所对应的参考字节流格式对应的协议作为所述第一消息队列调用请求所采用的协议。Please refer to FIG. 6, a message processing method provided by this application, the method includes: S310: If a first message queue call request sent by a client is received, obtain the byte stream corresponding to the first message queue call request . S320: Identify the protocol adopted by the first message queue call request based on the byte stream. As a way, the identification of the protocol used for the first message queue call request based on the byte stream includes: obtaining the byte stream format of the byte stream corresponding to the first message queue call request; The byte stream format is matched with multiple reference byte stream formats; the protocol corresponding to the reference byte stream format matching the byte stream format is used as the protocol adopted by the first message queue call request. As a way, after the client establishes communication with the message queue proxy service that executes the message processing method through a long connection, the message queue proxy service can start to obtain the first message queue call request sent by the client The first message queue calls the byte stream corresponding to the request, and at the same time identifies the byte stream format of the byte stream corresponding to the first message queue call request, and then calls the obtained byte stream corresponding to the first message queue call request The byte stream format of is sent to multiple conversion plug-ins, so that multiple conversion plug-ins will perform internal matching with reference to the byte stream format. If it is detected that a conversion plug-in returns information that the matching is successful, it represents the conversion plug-in that feedbacks the successful matching information The corresponding reference byte stream format matches the byte stream format of the byte stream corresponding to the first message queue call request, and the protocol corresponding to the reference byte stream format corresponding to the conversion plug-in is used as the first message queue The protocol used by the call request.
需要说明的是,转换插件所对应的参考字节流格式可以理解为其所能转换的协议对应的字节流格式。示例性的,转换插件B可以配置为将基于协议B的第一消息队列调用请求转换为基于协议F的第二消息队列调用请求,那么该转换插件B所对应的参考字节流格式为协议B对应的字节流格式。而其中协议对应的字节流格式可以理解为基于该协议生成的消息队列调用请求在传输过程中的字节流的格式。It should be noted that the reference byte stream format corresponding to the conversion plug-in can be understood as the byte stream format corresponding to the protocol that can be converted. Exemplarily, the conversion plug-in B may be configured to convert the first message queue call request based on protocol B into the second message queue call request based on protocol F, then the reference byte stream format corresponding to the conversion plug-in B is protocol B The corresponding byte stream format. The byte stream format corresponding to the protocol can be understood as the format of the byte stream in the transmission process of the message queue call request generated based on the protocol.
作为一种方式,在识别出第一消息队列调用请求对应的字节流的字节流格式后,可以直接缓存在对应的长连接中,从而在同一长连接下的后续消息队列调用请求均可以不经过前述的协议识别即可获取到实际所采用的协议,提升消息队列调用的效率。As a way, after identifying the byte stream format of the byte stream corresponding to the first message queue call request, it can be directly cached in the corresponding long connection, so that subsequent message queue call requests under the same long connection can be The actual protocol used can be obtained without the aforementioned protocol identification, which improves the efficiency of message queue calling.
S330:基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同。S330: Based on the adopted protocol, convert the first message queue call request into a second message queue call request based on the target protocol, and the second message queue call request is the same as the first message queue call request. The corresponding message exchange protocol is different.
S340:基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。S340: Based on the second message queue calling request and the designated calling interface, generate message queue calling data adapted to the designated calling interface.
S350:根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。S350: According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request.
本申请实施例提供的一种消息处理方法,可以基于第一消息队列调用请求对应的字节流来确定第一消息队列调用请求所采用的消息交互协议,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。The message processing method provided by the embodiment of the present application can determine the message interaction protocol adopted by the first message queue call request based on the byte stream corresponding to the first message queue call request, so that through protocol conversion, the business side When clients with different message interaction protocols send message queue call requests, they can still identify the message queue call request of the business party, and then generate message queue call data based on the public designated call interface, and then execute it through the designated call interface The second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue.
请参阅图7,本申请提供的一种消息处理方法,所述方法包括:S410:从多个待选消息队列引擎中选择第一消息队列引擎作为目标消息队列引擎。S420:若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同。Please refer to FIG. 7, a message processing method provided by the present application, the method includes: S410: Select a first message queue engine from a plurality of candidate message queue engines as the target message queue engine. S420: If the first message queue calling request sent by the client is received, the first message queue calling request is converted into a second message queue calling request, and the second message queue calling request is the same as the first message queue calling request. The message exchange protocol corresponding to the request is different.
S430:基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。S430: Based on the second message queue calling request and the designated calling interface, generate message queue calling data adapted to the designated calling interface.
S440:根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。S440: According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request.
可选的,本实施例提供的方法还包括:若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。Optionally, the method provided in this embodiment further includes: if it is detected that the first message queuing engine is in a designated state, using a second message queuing engine of the plurality of message queuing engines to be selected as the target message Queuing engine.
作为一种方式,所述指定状态包括所述第一消息队列引擎处于待升级状态 时;所述若检测到所述第一消息队列引擎处于指定状态时,将多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎,包括:As a way, the designated state includes when the first message queuing engine is in a state to be upgraded; if it is detected that the first message queuing engine is in the designated state, the selected state of the message queuing engine is selected As the target message queuing engine, the second message queuing engine includes:
若检测到所述第一消息队列引擎处于待升级状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。If it is detected that the first message queuing engine is in the to-be-upgrade state, the second message queuing engine among the plurality of message queuing engines to be selected is used as the target message queuing engine.
再者,作为另外一种方式,所述指定状态包括所述第一消息队列引擎处于消息发送阻塞状态时;所述若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎,包括:若检测到所述第一消息队列引擎处于消息发送阻塞状态时,将多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。Furthermore, as another way, the designated state includes when the first message queuing engine is in a message sending blocking state; if it is detected that the first message queuing engine is in the designated state, the multiple The second message queuing engine in the message queuing engine to be selected as the target message queuing engine includes: if it is detected that the first message queuing engine is in a message sending blocking state, the first message queuing engine among the plurality of message queuing engines to be selected 2. The message queuing engine serves as the target message queuing engine.
从而通过前述的目标消息队列引擎的切换方式使得整个消息队列代理服务处于高可用的状态。Thus, the entire message queue proxy service is in a highly available state through the aforementioned switching of the target message queue engine.
可选的,所述多个待选消息队列引擎均为插件式的消息队列引擎。Optionally, the multiple message queuing engines to be selected are all plug-in message queuing engines.
本申请实施例提供的一种消息处理方法,可以基于第一消息队列调用请求对应的字节流来确定第一消息队列调用请求所采用的消息交互协议,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。并且,在本实施例中目标消息队列引擎可以从多个待选消息队列引擎中灵活的进行选择,提升了消息队列调用请求处理的稳定性。The message processing method provided by the embodiment of the present application can determine the message interaction protocol adopted by the first message queue call request based on the byte stream corresponding to the first message queue call request, so that through protocol conversion, the business side When clients with different message interaction protocols send message queue call requests, they can still identify the message queue call request of the business party, and then generate message queue call data based on the public designated call interface, and then execute it through the designated call interface The second message queue calls the request, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue. In addition, in this embodiment, the target message queue engine can be flexibly selected from multiple candidate message queue engines, which improves the stability of the message queue call request processing.
请参阅图8,本申请提供的一种消息处理方法,所述方法包括:Please refer to FIG. 8, a message processing method provided by this application, the method includes:
S510:对发送所述第一消息队列调用请求的所述客户端进行安全验证。S510: Perform security verification on the client that sends the first message queue call request.
S520:若所述安全验证成功,在接收到客户端发送的第一消息队列调用请求时,将所述第一消息队列调用请求转换为第二消息队列调用请求。所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同。S520: If the security verification succeeds, when the first message queue invocation request sent by the client is received, the first message queue invocation request is converted into the second message queue invocation request. The message interaction protocol corresponding to the second message queue call request and the first message queue call request is different.
S530:基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。S530: Based on the second message queue calling request and the designated calling interface, generate message queue calling data adapted to the designated calling interface.
S540:根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。S540: According to the designated calling interface and the message queue calling data, call the target message queue engine to execute the second message queue calling request.
本申请实施例提供的一种消息处理方法,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。并且,在本实施例中目标消息队列引擎可以从多个待选消息队列引擎中灵活的进行选择,提升了消息队列调用请求处理的稳定性。并且,在本实施例中对于发送第一消息队列调用请求的客户端还会先进行安全验证,提升了消息队列代理服务的安全性。The message processing method provided by the embodiment of the application can still identify the message queue calling request of the business party when the business party sends a message queue calling request based on clients with different message interaction protocols, and then based on the common designated calling The interface generates message queue call data, and then executes the second message queue call request through the designated call interface, thereby improving the flexibility and compatibility in the processing of messages transmitted by the message queue. In addition, in this embodiment, the target message queue engine can be flexibly selected from multiple candidate message queue engines, which improves the stability of the message queue call request processing. In addition, in this embodiment, the client that sends the first message queue call request will also perform security verification first, which improves the security of the message queue proxy service.
请参阅图9,本申请提供的一种消息处理装置600,所述装置600包括:协议解析单元610,用于若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请 求与所述第一消息队列调用请求所对应的消息交互协议不同。调用逻辑实现单元620,用于基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据。消息处理执行单元630,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。作为一种方式,协议解析单元610,具体用于若接收到客户端发送的第一消息队列调用请求,获取所述第一消息队列调用请求所采用的协议;基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。在这种方式下,可选的,协议解析单元610,具体用于基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。Referring to FIG. 9, a message processing apparatus 600 provided by the present application includes: a protocol analysis unit 610, configured to: if a first message queue call request sent by a client is received, the first message queue The call request is converted into a second message queue call request, and the message interaction protocol corresponding to the second message queue call request and the first message queue call request are different. The calling logic implementation unit 620 is configured to generate message queue calling data adapted to the designated calling interface based on the second message queue calling request and the designated calling interface. The message processing execution unit 630 is configured to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data. As a way, the protocol parsing unit 610 is specifically configured to obtain the protocol adopted by the first message queue calling request if the first message queue calling request sent by the client is received; based on the adopted protocol, The first message queue calling request is converted into a second message queue calling request based on the target protocol. In this manner, optionally, the protocol parsing unit 610 is specifically configured to call a conversion plug-in adapted to the first message queue call request to transfer the first message queue call request based on the adopted protocol. Converted to the second message queue call request based on the target protocol.
在这种方式下,协议解析单元610,还具体用于检测是否已经加载所述第一消息队列调用请求适配的转换插件;若已经加载所述第一消息队列调用请求适配的转换插件,执行所述基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。以及还具体用于若未加载所述第一消息队列调用请求适配的转换插件,通过插件管理器在插件存储区域查找所述第一消息队列调用请求适配的转换插件;若查找到所述第一消息队列调用请求适配的转换插件,动态加载所述第一消息队列调用请求适配的转换插件,并在所述动态加载完成后,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。对应的,如图10所示,所述装置600还包括:转换插件管理单元640,用于在初始化时,更新所述插件存储区域中存储的转换插件。作为一种方式,转换插件管理单元640,具体用于在初始化时,获取所述插件存储区域中存储的转换插件;将所述所述插件存储区域中存储的转换插件与管理端中存储的转换插件进行比对;若比对出不一致的转换插件,获取所述不一致的转换插件并进行注册;并将注册后的转换插件存储到所述插件存储区域。In this manner, the protocol parsing unit 610 is also specifically configured to detect whether the first message queue calls the conversion plug-in requesting adaptation has been loaded; if the first message queue calls the conversion plug-in requesting adaptation has been loaded, Execute the protocol based on the adopted, and call a conversion plug-in adapted to the first message queue call request to convert the first message queue call request into a second message queue call request based on the target protocol. And it is also specifically used to search for the conversion plug-in adapted to the first message queue call request in the plug-in storage area through the plug-in manager if the conversion plug-in adapted to the first message queue call request is not loaded; if the conversion plug-in is found The first message queue calls the conversion plug-in that requests the adaptation, dynamically loads the conversion plug-in that the first message queue calls the request for adaptation, and after the dynamic loading is completed, calls the conversion plug-in that is adapted to the first message queue call request The conversion plug-in converts the first message queue call request into a second message queue call request based on the target protocol. Correspondingly, as shown in FIG. 10, the device 600 further includes: a conversion plug-in management unit 640, configured to update the conversion plug-ins stored in the plug-in storage area during initialization. As a way, the conversion plug-in management unit 640 is specifically configured to obtain conversion plug-ins stored in the plug-in storage area during initialization; and convert the conversion plug-ins stored in the plug-in storage area to the conversion stored in the management terminal. The plug-ins are compared; if the inconsistent conversion plug-ins are compared, the inconsistent conversion plug-ins are obtained and registered; and the registered conversion plug-ins are stored in the plug-in storage area.
作为一种方式,协议解析单元610,具体用于获取所述第一消息队列调用请求对应的字节流;基于所述字节流识别所述第一消息队列调用请求所采用的协议。在这种方式下,协议解析单元610,具体用于获取所述第一消息队列调用请求对应的字节流的字节流格式;将所述字节流格式与多个参考字节流格式进行匹配;将与所述字节流格式匹配的参考字节流格式对应的协议作为所述第一消息队列调用请求所采用的协议。As a way, the protocol analysis unit 610 is specifically configured to obtain the byte stream corresponding to the first message queue call request; and identify the protocol adopted by the first message queue call request based on the byte stream. In this manner, the protocol parsing unit 610 is specifically configured to obtain the byte stream format of the byte stream corresponding to the first message queue call request; compare the byte stream format with multiple reference byte stream formats Matching; the protocol corresponding to the reference byte stream format matching the byte stream format is used as the protocol adopted by the first message queue call request.
作为一种方式,如图11所示,所述装置600,还包括:消息队列引擎管理单元650,用于从多个待选消息队列引擎中选择第一消息队列引擎作为所述目标消息队列引擎。可选的,消息队列引擎管理单元650,具体用于若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。As a way, as shown in FIG. 11, the device 600 further includes: a message queue engine management unit 650, configured to select the first message queue engine from a plurality of candidate message queue engines as the target message queue engine . Optionally, the message queuing engine management unit 650 is specifically configured to use a second message queuing engine of the plurality of message queuing engines to be selected as the target if it is detected that the first message queuing engine is in a designated state Message queue engine.
可选的,所述指定状态包括所述第一消息队列引擎处于待升级状态时。在这种情况下,消息队列引擎管理单元650,具体用于若检测到所述第一消息队列 引擎处于待升级状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。再者,可选的,所述指定状态包括所述第一消息队列引擎处于消息发送阻塞状态时,在这种情况下,消息队列引擎管理单元650,具体用于若检测到所述第一消息队列引擎处于消息发送阻塞状态时,将多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。Optionally, the specified state includes when the first message queue engine is in a state to be upgraded. In this case, the message queuing engine management unit 650 is specifically configured to, if it is detected that the first message queuing engine is in the to-be-upgraded state, set the second message queuing engine of the plurality of message queuing engines to be selected as The target message queue engine. Furthermore, optionally, the specified state includes when the first message queuing engine is in a message sending blocking state. In this case, the message queuing engine management unit 650 is specifically configured to detect the first message When the queuing engine is in the message sending blocking state, the second message queuing engine among the multiple to-be-selected message queuing engines is used as the target message queuing engine.
可选的,所述多个待选消息队列引擎均为插件式的消息队列引擎。作为一种方式,如图12所示,所述装置600,还包括:安全验证单元660,用于对发送所述第一消息队列调用请求的所述客户端进行安全验证。在这种方式下,协议解析单元610,用于若所述安全验证成功,执行所述若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求。Optionally, the multiple message queuing engines to be selected are all plug-in message queuing engines. As a manner, as shown in FIG. 12, the device 600 further includes: a security verification unit 660, configured to perform security verification on the client that sends the first message queue call request. In this manner, the protocol analysis unit 610 is configured to, if the security verification succeeds, execute the first message queue call request sent by the client, and convert the first message queue call request to a second message queue. Message queue call request.
本申请提供的一种消息处理装置,若接收到客户端发送的第一消息队列调用请求后可以先进行消息交互协议的转换,以将所述第一消息队列调用请求转换为消息交互协议不同第二消息队列调用请求,然后基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据,继而根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。In the message processing device provided by the present application, if the first message queue calling request sent by the client is received, the message interaction protocol conversion may be performed first, so as to convert the first message queue calling request into a message interaction protocol with a different first message interaction protocol. 2. A message queue call request, and then based on the second message queue call request and a designated call interface, generate message queue call data adapted to the designated call interface, and then call data according to the designated call interface and the message queue , Call the target message queue engine to execute the second message queue call request, so that through protocol conversion, the message queue call request of the business party can still be identified when the business party sends a message queue call request based on a client with a different message interaction protocol Queue call request, and then generate message queue call data based on the public designated call interface, and then execute the second message queue call request through the designated call interface, thereby improving the flexibility in the processing of messages transmitted by the message queue and compatibility.
下面将结合图13对本申请提供的一种电子设备进行说明。Hereinafter, an electronic device provided by the present application will be described with reference to FIG. 13.
请参阅图10,基于上述的短信推送方法,本申请实施例还提供的另一种包括可以执行前述短信推送方法的处理器102的电子设备200。电子设备200还包括存储器104、以及网络模块106。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 10, based on the foregoing short message pushing method, an embodiment of the present application also provides another electronic device 200 including a processor 102 that can execute the foregoing short message pushing method. The electronic device 200 further includes a memory 104 and a network module 106. Wherein, the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
其中,处理器102利用各种接口和线路连接整个电子设备200内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备200的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。Among them, the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104 , Perform various functions of the electronic device 200 and process data. Optionally, the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). A kind of hardware form to realize. The processor 102 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中, 存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,网络模块106可以与基站进行信息交互。The network module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as with an audio playback device. The network module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. . The network module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 can exchange information with the base station.
可选的,电子设备200可以为执行前述方法实施例的服务器。Optionally, the electronic device 200 may be a server that executes the foregoing method embodiments.
请参考图14,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1100中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 14, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 1100 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质1100可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1100包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1100具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1110可以例如以适当形式进行压缩。The computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has a storage space for executing the program code 810 of any method step in the above-mentioned method. These program codes can be read from or written into one or more computer program products. The program code 1110 may be compressed in an appropriate form, for example.
综上所述,本申请提供的一种消息处理方法、装置、系统以及服务器,若接收到客户端发送的第一消息队列调用请求后可以先进行消息交互协议的转换,以将所述第一消息队列调用请求转换为消息交互协议不同第二消息队列调用请求,然后基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据,继而根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求,从而通过协议转换的方式,在业务方基于消息交互协议不同的客户端发送消息队列调用请求的情况下,依然可以识别业务方的消息队列调用请求,并且再基于公用的指定调用接口生成消息队列调用数据,进而再通过该指定调用接口执行所述第二消息队列调用请求,从而提升了消息队列所传输消息的处理中的灵活性以及兼容性。To sum up, in the message processing method, device, system and server provided by this application, if the first message queue call request sent by the client is received, the message exchange protocol can be converted first to convert the first message queue. The message queue call request is converted into a second message queue call request with a different message interaction protocol, and then based on the second message queue call request and the specified call interface, the message queue call data adapted to the specified call interface is generated, and then according to all The designated calling interface and the message queue calling data are called, the target message queue engine is called to execute the second message queue calling request, and the message queue calling request is sent on the business side based on the client with different message interaction protocols by means of protocol conversion. Under the circumstance, the message queue call request of the business party can still be identified, and the message queue call data is generated based on the public designated call interface, and then the second message queue call request is executed through the designated call interface, thereby improving the message Flexibility and compatibility in the processing of messages transmitted by the queue.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features thereof are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种消息处理方法,其特征在于,所述方法包括:A message processing method, characterized in that the method includes:
    若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;If the first message queue call request sent by the client is received, the first message queue call request is converted into a second message queue call request. The second message queue call request is the same as the first message queue call request. The corresponding message exchange protocol is different;
    基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;Based on the second message queue calling request and the designated calling interface, generating message queue calling data adapted to the designated calling interface;
    根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。According to the designated calling interface and the message queue calling data, the target message queue engine is called to execute the second message queue calling request.
  2. 根据权利要求1所述的方法,其特征在于,所述若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,包括:The method according to claim 1, wherein the converting the first message queue calling request to the second message queue calling request if the first message queue calling request sent by the client is received includes:
    若接收到客户端发送的第一消息队列调用请求,获取所述第一消息队列调用请求所采用的协议;If the first message queue calling request sent by the client is received, acquiring the protocol adopted by the first message queue calling request;
    基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。Based on the adopted protocol, the first message queue call request is converted into a second message queue call request based on the target protocol.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述所采用的协议,将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求,包括:The method according to claim 2, wherein the converting the first message queue call request into a second message queue call request based on the target protocol based on the adopted protocol comprises:
    基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。Based on the adopted protocol, a conversion plug-in adapted to the first message queue call request is invoked to convert the first message queue call request into a second message queue call request based on the target protocol.
  4. 根据权利要求3所述的方法,其特征在于,所述基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求之前还包括:The method according to claim 3, characterized in that, based on the adopted protocol, a conversion plug-in adapted to the first message queue call request is called to convert the first message queue call request to a Before the call request of the second message queue of the target protocol, it also includes:
    检测是否已经加载所述第一消息队列调用请求适配的转换插件;Detecting whether the conversion plug-in requested by the first message queue has been loaded;
    若已经加载所述第一消息队列调用请求适配的转换插件,执行所述基于所述所采用的协议,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。If the first message queue call request adaptation conversion plug-in has been loaded, execute the protocol based on the adopted and call the conversion plugin adapted to the first message queue call request to transfer the first message queue The call request is converted into a second message queue call request based on the target protocol.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    若未加载所述第一消息队列调用请求适配的转换插件,通过插件管理器在插件存储区域查找所述第一消息队列调用请求适配的转换插件;If the conversion plug-in requested by the first message queue is not loaded, search for the conversion plug-in requested by the first message queue in the plug-in storage area through the plug-in manager;
    若查找到所述第一消息队列调用请求适配的转换插件,动态加载所述第一消息队列调用请求适配的转换插件,并在所述动态加载完成后,调用与所述第一消息队列调用请求适配的转换插件将所述第一消息队列调用请求转换为基于目标协议的第二消息队列调用请求。If the conversion plug-in requested by the first message queue is found, the first message queue is dynamically loaded and the conversion plug-in requested by the request is dynamically loaded, and after the dynamic loading is completed, the first message queue is called The conversion plug-in adapted to the call request converts the first message queue call request into a second message queue call request based on the target protocol.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    在初始化时,更新所述插件存储区域中存储的转换插件。During initialization, the conversion plug-in stored in the plug-in storage area is updated.
  7. 根据权利要求6所述的方法,其特征在于,所述在初始化时,更新所述插件存储区域中存储的转换插件,包括:7. The method according to claim 6, wherein, during initialization, updating the conversion plug-in stored in the plug-in storage area comprises:
    在初始化时,获取所述插件存储区域中存储的转换插件;During initialization, obtain the conversion plug-in stored in the plug-in storage area;
    将所述所述插件存储区域中存储的转换插件与管理端中存储的转换插件进行比对;Comparing the conversion plug-in stored in the plug-in storage area with the conversion plug-in stored in the management terminal;
    若比对出不一致的转换插件,获取所述不一致的转换插件并进行注册;If inconsistent conversion plug-ins are compared, obtain and register the inconsistent conversion plug-ins;
    并将注册后的转换插件存储到所述插件存储区域。And store the registered conversion plug-in in the plug-in storage area.
  8. 根据权利要求2-7任一所述的方法,其特征在于,所述获取所述第一消息队列调用请求所采用的协议,包括:The method according to any one of claims 2-7, wherein said obtaining the protocol used by the first message queue call request comprises:
    获取所述第一消息队列调用请求对应的字节流;Acquiring the byte stream corresponding to the first message queue call request;
    基于所述字节流识别所述第一消息队列调用请求所采用的协议。Identify the protocol adopted by the first message queue call request based on the byte stream.
  9. 根据权利要求8所述的方法,其特征在于,所述基于所述字节流识别所述第一消息队列调用请求所采用的协议,包括:The method according to claim 8, wherein the identifying a protocol adopted by the first message queue call request based on the byte stream comprises:
    获取所述第一消息队列调用请求对应的字节流的字节流格式;Acquiring the byte stream format of the byte stream corresponding to the first message queue call request;
    将所述字节流格式与多个参考字节流格式进行匹配;Matching the byte stream format with multiple reference byte stream formats;
    将与所述字节流格式匹配的参考字节流格式对应的协议作为所述第一消息队列调用请求所采用的协议。The protocol corresponding to the reference byte stream format matching the byte stream format is used as the protocol adopted by the first message queue invocation request.
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, wherein the method further comprises:
    从多个待选消息队列引擎中选择第一消息队列引擎作为所述目标消息队列引擎。Select the first message queuing engine from a plurality of candidate message queuing engines as the target message queuing engine.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, wherein the method further comprises:
    若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。If it is detected that the first message queuing engine is in a designated state, the second message queuing engine among the multiple to-be-selected message queuing engines is used as the target message queuing engine.
  12. 根据权利要求11所述的方法,其特征在于,所述指定状态包括所述第一消息队列引擎处于待升级状态时;所述若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎,包括:The method according to claim 11, wherein the designated state includes when the first message queuing engine is in a state to be upgraded; if it is detected that the first message queuing engine is in a designated state, the The second message queuing engine among the plurality of message queuing engines to be selected as the target message queuing engine includes:
    若检测到所述第一消息队列引擎处于待升级状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。If it is detected that the first message queuing engine is in the to-be-upgrade state, the second message queuing engine among the plurality of message queuing engines to be selected is used as the target message queuing engine.
  13. 根据权利要求11所述的方法,其特征在于,所述指定状态包括所述第一消息队列引擎处于消息发送阻塞状态时;所述若检测到所述第一消息队列引擎处于指定状态时,将所述多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎,包括:The method according to claim 11, wherein the designated state includes when the first message queuing engine is in a message sending blocking state; if it is detected that the first message queuing engine is in a designated state, the The second message queuing engine of the plurality of message queuing engines to be selected as the target message queuing engine includes:
    若检测到所述第一消息队列引擎处于消息发送阻塞状态时,将多个待选消息队列引擎中的第二消息队列引擎作为所述目标消息队列引擎。If it is detected that the first message queuing engine is in a message sending blocking state, the second message queuing engine among the multiple to-be-selected message queuing engines is used as the target message queuing engine.
  14. 根据权利要求10-13任一所述的方法,其特征在于,所述多个待选消息队列引擎均为插件式的消息队列引擎。The method according to any one of claims 10-13, wherein the plurality of message queuing engines to be selected are all plug-in message queuing engines.
  15. 根据权利要求1-14任一所述的方法,其特征在于,所述若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求之前还包括:The method according to any one of claims 1-14, wherein if the first message queue call request sent by the client is received, the first message queue call request is converted into a second message queue call request It also included:
    对发送所述第一消息队列调用请求的所述客户端进行安全验证;Performing security verification on the client that sent the first message queue call request;
    若所述安全验证成功,执行所述若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求。If the security verification is successful, execute if the first message queue invoking request sent by the client is received, converting the first message queue invoking request into a second message queue invoking request.
  16. 一种消息处理方法,其特征在于,应用于消息处理系统,所述消息处理系统包括协议处理设备、消息逻辑实现设备以及消息队列引擎承载设备,所述方法包括:A message processing method, characterized in that it is applied to a message processing system, the message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device, and the method includes:
    所述协议处理设备若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;If the protocol processing device receives the first message queue call request sent by the client, it converts the first message queue call request into a second message queue call request, and the second message queue call request is the same as the first message queue call request. The message interaction protocol corresponding to the message queue call request is different;
    所述消息逻辑实现设备基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;The message logic implementation device generates message queue calling data adapted to the designated calling interface based on the second message queue calling request and the designated calling interface;
    消息队列引擎承载设备根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。The message queue engine bearing device calls the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data.
  17. 一种消息处理装置,其特征在于,所述装置包括:A message processing device, characterized in that the device includes:
    协议解析单元,用于若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;The protocol analysis unit is configured to convert the first message queue calling request into a second message queue calling request if the first message queue calling request sent by the client is received, and the second message queue calling request is the same as the first message queue calling request. A message exchange protocol corresponding to a message queue call request is different;
    调用逻辑实现单元,用于基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;A call logic implementation unit, configured to generate message queue call data adapted to the specified call interface based on the second message queue call request and the specified call interface;
    消息处理执行单元,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。The message processing execution unit is configured to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data.
  18. 一种消息处理系统,其特征在于,所述消息处理系统包括协议处理设备、消息逻辑实现设备以及消息队列引擎承载设备,所述系统包括:A message processing system, characterized in that, the message processing system includes a protocol processing device, a message logic implementation device, and a message queue engine bearing device, and the system includes:
    所述协议处理设备,用于若接收到客户端发送的第一消息队列调用请求,将所述第一消息队列调用请求转换为第二消息队列调用请求,所述第二消息队列调用请求与所述第一消息队列调用请求所对应的消息交互协议不同;The protocol processing device is configured to convert the first message queue calling request into a second message queue calling request if the first message queue calling request sent by the client is received, and the second message queue calling request is related to the The message interaction protocol corresponding to the first message queue call request is different;
    所述消息逻辑实现设备,用于基于所述第二消息队列调用请求以及指定调用接口,生成与所述指定调用接口适配的消息队列调用数据;The message logic implementation device is configured to generate message queue call data adapted to the specified call interface based on the second message queue call request and a specified call interface;
    消息队列引擎承载设备,用于根据所述指定调用接口以及所述消息队列调用数据,调用目标消息队列引擎执行所述第二消息队列调用请求。The message queue engine bearing device is used to call the target message queue engine to execute the second message queue calling request according to the designated calling interface and the message queue calling data.
  19. 一种服务器,其特征在于,包括一个或多个处理器以及存储器;A server, characterized in that it includes one or more processors and a memory;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-15任一所述的方法。One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-15.
  20. 一种具有处理器可执行的程序代码的计算机可读存储介质,其特征在于,所述程序代码使所述处理器执行权利要求1-15任一所述的方法。A computer-readable storage medium having program code executable by a processor, wherein the program code causes the processor to execute the method according to any one of claims 1-15.
PCT/CN2020/078554 2020-03-10 2020-03-10 Message processing method, device and system, and server WO2021179156A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/078554 WO2021179156A1 (en) 2020-03-10 2020-03-10 Message processing method, device and system, and server
CN202080094695.8A CN115039392A (en) 2020-03-10 2020-03-10 Message processing method, device and system and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/078554 WO2021179156A1 (en) 2020-03-10 2020-03-10 Message processing method, device and system, and server

Publications (1)

Publication Number Publication Date
WO2021179156A1 true WO2021179156A1 (en) 2021-09-16

Family

ID=77671106

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/078554 WO2021179156A1 (en) 2020-03-10 2020-03-10 Message processing method, device and system, and server

Country Status (2)

Country Link
CN (1) CN115039392A (en)
WO (1) WO2021179156A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553932A (en) * 2022-04-24 2022-05-27 深圳市明源云科技有限公司 System integration docking method, device, equipment and medium
CN114979259A (en) * 2022-03-31 2022-08-30 全通金信控股(广东)有限公司 Message queue agent device
CN116909779A (en) * 2023-09-11 2023-10-20 中移(苏州)软件技术有限公司 Message processing method and device and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228333B1 (en) * 2000-04-25 2007-06-05 Telecommunication Systems, Inc. Wireless internet gateway
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model
CN103701867A (en) * 2013-12-09 2014-04-02 乐视网信息技术(北京)股份有限公司 Method, system and central server for processing call requests
CN104394606A (en) * 2014-12-04 2015-03-04 北京和利时系统工程有限公司 Message based wireless communication gateway achieving method
CN107888539A (en) * 2016-09-29 2018-04-06 中兴通讯股份有限公司 Internet-of-things terminal access device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034782A1 (en) * 2000-01-14 2001-10-25 Ian Kinkade Efficient web based proxy message method and apparatus for message queuing middleware resident on a server computer
US10476982B2 (en) * 2015-05-15 2019-11-12 Cisco Technology, Inc. Multi-datacenter message queue
CN108667817A (en) * 2018-04-19 2018-10-16 厦门市智联信通物联网科技有限公司 Message converting system and message forwarding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228333B1 (en) * 2000-04-25 2007-06-05 Telecommunication Systems, Inc. Wireless internet gateway
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model
CN103701867A (en) * 2013-12-09 2014-04-02 乐视网信息技术(北京)股份有限公司 Method, system and central server for processing call requests
CN104394606A (en) * 2014-12-04 2015-03-04 北京和利时系统工程有限公司 Message based wireless communication gateway achieving method
CN107888539A (en) * 2016-09-29 2018-04-06 中兴通讯股份有限公司 Internet-of-things terminal access device and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979259A (en) * 2022-03-31 2022-08-30 全通金信控股(广东)有限公司 Message queue agent device
CN114553932A (en) * 2022-04-24 2022-05-27 深圳市明源云科技有限公司 System integration docking method, device, equipment and medium
CN116909779A (en) * 2023-09-11 2023-10-20 中移(苏州)软件技术有限公司 Message processing method and device and related equipment
CN116909779B (en) * 2023-09-11 2024-01-26 中移(苏州)软件技术有限公司 Message processing method and device and related equipment

Also Published As

Publication number Publication date
CN115039392A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
WO2021179156A1 (en) Message processing method, device and system, and server
CN107622135B (en) Method and apparatus for displaying information
CN112114979B (en) Remote procedure call method and device
US9990214B2 (en) Dynamic agent delivery
CN106453572B (en) Method and system based on Cloud Server synchronous images
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
WO2017071358A1 (en) Software upgrade method and apparatus
WO2020228038A1 (en) Domain name processing method, apparatus, electronic device, and storage medium
CN111045833A (en) Interface calling method and device
WO2019128357A1 (en) Picture requesting method, method for responding to picture request, and client
CN110764688B (en) Method and device for processing data
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN113760318A (en) Information processing method, information processing apparatus, server, and storage medium
CN111090789A (en) Session window awakening method and device based on two-dimensional code and storage medium
CN115811481A (en) Interactive service testing method and device, computer equipment and storage medium
CN113836424A (en) Data acquisition method and device, electronic equipment and storage medium
CN111813529B (en) Data processing method, device, electronic equipment and storage medium
CN115061785A (en) Information issuing method and device, storage medium and server
CN112099736A (en) Data storage method and device, electronic equipment and storage medium
CN113779018A (en) Data processing method and device
CN113326060A (en) Service request processing method, device and system and service configuration method and device
CN116974631B (en) Hardware telemetry data acquisition method, device, equipment and storage medium
CN116455917B (en) Data synchronization method and device, electronic equipment and computer readable storage medium
WO2022133910A1 (en) Webpage evidence obtaining method, webpage evidence obtaining device, and server

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20924223

Country of ref document: EP

Kind code of ref document: A1