CN113242292A - Message transmission method, device, equipment, medium and product - Google Patents

Message transmission method, device, equipment, medium and product Download PDF

Info

Publication number
CN113242292A
CN113242292A CN202110498439.1A CN202110498439A CN113242292A CN 113242292 A CN113242292 A CN 113242292A CN 202110498439 A CN202110498439 A CN 202110498439A CN 113242292 A CN113242292 A CN 113242292A
Authority
CN
China
Prior art keywords
message
application environment
server
report
feedback
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
CN202110498439.1A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110498439.1A priority Critical patent/CN113242292A/en
Publication of CN113242292A publication Critical patent/CN113242292A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a message transmission method, a device, equipment, a medium and a product, which are applied to a front server of a service system, wherein the method comprises the following steps: receiving a feedback message sent by a monitoring system; determining an application environment server for sending the report message according to the identification information; determining the application environment server sending the reported message as a message receiving object; and transmitting the feedback message to the message receiving object. The message transmission method of the embodiment of the invention determines the application environment server of the reported message by the identification information associated with the application environment server sending the reported message in the feedback message, thereby determining which application environment server corresponds to the feedback message fed back by the monitoring system when a plurality of application environment servers are simultaneously communicated with the monitoring system, and improving the communication efficiency between the service system and the monitoring system.

Description

Message transmission method, device, equipment, medium and product
Technical Field
Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for packet transmission.
Background
In the field of communication in financial industry, business systems of commercial banks and monitoring systems of bank monitoring organizations carry out interface communication through message queues MQ. When a business system performs environment configuration, a test environment and a production environment are generally set in order to reduce complexity. When the service system and the supervision system perform communication interaction, the service system sends the message to the supervision system through a related device for transmitting the message, such as a service system external connection front-end processor, and a message queue MQ. After receiving the message sent by the service system, the supervisory system feeds back the feedback message to the service system through the external front-end processor of the service system. However, the service system usually has two environments, namely a test environment and a production environment, and meanwhile, an interface for the service system to communicate with the monitoring system is fixed, so that the feedback message fed back from the monitoring system cannot determine which environment corresponds to the message through the interface.
Therefore, at present, when the business system communicates with the supervisory system, only one test environment is used for communicating with the supervisory system at the same time in order to avoid the disorder condition during communication. Therefore, various environments of the business system cannot communicate with the monitoring system at the same time, and the communication efficiency between the business system and the monitoring system is low.
Disclosure of Invention
The invention provides a message transmission method, a message transmission device, message transmission equipment, a message transmission medium and a message transmission product, which are used for solving the problem of low accuracy of the current mode for identifying user categories.
A first aspect of an embodiment of the present invention provides a packet transmission method, which is applied to a front-end server of a service system, where the service system further includes a plurality of application environment servers, and the application environment servers are in communication connection with a monitoring system through the front-end server; the method comprises the following steps:
receiving a feedback message sent by a monitoring system; the feedback message is generated according to a report message sent by a certain application environment server through the front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message;
determining an application environment server for sending the report message according to the identification information;
determining the application environment server sending the reported message as a message receiving object;
and transmitting the feedback message to the message receiving object.
Optionally, in the method described above, the identification information is a feedback packet identifier of the feedback packet, and the feedback packet identifier is the same as a report packet identifier of the report packet;
the determining, according to the identification information, the application environment server that sends the report packet includes:
searching a report message identifier which is the same as the feedback message identifier from a database corresponding to each application environment server according to the feedback message identifier;
and determining the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message.
Optionally, in the method described above, the identification information is a server identification of an application environment server that sends the report packet; the report message includes the server identifier.
Optionally, in the method described above, the identification information is a report packet identifier of the report packet and a feedback packet identifier of a feedback packet; the report message comprises the report message identification;
the determining, according to the identification information, the application environment server that sends the report packet includes:
searching the reported message identification from a database corresponding to each application environment server;
and determining the application environment server corresponding to the database with the reported message identifier as the application environment server for sending the reported message.
Optionally, in the method described above, the transmitting the feedback packet to the packet receiving object includes:
determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object;
and transmitting the feedback message to the message receiving object according to the corresponding routing transmission path.
Optionally, in the method as described above, before receiving the feedback packet fed back by the monitoring system, the method further includes:
receiving a report message sent by an application environment server through a hypertext transfer protocol;
and transmitting the report message to the monitoring system through a message queue mechanism so that the monitoring system generates a corresponding feedback message according to the report message.
A second aspect of the embodiments of the present invention provides a packet transmission apparatus, where the apparatus is located in a front-end server of a service system, the service system further includes a plurality of application environment servers, and the application environment servers are in communication connection with a monitoring system through the front-end server; the device comprises:
the receiving module is used for receiving a feedback message sent by the monitoring system; the feedback message is generated according to a report message sent by a certain application environment server through the front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message;
a server determining module, configured to determine, according to the identification information, an application environment server that sends the report packet;
an object determining module, configured to determine an application environment server that sends the report packet as a packet receiving object;
and the transmission module is used for transmitting the feedback message to the message receiving object.
Optionally, in the apparatus described above, the identification information is a feedback packet identifier of the feedback packet, and the feedback packet identifier is the same as a report packet identifier of the report packet;
the server determination module is specifically configured to:
searching a report message identifier which is the same as the feedback message identifier from a database corresponding to each application environment server according to the feedback message identifier; and determining the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message.
Optionally, in the apparatus described above, the identifier information is a server identifier of an application environment server that sends the report packet; the report message includes the server identifier.
Optionally, in the apparatus described above, the identification information is a report packet identifier of the report packet and a feedback packet identifier of the feedback packet; the report message comprises the report message identification;
the server determination module is specifically configured to:
searching the reported message identification from a database corresponding to each application environment server;
and determining the application environment server corresponding to the database with the reported message identifier as the application environment server for sending the reported message.
Optionally, in the apparatus described above, the transmission module is specifically configured to:
determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object; and transmitting the feedback message to the message receiving object according to the corresponding routing transmission path.
Optionally, the apparatus as described above, further comprising:
the reporting module is used for receiving a reporting message sent by the application environment server through a hypertext transfer protocol; and transmitting the report message to the monitoring system through a message queue mechanism so that the monitoring system generates a corresponding feedback message according to the report message.
A third aspect of an embodiment of the present invention provides a server, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the message transmission method of any one of the first aspect by the processor.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the message transmission method according to any one of the first aspects.
A fifth aspect of the embodiments of the present invention provides a computer program product, including a computer program, where the computer program, when executed by a processor, implements the message transmission method according to any one of the first aspects.
The message transmission method, the message transmission device, the message transmission equipment, the message transmission medium and the message transmission product are applied to a front server of a service system, the service system further comprises a plurality of application environment servers, and the application environment servers are in communication connection with a monitoring system through the front server; the method comprises the following steps: receiving a feedback message sent by a monitoring system; the feedback message is generated according to a report message sent by a certain application environment server through the front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message; determining an application environment server for sending the report message according to the identification information; determining the application environment server sending the reported message as a message receiving object; and transmitting the feedback message to the message receiving object. The message transmission method of the embodiment of the invention determines the application environment server of the reported message by the identification information associated with the application environment server sending the reported message in the feedback message, thereby determining which application environment server corresponds to the feedback message fed back by the monitoring system when a plurality of application environment servers are simultaneously communicated with the monitoring system, and improving the communication efficiency between the service system and the monitoring system.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a scene diagram of a message transmission method that can implement the embodiment of the present invention;
fig. 2 is a schematic flow chart of a message transmission method according to a first embodiment of the present invention;
fig. 3 is a schematic flow chart of a message transmission method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a message transmission method according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a message transmission method according to a third embodiment of the present invention;
fig. 6 is a schematic flow chart of a message transmission method according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message transmission apparatus according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
For a clear understanding of the technical solutions of the present application, a detailed description of the prior art solutions is first provided. For the communication field of the current financial industry supervision, in order to meet the software development requirement, developers can establish several environments for different testing purposes in the software development process of a common commercial bank. For example, the development environment is used for development testing by developers, the integrated testing environment is used for integrated testing by testers, and the service acceptance environment is used for service verification by service personnel. However, in the development and test process of the commercial bank, the communication channel of the docked off-line system is only the communication channel with the monitoring system of the monitoring organization. The message interface between the commercial bank and the off-line monitoring organization is preset before development, a message identifier exists in each reported message to determine the uniqueness of the message, and the monitoring system feeds back a feedback message to the service system after receiving message information. Before sending the report message, each application environment server of the service system writes the relevant information of the report message into the database. After processing the service data content, each application environment server in the business system of the commercial bank generates a corresponding report message according to the previously agreed interface message specification, and sends the report message to the front-end server, so that the report message is forwarded to the monitoring system through the front-end server. After receiving the report message sent by the front-end server, the off-line monitoring system analyzes the report message and then sends the feedback message to the front-end server. Meanwhile, in order to ensure network security, the front-end server needs to communicate with the outside of the line, so that the front-end server only forwards messages and cannot set a database to record data forwarding information.
In the actual testing process, because more than one application environment server simultaneously sending the report message, the feedback message fed back from the monitoring system cannot determine which environment corresponds to the message. Therefore, at present, for the problem that which application environment server the feedback packet corresponds to cannot be determined, the following method is adopted:
if the service development stage is adopted, the staff can configure a route forwarding path of the development environment in the front-end server, and after the front-end server acquires a feedback message fed back by the supervisory system, the front-end server can forward message information to the development environment server according to an internal configuration route. When the service development progresses to the integrated test environment, the routing information of the front server is manually configured to the service system test environment. When the front-end server receives the feedback message sent by the monitoring system, the message information is forwarded to the testing environment server according to the internal configuration route. If the development stage is progressed to the integration test link, the front-end server configures a route to the test environment server, the received feedback message is directly forwarded to the test environment server, if the test has problems, a developer needs to perform retest and repair in the development environment, at the moment, because the route configured by the front-end server is forwarded to the test environment server, the feedback message fed back from the supervision system can be forwarded to the test environment server from the front-end server, so that various environments of the service system cannot communicate and interact with the supervision system at the same time, and the communication efficiency between the service system and the supervision system is low.
Therefore, aiming at the problem of low communication efficiency between the service system and the supervision system in the prior art, the inventor finds in research that, in order to solve the problem of low communication efficiency between the service system and the supervision system at present, the content in the feedback message can be correspondingly improved, and then the application environment server for sending the report message is determined through the feedback message. Specifically, a feedback message sent by the monitoring system is received first. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message. And then determining the application environment server sending the report message according to the identification information, determining the application environment server sending the report message as a message receiving object, and transmitting the feedback message to the message receiving object. The message transmission method of the embodiment of the invention determines the application environment server of the reported message by the identification information associated with the application environment server sending the reported message in the feedback message, thereby determining which application environment server corresponds to the feedback message fed back by the monitoring system when a plurality of application environment servers are simultaneously communicated with the monitoring system, and improving the communication efficiency between the service system and the monitoring system.
The inventor proposes a technical scheme of the application based on the creative discovery.
An application scenario of the message transmission method provided in the embodiment of the present invention is described below. As shown in fig. 1, 1 is a front server, 2 is an application environment server, and 3 is a supervision system of a supervision authority. The network architecture of the application scenario corresponding to the message transmission method provided by the embodiment of the invention comprises the following steps: a front-end server 1, an application environment server 2 and a supervisory system 3. The application environment server 2 in this embodiment is described by using two application environment servers, and the application environment server 2 may have various types, and may include a test environment in the service system corresponding to the test environment server, a development environment in the service system corresponding to the development environment server, a production environment in the service system corresponding to the production environment server, and the like. After the application environment server 2 generates a corresponding report message according to the service content to be sent and the message identifier, the relevant information of the report message is stored in the database of the application environment server, and the relevant information of the report message may include the message identifier, the brief content of the reported service, and the like. Then, the application environment server 2 sends the report message to the front end server 1, so as to transmit the report message to the monitoring system 3 through the front end server 1. After receiving the report message, the supervisory system 3 analyzes the report message, analyzes whether the service content in the report message meets the preset policy requirements, and then generates a corresponding feedback message according to the analysis result. The supervision system 3 sends a feedback message to the front-end server 1, wherein the feedback message includes identification information associated with the application environment server 2 that sent the report message. The front-end server 1 determines an application environment server 2 for sending the report message according to the identification information. Meanwhile, the front end server 1 determines the application environment server sending the report message as a message receiving object, and transmits the feedback message to the message receiving object.
The embodiments of the present invention will be described with reference to the accompanying drawings.
Fig. 2 is a schematic flow diagram of a message transmission method according to a first embodiment of the present invention, and as shown in fig. 2, in this embodiment, an execution main body of the embodiment of the present invention is a message transmission apparatus, the message transmission apparatus may be integrated in a front-end server of a business system, the business system further includes a plurality of application environment servers, and the application environment servers are in communication connection with a monitoring system through the front-end server. The message transmission method provided in this embodiment includes the following steps:
and step S101, receiving a feedback message sent by the monitoring system. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message.
In this embodiment, the monitoring system is a system for monitoring the operation process data of each application environment server in the service system. In the communication field of financial industry supervision, the system is generally a supervision system of a supervision organization.
The application environment server refers to an execution subject of the business system when performing software testing of a plurality of environments. The application environment server may include a test environment server in a test environment, a development environment server in a development environment, a production environment server in a production environment, and the like.
The front-end server is used for forwarding the report message sent by the application environment server and the feedback message sent by the monitoring system. The front-end server generally does not set a database to record data forwarding information, and is only used for forwarding messages.
The feedback message generated by the monitoring system is generated according to the report message sent by the application environment server, and the flow from the application environment server to the monitoring system is as follows:
after processing the service data content, each application environment server in the service system generates a corresponding report message according to the previously agreed interface message specification, and sends the report message to the front-end server, so that the report message is forwarded to the supervisory system through the front-end server. And after receiving the report message sent by the front-end server, the monitoring system analyzes the report message and generates a corresponding feedback message according to an analysis result.
In an actual application environment, if a certain service software in the application environment server pair is in a testing process, the application environment server sends various contents of the service software to the monitoring system through a report message, so that the monitoring system monitors whether the contents in the service software meet an industrial standard or not, or whether errors occur or not. And then the supervisory system generates a corresponding feedback message according to the analysis result of the content of the service software.
The identification information associated with the application environment server sending the report message may be a server identification, a report message identification, or other identification information having a greater association with the application environment server sending the report message, and the corresponding application environment server sending the report message may be determined according to the identification information.
And step S102, determining an application environment server for sending the report message according to the identification information.
In this embodiment, since the association between the identification information and the application environment server that sends the report packet is relatively large, the application environment server that sends the report packet can be determined according to the identification information.
If the identification information is a server identification, the corresponding application environment server can be directly determined according to the identification information, if the identification information is a report message identification, the database of each application environment server can be searched, and the application environment server corresponding to the database with the same report message identification is the application environment server sending the report message. Meanwhile, the identification information may also be other related information, as long as the application environment server that sends the report message can be determined according to the identification information, which is not limited in this embodiment.
Step S103, determining the application environment server sending the report message as a message receiving object.
In this embodiment, after determining the application environment server that sends the report packet, the application environment server may be determined as a packet receiving object, so as to provide a basis for subsequent feedback packet transmission.
Step S104, transmitting the feedback message to a message receiving object.
In this embodiment, the transmission of the feedback packet to the packet receiving object may be performed by switching from a preset routing transmission path to a corresponding routing transmission path, or may be performed by performing transmission of the feedback packet in other manners, which is not limited in this embodiment.
The embodiment of the invention provides a message transmission method, which comprises the following steps: and receiving a feedback message sent by the monitoring system. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message. And determining an application environment server for sending the report message according to the identification information. And determining the application environment server sending the reported message as a message receiving object. And transmitting the feedback message to a message receiving object. The message transmission method of the embodiment of the invention determines the application environment server of the reported message by the identification information associated with the application environment server sending the reported message in the feedback message, thereby determining which application environment server corresponds to the feedback message fed back by the monitoring system when a plurality of application environment servers are simultaneously communicated with the monitoring system, and improving the communication efficiency between the service system and the monitoring system.
Fig. 3 is a schematic flow chart of a message transmission method according to a second embodiment of the present invention, and as shown in fig. 3, the message transmission method according to this embodiment further refines steps 102 and 104 on the basis of the message transmission method according to the previous embodiment of the present invention. The message transmission method provided in this embodiment includes the following steps.
Step S201, a feedback message sent by the monitoring system is received. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message.
In this embodiment, the implementation manner of step 201 is similar to that of step 101 in the previous embodiment of the present invention, and is not described in detail here.
Optionally, in this embodiment, before receiving the feedback packet fed back by the monitoring system, the method further includes:
and receiving a report message sent by the application environment server through a hypertext transfer protocol.
And transmitting the report message to a monitoring system through a message queue mechanism so that the monitoring system generates a corresponding feedback message according to the report message.
In this embodiment, the hypertext transfer protocol is a simpler request-response protocol, and the application environment server sends the report packet through the hypertext transfer protocol, so that the efficiency of transmitting the packet can be improved. And a Message queue mechanism (MQ for short, and Message queue for all), which is used for transmitting the report Message to the monitoring system through the Message queue mechanism, so that the safety of the transmission of the report Message can be improved.
Step S202, according to the feedback message identification, searching the reporting message identification which is the same as the feedback message identification from the database corresponding to each application environment server. The identification information is a feedback message identification of the feedback message, and the feedback message identification is the same as a report message identification of the report message.
In this embodiment, the identification information is a feedback packet identifier of the feedback packet, and meanwhile, the feedback packet identifier is the same as a report packet identifier of the report packet. After the application environment server sends the report message to the monitoring system through the front-end server, the application environment server stores the relevant information of the report message into a database of the application environment server, and the relevant information of the report message comprises a report message identifier. And after receiving the report message, the supervisory system generates a corresponding feedback message identifier according to the report message identifier, and meanwhile, the feedback message identifier is the same as the report message identifier of the report message.
Step S203, determining the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message.
In this embodiment, when the database of the application environment server stores the report packet identifier that is the same as the feedback packet identifier, the application environment server is an application environment server that sends the report packet.
Step S204, the application environment server sending the report message is determined as a message receiving object.
In this embodiment, the implementation manner of step 204 is similar to that of step 103 in the previous embodiment of the present invention, and is not described in detail here.
Step S205, determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object.
In this embodiment, the preset multiple routing transmission paths correspond to the application environment server, for example, if the current application environment server includes a test environment server and a development environment server, two preset multiple routing transmission paths respectively correspond to the test environment server and the development environment server.
Step S206, the feedback message is transmitted to the message receiving object according to the corresponding route transmission path.
In this embodiment, after the routing transmission path is determined, the feedback packet may be transmitted to the packet receiving object according to the routing transmission path.
Meanwhile, in order to better understand the message transmission method of the present solution, the following will exemplify a framework between the business and the supervision mechanism systems corresponding to the business. The architecture of the embodiment is as shown in fig. 4, in order to ensure that the software operation of the business meets the industry requirements, the business system will be in communication connection with the supervision system 3 of the supervision mechanism system through a unique MQ (all called Message Queue, chinese). The application environment servers 2 typically used by businesses are a test environment server 21 and a development environment server 22. The testing environment server 21 and the development environment server 22 both have databases, and the databases may be used to store the relevant information of the report, such as the report identifier, the brief content of the reported service, and the like. In the business system, the test environment server 21 is in communication connection with the front-end server 1 through HTTP (full-name Hypertext Transfer Protocol, chinese is Hypertext Transfer Protocol), and the development environment server 22 is in communication connection with the front-end server 1 through HTTP. Meanwhile, the front server 1 is connected through MQ (communication with the monitoring system 3 of the monitoring authority system).
In the packet transmission method provided in the embodiment of the present invention, a complete interaction flow between the application environment server and the monitoring system is as follows: and after the application environment server generates a corresponding report message according to the service content to be sent and the report message identifier, storing the report message identifier of the report message in a database of the application environment server. And the application environment server sends the report message to the front-end server so as to transmit the report message to the monitoring system through the front-end server. After receiving the report message, the supervisory system analyzes the content of the report message to generate an analysis result. Meanwhile, the supervision system generates a feedback message identifier which is the same as the reported message identifier according to the reported message identifier, and then generates a corresponding feedback message according to the analysis result and the feedback message identifier. And after the supervision system sends the feedback message to the front-end server, the front-end server searches the reported message identifier which is the same as the feedback message identifier from the database corresponding to each application environment server according to the feedback message identifier. And simultaneously, the front-end server determines the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message. And finally, the front-end server determines a corresponding routing transmission path from a plurality of preset routing transmission paths according to the application environment server, and transmits the feedback message to the application environment server. According to the message transmission method provided by the embodiment of the invention, the feedback message identification and the report message identification are set to be the same, so that the application environment server sending the report message can be searched according to the feedback message identification, and when a plurality of application environment servers are communicated with the supervision system at the same time, the feedback message fed back by the supervision system can be determined to be the message corresponding to which application environment server, and the communication efficiency between the service system and the supervision system is improved.
Fig. 5 is a schematic flow chart of a message transmission method according to a third embodiment of the present invention, and as shown in fig. 5, the message transmission method according to this embodiment further refines steps 102 and 104 on the basis of the message transmission method according to the first embodiment of the present invention. The message transmission method provided in this embodiment includes the following steps.
Step S301, receiving a feedback message sent by the monitoring system. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message.
In this embodiment, the implementation manner of step 301 is similar to that of step 101 in the previous embodiment of the present invention, and is not described in detail here.
Step S302, determining the application environment server sending the report message according to the server identification, wherein the identification information is the server identification of the application environment server sending the report message. The reported message comprises a server identifier.
In this embodiment, when the application environment server sends the report packet, the report packet may include the server identifier of the server. Therefore, when the supervision system sends the feedback message, the supervision system also comprises the server identification of the server. Therefore, the application environment server to which the feedback message belongs can be directly determined according to the server identifier, and the determination efficiency is higher.
Step S303, the application environment server sending the report message is determined as a message receiving object.
In this embodiment, the implementation manner of step 303 is similar to that of step 103 in the previous embodiment of the present invention, and is not described in detail here.
Step S304, determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object.
In this embodiment, the implementation manner of step 304 is similar to that of step 205 in the previous embodiment of the present invention, and is not described in detail here.
Step S305, transmitting the feedback message to the message receiving object according to the corresponding routing transmission path.
In this embodiment, the implementation manner of step 305 is similar to that of step 206 in the previous embodiment of the present invention, and is not described in detail here.
In the packet transmission method provided in the embodiment of the present invention, a complete interaction flow between the application environment server and the monitoring system is as follows: after the application environment server generates a corresponding report message according to the service content to be sent and the server identifier of the application environment server, the application environment server sends the report message to the front-end server so as to transmit the report message to the monitoring system through the front-end server. After receiving the report message, the supervisory system analyzes the content of the report message to generate an analysis result. And meanwhile, the monitoring system generates a corresponding feedback message according to the analysis result and the server identifier. And after the supervision system sends the feedback message to the front-end server, the front-end server determines an application environment server for sending the report message according to the server identifier. And finally, the front-end server determines a corresponding routing transmission path from a plurality of preset routing transmission paths according to the application environment server, and transmits the feedback message to the application environment server. The message transmission method provided by the embodiment of the invention can determine the application environment server sending the reported message more efficiently by setting the server identifier, so that when a plurality of application environment servers are communicated with the monitoring system at the same time, the feedback message fed back by the monitoring system can also be determined as the message corresponding to which application environment server, and the communication efficiency between the service system and the monitoring system is improved.
Fig. 6 is a schematic flow chart of a message transmission method according to a fourth embodiment of the present invention, and as shown in fig. 6, the message transmission method according to this embodiment further refines steps 102 and 104 on the basis of the message transmission method according to the previous embodiment of the present invention. The message transmission method provided in this embodiment includes the following steps.
Step S401, receiving a feedback message sent by the monitoring system. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message.
In this embodiment, the implementation manner of step 401 is similar to that of step 101 in the previous embodiment of the present invention, and is not described in detail here.
Step S402, searching the report message identification from the database corresponding to each application environment server. The identification information is a report message identification of the report message and a feedback message identification of the feedback message. The report message comprises a report message identifier.
In this embodiment, the identification information is a report packet identifier in the feedback packet, and meanwhile, the feedback packet identifier is different from the report packet identifier of the report packet. After the application environment server sends the report message to the monitoring system through the front-end server, the application environment server stores the relevant information of the report message into a database of the application environment server, and the relevant information of the report message comprises a report message identifier. And after receiving the report message, the supervisory system retains the report message identifier and generates a corresponding feedback message identifier.
Step S403, determining the application environment server corresponding to the database with the reported message identifier as the application environment server sending the reported message.
In this embodiment, when the same identifier of the report packet is stored in the database of the application environment server, the application environment server is the application environment server that sends the report packet.
Step S404, the application environment server sending the report message is determined as the message receiving object.
In this embodiment, the implementation manner of step 404 is similar to that of step 103 in the previous embodiment of the present invention, and is not described in detail here.
Step S405, determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object.
In this embodiment, the implementation manner of step 405 is similar to that of step 205 in the previous embodiment of the present invention, and is not described in detail here.
Step S406, the feedback message is transmitted to the message receiving object according to the corresponding routing transmission path.
In this embodiment, the implementation manner of step 406 is similar to that of step 206 in the previous embodiment of the present invention, and is not described in detail here.
In the packet transmission method provided in the embodiment of the present invention, a complete interaction flow between the application environment server and the monitoring system is as follows: and after the application environment server generates a corresponding report message according to the service content to be sent and the report message identifier, storing the report message identifier of the report message in a database of the application environment server. And the application environment server sends the report message to the front-end server so as to transmit the report message to the monitoring system through the front-end server. After receiving the report message, the supervisory system analyzes the content of the report message to generate an analysis result. Meanwhile, the supervision system reserves the reported message identification, generates a corresponding feedback message identification, and then generates a corresponding feedback message according to the analysis result, the reported message identification and the feedback message identification. And after the monitoring system sends the feedback message to the front-end server, the front-end server searches the reported message identifier which is the same as the reported message identifier from the database corresponding to each application environment server according to the reported message identifier. And simultaneously, the front-end server determines the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message. And finally, the front-end server determines a corresponding routing transmission path from a plurality of preset routing transmission paths according to the application environment server, and transmits the feedback message to the application environment server. In the message transmission method provided by the embodiment of the invention, the reported message identifier is stored in the database through the application environment server, and meanwhile, the reported message identifier is reserved in the feedback message fed back by the monitoring system. Therefore, the application environment server sending the report message can be searched according to the report message identification, and when a plurality of application environment servers are communicated with the monitoring system at the same time, the feedback message fed back by the monitoring system can be determined to be the message corresponding to which application environment server, so that the communication efficiency between the service system and the monitoring system is improved.
Fig. 7 is a schematic structural diagram of a message transmission apparatus according to a fifth embodiment of the present invention, and as shown in fig. 7, in this embodiment, the message transmission apparatus 500 may be located in a front-end server of a service system, and the service system further includes a plurality of application environment servers, and the application environment servers are in communication connection with a monitoring system through the front-end server. The message transmission apparatus 500 includes:
the receiving module 501 is configured to receive a feedback message sent by the monitoring system. The feedback message is generated according to a report message sent by a certain application environment server through a front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message.
A server determining module 502, configured to determine, according to the identification information, an application environment server that sends the report packet.
An object determining module 503, configured to determine the application environment server that sends the report packet as a packet receiving object.
A transmission module 504, configured to transmit the feedback message to a message receiving object.
The message transmission apparatus provided in this embodiment may implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and technical effect of the message transmission apparatus are similar to those of the method embodiment shown in fig. 2, which are not described in detail herein.
Meanwhile, the message transmission apparatus provided by the present invention further refines the message transmission apparatus 500 on the basis of the message transmission apparatus provided in the previous embodiment.
Optionally, in this embodiment, the identification information is a feedback packet identifier of the feedback packet, and the feedback packet identifier is the same as a reporting packet identifier of the reporting packet.
The server determination module 502 is specifically configured to:
and searching a report message identifier which is the same as the feedback message identifier from a database corresponding to each application environment server according to the feedback message identifier. And determining the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message.
Optionally, in this embodiment, the identifier information is a server identifier of an application environment server that sends the report packet. The reported message comprises a server identifier.
Optionally, in this embodiment, the identification information is a report packet identification of the report packet and a feedback packet identification of the feedback packet. The report message comprises a report message identifier.
The server determination module 502 is specifically configured to:
and searching the reported message identification from the database corresponding to each application environment server.
And determining the application environment server corresponding to the database with the reported message identifier as the application environment server for sending the reported message.
Optionally, in this embodiment, the transmission module 504 is specifically configured to:
and determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object. And transmitting the feedback message to a message receiving object according to the corresponding routing transmission path.
Optionally, in this embodiment, the message transmission apparatus 500 further includes:
and the reporting module is used for receiving a reporting message sent by the application environment server through the hypertext transfer protocol. And transmitting the report message to a monitoring system through a message queue mechanism so that the monitoring system generates a corresponding feedback message according to the report message.
The message transmission apparatus provided in this embodiment may execute the technical solutions of the method embodiments shown in fig. 2 to fig. 6, and the implementation principle and technical effects of the technical solutions are similar to those of the method embodiments shown in fig. 2 to fig. 6, and are not described in detail here.
The invention also provides an electronic device, a computer readable storage medium and a computer program product according to the embodiments of the invention.
As shown in fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. The electronic device is intended for a variety of digital computers that may be used as a server, such as desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 8, the electronic apparatus includes: a processor 601, a memory 602. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device.
The memory 602 is a non-transitory computer readable storage medium provided by the present invention. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the message transmission method provided by the invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions for causing a computer to execute the message transmission method provided by the present invention.
The memory 602, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the message transmission method in the embodiment of the present invention (for example, the receiving module 501, the server determining module 502, the object determining module 503, and the transmitting module 504 shown in fig. 7). The processor 601 executes various functional applications and data processing of the server by running non-transitory software programs, instructions and modules stored in the memory 602, that is, implements the message transmission method in the above method embodiment.
Meanwhile, the present embodiment further provides a computer product, and when instructions in the computer product are executed by a processor of the electronic device, the electronic device is enabled to execute the message transmission methods of the first to fourth embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of embodiments of the invention being indicated by the following claims.
It is to be understood that the embodiments of the present invention are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.

Claims (10)

1. A message transmission method is characterized in that the message transmission method is applied to a front server of a service system, the service system also comprises a plurality of application environment servers, and the application environment servers are in communication connection with a supervision system through the front server; the method comprises the following steps:
receiving a feedback message sent by a monitoring system; the feedback message is generated according to a report message sent by a certain application environment server through the front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message;
determining an application environment server for sending the report message according to the identification information;
determining the application environment server sending the reported message as a message receiving object;
and transmitting the feedback message to the message receiving object.
2. The method according to claim 1, wherein the identification information is a feedback packet identifier of the feedback packet, and the feedback packet identifier is the same as a report packet identifier of the report packet;
the determining, according to the identification information, the application environment server that sends the report packet includes:
searching a report message identifier which is the same as the feedback message identifier from a database corresponding to each application environment server according to the feedback message identifier;
and determining the application environment server corresponding to the database with the same reported message identifier as the application environment server sending the reported message.
3. The method according to claim 1, wherein the identification information is a server identification of an application environment server that sends the report packet; the report message includes the server identifier.
4. The method according to claim 1, wherein the identification information is a report packet identification of the report packet and a feedback packet identification of a feedback packet; the report message comprises the report message identification;
the determining, according to the identification information, the application environment server that sends the report packet includes:
searching the reported message identification from a database corresponding to each application environment server;
and determining the application environment server corresponding to the database with the reported message identifier as the application environment server for sending the reported message.
5. The method of claim 1, wherein transmitting the feedback packet to the packet receiving object comprises:
determining a corresponding routing transmission path from a plurality of preset routing transmission paths according to the message receiving object;
and transmitting the feedback message to the message receiving object according to the corresponding routing transmission path.
6. The method according to any one of claims 1 to 5, wherein before receiving the feedback message fed back by the supervisory system, the method further comprises:
receiving a report message sent by an application environment server through a hypertext transfer protocol;
and transmitting the report message to the monitoring system through a message queue mechanism so that the monitoring system generates a corresponding feedback message according to the report message.
7. A message transmission device is characterized in that the device is positioned in a front server of a service system, the service system also comprises a plurality of application environment servers, and the application environment servers are in communication connection with a supervision system through the front server; the device comprises:
the receiving module is used for receiving a feedback message sent by the monitoring system; the feedback message is generated according to a report message sent by a certain application environment server through the front-end server, and the feedback message comprises identification information associated with the application environment server sending the report message;
a server determining module, configured to determine, according to the identification information, an application environment server that sends the report packet;
an object determining module, configured to determine an application environment server that sends the report packet as a packet receiving object;
and the transmission module is used for transmitting the feedback message to the message receiving object.
8. A server, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the message transmission method of any of claims 1 to 6 by the processor.
9. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the message transmission method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the message transmission method according to any one of claims 1 to 6 when executed by a processor.
CN202110498439.1A 2021-05-08 2021-05-08 Message transmission method, device, equipment, medium and product Pending CN113242292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110498439.1A CN113242292A (en) 2021-05-08 2021-05-08 Message transmission method, device, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110498439.1A CN113242292A (en) 2021-05-08 2021-05-08 Message transmission method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN113242292A true CN113242292A (en) 2021-08-10

Family

ID=77132479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110498439.1A Pending CN113242292A (en) 2021-05-08 2021-05-08 Message transmission method, device, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN113242292A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500358A (en) * 2022-02-14 2022-05-13 未鲲(上海)科技服务有限公司 Gateway message distribution method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113318A (en) * 2019-04-16 2019-08-09 深圳壹账通智能科技有限公司 Front-end system data processing method, device, computer equipment and storage medium
CN110427324A (en) * 2019-07-30 2019-11-08 中国工商银行股份有限公司 Joint debugging system, joint debugging method, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113318A (en) * 2019-04-16 2019-08-09 深圳壹账通智能科技有限公司 Front-end system data processing method, device, computer equipment and storage medium
CN110427324A (en) * 2019-07-30 2019-11-08 中国工商银行股份有限公司 Joint debugging system, joint debugging method, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500358A (en) * 2022-02-14 2022-05-13 未鲲(上海)科技服务有限公司 Gateway message distribution method, device, equipment and storage medium
CN114500358B (en) * 2022-02-14 2023-10-24 西藏创煌信息科技有限公司 Gateway message distribution method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US9100300B2 (en) Mitigating network connection problems using supporting devices
CN107294808A (en) The methods, devices and systems of interface testing
US10944655B2 (en) Data verification based upgrades in time series system
CN109542781B (en) Block chain consensus algorithm testing method and device, calculating device and storage medium
CN108718258B (en) Quality detection method and equipment for inter-board link
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN111049690A (en) Equipment fault monitoring processing method, device, equipment and storage medium
CN111901308B (en) Information interaction method
CN116010130B (en) Cross-card link aggregation method, device, equipment and medium for DPU virtual port
CN112367196A (en) Method and device for detecting network communication fault and electronic equipment
CN115037653B (en) Service flow monitoring method, device, electronic equipment and storage medium
CN115933591A (en) Controller diagnosis method, device, equipment and storage medium
CN115174472A (en) Message forwarding processing method and related device
CN112165430B (en) Data routing method, device, equipment and storage medium
CN112202614B (en) Method and device for communication between systems
CN104270431A (en) Method and device for concurrency control
WO2021128936A1 (en) Message processing method and apparatus
CN107707492B (en) Method and device for reporting and issuing message
CN111654547A (en) Data transmission method, device, equipment and storage medium
WO2016086402A1 (en) Data communication method, apparatus and system
WO2018121353A1 (en) Method of testing data channel, test server, and test system
CN108288135B (en) System compatibility method and device, computer readable storage medium and electronic equipment
CN115277366B (en) SLA alarm system based on interface
CN112737872B (en) ARINC664P7 end system cross-network testing system and method
CN104660403A (en) Equipment authorization method and server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210810

RJ01 Rejection of invention patent application after publication