Communication method, communication control method, system and related components of a service system
Patent Information
- Application Number
- CN202211541554.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-12-02
AI Technical Summary
受限于开发语言、网络环境、系统可用性等因素,业务系统之间的通信的实现和维护较为困难
[0035] The present application establishes a communication link between the message server and all service systems. The service ports of the service systems do not need to be exposed. As long as the message server can be connected to each service system, there is no need to consider the requirements of devices such as the network environment, firewall, and routing forwarding between multiple service systems. In the present application, the message server forwards the messages sent by the service systems to the target service systems. While realizing the basic communication of the service systems, the number of communication links is reduced, and the maintenance cost is reduced. When a new service system is accessed, only the message server needs to be updated and configured, and the update cost is greatly reduced.
Smart Images

Figure CN115941793B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication, and in particular to a communication method, a communication control method, a system and related components of a service system. Background Art
[0002] With the development of enterprise services, different service requirements have given rise to different service systems, and the development languages, deployment platforms, and deployed network locations of these service systems are not the same. Limited by factors such as development language, network environment, and system availability, the implementation and maintenance of communication between service systems are relatively difficult.
[0003] Currently, the commonly used communication method is to use the http protocol (Hyper Text Transfer Protocol) to implement point-to-point communication of service systems. At this time, the access end of each service system can be regarded as an http server, so it is required to expose the service port and listen. The exposure of the service port has high requirements for devices such as network environment, firewall, and routing forwarding; point-to-point communication requires the access end of the service system to maintain the connection relationship with other systems for a long time, which has a high maintenance cost under the premise of the short connection http protocol communication. Once a new service system is connected, the configuration of the access end of each service system needs to be modified to communicate with the new service system, and the cost of updating and maintenance is relatively high.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve currently. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a communication method, a communication control method, a system and related components of a service system with lower device requirements and lower costs. The specific solutions are as follows:
[0006] A communication control method of a service system, which is applied to a message server, and the communication control method includes:
[0007] Set a service program interface that allows external access on the message server, so that the connection program interfaces of all the service systems can perceive the service program interface and send connection requests according to the service program interface;
[0008] When receiving the connection request sent by the connection program interface of any one of the service systems, establish a communication link between the connection program interface and the message server according to the connection request;
[0009] When receiving the message sent by the corresponding service system through the connection program interface via any of the communication links, determine the service system that receives the message as the target service system according to the message, and send the message to the target service system through the communication link corresponding to the target service system and the connection program interface.
[0010] Preferably, before sending the message to the target service system through the communication link corresponding to the target service system and the connection program interface, it further includes:
[0011] Temporarily store the message in the message buffer of the message server;
[0012] The process of sending the message to the target service system through the communication link corresponding to the target service system and the connection program interface includes:
[0013] When receiving a message pull request sent by the target service system through the corresponding connection program interface via the corresponding communication link, send the message in the message buffer to the target service system through the communication link corresponding to the target service system and the connection program interface.
[0014] Preferably, the process of temporarily storing the message in the message buffer of the message server includes:
[0015] Temporarily store the message in the message buffer corresponding to the target service system of the message server, so that the target service system sends a message pull request when detecting that there is such a message in the corresponding message buffer.
[0016] Preferably, after temporarily storing the message in the message buffer of the message server, it further includes:
[0017] Send a message reminder message to the target service system through the corresponding communication link and the connection program interface, so that the target service system sends a message pull request when receiving the message reminder message.
[0018] Preferably, before temporarily storing the message in the message buffer of the message server, it further includes:
[0019] Perform a security check on the message;
[0020] If the message passes the security check, then execute the step of temporarily storing the message in the message buffer of the message server.
[0021] Preferably, the process of establishing a communication link between the connection program interface and the message server according to the connection request includes:
[0022] Establish a communication link of the AMQP protocol between the connection program interface and the message server according to the connection request.
[0023] Correspondingly, the present application also discloses a communication method for a service system, which is applied to any one of the service systems. The communication method includes:
[0024] Monitor whether there is an exposed service program interface of the service server through the connection program interface of the service system;
[0025] If so, generate a connection request according to the service program interface, and send the connection request to the service server through the connection program interface, so that the message server establishes a communication link between the connection program interface and the message server according to the connection request;
[0026] Send a message to the message server through the connection program interface and the communication link, so that the message server determines that the service system receiving the message is the target service system according to the message, and sends the message to the target service system through the communication link and the connection program interface corresponding to the target service system.
[0027] Correspondingly, the present application also discloses a communication control system for a service system, which is applied to a message server. The communication control system includes:
[0028] An interface module, configured to set a service program interface that allows external access on the message server, so that the connection program interfaces of all the service systems can perceive the service program interface and send connection requests according to the service program interface;
[0029] A connection module, configured to establish a communication link between the connection program interface and the message server according to the connection request when receiving the connection request sent by the connection program interface of any one of the service systems;
[0030] A message module, configured to determine that the service system receiving the message is the target service system according to the message when receiving the message sent by the corresponding service system through the connection program interface through any one of the communication links, and send the message to the target service system through the communication link and the connection program interface corresponding to the target service system.
[0031] Correspondingly, the present application also discloses an electronic device, including:
[0032] A memory, configured to store a computer program;
[0033] A processor, which is used to implement the steps of the communication control method of the service system as described in any one of the above and / or the communication method of the service system as described above when executing the computer program.
[0034] Correspondingly, the present application also discloses a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the communication control method of the service system as described in any one of the above and / or the communication method of the service system as described above.
[0035] The present application establishes a communication link between the message server and all service systems. The service ports of the service systems do not need to be exposed. As long as the message server can be connected to each service system, there is no need to consider the requirements of devices such as the network environment, firewall, and routing forwarding between multiple service systems. In the present application, the message server forwards the messages sent by the service systems to the target service systems. While realizing the basic communication of the service systems, the number of communication links is reduced, and the maintenance cost is reduced. When a new service system is accessed, only the message server needs to be updated and configured, and the update cost is greatly reduced. Description of the Drawings
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0037] Figure 1 It is a flowchart of the steps of a communication control method for a service system in an embodiment of the present invention;
[0038] Figure 2 It is a logical topology diagram of a service system and a message server in an embodiment of the present invention;
[0039] Figure 3 It is a specific logical topology diagram of a service system and a message server in an embodiment of the present invention;
[0040] Figure 4 It is a flowchart of the steps of a communication method for a service system in an embodiment of the present invention;
[0041] Figure 5 It is a structural distribution diagram of a communication control system for a service system in an embodiment of the present invention. Detailed Embodiments
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0043] Currently, the commonly used communication method is to use the http protocol to achieve point-to-point communication of business systems. At this time, the access end of each business system can be regarded as an http server. Therefore, it is required to expose the service port and listen. The exposure of the service port has relatively high requirements for devices such as network environment, firewall, and routing forwarding; point-to-point communication requires the access end of the business system to maintain the connection relationship with other systems for a long time, which has a relatively high maintenance cost under the premise of the http protocol with short connections. Once a new business system is accessed, the configuration of the access end of each business system needs to be modified to communicate with the new business system, and the cost of updating and maintenance is relatively high.
[0044] This application establishes a communication link between the message server and all business systems. The service ports of the business systems do not need to be exposed. As long as the message server can be connected to each business system, there is no need to consider the requirements of devices such as network environment, firewall, and routing forwarding between multiple business systems; in this application, the message server forwards the messages sent by the business systems to the target business system. While realizing the basic communication of business systems, the number of communication links is reduced and the maintenance cost is reduced; when a new business system is accessed, only the message server needs to be updated and configured, and the update cost is greatly reduced.
[0045] An embodiment of the present invention discloses a communication control method for a business system, which is applied to a message server. Refer to Figure 1 As shown, the communication control method includes:
[0046] S11: Set a service program interface that allows external access on the message server, so that the connection program interfaces of all business systems can perceive the service program interface and send connection requests according to the service program interface;
[0047] It can be understood that both the message server and the business system are implemented through a software program architecture. The hardware basis corresponding to the software program architecture can be set according to the working conditions in the actual situation, and there is no limitation on the specific implementation method.
[0048] It can be understood that both the service program interface of the message server and the connection program interface of the business system are interfaces for establishing external communication, which are generally deployed through specific programs such as plugins or proxies. Further, the message server sets the permission of the service program interface to allow external access, that is, exposes the service program interface externally, so that any business system that can access the message server can perceive the service program interface after the connection program interface scans the network. Once the connection program interface of the business system receives an action instruction to connect to the message server, the connection program interface starts to scan the network, perceives the service program interface, and sends a connection request to the message server.
[0049] S12: When receiving a connection request sent by the connection program interface of any business system, establish a communication link between the connection program interface and the message server according to the connection request;
[0050] In some specific embodiments, step S12 specifically includes: establishing a communication link between the connection program interface and the message server based on the Advanced Message Queuing Protocol (AMQP).
[0051] It can be understood that the communication protocol of the communication link between the connection program interface and the message server preferably uses the stable long - connection AMQP protocol, so as to reduce connection occupancy and further improve the sending and receiving performance. Of course, the short - connection HTTP protocol can also be selected, and the specific communication protocol can be selected according to the actual situation. After the communication link is established, the message server can regularly receive heartbeat information sent by the business system through the communication link.
[0052] S13: When receiving a message sent by a corresponding business system through the connection program interface via any communication link, determine the business system that receives the message as the target business system, and send the message to the target business system through the communication link and the connection program interface corresponding to the target business system.
[0053] It can be understood that according to the communication link between the message server and the business system, in this embodiment, each business system is connected to the message server, so the logical topology diagram of the business system and the message server is as Figure 2 shown. Taking Figure 2 as an example, the business systems currently connected to the message server include Business System A, Business System B, Business System C, and Business System D. The message server can receive messages from any business system and forward the messages to the target business system that is also connected to the message server.
[0054] It can be understood that the message server can be set at a location accessible to each business system. The accessible location is not limited to the Internet, local area network, local node, etc. Whether the business systems can communicate with each other does not affect the implementation of the communication control method in this embodiment. As long as the devices involved in communication on each business system, such as network firewalls, routing forwards, etc., can ensure communication with the message server, without considering the communication or compatibility with other business systems, and there is no need to modify the network topology structure of the business system itself, which greatly improves the deployment flexibility of the message server and business systems.
[0055] It can be understood that for the logical topology relationship where the business systems are not connected to each other and each business system is connected to the message server, there is no longer a need for the business systems to expose network ports, and at the same time, there is no need to maintain connections with other business systems. Only the connection with the message server needs to be maintained, reducing the implementation and maintenance costs. It can be understood that in this logical topology relationship, the message server allows business systems to be deployed across platforms, networks, and languages. As long as a connection program interface is deployed on the business system, it can establish a communication link with the unique message server and achieve communication with all other business systems connected to the message server. Further, based on the logical topology relationship, the message server can quickly complete the access and removal of business systems, and any change in a business system will not affect the communication configuration of other business systems, greatly reducing the operation difficulty and error rate.
[0056] Further, the message server uniformly manages the communication of all business systems. Therefore, the message server can also control the communication permissions of each business system, monitor and verify the received and to-be-sent messages. At the same time, since the communication between business systems is relayed through the message server, the message server realizes message isolation between business systems, and business systems cannot directly access another business system, further improving the security of messages.
[0057] In the embodiment of this application, a communication link is established between the message server and all business systems. The service ports of the business systems do not need to be exposed. As long as the message server can be connected to each business system, there is no need to consider the requirements of network environments, firewalls, routing forwards, etc. among multiple business systems. In this application, the message server forwards the messages sent by the business systems to the target business systems, realizing basic business system communication while reducing the number of communication links and the maintenance cost. When a new business system is accessed, only the message server needs to update the configuration, greatly reducing the update cost.
[0058] An embodiment of the present invention discloses a communication control method for a specific business system. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, before sending a message to the target business system through the communication link and connection program interface corresponding to the target business system, it further includes:
[0059] Temporarily store the message in the message buffer of the message server;
[0060] The process of sending the message to the target business system through the communication link and connection program interface corresponding to the target business system includes:
[0061] When receiving a message pull request sent by the target business system through the corresponding connection program interface via the corresponding communication link, send the message in the message buffer to the target business system through the communication link and connection program interface corresponding to the target business system.
[0062] It can be understood that the traditional point-to-point communication is a synchronous communication mode. If the network reception is unstable, the availability of the receiving end is weak, or a large amount of data is received instantaneously, it may cause message blocking or data loss, and may also cause problems such as resource exhaustion and service unavailability. Therefore, in this embodiment, a message buffer is set in the message server, and the communication mode is set to asynchronous communication. Under these two measures of asynchronous communication and message transfer, the problem of message blocking is eliminated, ensuring that the message can be safely sent to the target business system.
[0063] Furthermore, the message pull request sent by the target business system can be that the target business system actively detects that there is information to be pulled in the message buffer, or the message server actively notifies the target business system that there is a message to be pulled. After learning the message pull request, the target business system analyzes the resource situation and, when determining that the current network status can receive the message, sends a message pull request to the message server.
[0064] Specifically, when the business system actively monitors, the message buffer of the message server can be set to have different message buffers corresponding to different target business systems. Then, the process of temporarily storing the message in the message buffer of the message server includes:
[0065] Temporarily store the message in the message buffer of the message server corresponding to the target business system, so that the target business system sends a message pull request when detecting that there is a message in the corresponding message buffer.
[0066] It can be understood that each message buffer can be implemented in the form of a queue, for example Figure 2 The corresponding message buffer is as Figure 3As shown, it includes the message buffer queue = A of business system A, the message buffer queue = B of business system B, the message buffer queue = C of business system C, and the message buffer queue = D of business system D. The messages in each message buffer are respectively marked as msg1, msg2, msg3, etc.
[0067] It can be understood that when the message server notifies the target business system that there is a message to be pulled, the specific implementation is as follows:
[0068] After temporarily storing the message in the message buffer of the message server, it further includes:
[0069] Sending a message reminder message to the target business system through the corresponding communication link and connection program interface, so that the target business system sends a message pull request when receiving the message reminder message.
[0070] It can be understood that when the target business system receives the complete message, it can notify the message server that the message has been sent, and the message server can delete the message in the message buffer.
[0071] Furthermore, since the message server can manage all messages, before temporarily storing the message in the message buffer of the message server, it can also include:
[0072] Performing a security check on the message;
[0073] If the message passes the security check, then perform the step of temporarily storing the message in the message buffer of the message server.
[0074] It can be understood that during the communication process between the message server and the business system, each business system has a unique identifier as the basis for communication objects. This identifier can be deployed by the message server to the business system, or can be deployed by the business system itself. This identifier can select network location information such as the system operation service IP and port location, or can select the ID information deployed by the upper layer. The upper layer deployment will ignore the underlying network location information, and the upper layer deployment that does not depend on the underlying information has more flexible dynamic configuration capabilities and scalability.
[0075] Correspondingly, the embodiment of the present application also discloses a communication method for a business system, which is applied to any one of the above-mentioned business systems. See Figure 4 As shown, the communication method includes:
[0076] S21: Monitoring whether there is an exposed service program interface of the business server through the connection program interface of the business system;
[0077] S22: If so, generate a connection request according to the service program interface, and send the connection request to the business server through the connection program interface, so that the message server establishes a communication link between the connection program interface and the message server according to the connection request;
[0078] If not, continue to perform the actions in step S21;
[0079] S23: Send a message to the message server through the connection program interface and the communication link, so that the message server determines that the business system receiving the message is the target business system according to the message, and sends the message to the target business system through the communication link and the connection program interface corresponding to the target business system.
[0080] It can be understood that in addition to the current business system actively sending messages to the message server, the business system may also become the target business system of the messages sent by other business systems and receive the messages sent by the message server.
[0081] Furthermore, when receiving information sent by the message server as the target business system, in order to ensure the integrity of the message and no network congestion, the target business system can send a message pull request to the message server according to the local network status when the local network status meets the message reception conditions, so as to pull the message to the local.
[0082] In the embodiment of the present application, a communication link between the message server and all business systems is established. The service ports of the business systems do not need to be exposed. As long as the message server can be connected to each business system, there is no need to consider the requirements of devices such as the network environment, firewall, and routing forwarding between multiple business systems; in the present application, the message server forwards the messages sent by the business systems to the target business systems, realizing basic business system communication while reducing the number of communication links and the maintenance cost; when a new business system is accessed, only the message server needs to be updated and configured, and the update cost is greatly reduced.
[0083] Correspondingly, the embodiment of the present application also discloses a communication control system for a business system, which is applied to the message server. Refer to Figure 5 As shown, the communication control system includes:
[0084] Interface module 1, used to set a service program interface that allows external access on the message server, so that the connection program interfaces of all the business systems can perceive the service program interface and send connection requests according to the service program interface;
[0085] Connection module 2, used to establish a communication link between the connection program interface and the message server according to the connection request when receiving the connection request sent by the connection program interface of any one of the business systems;
[0086] The message module 3 is used to, when receiving a message sent by any of the business systems through the connection program interface via the corresponding communication link, determine the business system that receives the message as the target business system according to the message, and send the message to the target business system through the corresponding communication link and the connection program interface of the target business system.
[0087] In the embodiments of the present application, communication links are established between the message server and all business systems. The service ports of the business systems do not need to be exposed. As long as the message server can be connected to each business system, there is no need to consider requirements for devices such as the network environment, firewall, and routing forwarding among multiple business systems; in the present application, the message server forwards the messages sent by the business systems to the target business systems. While realizing basic communication between business systems, the number of communication links is reduced, and the maintenance cost is reduced; when a new business system is accessed, only the message server needs to be updated and configured, and the update cost is greatly reduced.
[0088] In some specific embodiments, before the message module 3 sends the message to the target business system through the corresponding communication link and the connection program interface of the target business system, it further includes:
[0089] Temporarily store the message in the message buffer of the message server;
[0090] The process of sending the message to the target business system through the corresponding communication link and the connection program interface of the target business system includes:
[0091] When receiving a message pull request sent by the target business system through the corresponding connection program interface via the corresponding communication link, send the message in the message buffer to the target business system through the corresponding communication link and the connection program interface of the target business system.
[0092] In some specific embodiments, the process of the message module 3 temporarily storing the message in the message buffer of the message server includes:
[0093] Temporarily store the message in the message buffer corresponding to the target business system of the message server, so that when the target business system detects that there is the message in the corresponding message buffer, it sends a message pull request.
[0094] In some specific embodiments, after the message module 3 temporarily stores the message in the message buffer of the message server, it further includes:
[0095] Send a message reminder to the target service system through the corresponding communication link and the connection program interface, so that the target service system sends the message pull request when receiving the message reminder.
[0096] In some specific embodiments, before the message module 3 stores the message temporarily in the message buffer of the message server, it further includes:
[0097] Perform a security check on the message;
[0098] If the message passes the security check, execute the step of storing the message temporarily in the message buffer of the message server.
[0099] In some specific embodiments, the connection module 2 is specifically configured to:
[0100] Establish a communication link of the amqp protocol between the connection program interface and the message server according to the connection request.
[0101] Correspondingly, an embodiment of the present application also discloses an electronic device, including:
[0102] A memory for storing a computer program;
[0103] A processor for implementing the steps of the communication control method of the service system as described in any one of the above and / or the communication method of the service system as described above when executing the computer program.
[0104] Correspondingly, an embodiment of the present application also discloses a readable storage medium, on which a computer program is stored, and the computer program realizes the steps of the communication control method of the service system as described in any one of the above and / or the communication method of the service system as described above when executed by a processor.
[0105] Among them, the specific details of the communication control method of the service system or the communication method of the service system in this embodiment can be referred to the relevant descriptions in the above embodiments, and will not be elaborated here.
[0106] Among them, the electronic device and the readable storage medium in this embodiment have the same technical effects as the communication control method of the service system in the above embodiment or the communication method of the service system described in the above embodiment, and will not be elaborated here.
[0107] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.
[0108] The above has introduced in detail a communication method, a communication control method, a system and related components of a service system provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A communication control method for a service system, characterized in that Applied to a message server, the communication control method includes: Set a service program interface that allows external access on the message server, so that the connection program interfaces of all the business systems can perceive the service program interface and send connection requests according to the service program interface; When receiving the connection request sent by the connection program interface of any one of the business systems, establish a communication link between the connection program interface and the message server according to the connection request, and realize the logical topology relationship that all the business systems are not connected to each other and all the business systems are connected to the only message server. In this logical topology relationship, the message server uniformly manages the communication of all the business systems, and the message server completes the access and removal of all the business systems; When receiving a message sent by a corresponding business system through the connection program interface through any one of the communication links, determine the business system that receives the message as the target business system according to the message; Temporarily store the message in the message buffer area corresponding to the target business system of the message server, so that the target business system sends a message pull request when it monitors that there is such a message in the corresponding message buffer area; Send the message to the target business system through the communication link and the connection program interface corresponding to the target business system; Among them, the step of sending the message to the target business system through the communication link and the connection program interface corresponding to the target business system includes: when receiving a message pull request sent by the target business system through the corresponding connection program interface through the corresponding communication link, send the message in the message buffer area to the target business system through the communication link and the connection program interface corresponding to the target business system.
2. The communication control method according to claim 1, wherein After temporarily storing the message in the message buffer area of the message server, it further includes: Send a message reminder message to the target business system through the corresponding communication link and the connection program interface, so that the target business system sends the message pull request when receiving the message reminder message.
3. The communication control method according to claim 1, wherein Before temporarily storing the message in the message buffer area of the message server, it further includes: Perform a security check on the message; If the message passes the security check, then execute the step of temporarily storing the message in the message buffer area of the message server.
4. The communication control method according to any one of claims 1 to 3, characterized in that, The process of establishing a communication link between the connection program interface and the message server according to the connection request includes: Establish a communication link based on the AMQP protocol between the connection program interface and the message server according to the connection request.
5. A communication method for a service system, characterized in that, Applied to any one of the business systems, the communication method includes: Monitor whether there is a service program interface of an exposed message server through the connection program interface of the business system; If so, generate a connection request according to the service program interface, and send the connection request to the message server through the connection program interface, so that the message server establishes a communication link between the connection program interface and the message server according to the connection request, realizing the logical topology relationship that all the business systems are not connected to each other and all the business systems are connected to the only message server. In this logical topology relationship, the message server uniformly manages the communication of all the business systems, and the message server completes the access and removal of all the business systems; Send a message to the message server through the connection program interface and the communication link, so that the message server determines the business system that receives the message as the target business system according to the message; Temporarily store the message in the message buffer area corresponding to the target business system of the message server. When the target business system detects that there is such a message in the corresponding message buffer area, send a message pull request; Receive the message sent by the message server according to the message pull request through the communication link corresponding to the target business system and the connection program interface.
6. A communication control system for a service system, characterized in that, Applied to the message server, the communication control system includes: An interface module, which is used to set a service program interface that allows external access in the message server, so that the connection program interfaces of all the business systems can sense the service program interface and send connection requests according to the service program interface; A connection module, which is used to establish a communication link between the connection program interface and the message server according to the connection request when receiving the connection request sent by the connection program interface of any one of the business systems, realizing the logical topology relationship that all the business systems are not connected to each other and all the business systems are connected to the only message server. In this logical topology relationship, the message server uniformly manages the communication of all the business systems, and the message server completes the access and removal of all the business systems; A message module, which is further used to determine the business system that receives the message as the target business system when receiving the message sent by the corresponding business system through the connection program interface through any one of the communication links, temporarily store the message in the message buffer area corresponding to the target business system of the message server, so that the target business system sends a message pull request when detecting that there is such a message in the corresponding message buffer area, and send the message to the target business system through the communication link corresponding to the target business system and the connection program interface; When the message module sends the message to the target service system through the communication link and the connection program interface corresponding to the target service system, it is specifically used to, when receiving a message pull request sent by the target service system through the corresponding connection program interface via the corresponding communication link, send the message in the message buffer to the target service system through the communication link and the connection program interface corresponding to the target service system.
7. An electronic device, characterized in that, Including: A memory for storing computer programs; A processor for implementing the steps of the communication control method of the service system according to any one of claims 1 to 5 and / or the communication method of the service system according to claim 6 when executing the computer program.
8. A readable storage medium, characterized in that, A computer program is stored on the readable storage medium, and when the computer program is executed by the processor, the steps of the communication control method of the service system according to any one of claims 1 to 5 and / or the communication method of the service system according to claim 6 are implemented.
Citation Information
Patent Citations
Data interaction system and method
CN103812947A
Message transmission method, message server, terminal and electronic equipment
CN114968611A