CN115883654A - Process communication method, device, equipment and storage medium - Google Patents

Process communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN115883654A
CN115883654A CN202211515089.6A CN202211515089A CN115883654A CN 115883654 A CN115883654 A CN 115883654A CN 202211515089 A CN202211515089 A CN 202211515089A CN 115883654 A CN115883654 A CN 115883654A
Authority
CN
China
Prior art keywords
message
processed
host
processing module
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211515089.6A
Other languages
Chinese (zh)
Inventor
王树华
王宇航
王斌
樊武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211515089.6A priority Critical patent/CN115883654A/en
Publication of CN115883654A publication Critical patent/CN115883654A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a process communication method, a device, equipment and a storage medium, wherein the method comprises the following steps: determining a message to be processed based on a first message agent process of a local machine, and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host; and informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process. The method and the system have the advantages that the first message agent process is established in the first host for establishing communication, the message to be processed sent by the second host is uniformly received through the first message agent process, maintainability of process communication and flexible configuration of inter-process communication requirements are improved, and communication efficiency of the process communication among the multiple hosts under the high concurrency condition is improved.

Description

Process communication method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer communications, and in particular, to a process communication method, apparatus, device, and storage medium.
Background
With the increasing scale demand of computer application systems, the communication between processes of different hosts or terminals becomes more and more frequent, and the amount of codes used for the communication between processes in programs becomes larger and larger, and the communication in the case is difficult to deploy, so that the communication mechanism between processes becomes more important in software programming. For example, in an intelligent factory having a plurality of terminals, data of different terminals needs to be acquired in real time, and efficient communication and deployment are important. However, the development of software is challenging due to the strict and high-cohesion low-coupling characteristics.
However, currently, for process communication between different hosts or terminals, a socket processing method is generally adopted, which requires that specific two processes have specific ports. When the communication network of the process becomes huge, the method has the problems of low efficiency and difficult deployment due to high coupling, so that the method is not favorable for high concurrent communication in a scene with large inter-process communication code quantity.
Disclosure of Invention
In view of this, embodiments of the present application provide a process communication method, an apparatus, a device, and a storage medium, which are used to solve the technical problem that the existing process communication between multiple hosts is low in communication efficiency under a high concurrency condition.
The embodiment of the application provides a process communication method, which comprises the following steps:
determining a message to be processed based on a first message agent process of a local machine, and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
and informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process.
In a possible implementation manner of the present application, the to-be-processed message is information sent by the second host based on the second message broker process thereof, and the first message broker process based on the host determines the to-be-processed message and determines a target processing module of the to-be-processed message, where the method includes:
receiving a message to be processed sent by a second host based on a second message agent process of the second host;
and determining a target processing module of the message to be processed according to a local communication table in a first message agent process, wherein the target processing module is registered with the first message agent process, and the type of processing information and the process ID thereof are clarified in the local communication table in the first message agent process.
In a possible implementation manner of the present application, the notifying, based on the first message broker process, the target processing module to process the message to be processed further includes:
if the message to be processed is the message to be read, placing the message to be processed in a first memory created in the first message agent process, wherein the first memory is only used for storing and writing the read message of the type corresponding to the message to be processed;
sending a first message request to the target processing module based on the first message agent process, so that the target processing module reads the message to be processed from the first memory based on the first message request and a preset callback function;
and the target processing module applies for a reading lock to the first message agent process based on the first message request, locks the message to be processed based on the reading lock, and releases the reading lock until the message to be processed is read.
In a possible implementation manner of the present application, the notifying, based on the first message broker process, the target processing module to process the message to be processed further includes:
if the message to be processed is the message to be written, the message to be processed is placed in a second memory created in the first message agent process, and the second memory is only used for storing and writing the written information of the type corresponding to the message to be processed;
sending a second message request to the target processing module based on the first message agent process, so that the target processing module performs write processing on the message to be processed in the second memory based on the second message request, and notifies the first message agent process of completion of write;
and the target processing module applies for a write lock to the first message agent process based on the second message request, locks the target processing module based on the write lock, and releases the write lock until the writing of the message to be processed is completed.
In a possible implementation manner of the present application, if the message to be processed is to-be-read information, the step of placing the message to be processed in a first memory created in the first message broker process, where the first memory is only used for storing and writing read information of a type corresponding to the message to be processed includes:
creating a first memory in the first message agent process;
setting a message head marker bit and a message tail marker bit of the first memory based on a preset message memory format;
and placing the message to be processed in the first memory, finding out the message to be processed through the message header flag bit of the first memory when reading the message to be processed from the first message agent process, and reading the message to be processed.
In a possible implementation manner of the present application, the determining, by the to-be-processed message server, information that needs to be sent to the second host based on subscription information of the second host, and determining, by the to-be-processed message server, the to-be-processed message based on the subscription information of the second host, and determining, by the to-be-processed message server, the second message proxy process for the to-be-processed message includes:
determining a message to be processed which needs to be sent to the second host based on the subscription information of the second host;
if the second host subscribes to the local machine, updating the IP address of the second host and the subscription information thereof in a local area network communication table of a first message agent process; the first message agent process feeds back subscription information to the target processing module based on the updated IP address of the second host computer, so that the target processing module can determine a message to be processed which needs to be sent to the second host computer;
and issuing the message to be processed to a second message agent process of the second host based on the first message agent process.
In one possible embodiment of the present application, the method further comprises:
determining a subscription message between the second hosts based on a preset communication message format;
the communication message format comprises an IP address of the second host, a message type of the subscription message, and information of a sender or a receiver of the subscription message.
The present application further provides a process communication apparatus, the apparatus comprising:
the message receiving module is used for determining a message to be processed based on a first message agent process of a local computer and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
and the message processing module is used for informing the target processing module or the second message agent process of processing the message to be processed based on the first message agent process.
The present application further provides a process communication device, where the process communication device is an entity node device, and the process communication device includes: a memory, a processor and a program of the process communication method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the process communication method as described above.
To achieve the above object, there is also provided a computer readable storage medium having stored thereon a process communication program, which when executed by a processor, implements the steps of any one of the process communication methods described above.
The application provides a process communication method, a device, equipment and a storage medium, wherein a message to be processed is determined based on a first message agent process of a local machine, and a target processing module or a second message agent process of the message to be processed is determined; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host; and informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process. According to the method and the device, the first message agent process is established in the first host for establishing communication, and the messages to be processed sent by the second host are received in a unified mode through the first message agent process, so that the maintainability of process communication is improved. The first message agent process distributes and processes the messages to be processed in the first host, and processes the messages to be processed through the distributed communication module to establish process communication between the first host and the second host, so that flexible configuration of inter-process communication requirements is promoted, and the communication efficiency of inter-process communication between multiple hosts under the condition of high concurrency is improved.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a process communication method according to the present application;
FIG. 2 is a schematic diagram of inter-process communication between multiple processes across hosts according to a first embodiment of the process communication method of the present application;
FIG. 3 is a diagram illustrating a communication message format in a third embodiment of the process communication method of the present application;
FIG. 4 is a flowchart illustrating registration of each processing module with a message broker process in the process communication method of the present application;
fig. 5 is a schematic diagram of a shared memory of a message broker process in a fifth embodiment of a process communication method according to the present application;
fig. 6 is a schematic diagram of process communication between processing modules in hosts according to a seventh embodiment of the process communication method of the present application;
fig. 7 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 8 is a functional block diagram of a communications device in accordance with a preferred embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
An embodiment of the process communication method is applied to a process communication device, and referring to fig. 1, the method includes:
step S10, determining a message to be processed based on a first message agent process of a local machine, and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
step S20, notifying the target processing module or the second message broker process to process the message to be processed based on the first message broker process.
The present embodiment is intended to: each host in the multi-host communication network is provided with a message agent process, and module processing processes in the hosts are uniformly managed through the message agent processes, so that flexible connection communication can be realized in a high-concurrency communication network, and the communication efficiency in a communication scene is improved.
Specifically, in the application, each host is provided with a message agent process in a communication network of multiple hosts, so that the multiple hosts communicate with each other by means of the message agent processes, and the technical problem that the existing process communication between the multiple hosts is low in communication efficiency under the condition of high concurrency is solved (currently, for process communication between different hosts or terminals, a socket processing mode is generally adopted, and the mode needs specific ports for specific two processes. In the application, the message agent process uniformly manages the message reading and writing of each module in the host and subscribes and publishes the messages to be processed, and each module interacts with the message agent process when needing to perform reading and writing operations, so that after the message agent process of the host receives the messages to be processed, the message agent process provides the messages to be processed for each module by adopting a subscribing and publishing mechanism, so that each module can process the messages to be processed, and the communication efficiency and the communication reliability under a high-concurrency communication scene are improved.
In this embodiment, the specific application scenarios targeted are:
with the increasing scale requirement of computer application systems, the communication between processes of different hosts or terminals becomes more frequent, and the amount of code used for the communication between processes in programs becomes larger and larger, and the communication in this case is often difficult to deploy, so that the communication mechanism between processes becomes more important in software programming. For example, in an intelligent factory having a plurality of terminals, data of different terminals needs to be acquired in real time, and efficient communication and deployment are important. However, the development of software is challenging due to the rigors of development and the high-cohesion low-coupling nature.
For the above reasons, currently, for process communication between different hosts or terminals, a socket processing manner is generally adopted, which requires that specific two processes have specific ports. When the communication network of the process becomes huge, the method has the problems of low efficiency and difficult deployment due to high coupling, so that the method is not favorable for high concurrent communication in a scene with large inter-process communication code quantity.
As an example, the process communication method may be applied to a process communication system applied to a process communication apparatus.
As an example, a process communication system includes a first host, at least one second host, the first host receiving or issuing a message as native.
As an example, the first host and the second host refer to hosts that need to communicate in a communication network.
As an example, a first message broker process is created in a first host and a second message broker process is created in a second host. When the first host computer and the second host computer communicate, the first message agent process and the second message agent process communicate to receive or issue the message to be processed.
As an example, the communication establishment of the first message broker process and the second message broker process has mutual communication authority, and the communication authority is synchronously updated in a Socket mode. It will be appreciated that a second host that can communicate with a certain type of message is recorded in the first message broker process, and that when the first message broker process issues a message of that type, the second message broker process of the second host will receive the message of that type. If there is no second host in the hosts receiving the type of messages recorded in the first message broker process, the second message broker process of the second host will not receive the type of messages when the first message broker process issues the type of messages.
As an example, when communicating between a first host and a second host, a pending message is information that the receiving second host sent based on its second message broker process. At this time, if the message to be processed is the message type concerned by the first host, the first message agent process of the first host receives the message to be processed sent by the second message agent process, and determines the target processing module for processing the message to be processed in the second message agent process. It should be noted that the target processing module is a module for processing the message to be processed in at least one local processing module.
As an example, the pending message is information sent by the receiving second host based on its second message broker process, the native-based first message broker process determines the pending message and determines a target processing module of the pending message, the method comprising:
step S11, receiving a message to be processed sent by a second host based on a second message agent process of the second host;
step S12, according to a local communication table in a first message agent process, determining a target processing module of the message to be processed, wherein the target processing module is registered with the first message agent process, and the type of processing information and the process ID thereof are clarified in the local communication table in the first message agent process.
As an example, a native communication table is created in a first message broker process that is applied to communications of a processing module in the native for recording process or thread information of the processing module. Each processing module needing to pass in the local machine registers communication information thereof to a first message agent process in the local machine for the first time;
as an example, the communication information registered in the local communication table by each processing module includes a message type of the processing information of the processing module, a process ID of the processing module, the processing module being a sender or a receiver of the message type.
As an example, when the to-be-processed message is a message sent by the second host based on the second message broker process of the second host, the first message broker process of the first host receives the to-be-processed message, matches the type of the to-be-processed message with the message type of the local communication table in the first message broker process, and matches a target processing module that processes the to-be-processed message.
As an example, the first message broker process provides the pending messages to each processing module by using a subscription and publication mechanism, and the multi-process communication network centered on the first message broker process has only one set of subscription and publication rules. Subscription publication rules may be based on topics, such as user-defined message constructs, and subscription publication rules may also be based on content, such as transmitted text. It can be understood that, when a structure of a message is defined when a message is subscribed, and the processed message is published with the same structure when the message is published after being processed, a processing module subscribed to the message determines that the processed message is a message subscribed to or a message to be received and processed based on the structure of the message.
As an example, after the processing module of the second host sends the to-be-processed message, it may not be necessary to relate to when the to-be-processed message changes, the first host that processes the to-be-processed message may send the message to each second host that subscribes to the to-be-processed message in a broadcast manner through the first message broker process, and when the second message broker process of the second host receives the message content processed based on the to-be-processed message, the second message broker process may notify the process or thread of the processing module that subscribes to the message content in the second host to read the message content, so as to complete a responsive operation of data change, and ensure efficient operation of the process communication system.
Step S20, notifying the target processing module or the second message broker process to process the message to be processed based on the first message broker process.
As an example, the first message agent process is used as a module for local-to-external communication, and manages read and write messages of each processing module in the local machine in a unified manner, and interacts with the first message agent process when each processing module performs read and write operations.
As an example, the whole communication system includes a plurality of hosts, each host includes a plurality of processing modules, each processing module is a different process or thread, each host has a message broker process, and the message broker process manages the sending and receiving of messages in the communication process in the whole process to perform uniform management and uniform distribution on the system, thereby ensuring stable operation of the system. It is understood that the transceiving may be one-to-one, one-to-many, or many-to-one.
As an example, after receiving a message to be processed, the first message broker process determines a target processing module in the native device that processes the message to be processed, and notifies the target processing module to process the message to be processed, such as reading information, writing data, and the like, thereby completing process communication and message processing between the first host and the second host.
As an example, the process of the target processing module processing the message to be processed may be reading the message to be processed. I.e. the pending message is a message that is native subscribed to a second message broker process of the second host. For example, a message to be processed is sent to a first message broker process of a first host based on a second message broker process, after receiving the message to be processed, the first message broker process determines a target processing module for processing the message to be processed, the target processing module reads data of the message to be processed in the first message broker process, and the message communication is finished.
As an example, the process of the target processing module processing the message to be processed may also be writing corresponding data in the first message broker process based on the message to be processed. That is, the pending message is information that the host determines needs to send to the second host based on the subscription information of the second host. For example, a message to be processed is sent to a first message broker process of a first host based on a second message broker process, the first message broker process notifies a corresponding target processing module according to the message to be processed, and the target processing module writes data in the first message broker process, so that the data corresponding to the message to be processed changes. Therefore, interactive communication between the first host and the second host is realized.
As an example, referring to fig. 2, a host a, a host B, a host C, and a host D are in a communication network, a message broker process of the host a is created in the host a, a message broker process of the host B is created in the host B, a message broker process of the host C is created in the host C, a message broker process of the host D is created in the host D, and communication is performed between the message broker processes in a Socket manner. The message agent process in the local machine (one of the host machine A, the host machine B, the host machine C and the host machine D) is uniformly managed by a process A of a processing module which processes a certain type of message, a process B of a processing module which processes another type of message and a process C of a processing module which processes other type of message. Furthermore, during communication between multiple hosts, if the process a in the host a processes a message and needs to send the message to the host B that subscribes to the message (assuming that the process C in the host B can process the type of message of the host a), the process a in the host a sends the message to the message broker process of the host a, and the message is published through the message broker process of the host a. The message agent process of the host B receives the message and sends the message to the process C that processes the message through the message agent process of the host B, so that the process C processes the message, and communication between multiple processes across hosts is realized. The communication mode between processes in other hosts is basically the same, and is not limited in detail here.
Compared with the low communication efficiency of the process communication under the condition of high concurrency, the process communication method, the device, the equipment and the storage medium among multiple hosts have the advantages that a message to be processed is determined based on a first message agent process of a local machine, and a target processing module or a second message agent process of the message to be processed is determined; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host; and informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process. According to the method and the device, the first message agent process is established in the first host for establishing communication, and the messages to be processed sent by the second host are received in a unified mode through the first message agent process, so that the maintainability of process communication is improved. The first message agent process distributes and processes the messages to be processed in the first host, and processes the messages to be processed through the distributed communication module to establish process communication between the first host and the second host, so that flexible configuration of inter-process communication requirements is promoted, and the communication efficiency of inter-process communication between multiple hosts under the condition of high concurrency is improved.
Based on the first embodiment of the process communication method described above, a second embodiment of the process communication method is proposed.
Step A1, a basic local communication table is established in a first message agent process;
step A2, registering the module information of each processing module in the first host computer into the first message agent process, and updating the registered information into the basic local communication table to obtain an updated local communication table.
As an example, in a scenario requiring communication, a message proxy process is created on a plurality of hosts requiring communication, and is used for uniformly managing the read-write operation of each processing module in the local computer on a message. In the following, the communication between two hosts (the first host and the second host) is taken as an example for description, and the communication between other hosts or multiple hosts is basically the same, and is not described herein again.
As an example, a first message broker process is created on a first host, and the first message broker process pre-opens a segment of shared memory for a processing module that needs to communicate in the first host to read and write data. The shared memory comprises a plurality of memory blocks, and the number and the size of the memory blocks are determined by the type and the size of the messages in the communication network.
As an example, an underlying native communication table is created in a first message broker process, the native communication table handling blank states. Then, when each module needing communication sends module information to the first message agent process of the first host for the first time, the module information includes: the type of information processed by the processing module, whether the processing module is a sender or a receiver of the type of information, and the process ID of the processing module.
And after receiving the module information of the processing module, the first message agent process updates the module information in a basic local communication table to obtain an updated local communication table.
As an example, each processing module in the host is an entity running in the process communication system, and after the initialization of the module where the message broker process is located is completed, each processing module should add its subscription information, process ID, and information that it is a sender, a receiver, or both of the information to the local communication table of the local message broker process to complete the registration of the processing module. After the registration is completed, the native message broker process will notify each host.
As an example, when the first message broker process receives a message to be processed, the message type of the message to be processed is matched with the processing message type of each processing module in the local communication table, and the message type is matched to correspond to the target processing module as the receiving party and the process ID of the target processing module. The first message agent process informs the target processing module to process the message to be processed, and process communication between the first host and the second host is completed.
As an example, a second message broker process is created in the second host, the second message broker process creates a segment of shared memory in advance for a processing module that needs to communicate in the second host to read and write data, and a specific implementation manner of creating a basic native communication table in the second message broker process is substantially the same as that of the first host, and is not described herein again. It is understood that the module information of each processing module in the second host is recorded in the local communication table of the second host.
It should be noted that, each processing module requiring communication registers in the message service broker of the corresponding host, that is, informs the message broker process that there is a communication requirement. Therefore, all the processing modules needing communication in the local computer need to register to the message agent process, the registered processing modules can be managed uniformly through the message agent process of the local computer when reading or writing data, and the unregistered processing modules can communicate in a conventional mode (the processing modules and the processing modules or the processing modules and other hosts are in direct communication connection) when reading or writing data.
As an example, if the processing module in the local computer changes the module information, the processing module is registered with the message agent process of the local computer again, and the local communication table is updated.
In this embodiment, the message agent process processes perform unified management on each processing module that needs to read and write a message, and each processing module interacts with the message agent process module when needing to perform read and write operations, so that reliability and efficiency of traffic communication among multiple processes are improved.
Based on the second embodiment of the process communication method described above, a third embodiment of the process communication method is proposed.
Step B1, establishing a basic local area network communication table in a first message agent process;
step B2, updating the information in the local communication network to the basic local area network communication table to obtain an updated local area network communication table;
and step B3, informing the second host computer to synchronously update the local area network communication table of the second host computer based on the information in the local area network communication table of the second host computer.
As an example, a first message agent process in a first host creates a basic local area network communication table, and the local area network communication table is applied to a communication network for communication of each host and is used for storing a sending host and a receiving host of each message to be processed. It should be noted that the process ID of each processing module in the local area network communication table is not stored.
As an example, after acquiring and updating the module information of the processing module in the local machine communication table, the first message agent process compares the type of the processing module processing information in the module information of the processing module with the local area network communication table. If the type of processing message does not exist in the local area network communication table or the local machine does not exist in the type of processing message, the type of the registered processing message is updated to the local area network communication table. That is, what kind of message concerned is recorded in the local area network communication table is obtained by summarizing the types of processing information of each processing module in the local area network communication table.
As an example, messages between the message broker processes of the various hosts include the native IP addresses, as well as information of what message types to subscribe to and publish.
As an example, after the lan communication table of the first host is updated, other hosts in the communication network are notified to synchronously update the information in the lan communication table of the first host. It will be appreciated that each host should initially send a message to each host in the communication network, including its native IP address and the type of message subscribed and published. Each host in the communication network is notified in time whenever there is a new message type change in the host. Each host has a mapping table (i.e. lan communication table) for each message and host, so as to achieve the purpose of communication.
As an example, the message broker processes of the hosts in the communication network synchronize module information and communicate with each other in a Socket manner.
As an example, only hosts interested in the same message type may communicate with each other.
As an example, the method further comprises:
step C1, determining subscription information between the second hosts based on a preset communication information format;
the communication message format comprises an IP address of the second host, a message type of the subscription message, and information of a sender or a receiver of the subscription message.
As an example, referring to fig. 3, the preset communication message format is a message format when a connection is established between hosts, and includes a local IP address, a message type of a subscription message, and information of a sender or a receiver of the subscription message.
As an example, the subscription message is determined based on a communication message format, so that when the subscription message is received or published between the first host and the second host, a receiving host or a processing host of the subscription message can be quickly determined, and the efficiency of process communication among multiple hosts in a high-concurrency communication scenario is improved.
The second embodiment and the third embodiment based on the above process communication method. In some scenarios, referring to fig. 4, a flowchart of the process module registering with the message broker process in the process communication method of fig. 4 includes the following steps:
step 1: in a scenario requiring communication, a message broker process is created on a plurality of hosts requiring communication (a first host, a second host, etc.).
Step 2: the message service process of each host computer pre-opens a section of shared memory for the reading and writing of the modules needing communication in the local computer.
And step 3: the message agent process develops two tables, one is used for a local area network communication table in a communication network, the table is used for storing a sending host and a receiving host of each message, and the process ID information of the processing module is not stored; and the other local communication table is applied to the communication of the processing module in the local machine and is used for recording the process or thread information of the processing module.
And 4, step 4: when each processing module needing communication sends a message to a message agent process in a host computer for the first time, the message comprises: the processing module concerns which message is the sender or receiver of the concerned message, and the process ID of the processing module.
And 5: after the information of the processing module is acquired by the message agent process, the information is updated in the local communication table, and what kind of concerned message is compared with the local area network communication table. If the table in the LAN does not have such information or if there is no local IP in such information, information is added to update the LAN communication table. All hosts in the communication network are then notified that the remaining hosts will update information synchronously.
Step 6: the registration of one process module ends.
Based on the above embodiment of a process communication method, a fourth embodiment of a process communication method is proposed.
The message to be processed is determined by the first message agent process based on the local machine to be sent to the second host machine based on the subscription information of the second host machine, and the second message agent process of the message to be processed is determined, wherein the method comprises the following steps:
step D1, determining a message to be processed which needs to be sent to a second host computer based on subscription information of the second host computer;
if the second host subscribes to the local machine, updating the IP address of the second host and the subscription information thereof in a local area network communication table of a first message agent process; the first message agent process feeds back subscription information to the target processing module based on the updated IP address of the second host computer, so that the target processing module can determine a message to be processed which needs to be sent to the second host computer;
and D2, issuing the message to be processed to a second message agent process of the second host based on the first message agent process.
As an example, the whole process communication system includes a plurality of hosts, each host includes a plurality of processing modules, each processing module is a different process or thread, and a message agent process exists in each host to manage the sending and receiving of messages in the whole process communication process, perform uniform management and uniform distribution on the process communication system, and ensure stable operation of the system.
Therefore, when the message to be processed is the information which is determined to be sent to the second host based on the subscription information of the second host, the second host which receives the message to be processed needs to be determined according to the local area network communication table, so that the message to be processed is broadcasted to the second host. Before the first host sends the message to be processed to the second host, the second host needs to subscribe the information to the first host, and the subscription information is updated in the local area network communication table of the first message agent process. When the first host broadcasts the messages to be processed to other hosts, the second host which subscribes the messages to be processed is determined according to the local area network communication table.
As an example, the local area network communication table includes the native IP address, the subscribed and published message types, and the IP address of the host that subscribed to the message.
As an example, if the second host subscribes to the native device, the second message broker process of the second host sends a subscription request to the first message broker process of the first host, where the subscription request includes a subscribed message type and an IP address of the second host. And updating the subscribed message type and the IP address of the second host to a local area network communication table of the first message agent process. And after receiving the subscription request, the first message process determines a target processing module for processing the message of the type in the local computer according to the local area network communication table, and feeds the subscription information in the subscription request back to the target processing module so that the target processing module writes data corresponding to the subscription information to obtain the message to be processed after the data is written.
After the target processing module in the first message agent process completes data writing, the first message agent process sends the messages to be processed to other hosts (including the second host) subscribing the messages to be processed in a broadcasting mode according to the information in the local area network communication table. And after receiving the message to be processed, the second message agent process of the second host performs corresponding processing to complete process communication.
The process communication of the processing module in the local computer is managed and distributed in a unified way through the first message agent process in the first host and the second message agent process in the second host, and other hosts are determined through the IP address in the local area network communication table and the subscription information thereof during the communication among the hosts, so that the communication efficiency is improved on the basis of ensuring the stable operation of the system.
Based on the above embodiment of a process communication method, a fifth embodiment of a process communication method is proposed.
The notifying the target processing module to process the message to be processed based on the first message agent process further includes:
step S211, if the message to be processed is the message to be read, placing the message to be processed in a first memory created in the first message broker process, where the first memory is only used for storing and writing the read information of the type corresponding to the message to be processed;
step S212, sending a first message request to the target processing module based on the first message broker process, so that the target processing module reads the to-be-processed message from the first memory based on the first message request and a preset callback function;
step S213, the target processing module applies for a read lock to the first message proxy process based on the first message request, and locks the message to be processed based on the read lock until the message to be processed is read, and then releases the read lock.
As an example, the message to be read means that a processing module in the first host subscribes to a message to be processed from another host, and after receiving the message to be processed, the first message agent process of the first host needs to perform a read operation on the message to be processed by using a target processing message in the first host.
As an example, the first memory refers to a memory block in the shared memory created by the first message broker process, where the memory block is only used for storing and writing messages of the type to be processed.
As an example, if the message to be processed is a message to be read, the first message broker process places the message to be processed in a first memory created in the first message broker process when receiving the message to be processed. Based on a local communication table of a local machine, the first message agent process determines a target processing module for processing the message to be processed, and sends a first message request to the target processing module to inform the target processing module to read data.
As an example, the process of the first message broker process notifying the target processing module to read the data is implemented by the first message broker process sending a first message request to the target processing module, where the first message request includes a message to be processed.
As an example, the target processing module applies for a read lock to the first message broker process when the message to be processed is to be processed, and locks the message to be processed based on the read lock until the target processing module releases the read lock after the data is read. And when the target processing module reads the message to be processed in the first message agent process, triggering a callback function of the target processing module, and timely processing the message to be processed according to the callback function.
As an example, when the target processing module applies for a read lock to the first message broker process, the target processing module may not apply for a read lock if the processes of the other processing modules are reading. At this time, after waiting for the time of the preset duration, the target processing module needs to apply for the read lock to the first message agent process again until applying for the read lock and performing read operation on the message to be processed, and the read lock is released after reading.
In this embodiment, the to-be-processed message is a message subscribed by the target processing module, and after the target processing module subscribes the message, if the first message broker process receives the to-be-processed message corresponding to the subscribed message, the first message broker process notifies the target processing module to read data, and adds a read lock during reading, and finishes reading and releases the lock, so as to ensure reliable reading. And the efficiency and reliability of mutual communication among a plurality of processes are improved by the proxy mode of the first message proxy process.
As an example, if the message to be processed is the message to be read, the step of placing the message to be processed in a first memory created in the first message broker process, where the first memory is only used for storing and writing the read information of the type corresponding to the message to be processed includes:
step D1, a first memory is established in the first message agent process;
step D2, setting a message head flag bit and a message tail flag bit of the first memory based on a preset message memory format;
and D3, placing the message to be processed in the first memory, finding out the message to be processed through the message header flag bit of the first memory when reading the message to be processed from the first message agent process, and reading the message to be processed.
As an example, a shared memory is created in a first message broker process, and the shared memory is divided into a plurality of memory blocks, such as a first memory, according to types of messages to be processed. Different memory blocks store or record only one type of message. Therefore, when the message to be processed is placed in the first message agent process, the message to be processed is placed in the first memory corresponding to the message type of the message to be processed according to the message type of the message to be processed.
As an example, in order to increase the reliability of the process communication system, a message memory format is set for the message storage manner in the first message broker process, where the message memory format provides a header Start flag and a tail End flag. When the target processing module reads the message, the target processing module can find the message to be processed according to the Start first address of the first memory for storing the message to be processed, and read the message to be processed.
As an example, referring to fig. 5, other memories in the shared memory of the first message broker process also use a message memory format to store the pending message, so that each memory block has a header Start flag and a tail End flag based on a plurality of memory blocks set in the message memory format.
Based on the above embodiment of a process communication method, a sixth embodiment of a process communication method is proposed.
The notifying the target processing module of processing the message to be processed based on the first message agent process further comprises:
step S221, if the message to be processed is the message to be written, placing the message to be processed in a second memory created in the first message agent process, wherein the second memory is only used for storing and writing the written information of the type corresponding to the message to be processed;
step S222, sending a second message request to the target processing module based on the first message broker process, so that the target processing module performs write processing on the to-be-processed message in the second memory based on the second message request, and notifies the first message broker process of completion of write processing;
step S223, the target processing module applies for a write lock to the first message broker process based on the second message request, and locks the target processing module based on the write lock, until the write-in of the to-be-processed message is completed, and then releases the write lock.
As an example, if the to-be-processed message is the to-be-written message, which indicates that the to-be-processed message is a subscription message of the processing module in the second host, the target processing module in the first host needs to write data in the first message broker process according to the to-be-processed message, so as to feed back the data to the processing module in the second host.
As an example, the second memory is created when the first message broker process receives the message to be processed, and is configured to store the message to be processed, and obtain an address of the second memory where the message can be written, so that the target processing module writes corresponding data according to the address of the second memory. It should be noted that the second memory can only store or write messages of the type to be processed.
As an example, the first message broker process determines, according to the local communication table, a target processing module that processes the message to be processed, and sends a second message request to the target processing module, where the second message request includes an address of the second memory. And finding out a writable data position corresponding to the address of the second memory in the shared memory so as to write data in the second memory by the target processing module.
As an example, when writing data, the target processing module applies a write lock to a first message proxy process of the native machine, locks the target processing module based on the write lock, and releases the write lock until the data writing is completed. To ensure reliable writing.
As an example, after the target processing module completes writing, the target processing module notifies the first message broker process that a new message needs to be processed, that is, data change exists in the second memory, and then the first message broker process sends the written message content to each of other hosts subscribing to the message in a broadcast manner.
As an example, when the first message broker process receives a subscription for a certain message (e.g. when the message to be processed is a message to be written), the process ID or name of the processing module subscribing to the message is recorded, and 1 is added to the subscription count of this type of message.
If the original message subscription number of the type of message is 0, it is proved that the type of message does not exist in the shared memory, the message agent process of the local computer sends a message subscription request to the message agent process of the corresponding host, and the message subscription request only contains the IP address of the host subscribing the message and the subscribed message type. If the original message subscription number of the type of message is not 0, waiting for the corresponding sending module in the message agent process of the corresponding host to write data into the memory.
In this embodiment, the plurality of processing modules in the first host may be different processes or threads, and each processing module may be a receiver or a sender. When the first message agent process receives the message to be processed, the target processing module for processing the message to be processed is managed and distributed in a unified mode, the target processing module informs the first message agent process after the data is written, and the first message agent process informs a second host machine subscribing the message after the data is written in a broadcast mode. By means of the proxy mode, the efficiency and reliability of mutual communication among a plurality of processes are improved, and efficient operation of the system is guaranteed.
Based on the above embodiment of a process communication method, a seventh embodiment of a process communication method is proposed.
Referring to fig. 6, in a scenario that multiple hosts are required to communicate, a flowchart of mutual communication between processing modules of the hosts is described, where a first host is a host that subscribes to a message, a target processing module that processes the subscribed message in the first host is a subscribing module, a second host is a publishing host, and a target processing module that processes the subscribed message in the second host is a publishing module, and a communication process includes the following steps:
step 1: when a subscription module in a first host needs to subscribe a certain type of message, a message subscription request is sent to a first message agent process, the message type concerned by the subscription module and the process ID of the subscription module are registered, and the first message agent process synchronously updates the subscribed message type and the IP address of the first host to other hosts including a second host.
Step 2: after the second message broker process of the second host receives the subscription message, the second message broker process creates a memory for storing write data for the subscription message, and sends a write message request to the publishing module, wherein the write message request includes the memory address of the subscription message and the write data.
And 3, step 3: and the sending module in the second host receives the write-in message request of the second message agent process, and acquires the memory address of the writable data from the write-in message request.
And 4, step 4: and finding out a writable data position corresponding to the memory address in the shared memory of the second message agent process, applying for a write lock to the second message agent process of the second host by the sending module, and writing data in the writable data position to obtain new message content.
And 5: after the sending module finishes writing data, the sending module notifies a second message agent process that a new message needs to be processed, namely, the data in the memory block changes, and releases the write lock.
Step 6: when the second message agent process learns that the data in the memory block corresponding to the subscription message changes, according to the communication information of the local area network communication table of the second host, the host receiving the new message content is determined to be the first host (determined by the message type of the new message content and the IP address of the host receiving the message type), and the new message content is sent to each first host subscribing the new message content in a broadcast mode.
And 7: and after the first message agent process of the first host where the subscription module needing to read the new message content is located receives the message, the subscription module is informed to read the new message content according to the message type of the new message content and the local communication table of the first host.
And 8: and the subscription module applies for a reading lock to the first message agent process during reading, and if the reading lock is not applied, the subscription module needs to wait for a preset time length to apply again and releases the reading lock after the reading is finished.
And step 9: when the subscription module reads the new message content in the first message agent process, the callback function of the subscription module is triggered, and the message is processed in time.
Step 10: a message communication is ended.
The subscribing module does not need to care about when the message changes after sending the subscription message, when the subscription message changes, the publishing host (namely, the second host) sends the message to each host (namely, the first host) subscribing the message in a broadcast mode, and when the message agent process of the host subscribing the message obtains the message, the publishing host sends a message reading request to the process or thread subscribing the message in the local computer, so that the response type operation of data change is completed, the high-efficiency operation of the system is ensured, and the efficiency and the reliability of the mutual communication among a plurality of processes are improved.
Referring to fig. 7, fig. 7 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 7, the process communication device may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable connection communication between the processor 1001 and the memory 1005.
Optionally, the process communication device may further include a user interface, a network interface, a camera, RF (Radio Frequency) circuitry, a sensor, a WiFi module, and so on. The user interface may comprise a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the process communication device architecture shown in fig. 4 does not constitute a limitation of process communication devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 7, a memory 1005, which is a kind of storage medium, may include therein an operating system, a network communication module, and a process communication program. The operating system is a program that manages and controls the hardware and software resources of the process communication device, supporting the operation of the process communication program, as well as other software and/or programs. The network communication module is used to enable communication between components within the memory 1005, as well as with other hardware and software in the process communication system.
In the process communication apparatus shown in fig. 7, the processor 1001 is configured to execute a process communication program stored in the memory 1005, and implement the steps of the process communication method according to any one of the above.
The specific implementation of the process communication device of the present application is substantially the same as the embodiments of the process communication method, and is not described herein again.
The present application also provides a process communication apparatus, referring to fig. 8, the apparatus including:
a message receiving module 10, configured to determine a message to be processed based on a first message broker process of a local computer, and determine a target processing module or a second message broker process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
a message processing module 20, configured to notify the target processing module or a second message broker process to process the to-be-processed message based on the first message broker process.
In one possible implementation manner of the present application, the message receiving module further includes:
the message receiving submodule is used for receiving a message to be processed, which is sent by the second host based on the second message agent process of the second host;
and the distribution processing submodule is used for determining a target processing module of the message to be processed according to a local communication table in a first message agent process, wherein the target processing module is registered with the first message agent process, and the type of processing information and the process ID thereof are clarified in the local communication table in the first message agent process.
And/or, the message processing module further comprises:
the first information storage submodule is used for placing the message to be processed in a first memory created in the first message agent process if the message to be processed is the message to be read, and the first memory is only used for storing and writing the read information of the type corresponding to the message to be processed;
a first information notification sub-module, configured to send a first message request to the target processing module based on the first message broker process, so that the target processing module reads the to-be-processed message from the first memory based on the first message request and a preset callback function;
and the first information processing submodule is used for applying a reading lock to the first message agent process by the target processing module based on the first message request, locking the message to be processed based on the reading lock, and releasing the reading lock until the message to be processed is read.
And/or, the message processing module further comprises:
a second information storage sub-module, configured to, if the to-be-processed message is to-be-written information, place the to-be-processed message in a second memory created in the first message broker process, where the second memory is only used to store and write written information of a type corresponding to the to-be-processed message;
a second information notification sub-module, configured to send a second message request to the target processing module based on the first message broker process, so that the target processing module performs write processing on the to-be-processed message in the second memory based on the second message request, and notifies the first message broker process that the write processing is completed;
and the second information processing submodule is used for the target processing module to apply for a write lock to the first message agent process based on the second message request, and lock the target processing module based on the write lock until the write-in of the message to be processed is completed, and then release the write lock.
And/or, the first information storage submodule further comprises:
a memory creating unit, configured to create a first memory in the first message broker process;
a memory setting unit, configured to set a message header flag bit and a message tail flag bit of the first memory based on a preset message memory format;
and the storage unit is used for placing the message to be processed in the first memory, finding out the message to be processed through the message header flag bit of the first memory when the message to be processed is read from the first message agent process, and reading the message to be processed.
And/or, the message receiving module further comprises:
the message determining submodule is used for determining a message to be processed which needs to be sent to the second host computer based on the subscription information of the second host computer;
if the second host subscribes to the local machine, updating the IP address of the second host and the subscription information thereof in a local area network communication table of a first message agent process; the first message agent process feeds back subscription information to the target processing module based on the updated IP address of the second host computer, so that the target processing module can determine a message to be processed which needs to be sent to the second host computer;
and the message publishing sub-module is used for publishing the message to be processed to a second message agent process of the second host based on the first message agent process.
And/or, the device further comprises:
a message format determining module, configured to determine a subscription message between the second hosts based on a preset communication message format;
the communication message format comprises an IP address of the second host, a message type of the subscription message, and information of a sender or a receiver of the subscription message.
The specific implementation of the process communication apparatus of the present application is substantially the same as the embodiments of the process communication method, and is not described herein again.
The embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, which can be further executed by one or more processors for implementing the steps of the process communication method described in any one of the above.
The specific implementation of the storage medium of the present application is substantially the same as that of each embodiment of the process communication method described above, and is not described herein again.
The present application also provides a computer program product, comprising a computer program which, when executed by a processor, implements the steps of the process communication method described above.
The specific implementation of the computer program product of the present application is substantially the same as the embodiments of the process communication method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by a software plus hardware platform, and may also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A process communication method applied to a first host, the method comprising:
determining a message to be processed based on a first message agent process of a local machine, and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
and informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process.
2. The process communication method of claim 1, wherein the pending message is information sent by the receiving second host based on its second message broker process, the native based first message broker process determining the pending message and determining a target processing module for the pending message, the method comprising:
receiving a message to be processed sent by a second host based on a second message agent process of the second host;
and determining a target processing module of the message to be processed according to a local communication table in a first message agent process, wherein the target processing module is registered with the first message agent process, and the type of processing information and the process ID thereof are clarified in the local communication table in the first message agent process.
3. The process communication method of claim 1, wherein the proxying process notifying the target processing module to process the pending message based on the first message, further comprising:
if the message to be processed is the message to be read, the message to be processed is placed in a first memory created in the first message agent process, and the first memory is only used for storing and writing the read information of the type corresponding to the message to be processed;
sending a first message request to the target processing module based on the first message agent process, so that the target processing module reads the message to be processed from the first memory based on the first message request and a preset callback function;
and the target processing module applies for a reading lock to the first message agent process based on the first message request, locks the message to be processed based on the reading lock, and releases the reading lock until the message to be processed is read.
4. The process communication method of claim 1, wherein the proxying process notifying the target processing module to process the pending message based on the first message, further comprising:
if the message to be processed is the message to be written, the message to be processed is placed in a second memory created in the first message agent process, and the second memory is only used for storing and writing the written information of the type corresponding to the message to be processed;
sending a second message request to the target processing module based on the first message agent process, so that the target processing module performs write processing on the message to be processed in the second memory based on the second message request, and notifies the first message agent process of completion of write;
and the target processing module applies for a write lock to the first message agent process based on the second message request, locks the target processing module based on the write lock, and releases the write lock until the writing of the message to be processed is completed.
5. The process communication method according to claim 3, wherein if the to-be-processed message is to-be-read information, placing the to-be-processed message in a first memory created in the first message broker process, the first memory being only used for storing and writing read information of a type corresponding to the to-be-processed message, includes:
creating a first memory in the first message agent process;
setting a message head marker bit and a message tail marker bit of the first memory based on a preset message memory format;
and placing the message to be processed in the first memory, finding out the message to be processed through the message header flag bit of the first memory when reading the message to be processed from the first message agent process, and reading the message to be processed.
6. The process communication method of claim 1, wherein the pending message is information that is determined locally to need to be sent to the second host based on subscription information of the second host, and wherein the locally-based first message broker process determines the pending message and determines the second message broker process for the pending message, comprising:
determining a message to be processed which needs to be sent to the second host based on the subscription information of the second host;
if the second host subscribes to the local machine, updating the IP address of the second host and the subscription information thereof in a local area network communication table of the first message agent process; the first message agent process feeds back subscription information to the target processing module based on the updated IP address of the second host computer, so that the target processing module can determine a message to be processed which needs to be sent to the second host computer;
and issuing the message to be processed to a second message agent process of the second host based on the first message agent process.
7. The process communication method of claim 6, wherein the method further comprises:
determining subscription information between the second hosts based on a preset communication information format;
the communication message format comprises an IP address of the second host, a message type of the subscription message, and information of a sender or a receiver of the subscription message.
8. A process communication apparatus, comprising:
the message receiving module is used for determining a message to be processed based on a first message agent process of a local computer and determining a target processing module or a second message agent process of the message to be processed; the message to be processed is the received information sent by the second host based on the second message agent process of the second host, or the message to be processed is the information which is determined to be sent to the second host by the local computer based on the subscription information of the second host;
and the message processing module is used for informing the target processing module or a second message agent process to process the message to be processed based on the first message agent process.
9. A process communication device, comprising a memory, a processor and a process communication program stored on the memory and executable on the processor, the processor implementing the steps of the process communication method of any one of claims 1 to 7 when executing the process communication program.
10. A computer-readable storage medium, characterized in that a process communication program is stored thereon, which, when being executed by a processor, implements the steps of the process communication method according to any one of claims 1 to 7.
CN202211515089.6A 2022-11-29 2022-11-29 Process communication method, device, equipment and storage medium Pending CN115883654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211515089.6A CN115883654A (en) 2022-11-29 2022-11-29 Process communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211515089.6A CN115883654A (en) 2022-11-29 2022-11-29 Process communication method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115883654A true CN115883654A (en) 2023-03-31

Family

ID=85764696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211515089.6A Pending CN115883654A (en) 2022-11-29 2022-11-29 Process communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115883654A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6405266B1 (en) * 1998-11-30 2002-06-11 Hewlett-Packard Company Unified publish and subscribe paradigm for local and remote publishing destinations
CN101674326A (en) * 2009-09-21 2010-03-17 中兴通讯股份有限公司 Method for realizing interprocess synchronization communication and agent unit
CN104133728A (en) * 2013-12-16 2014-11-05 腾讯科技(深圳)有限公司 Method and device for communication between processes
CN107102901A (en) * 2016-02-23 2017-08-29 华为技术有限公司 A kind of task processing method and device
CN109347922A (en) * 2018-09-20 2019-02-15 青岛海信网络科技股份有限公司 A kind of read method and device for supporting Metro Network real time data processing
CN111420396A (en) * 2020-03-19 2020-07-17 网易(杭州)网络有限公司 Cross-process communication method between game characters, storage medium and processor
CN112839065A (en) * 2019-11-22 2021-05-25 北京小米移动软件有限公司 Information processing method and device, first equipment and storage medium
CN113849326A (en) * 2021-09-30 2021-12-28 长春一汽富晟集团有限公司 Method for designing software inter-process communication mechanism in automotive electronic SoC
CN114020484A (en) * 2021-09-27 2022-02-08 湖南亿联无限科技有限公司 Multi-channel interprocess communication software system
CN114385374A (en) * 2021-11-03 2022-04-22 深圳市康必达中创科技有限公司 Message processing method and device based on message middleware and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6405266B1 (en) * 1998-11-30 2002-06-11 Hewlett-Packard Company Unified publish and subscribe paradigm for local and remote publishing destinations
CN101674326A (en) * 2009-09-21 2010-03-17 中兴通讯股份有限公司 Method for realizing interprocess synchronization communication and agent unit
CN104133728A (en) * 2013-12-16 2014-11-05 腾讯科技(深圳)有限公司 Method and device for communication between processes
CN107102901A (en) * 2016-02-23 2017-08-29 华为技术有限公司 A kind of task processing method and device
CN109347922A (en) * 2018-09-20 2019-02-15 青岛海信网络科技股份有限公司 A kind of read method and device for supporting Metro Network real time data processing
CN112839065A (en) * 2019-11-22 2021-05-25 北京小米移动软件有限公司 Information processing method and device, first equipment and storage medium
CN111420396A (en) * 2020-03-19 2020-07-17 网易(杭州)网络有限公司 Cross-process communication method between game characters, storage medium and processor
CN114020484A (en) * 2021-09-27 2022-02-08 湖南亿联无限科技有限公司 Multi-channel interprocess communication software system
CN113849326A (en) * 2021-09-30 2021-12-28 长春一汽富晟集团有限公司 Method for designing software inter-process communication mechanism in automotive electronic SoC
CN114385374A (en) * 2021-11-03 2022-04-22 深圳市康必达中创科技有限公司 Message processing method and device based on message middleware and storage medium

Similar Documents

Publication Publication Date Title
CN110597595B (en) Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
US8923823B1 (en) System for delivering and confirming receipt of notification messages across different notification media
CN102811379B (en) A kind of television set, message treatment method and system
CN110851253B (en) Remote operation and maintenance method, system, storage medium and electronic equipment
CN107368311B (en) Method and system for communication among multiple fragments
US20140229504A1 (en) System and method for managing database in data distribution service
CN106874334B (en) Data processing method and device and information processing system
CN102263830B (en) Apparatus, and associated method, for facilitating background processing of push content
CN108055322B (en) Request message processing method and device
EP3703337B1 (en) Mobile edge host-machine service notification method and apparatus
CN110830581A (en) Method for improving block chain response speed, block chain application system and related equipment
US10791075B2 (en) System for delivering notification messages across different notification media
CN114595186B (en) Inter-core communication method and communication device of multi-core processor
CN112540773B (en) Cloud game installation method and device, electronic equipment and storage medium
CN108519922B (en) Information pushing method and device, terminal equipment and computer readable storage medium
CN108882053B (en) Bullet screen message distribution method, device, equipment and storage medium
CN108540408B (en) Openstack-based distributed virtual switch management method and system
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN113766027B (en) Method and equipment for forwarding data by stream replication cluster node
CN115883654A (en) Process communication method, device, equipment and storage medium
CN116233217B (en) Page jump method and device based on route, electronic equipment and storage medium
CN103442031A (en) Data updating method and display device
CN110730173B (en) Information interaction method and device
CN115442420A (en) Block chain cross-chain service management method and device
CN109309583B (en) Information acquisition method and device based on distributed system, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination