CN114979241A - Communication method, communication apparatus, storage medium, and electronic device - Google Patents

Communication method, communication apparatus, storage medium, and electronic device Download PDF

Info

Publication number
CN114979241A
CN114979241A CN202210623208.3A CN202210623208A CN114979241A CN 114979241 A CN114979241 A CN 114979241A CN 202210623208 A CN202210623208 A CN 202210623208A CN 114979241 A CN114979241 A CN 114979241A
Authority
CN
China
Prior art keywords
service
target
communication
message
communication message
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
CN202210623208.3A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210623208.3A priority Critical patent/CN114979241A/en
Publication of CN114979241A publication Critical patent/CN114979241A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The method comprises the steps of obtaining a first communication message to be sent by a first message sending node, determining a target process identifier and a target service identifier of a target process for receiving the first communication message through a first service process associated with the first message sending node, and sending the first communication message to the target service process through the first service process based on the target service identifier, wherein the target service process is used for determining the target process corresponding to the target process identifier and sending the first communication message to the target process. Therefore, in the communication process, the network address of the target process does not need to be specified, the overhead of a communication system is reduced, and the learning cost of developers is reduced. When a new process is added in the communication system, the configuration parameters of other existing processes can not be changed, and the dynamic expansion of the communication system is facilitated.

Description

Communication method, communication apparatus, storage medium, and electronic device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a communication method, an apparatus, a storage medium, and an electronic device.
Background
Inter-process communication (IPC) refers to communication between processes within one device or communication between processes of different devices. In the related art, inter-process communication between different devices is generally achieved by TCP (Transmission Control Protocol)/IP (Internet Protocol) or HTTP (Hyper Text Transfer Protocol). However, as the scale of the communication systems such as the distributed system and the embedded system is larger and larger, the architecture is more and more complex, and the overhead of searching the address for the system is too large, so that the interprocess communication cannot be efficiently established.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
According to a first aspect of the embodiments of the present disclosure, there is provided a communication method applied to a first electronic device, the method including:
acquiring a first communication message to be sent by a first message sending node;
determining, by a first service process associated with the first message sending node, a target process identifier and a target service identifier of a target process that receives the first communication message;
and sending the first communication message to a target service process through the first service process based on the target service identifier, wherein the target service process is used for determining a target process corresponding to the target process identifier and sending the first communication message to the target process.
According to a second aspect of the embodiments of the present disclosure, there is provided a communication apparatus applied to a first electronic device, the apparatus including:
the acquisition module is configured to acquire a first communication message to be sent by a first message sending node;
a determination module configured to determine, by a first service process associated with the first message sending node, a target process identifier and a target service identifier of a target process that receives the first communication message;
a sending module configured to send, by the first service process, the first communication message to a target service process based on the target service identifier, where the target service process is configured to determine a target process corresponding to the target process identifier and send the first communication message to the target process.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processing apparatus, implements the communication method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the communication method of the first aspect.
Based on the above technical solution, by specifying, in the first communication message, the target process identifier of the target process that receives the first communication message and the target service identifier of the service process that is used to forward the first communication message to the target process, the first service process may send the first communication message to the corresponding target process according to the target process identifier and the target service identifier in the first communication message, thereby implementing local process communication of the electronic device and remote communication between different electronic devices. In the communication process, IP information of a target process does not need to be specified, so that the overhead of a communication system is reduced, and the learning cost of developers is reduced. When a new process is added in the communication system, the configuration parameters of other existing processes are not changed, and the dynamic expansion of the communication system is facilitated.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a block diagram of a communication system provided in accordance with an exemplary embodiment;
FIG. 2 is a flow chart of a method of communication provided in accordance with an exemplary embodiment;
FIG. 3 is a block diagram of a message packet provided in accordance with an exemplary embodiment;
FIG. 4 is a flow chart of a method of communication provided in accordance with another exemplary embodiment;
fig. 5 is a schematic block diagram of a communication system provided in accordance with another exemplary embodiment;
FIG. 6 is a timing diagram providing communication of processes running within the same electronic device in accordance with an exemplary embodiment;
FIG. 7 is a timing diagram providing communication of processes running on different electronic devices in accordance with an example embodiment;
FIG. 8 is a block diagram of a communication device provided in accordance with an exemplary embodiment;
fig. 9 is a schematic structural diagram of an electronic device provided in accordance with an example embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a schematic block diagram of a communication system provided in accordance with an example embodiment. As shown in fig. 1, the communication method proposed by the present disclosure may be applied to a communication system including a first electronic device 101 and a second electronic device 102, where the first electronic device 101 includes at least one first service process, and the first service process communicates with processes running in the first electronic device 101, such as process a and process B in the first electronic device 101. At least one second service process is included in the second electronic device 102, which second service process communicates with processes running in the second electronic device 102, such as process C and process D in the second electronic device. The process and the service process can communicate in a memory sharing mode and the like.
The inter-process communication may be a communication between different processes running within the same electronic device, e.g. process a and process B in the first electronic device 101. When the process A needs to send the communication message to the process B, the process A edits the communication message, and the first service process acquires the communication message which needs to be sent by the process A and sends the communication message to the process B.
The inter-process communication may also be a communication between processes running on different electronic devices, e.g. process a of the first electronic device 101 communicates with process C of the second electronic device 102. When the process a needs to send a communication message to the process C, the process a edits the communication message, the first service process receives the communication message to be sent by the process a and establishes a communication connection with the second service process through the network 103, the first service process forwards the communication message to the second service process, and then the second service process forwards the communication message to the process C.
It is worth mentioning that a service process (such as a first service process or a second service process) is provided in the electronic device, and the service process is configured to receive a communication message sent by a process running in the electronic device and forward the communication message to a target process receiving the communication message, and to receive a communication message sent by another process and send the communication message to a process running in the electronic device.
It should be understood that the communication system shown in the above embodiments is only used for exemplifying the application scenario of the communication method proposed by the present disclosure, and is not used for limiting the specific structure of the communication system. For example, a service process may be included in an electronic device for managing communications of all processes within the electronic device, or a plurality of service processes, each for managing communications of a different process within the electronic device.
Several embodiments of the present disclosure are described in detail below.
Fig. 2 is a flow chart of a communication method provided in accordance with an example embodiment. As shown in fig. 2, an embodiment of the present disclosure provides a communication method, which is applied to a first electronic device and specifically can be executed by a communication apparatus disposed in the first electronic device, where the communication apparatus can be implemented by software and/or hardware and is configured in the first electronic device. As shown in fig. 2, the method may include the following steps.
In step S210, a first communication message to be sent by the first message sending node is obtained.
Here, when a first message sending node running in the first electronic device needs to send a first communication message to other message nodes, the first electronic device may acquire, through the first service process, the first communication message edited by the first message sending node. Wherein the first messaging node may be a process running on the first electronic device. The first service process and the first message sending node may perform inter-process communication in a manner of sharing a memory, and based on the inter-process communication, the first service process may obtain a first communication message to be sent by the first message sending node. Of course, based on the inter-process communication, the first service process may also send a communication message to the first message sending node.
It is worth mentioning that the first service process is configured to obtain a process identifier corresponding to a message sending node where the first service process runs in the same electronic device, and establish inter-process communication between the first service process and the message sending node based on the process identifier, so as to implement communication between the first service process and the message sending node through the inter-process communication.
It will be appreciated that the need for the first messaging node to send communication messages to other processes means that the first messaging node needs to propagate or exchange information with other processes. For example, a first messaging node may need to pass its data to another process, such as communication between game characters across processes. Or the first message sending node sends a message to another process to inform it that some event has occurred, such as informing the parent process when the process terminates.
In step S220, a target process identifier and a target service identifier of a target process receiving the first communication message are determined by a first service process associated with the first message sending node.
Here, the message sending nodes running on the first electronic device may each be associated with a corresponding service process. Certainly, a first service process may be run in the first electronic device, and the first service process may be capable of acquiring a process identifier corresponding to a message sending node running in the first electronic device, and establishing inter-process communication with the corresponding message sending node based on the process identifier.
After the first service process obtains the first communication message, the first service process determines a target process identifier and a target service identifier corresponding to a target process receiving the first communication message according to the first communication message. The target process may be a process running on the first electronic device, or may be a process running on the second electronic device.
A target process identifier indicating a target process that receives the first communication message and a target service identifier indicating a target service process that forwards the first communication message to the target process may be included in the first communication message.
It should be appreciated that the service identifiers of different service processes are globally unique in the communication system, e.g., the service identifiers of a first service process and a second service process are different in the communication system. The process identifiers of different processes running in the same electronic device are unique within the electronic device, e.g., process a in a first electronic device is different from the process identifier of process B, while the process identifier of process a of the first electronic device may be the same as the process identifier of process C of a second electronic device.
Fig. 3 is a block diagram of a message packet provided in accordance with an example embodiment. As shown in fig. 3, the message packet of the communication message may include a message type (MsgType), an identifier of the destination process (DestId), an identifier of the sending process (SrcId), a message length (msgtlength), and a message content (MsgContent).
The identifier of the destination process may include a destination process identifier and a destination service identifier of a destination process that receives the first communication message to indicate the destination process that received the message packet and a service process responsible for forwarding the message packet to the destination process. For example, the identifier of the destination process may be represented as a node _ id including "net _ id | server _ id", where server _ id represents the target process identifier of the target process and net _ id represents the target service identifier of the service process responsible for forwarding the communication message to the target process. For example, server _ id is a 16-bit integer, net _ id is a 16-bit integer, and node _ id is a 32-bit integer.
The identifier of the sending process may include a process identifier corresponding to a first message sending node sending the message packet and a target service identifier of a first service process responsible for receiving the communication message sent by the first message sending node, and the identifier of the sending process may also be denoted as a node _ id.
When the first message sending node needs to send the communication message to other processes, the first message sending node generates a first communication message according to the structure of the message packet, the first service process obtains the first communication message through inter-process communication with the first message sending node, and determines a target process identifier and a target service identifier of a target process for receiving the first communication message from the first communication message.
In some implementations, the first service process may read corresponding service name information from the first communication message, and determine the target process identifier and the target service identifier according to the service name information.
The target process identifier and the target service identifier stored in the first communication message are obtained by the first message sending node from a registry according to the obtained service name information of the target process for representing and receiving the first communication message, and the registry stores the service name message of each process and the process identifier and the service identifier corresponding to the service name message.
Here, the service name information of the processes may refer to functions or services that the processes can provide, and the service name information of the processes providing the same functions or services may be the same. For each process in the electronic device, the process registers its corresponding service name information and a target process identifier and a target service identifier corresponding to the service name information in a registry. For example, each process in the communication system has a globally unique node _ id that includes the server _ id of the process and the net _ id of the serving process communicating with the process. Each process may Register its service name information and node _ id in a registry (Register Center). The registry may be a Zookeeper (a distributed application coordination service), among others.
When the first message sending node needs to send the communication message, the first message sending node may receive service name information, which is sent by a user and indicates a target process receiving the first communication message, then the first message sending node searches a target process identifier and a target service identifier corresponding to the target process from the registry according to the service name information, and writes the searched target process identifier and target service identifier into the first communication message.
It should be understood that since the service name information of the processes providing the same function or service may be the same, the process corresponding to the service name information, which is queried by the first message sending node, may include one or more processes. When the number of the queried processes is plural, the first message sending node may select a target process from the plural processes according to the queried operating states of the plural processes. For example, a process that handles a smaller number of events is selected from the plurality of queried processes as the process that receives the first communication message.
Thus, the user does not need to specify the node _ id of the target process but the service name information of the target process when the first message sending node sends the communication message. After the first message sending node acquires the service name information of the target process, the node _ id of the target process corresponding to the service name information is searched from the registration center according to the service name information, so that the target process identifier of the target process receiving the first communication message and the target service identifier of the target service process forwarding the first communication message to the target process are acquired.
In step S230, the first communication message is sent to a target service process by the first service process based on the target service identifier, where the target service process is configured to determine a target process corresponding to the target process identifier, and send the first communication message to the target process.
Here, after the first service process obtains the target process identifier of the target process that receives the first communication message and the service identifier of the target service process from the first communication message, the first service process sends the first communication message to the target service process that matches the target service identifier according to the target service identifier. And after receiving the first communication message, the target service process determines a target process corresponding to the target process identifier according to the target process identifier, and sends the first communication message to the target process.
It should be noted that the target service process may be a service process running on the first electronic device, for example, the target service process is the first service process itself. The target service process may also be a service process running on the second electronic device. Since each service process is globally unique throughout the communication system, the unique service process can be determined based on the target service identifier on the first communication message.
For example, after determining the target service identifier, the first service process further determines whether the service process corresponding to the target service identifier is the first service process itself, if so, the target process is determined to be a process running in the first electronic device, and the first service process sends the first communication message to the target process according to the target process identifier of the target process; if not, determining that the target process is not a process in the first electronic device, and sending the first communication message to a second service process of the second electronic device by the first service process so that the second service process sends the first communication message to the target process.
Therefore, by specifying the target process identifier of the target process receiving the first communication message and the target service identifier of the service process for forwarding the first communication message to the target process in the first communication message, the first service process can send the first communication message to the corresponding target process according to the target process identifier and the target service identifier in the first communication message, and local process communication of the electronic device and remote communication between different electronic devices are realized. In the communication process, IP information of a target process does not need to be specified, so that the overhead of a communication system is reduced, and the learning cost of developers is reduced. When a new process is added in the communication system, the configuration parameters of other existing processes are not changed, and the dynamic expansion of the communication system is facilitated.
In some implementation embodiments, before step S210, a first shared memory may be further created, where the first shared memory is used to store a first communication message to be sent by a first message sending node. Step S210 may be: and accessing the first shared memory through the first service process to acquire a first communication message to be sent by the first message sending node.
Here, the first shared memory may be created by the first message sending node, and when the first electronic device creates the first message sending node, the first message sending node creates the first shared memory, where the first shared memory is used to store a first communication message to be sent by the first message sending node. It should be noted that inter-process communication between the first message sending node and the first service process may be implemented through the first shared memory.
When the first message sending node needs to send the communication message, the first message sending node stores the communication message in the first mail box.
It should be understood that, in the first electronic device, each process requiring communication may create its corresponding first email box, and when a process requires sending a communication message, the process edits the communication message and stores the edited communication message in the first email box. The first mailbox may be understood as a ring-shaped lock-free message queue created in the first shared memory, and the message queue may be preferentially read by using a first-in first-out rule, that is, a communication message stored in the first mailbox first.
The first service process may periodically query whether the first mail box of the first message sending node stores the communication message, and when the communication message is stored, the first service process reads the communication message in the first mail box according to a first-in first-out rule and sends the communication message to the target process. And when the communication message in the first mail mailbox is successfully sent, deleting the successfully sent communication message in the first mail mailbox, and if the communication message is not successfully sent, continuing reading the unsuccessfully sent communication message from the first mail mailbox by the first service process.
Therefore, the first communication message to be sent by the first message sending node is stored in the first mail mailbox of the first shared memory, so that the problem that the communication message is lost due to process crash or network problems can be avoided. For example, when the first service process cannot send the first communication message to the target process due to a network problem, after the network is recovered, the first service process may continue to read the first communication message from the first delivery mailbox until the first communication message is successfully sent.
In some implementation implementations, a second communication message sent by a second message sending node to the first message sending node may be further received by the first service process, and the second communication message is stored in the first shared memory.
Here, the second message sending node may be a process running in the first electronic device, or may be a process running in the second electronic device, and the logic of the second message sending node sending the second communication message is identical to the logic of the first message sending node sending the first communication message.
The first service process can realize inter-process communication with the second message sending node through the fourth shared memory, when the second message sending node needs to send the second communication message to the first message sending node, the second message sending node stores the second communication message in a sending mailbox of the fourth shared memory, and the first service process obtains the second communication message through the sending mailbox of the fourth shared memory and stores the second communication message in the first shared memory.
It should be noted that a second inbox may be created in the first shared memory, and the second inbox may be understood as a circular lock-free message queue created in the first shared memory, and the message queue may be preferentially read according to a first-in first-out rule, that is, a communication message first stored in the second inbox.
After the first service process receives a second communication message sent by the second message sending node to the first message sending node, the first service process stores the second communication message in a second inbox of the first shared memory. The first messaging node reads the second communication message from the second inbox.
Thus, by storing the second communication message in the second inbox, the problem of communication message loss due to a process crash or network problems may be avoided.
In some implementation embodiments, before step S230, when the target service process is a second service process running in a second electronic device, the first communication message is stored in a second shared memory by the first service process, where the second shared memory is a block created by the first service process and used for storing communication messages.
Here, after determining the target process identifier and the target service identifier indicated in the first communication message, the first service process may determine the corresponding target service process according to the target service identifier, since the service identifiers of the different service processes are globally unique in the communication system. When the target service process is determined to be a second service process running in the second electronic device according to the target service identifier, the first service process stores the first communication message in the second shared memory. The second shared memory is a block created by the first service process for storing the communication message.
For example, a second sending mailbox for storing the communication message to be sent by the second message sending node may be created in the second shared memory. The second sending mailbox may be understood as a ring-shaped lock-free message queue created in the second shared memory, and the message queue may be preferentially read by adopting a first-in first-out rule, that is, the communication message stored in the second sending mailbox first.
And the first service process reads the first communication message from a second mailbox of the second shared memory and sends the first communication message to a second service process running in the second electronic equipment according to the target service identifier in the first communication message.
Therefore, the first service process can avoid the problem that the communication message is lost due to process crash or network problems among the service processes by storing the first communication message required to be sent by the first message sending node in the second sending mailbox in the second shared memory, and the stability of the communication system is ensured. For example, even if the network between the first electronic device and the second electronic device is interrupted, the first service process can read the first communication message from the second mailbox of the second shared memory again after the network is recovered until the second service process receives the first communication message, and the first service process deletes the first communication message in the second mailbox.
In some implementation embodiments, in step S230, when the target service process is a second service process running in a second electronic device, network address information of the second service process is obtained according to the target service identifier, inter-process communication between the first service process and the second service process is established according to the network address information, and the first communication message is sent to the second service process through the inter-process communication.
Here, when the first service process determines that the target service process is a second service process running in the second electronic device, the first service process may store the first communication message in a second mail box of the second shared memory, and obtain network address information corresponding to the second service process according to the target service identifier.
In some embodiments, the network address information corresponding to the second service process may be searched from a registry according to the target service identifier, where the registry stores the service identifier of each service process and the network address information corresponding to the service identifier.
Wherein, for each service process in the communication system, the service process registers its corresponding target service identifier and network address information in the registry. Since the target service identifier of each service process is globally unique in the communication system, the corresponding network address information can be acquired from the registry according to the target service identifier indicated in the first communication message.
After the first service process acquires the network address information of the second service process from the registration center, the first service process establishes a communication link between the first service process and the second service process according to the network address information, reads a first communication message from a second mailbox of the second shared memory, and sends the first communication message to the second service process.
After the second service process receives the first communication message, the second service process determines a target process corresponding to the target process identifier in the second electronic device according to the target process identifier indicated in the first communication message, and sends the first communication message to the target process.
Therefore, in the process of process communication of processes running on different electronic devices, the process communication between the different electronic devices can be completed by indicating the target service identifier and the target process identifier, IP information of the target process does not need to be specified, the overhead of a communication system is reduced, and the learning cost of developers is reduced. When a new process is added in the communication system, the configuration parameters of other existing processes can not be changed, and the dynamic expansion of the communication system is facilitated.
In some implementation embodiments, network address information of the second service process may be further recorded in the first service process, where the recorded network address information is used for establishing inter-process communication between the first service process and the second service process according to the recorded network address information of the second service process when the first service process acquires a communication message sent to the second service process next time.
Here, the first service process may write the target service identifier of the second service process and the corresponding network address information into the cache. When the first service process acquires the communication message sent to the second service process again, the network address information of the second service process does not need to be searched in the registration center, and communication connection is established with the second service process according to the network address information recorded in the cache, so that the communication efficiency is improved.
It should be noted that, when the target service process indicated by the target service identifier is the first service process, the first service process does not need to store the first communication message in the second sending mailbox of the second shared memory, but directly sends the first communication message to the target process corresponding to the target process identifier indicated by the first communication message.
It should be appreciated that when the target service process indicated by the target service identifier is the first service process, the target process receiving the first communication message is actually characterized as a process running on the first electronic device.
In some implementations, whether the target service process is a first service process running in the first electronic device or a second service process running in the second electronic device, after the target service process receives the first communication message, the target service process determines a target process corresponding to the target process identifier and sends the first message to the target process.
Illustratively, the target service process stores the first communication message in a third shared memory corresponding to the target process identifier, so that the target process obtains the first communication message from the third shared memory, where the third shared memory is a block created by the target process for storing communication messages.
Here, the third shared memory is used for inter-process communication between the target process and the target service process. The first inbox may be understood as a circular lock-free message queue created in the third shared memory, which may be read preferentially using a first-in-first-out rule, i.e., a communication message stored first in the first inbox.
When the target service process receives a first communication message sent to the target process, the target service process stores the first communication message in a first inbox of a third shared memory, and the target process reads the first communication message from the first inbox, so that inter-process communication is achieved.
Therefore, the communication message is stored in the first inbox of the first shared memory, so that the problem that the communication message is lost due to process crash or network problems can be avoided.
Fig. 4 is a flow chart of a method of communication provided in accordance with another example embodiment. As shown in fig. 4, the communication method may include the following steps.
In step S410, a first communication message to be sent by the first message sending node is acquired.
Here, the detailed description about the specific implementation of step S410 has been already described in the above embodiments, and is not repeated herein.
In step S420, a target process identifier and a target service identifier of a target process receiving the first communication message are determined by a first service process associated with the first message sending node.
Here, the detailed description about the specific implementation of step S420 has been given in the above embodiments, and is not repeated herein.
In step S430, it is determined whether the target service process corresponding to the target service identifier is the first service process.
Here, the service process in the electronic device is configured to manage communication of all processes running in the electronic device, each service process has a globally unique target service identifier in the communication system, and the first service process may determine, according to the target service identifier in the obtained first communication message, whether the target service process corresponding to the target service identifier is the first service process. For example, when the target service identifier contained in the first communication message is the service identifier of the first service process, the target service process is determined to be the first service process. And when the target service identifier contained in the first communication message is the service process running in the other electronic equipment, determining that the target service process is a second service process running on the second electronic equipment.
In step S440, when the target service process is a second service process running on the second electronic device, network address information of the second service process corresponding to the target service identifier is acquired.
Here, the target service process is a second service process running on the second electronic device, and the target process for receiving the first communication message is a process running on the second electronic device. The first service process acquires network address information of the second service process.
In step S450, the first communication message is sent to the second service process by the first service process according to the network address information, so that the second service process sends the first communication message to a target process according to the target process identifier.
Here, after the first service process acquires the network address information of the second service process, the first service process establishes a communication link with the second service process according to the network address information, and sends a first communication message to the second service process, so that the second service process forwards the first communication message to the target process.
In step S460, when the target service process is the first service process, forwarding the first communication message to the target process through the first service process according to the target process identifier.
Here, when the target service process is the first service process, the target process receiving the first communication message is characterized as a process running in the first electronic device. The first service process sends the first communication message to the target process according to the target process identifier in the first communication message.
Therefore, in the process of local process communication of the electronic equipment or process communication of different electronic equipment, IP information of a target process does not need to be specified, the overhead of a communication system is reduced, and the learning cost of developers is reduced. When a new process is added in the communication system, the configuration parameters of other existing processes are not changed, and the dynamic expansion of the communication system is facilitated.
The above-described embodiment will be described in detail with reference to fig. 5, 6, and 7.
Fig. 5 is a schematic block diagram of a communication system provided in accordance with another exemplary embodiment. As shown in fig. 5, the communication system includes a first electronic device 501, a second electronic device 502, and a registry 503. The first electronic device 501 and the second electronic device 502 are respectively connected to the registry 503 in a communication manner, and the service processes in the first electronic device 501 and the second electronic device 502 register their respective network address information in the registry 503. A service process is provided in each of the first electronic device 501 and the second electronic device 502, and the service process is used for managing processes that need to communicate in the electronic devices. For example, a first service process manages process a and process B, and a second service process manages process C and process D. Each process needing communication creates an inbox and an outgoing mailbox in the shared memory, the inbox is used for receiving communication messages sent by other processes, and the outgoing mailbox is used for storing the communication messages needing to be sent by the processes. The service process also creates a sending mailbox in the shared memory, and the sending mailbox is used for storing the communication messages sent to other electronic equipment.
The communication process between the processes running in the same electronic equipment is as follows:
the process a writes the communication message into the dispatch mailbox of the process a, the first service process reads the communication message from the dispatch mailbox of the process a, and determines that the communication message is sent to the process B running in the first electronic device 501 according to the target service identifier and the target process identifier in the communication message, then the first service process writes the communication message into the inbox of the process B, and the process B reads the communication message from the corresponding inbox.
The communication process between the processes running on different electronic devices is as follows:
the process a writes the communication message into the sending mailbox of the process a, the first service process reads the communication message from the sending mailbox of the process a, and determines that the communication message is sent to the process C of the second electronic device 501 according to the target service identifier and the target process identifier in the communication message, then the first service process writes the communication message into the receiving mailbox of the first service process, reads the communication message from the receiving mailbox of the first service process, and establishes a communication connection with the second service process through the network 504 and sends the communication message to the second service process, according to the network address information of the second service process, which is acquired from the registration center 503. And the second service process receives the communication message, determines that the communication message is sent to the process C, writes the communication message into an inbox of the process C, and reads the communication message from the inbox.
FIG. 6 is a timing diagram providing communication of processes running within the same electronic device according to an example embodiment. As shown in fig. 6, the first service process starts, creates, or loads a shared memory. And starting the process A and the process B, and creating or loading the shared memory as a message queue. The first service process then initializes the message queues of the respective processes in the first electronic device 601. When the process A needs to send the communication message, the process A writes the communication message into a sending mailbox of the process A, then the first service process traverses the sending mailboxes of the processes, and the first service process finds that the communication message in the sending mailbox of the process A is sent to the process B running in the first electronic device, and then the first service process writes the communication message into an receiving mailbox of the process B. And the process B reads the inbox of the process B and receives the communication message.
FIG. 7 is a timing diagram providing communication of processes running on different electronic devices according to an example embodiment. As shown in fig. 7, the first service process and the second service process register respective network address information in a registry. And starting the first service process and the second service process, and creating or loading the corresponding shared memory. And starting the process A and the process C, and creating or loading the corresponding shared memory as a message queue. And respectively initializing the message queues of the corresponding processes by the first service process and the second service process. When the process A needs to send the communication message, the process A writes the communication message into a sending mailbox of the process A, then the first service process traverses the sending mailboxes of the processes, and the first service process finds that the communication message in the sending mailbox of the process A is sent to the process C running in the second electronic device, and then the first service process writes the communication message into the sending mailbox of the first service process. The first service process inquires network address information of a second service process corresponding to a target service identifier from a registry according to the target service identifier in the communication message, establishes network connection between the first electronic equipment and the second electronic equipment according to the network address information, and sends the communication message to the second service process. And the second service process receives the communication message, determines that the communication message needs to be sent to the process C according to the target process identifier on the communication message, writes the communication message into the inbox of the process C, and reads the inbox of the process C to receive the communication message.
Fig. 8 is a block diagram of a communication device provided in accordance with an example embodiment. As shown in fig. 8, an embodiment of the present disclosure provides a communication apparatus 1300, where the communication apparatus 1300 may be applied to a first electronic device, and the apparatus 1300 may include:
an obtaining module 1301, configured to obtain a first communication message to be sent by a first message sending node;
a determining module 1302 configured to determine, by a first service process associated with the first message sending node, a target process identifier and a target service identifier of a target process that receives the first communication message;
a sending module 1303, configured to send, by the first service process, the first communication message to a target service process based on the target service identifier, where the target service process is configured to determine a target process corresponding to the target process identifier, and send the first communication message to the target process.
Optionally, the apparatus 1300 further comprises
A creating module configured to create a first shared memory, where the first shared memory is used to store a first communication message to be sent by the first message sending node.
The obtaining module 1301 is specifically configured to:
and accessing the first shared memory through the first service process to acquire a first communication message to be sent by the first message sending node.
Optionally, the apparatus 1300 further comprises:
the first storage module is configured to store the first communication message in a second shared memory through the first service process when the target service process is a second service process running in a second electronic device, where the second shared memory is a block created by the first service process and used for storing communication messages.
Optionally, the determining module 1302 includes:
the acquiring subunit is configured to acquire, when the target service process is a second service process running in a second electronic device, network address information of the second service process according to the target service identifier;
and the network connection unit is configured to establish inter-process communication between the first service process and the second service process according to the network address information, and send the first communication message to the second service process through the inter-process communication.
Optionally, the obtaining subunit is specifically configured to:
and searching the network address information corresponding to the second service process from a registration center according to the target service identifier, wherein the registration center stores the service identifier of each service process and the network address information corresponding to the service identifier.
Optionally, the apparatus 1300 further comprises:
the recording module is configured to record network address information of the second service process in the first service process, wherein the recorded network address information is used for establishing inter-process communication between the first service process and the second service process according to the recorded network address information of the second service process when the first service process acquires a communication message sent to the second service process next time.
Optionally, the sending module 1303 is specifically configured to:
and storing the first communication message in a third shared memory corresponding to the target process identifier, so that the target process acquires the first communication message from the third shared memory, wherein the third shared memory is a block created by the target process and used for storing the communication message.
Optionally, the apparatus 1300 further comprises:
a receiving module configured to receive, through the first service process, a second communication message sent by a second message sending node to the first message sending node;
a second storage module configured to store the second communication message in the first shared memory.
Optionally, the determining module 1302 includes:
a name reading unit configured to read corresponding service name information from the first communication message;
a determining subunit configured to determine the target process identifier and the target service identifier according to the service name information;
the target process identifier and the target service identifier stored in the first communication message are obtained by the first message sending node from a registry according to the obtained service name information of the target process for representing and receiving the first communication message, and the registry stores the service name message of each process and the process identifier and the service identifier corresponding to the service name message.
The detailed description of the implementation of each functional module of the apparatus in the above embodiments has been given in detail in relation to the method, and is not repeated here.
Referring now to FIG. 9, an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a first communication message required to be sent by a first process; according to the first communication message, determining a process identifier of a target process receiving the first communication message and a service identifier of a service process for forwarding the first communication message to the target process, wherein the service process and the target process are located on the same electronic device; and sending the first communication message to the target process according to the process identifier and the service identifier.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (12)

1. A communication method applied to a first electronic device, the method comprising:
acquiring a first communication message to be sent by a first message sending node;
determining, by a first service process associated with the first message sending node, a target process identifier and a target service identifier of a target process that receives the first communication message;
and sending the first communication message to a target service process through the first service process based on the target service identifier, wherein the target service process is used for determining a target process corresponding to the target process identifier and sending the first communication message to the target process.
2. The communication method according to claim 1, wherein before the obtaining the first communication message to be sent by the first message sending node, the method further comprises:
creating a first shared memory, wherein the first shared memory is used for storing a first communication message to be sent by the first message sending node;
the acquiring a first communication message to be sent by a first message sending node includes:
and accessing the first shared memory through the first service process to acquire a first communication message to be sent by the first message sending node.
3. The communication method of claim 1, wherein before sending the first communication message to a target service process by the first service process based on the target service identifier, the method further comprises:
when the target service process is a second service process running in a second electronic device, storing the first communication message in a second shared memory through the first service process, wherein the second shared memory is a block created by the first service process and used for storing the communication message.
4. The communication method according to claim 1, wherein the sending, by the first service process, the first communication message to a target service process based on the target service identifier comprises:
when the target service process is a second service process running in second electronic equipment, acquiring network address information of the second service process according to the target service identifier;
and establishing inter-process communication between the first service process and the second service process according to the network address information, and sending the first communication message to the second service process through the inter-process communication.
5. The communication method according to claim 4, wherein the obtaining the network address information of the second service process comprises:
and searching the network address information corresponding to the second service process from a registration center according to the target service identifier, wherein the registration center stores the service identifier of each service process and the network address information corresponding to the service identifier.
6. The communication method of claim 5, wherein the method further comprises:
recording the network address information of the second service process in the first service process, wherein the recorded network address information is used for establishing inter-process communication between the first service process and the second service process according to the recorded network address information of the second service process under the condition that the first service process acquires a communication message sent to the second service process next time.
7. The communication method according to claim 1, wherein the sending the first communication message to the target process comprises:
and storing the first communication message in a third shared memory corresponding to the target process identifier, so that the target process acquires the first communication message from the third shared memory, wherein the third shared memory is a block created by the target process and used for storing the communication message.
8. The communication method of claim 2, wherein the method further comprises:
receiving, by the first service process, a second communication message sent by a second message sending node to the first message sending node;
storing the second communication message in the first shared memory.
9. The communication method according to claim 1, wherein the determining a target process identifier and a target service identifier of a target process receiving the first communication message comprises:
reading corresponding service name information from the first communication message;
determining the target process identifier and the target service identifier according to the service name information;
the target process identifier and the target service identifier stored in the first communication message are obtained by the first message sending node from a registry according to the obtained service name information of the target process for representing and receiving the first communication message, and the registry stores the service name message of each process and the process identifier and the service identifier corresponding to the service name message.
10. A communication apparatus, applied to a first electronic device, the apparatus comprising:
the acquisition module is configured to acquire a first communication message to be sent by a first message sending node;
a determination module configured to determine, by a first service process associated with the first message sending node, a target process identifier and a target service identifier of a target process that receives the first communication message;
a sending module configured to send, by the first service process, the first communication message to a target service process based on the target service identifier, where the target service process is configured to determine a target process corresponding to the target process identifier and send the first communication message to the target process.
11. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processing device, implements the communication method of any one of claims 1 to 9.
12. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the communication method of any one of claims 1 to 9.
CN202210623208.3A 2022-06-01 2022-06-01 Communication method, communication apparatus, storage medium, and electronic device Pending CN114979241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210623208.3A CN114979241A (en) 2022-06-01 2022-06-01 Communication method, communication apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210623208.3A CN114979241A (en) 2022-06-01 2022-06-01 Communication method, communication apparatus, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN114979241A true CN114979241A (en) 2022-08-30

Family

ID=82959950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210623208.3A Pending CN114979241A (en) 2022-06-01 2022-06-01 Communication method, communication apparatus, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN114979241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116244099A (en) * 2023-05-11 2023-06-09 深圳比特微电子科技有限公司 Method and device for communication of processes in embedded system, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123265A (en) * 2013-04-26 2014-10-29 华为技术有限公司 Method and system for communication among multiple kernels
CN109213611A (en) * 2018-08-01 2019-01-15 天津字节跳动科技有限公司 The striding course means of communication, device, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123265A (en) * 2013-04-26 2014-10-29 华为技术有限公司 Method and system for communication among multiple kernels
CN109213611A (en) * 2018-08-01 2019-01-15 天津字节跳动科技有限公司 The striding course means of communication, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116244099A (en) * 2023-05-11 2023-06-09 深圳比特微电子科技有限公司 Method and device for communication of processes in embedded system, electronic equipment and storage medium
CN116244099B (en) * 2023-05-11 2023-09-08 深圳比特微电子科技有限公司 Method and device for communication of processes in embedded system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111711663A (en) Processing method and device for publishing and subscribing services and electronic equipment
CN111581563A (en) Page response method and device, storage medium and electronic equipment
CN113254105B (en) Resource processing method and device, storage medium and electronic equipment
CN111221638B (en) Concurrent task scheduling processing method, device, equipment and medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112787958A (en) Delay message processing method and device
CN111309747A (en) Data synchronization method, system and device
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN111309496A (en) Method, system, device, equipment and storage medium for realizing delay task
CN114979241A (en) Communication method, communication apparatus, storage medium, and electronic device
JP2023522116A (en) INFORMATION DISPLAY METHOD, DEVICE, ELECTRONIC DEVICE AND STORAGE MEDIUM
CN110704050A (en) Module initialization method, device, electronic equipment and computer readable storage medium
CN115134254A (en) Network simulation method, device, equipment and storage medium
CN111338822B (en) Message processing method and device
CN111309366B (en) Method, device, medium and electronic equipment for managing registration core
CN115114051B (en) Node communication method, device, equipment and storage medium
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN111324387A (en) Application task control method, device, terminal and system
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN111314457B (en) Method and device for setting virtual private cloud
CN111294321B (en) Information processing method and device
CN115562892B (en) Redis-based simulation system time management method, system, device and equipment

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