Methods and systems for processing aviation messages
By using a central message queue and message delay module on the central server, and implementing a distribution strategy based on the urgency and departure time of aviation messages, the problem of low efficiency in aviation message processing was solved, achieving efficient message processing and flight operation optimization.
Patent Information
- Application Number
- CN202411843283.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-13
AI Technical Summary
The processing efficiency of aviation messages is low, especially during peak periods when processing delays are significant, affecting the need for timely processing, and existing technologies have not been able to effectively solve this problem.
Through the central message queue and message delay module of the central server, messages are distributed to different queues according to the urgency and departure time of aviation messages. Urgent messages are processed first, and non-urgent messages are cached, thus optimizing the processing strategy to improve efficiency.
It improves the efficiency of aviation message processing, especially during peak hours, ensuring timely processing of urgent messages, reducing delays, and improving the efficiency and punctuality of flight operations.
Smart Images

Figure CN119697294B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and more specifically, to a method and system for processing aviation messages. Background Technology
[0002] Currently, for message processing, especially aviation message processing, the large volume of aviation messages and the correlation between messages from the same flight mean that sequential processing is used. If a fault occurs while processing a particular message, the entire processing flow is interrupted until the fault is resolved. Furthermore, during peak flight periods, the continuous arrival of a large number of aviation messages leads to a significant increase in processing delays, affecting the speed and efficiency of message processing and failing to meet the demand for timely processing. Therefore, the technical problem of low processing efficiency for aviation messages remains.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a method and system for processing aviation messages, to at least solve the technical problem of low processing efficiency of aviation messages.
[0005] According to one aspect of the present invention, a method for processing aviation messages is provided, applied to a central server. The central server includes a central message queue and a message delay module. The method may include: acquiring aviation messages to be processed, as well as flight information and departure time of the corresponding flights; in response to the message volume of aviation messages exceeding a message volume threshold, storing aviation messages with departure times within a first target time interval to the message delay module, and distributing aviation messages with departure times within a second target time interval to the central message queue according to the flight information and departure time, wherein the urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval; in response to the message volume of aviation messages being less than or equal to the message volume threshold, distributing aviation messages to corresponding central message queues according to the corresponding flight information and departure time; and using the central message queue to send the aviation messages to the airport end corresponding to the central server.
[0006] Optionally, the central server includes a message generation module and a message distribution module. The process of obtaining the aviation message to be processed includes: controlling the message generation module to obtain the target data to be processed from the data source, wherein the target data includes flight information and departure time; preprocessing the target data and converting the data format of the preprocessed target data into a message format to obtain the aviation message; the method further includes: controlling the message generation module to send the aviation message to the message distribution module.
[0007] Optionally, the method further includes: in response to the message distribution module receiving an aviation message, obtaining the message quantity of the message generation module, wherein the message quantity is used to represent the generation speed of the aviation message generated by the message generation module; in response to the message quantity being greater than a message quantity threshold, storing the aviation message with a takeoff time within a first target time interval to the message delay module, including: in response to the message quantity being greater than a message quantity threshold, controlling the message distribution module to send the aviation message within the first target time interval to the message delay module; the method further includes: controlling the message distribution module to send the message quantity to the message delay module.
[0008] Optionally, the central server includes a message queue sending module, and the method further includes: in response to the message delay module receiving aviation messages and message volume within the first target time interval, storing the aviation messages in different areas according to flight information, wherein different areas correspond to different flight information; sorting the aviation messages in the areas according to departure time to obtain sorted aviation messages; and controlling the message delay module to send the sorted aviation messages to the message queue sending module based on the message volume.
[0009] Optionally, the central server includes a message queue sending module, wherein, in response to the message volume exceeding a message volume threshold, aviation messages with departure times within a second target time interval are distributed to the central message queue according to flight information and departure time. This includes: in response to the message volume exceeding the message volume threshold, controlling the message distribution module to distribute aviation messages within the second target time interval to the message queue distribution module; and in response to the message queue distribution module receiving aviation messages within the second target time interval, classifying the aviation messages according to flight information and distributing the classified aviation messages. The message is sent to the central message queue corresponding to the flight information; in response to the message volume of the aviation message being less than or equal to the message volume threshold, the aviation message is distributed to the corresponding central message queue according to the flight information and departure time of the aviation message, including: in response to the message volume of the aviation message being less than or equal to the message volume threshold, the message distribution module controls the aviation message to be distributed to the message queue distribution module; in response to the message queue distribution module receiving the aviation message, the aviation message is classified according to the flight information, and the classified aviation message is distributed to the central message queue corresponding to the flight information.
[0010] Optionally, the method further includes: in response to the number of central message queues being less than the number of flight information, distributing aviation messages that meet the number of central message queues to the corresponding central message queues; and distributing aviation messages that exceed the number of central message queues to central message queues that are in an idle state.
[0011] According to one aspect of the present invention, a method for processing aviation messages is provided, applied at an airport. The airport includes a local message queue and a departure database. The method may include: receiving aviation messages to be processed from a central message queue of a central server, wherein the aviation messages received at the airport are aviation messages whose departure time is within a second target time interval in response to the message volume being greater than a message volume threshold, or aviation messages received at the airport are aviation messages whose departure time is within a second target time interval in response to the message volume being less than or equal to a message volume threshold, sent by the central message queue according to flight information and departure time. The central server includes a message delay module, which stores aviation messages whose departure time is within a first target time interval in the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. The method may also include sending the received aviation messages to a local message queue; parsing the aviation messages in the local message queue; and storing the parsed aviation messages in the departure database.
[0012] Optionally, the method is applied at the airport end, which includes a local message queue and a departure database. The method further includes: receiving unprocessed aviation messages sent by the central message queue of the central server, wherein the aviation messages received by the airport end are aviation messages whose departure time is within a second target time interval in response to the message volume exceeding a message volume threshold, or aviation messages received by the airport end are aviation messages sent by the central message queue according to flight information and departure time in response to the message volume being less than or equal to a message volume threshold. The central server includes a message delay module, which stores aviation messages whose departure time is within a first target time interval in the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. The method also includes sending the received aviation messages to the local message queue, parsing the aviation messages in the local message queue, and storing the parsed aviation messages in the departure database.
[0013] Optionally, the airport end includes a local concurrent message receiving module, which includes threads. The number of threads is the same as the number of central message queues on the central server. Receiving unprocessed aviation messages sent from the central message queue includes: the control thread receiving the corresponding aviation message sent by the central message queue; sending the received aviation message to the local message queue includes: the control thread sending the received aviation message to the local message queue.
[0014] Optionally, the airport end includes a parallel parsing working group, which includes working subgroups. The number of working subgroups is the same as the number of central message queues. The parsing of aviation messages in the local message queue and the storage of the parsed aviation messages in the departure database includes: controlling the local message queue to distribute aviation messages to the corresponding working subgroups according to the flight information in the aviation messages; and controlling the working subgroups to parse the received aviation messages and store the parsed aviation messages in the departure database.
[0015] According to another aspect of the present invention, an aviation message processing apparatus is also provided, applied to a central server. The central server includes a central message queue and a message delay module, comprising: an acquisition unit, configured to acquire aviation messages to be processed, as well as flight information and departure time of the corresponding flights; a delay unit, configured to, in response to the message volume of aviation messages exceeding a message volume threshold, store aviation messages with departure times within a first target time interval in the message delay module, and distribute aviation messages with departure times within a second target time interval to the central message queue according to the flight information and departure time, wherein the urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval; a distribution unit, configured to, in response to the message volume of aviation messages being less than or equal to the message volume threshold, distribute aviation messages to the corresponding central message queue according to the flight information and departure time of the corresponding aviation messages; and a first sending unit, configured to use the central message queue to send the aviation messages to the airport end corresponding to the central server.
[0016] According to another aspect of the present invention, an aviation message processing apparatus is also provided, applied at an airport end, the airport end including a local message queue and a departure database, comprising: a receiving unit, configured to receive aviation messages to be processed sent from a central message queue of a central server, wherein the aviation message received by the airport end is an aviation message whose departure time corresponding to the aviation message sent by the central message queue is within a second target time interval in response to the message volume of the aviation message being greater than a message volume threshold, or the aviation message received by the airport end is an aviation message whose departure time is less than or equal to the message volume threshold in response to the message volume being less than or equal to the message volume threshold. Based on the message volume threshold, the central message queue sends aviation messages according to flight information and departure time. The central server includes a message delay module, which stores aviation messages whose departure time falls within the first target time interval into the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. The second sending unit is used to send the received aviation messages to the local message queue. The storage unit is used to parse the aviation messages in the local message queue and store the parsed aviation messages into the departure database.
[0017] According to another aspect of the present invention, an aviation message processing system is also provided, comprising: a central server and an airport terminal. The central server is configured to acquire aviation messages to be processed, as well as flight information and departure times of the corresponding flights; in response to a message volume exceeding a message volume threshold, storing aviation messages with departure times within a first target time interval in a message delay module of the central server, and distributing aviation messages with departure times within a second target time interval to a central message queue of the central server according to the flight information and departure time, wherein the urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval; in response to a message volume less than or equal to a message volume threshold, distributing aviation messages to corresponding central message queues according to the corresponding flight information and departure time; and using the central message queues to send the aviation messages to the airport terminal corresponding to the central server. At the airport end, the system receives aviation messages from the central message queue. These messages are either those whose message volume exceeds a threshold and whose corresponding flight departure time falls within a second target time interval, or those whose message volume is less than or equal to a threshold and sent by the central message queue according to flight information and departure time. The central server includes a message delay module. The central server stores aviation messages whose departure time falls within a first target time interval (the urgency level of these messages is lower than that of those in the second target time interval). It then sends the received aviation messages to a local message queue, parses the messages in the local message queue, and stores the parsed messages in the airport's departure database.
[0018] According to another aspect of the present invention, a computer-readable storage medium is also provided, which stores a plurality of instructions adapted for loading by a processor and executing any of the above-described methods for processing aeronautical messages.
[0019] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform any of the above-described methods for processing aeronautical messages.
[0020] According to another aspect of the embodiments of this application, a computer program product is also provided. This computer program product includes a computer program that, when executed by a processor, implements the aeronautical message processing method described in the embodiments of this application.
[0021] In this embodiment of the invention, to process aviation messages, the central server can obtain the aviation messages to be processed, as well as the flight information and departure time of the corresponding flights. If the message volume of the aviation messages exceeds a message volume threshold, aviation messages with departure times within a first target time interval are stored in the message delay module, and aviation messages with departure times within a second target time interval are distributed to the central message queue according to the flight information and departure time. If the message volume of the aviation messages is less than or equal to the message volume threshold, the aviation messages are distributed to the corresponding central message queue according to the flight information and departure time. The central message queue can be used to send the aviation messages to the airport terminal corresponding to the central server. In this embodiment, the central message queue and message delay module of the central server distribute more urgent aviation messages to the central message queue and less urgent aviation messages to the message delay module according to the message volume of the aviation messages and the corresponding flight information and departure time. This improves the message processing capacity of the central server during peak flight periods, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages. Attached Figure Description
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 This is a flowchart of a method for processing aviation messages according to an embodiment of the present invention;
[0024] Figure 2 This is a flowchart of another method for processing aeronautical messages according to an embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram of a message processing system in a related technology.
[0026] Figure 4 This is a schematic diagram of a message intelligent distribution process according to an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of a message intelligent distribution system according to an embodiment of the present invention;
[0028] Figure 6 This is a schematic diagram of a parallel message download process according to an embodiment of the present invention;
[0029] Figure 7 This is a schematic diagram of a message parsing process according to an embodiment of the present invention;
[0030] Figure 8 This is a flowchart of a high-speed parallel message processing method based on the characteristics of civil aviation business according to an embodiment of the present invention;
[0031] Figure 9 This is a schematic diagram illustrating an example of an unreasonable message allocation according to an embodiment of the present invention;
[0032] Figure 10 This is a schematic diagram of a message intelligent distribution rule according to an embodiment of the present invention;
[0033] Figure 11 This is a flowchart of a message distribution rule processing method according to an embodiment of the present invention;
[0034] Figure 12 This is a schematic diagram of a reasonable message allocation example according to an embodiment of the present invention;
[0035] Figure 13 This is a flowchart of a message delay method according to an embodiment of the present invention;
[0036] Figure 14 This is a schematic diagram of an aeronautical message processing apparatus according to an embodiment of the present invention;
[0037] Figure 15 This is a schematic diagram of another aviation message processing apparatus according to an embodiment of the present invention;
[0038] Figure 16 This is a schematic diagram of the structure of an aviation message processing system according to an embodiment of the present invention;
[0039] Figure 17 This is a schematic diagram of an electronic device for processing aviation messages according to an embodiment of the present invention. Detailed Implementation
[0040] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0042] Example 1
[0043] According to an embodiment of the present invention, an embodiment of a method for processing aviation messages is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0044] This invention provides a method for processing aviation messages from a central server. Specifically, Figure 1 This is a flowchart of a method for processing aviation messages according to an embodiment of the present invention, such as... Figure 1 As shown, this method is applied to a central server, which includes a central message queue and a message buffering module. Specifically, the method includes the following steps:
[0045] Step S102: Obtain the aviation message to be processed, as well as the flight information and departure time of the corresponding flight.
[0046] In the technical solution provided by step S102 of this embodiment of the invention, aviation messages are information data packets transmitted between different aviation information systems via data communication networks. In air transport and civil aviation operations, aviation messages can contain various information related to flight operations, passenger services, flight safety, air logistics, and other business activities. Aviation messages can include the core content of different airlines' system operations and data exchange. For example, they can include various transaction data related to civil aviation operations, such as passenger information, flight status updates, and boarding confirmation. Flight information can include flight number, departure airport, destination airport, etc. Departure time can be the time when the aircraft leaves the ground and begins flight, which can be arranged in advance by the airline and determined in the flight plan.
[0047] In this embodiment, the information in the aviation messages can be real-time or near-real-time flight information and passenger service data, which is crucial for aviation business operations. By acquiring aviation messages and the corresponding flight information and departure time, airlines can promptly understand flight status, make reasonable resource allocations and operational adjustments, improve flight efficiency and on-time performance, and ensure smooth and safe flight operations.
[0048] Optionally, aviation messages to be processed can be obtained through database queries within the civil aviation information system. For example, when aviation messages are stored in the database of the civil aviation information system, the central server can periodically or in real-time access the database to retrieve aviation messages to be processed. Alternatively, aviation messages to be processed can be obtained through message queue listening; the message queue can be a Kafka message queue or a Rabbit message queue. It should be noted that the above methods for obtaining aviation messages are merely illustrative and are not specifically limited. Any method that can be used to obtain aviation messages is within the protection scope of this invention.
[0049] In step S104, in response to the fact that the number of aviation messages exceeds the message volume threshold, aviation messages with departure times within the first target time interval are stored in the message delay module, and aviation messages with departure times within the second target time interval are distributed to the central message queue according to the flight information and departure time.
[0050] In the technical solution provided by step S104 of this embodiment of the invention, after obtaining the aviation message to be processed, as well as the flight information and departure time of the corresponding flight, if the message volume of the aviation message is greater than the message volume threshold, the aviation messages with departure times within the first target time interval can be stored in the message delay module, and the aviation messages with departure times within the second target time interval can be distributed to the central message queue according to the flight information and departure time. The urgency level of the aviation messages within the first target time interval is lower than that of the aviation messages within the second target time interval. Aviation messages within the first target time interval can be referred to as non-urgent messages. Aviation messages within the second target time interval can be referred to as urgent messages. The message volume threshold reflects the maximum processing capacity of the central server or the airport receiving the aviation messages. The first target time interval can be the next day and the time interval thereafter. The second target time interval can be the time interval of the current day.
[0051] In this embodiment, when the number of aviation messages exceeds the message volume threshold, that is, when the number of aviation messages is too large, aviation messages for the next day and beyond can be stored in the message delay module in the order of departure time. This enables the delay of non-urgent aviation messages for the next day and beyond, while prioritizing the transmission of urgent aviation messages for the current day.
[0052] Optionally, in the message delay module, aviation messages can be cached sequentially according to flight departure times, and the speed at which the message delay module sends aviation messages to the central message queue can be controlled. For example, when the number of aviation messages reaches or approaches the message volume threshold, the sending speed of aviation messages in the message delay module will be slowed down to avoid congestion of the central message queue and to prevent excessive load on the central message queue; when the number of aviation messages to be processed in the queue is small and has not reached the message volume threshold, the aviation messages in the message delay module can be sent at a faster speed to improve the processing efficiency of aviation messages.
[0053] In this embodiment of the invention, the central message queue serves as a transit point for aviation messages from the central server to the receiving airport, playing a crucial role in ensuring the orderly, efficient, and secure transmission of aviation messages. The message buffering module can cache and orderly send non-urgent aviation messages during peak periods of aviation message volume, thereby optimizing aviation message processing efficiency. By differentiating the urgency of aviation messages and adopting different processing strategies, the overall efficiency and stability of aviation message processing can be significantly improved. Prioritizing the processing of urgent same-day aviation messages ensures timely updates of flight information and passenger service data, improving the accuracy and real-time nature of flight information, which has a significant positive impact on key aspects such as flight scheduling, passenger boarding, and baggage handling. Cacheing non-urgent next-day and subsequent-day aviation messages effectively alleviates the processing pressure during peak periods, preventing a decrease in processing efficiency due to excessive backlog of aviation messages, thus achieving the technical effect of improving aviation message processing efficiency and solving the technical problem of low aviation message processing efficiency.
[0054] Step S106: In response to the message volume of the aviation message being less than or equal to the message volume threshold, the aviation message is distributed to the corresponding central message queue according to the flight information and departure time corresponding to the aviation message.
[0055] In the technical solution provided by step S106 of the present invention, after obtaining the aviation message to be processed, as well as the flight information and departure time of the corresponding flight, when the message volume of the aviation message is less than or equal to the message volume threshold, the aviation message can be distributed to the corresponding central message queue according to the flight information and departure time of the corresponding aviation message.
[0056] In this embodiment, when the number of current aviation messages is detected to be less than or equal to the message volume threshold, it indicates that the processing capacity of the current central server or the airport receiving the aviation message can meet the real-time aviation message processing requirements. The aviation message can be distributed to the corresponding central message queue according to the flight information and departure time of the aviation message, without storing the aviation message in the message delay module, reducing the waiting time of the aviation message in the queue and speeding up the processing speed of the aviation message.
[0057] Step S108: Using the central message queue, the aviation message is sent to the airport terminal corresponding to the central server.
[0058] In the technical solution provided by step S108 of the present invention, after the aviation message is distributed to the corresponding central message queue, the aviation message can be sent to the airport end corresponding to the central server using the central message queue.
[0059] In this embodiment, by using a central message queue to send aviation messages to the airport end corresponding to the central server, the efficient, secure and orderly transmission of aviation messages from the central server to the airport end can be ensured, providing a foundation for the airport end to process aviation messages in a timely and accurate manner, thereby meeting the high requirements for aviation message processing.
[0060] In steps S102 to S108 of this embodiment of the invention, if it is necessary to send an aviation message to the airport, the aviation message to be processed, as well as the flight information and departure time of the corresponding flight can be obtained; when the message volume of the aviation message is greater than the message volume threshold, the aviation message with the departure time within the first target time interval can be stored in the message delay module, and the aviation message with the departure time within the second target time interval can be distributed to the central message queue according to the flight information and departure time; when the message volume of the aviation message is less than or equal to the message volume threshold, the aviation message can be distributed to the corresponding central message queue according to the flight information and departure time of the corresponding aviation message; the central message queue can be used to send the aviation message to the airport corresponding to the central server. In this embodiment, by using the central message queue and message delay module of the central server, urgent aviation messages are distributed to the central message queue and non-urgent aviation messages are distributed to the message delay module according to the message volume of aviation messages and the corresponding flight information and departure time. This improves the message processing capacity of the central server during peak flight periods, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0061] The embodiments of the present invention will now be described in detail with reference to the steps described above.
[0062] As an optional embodiment, the central server includes a message generation module and a message distribution module. Step S102, obtaining the aviation message to be processed, includes: controlling the message generation module to obtain the target data to be processed from the data source, wherein the target data includes flight information and departure time; preprocessing the target data and converting the data format of the preprocessed target data into a message format to obtain the aviation message; the method further includes: controlling the message generation module to send the aviation message to the message distribution module.
[0063] In this embodiment, the central server, also known as the central end, includes a central message queue and a message delay module. It can distribute messages evenly to multiple central message queues based on flight schedules and departure times. To obtain the aviation messages to be processed, the message generation module can be controlled to retrieve the target data from the data source. The target data may include flight information and departure time. Preprocessing of the target data is possible, such as data cleaning, format standardization, and integrity checks. The preprocessed target data is then converted into a message format to obtain the aviation message. The message format can be either an aviation fixed communication network message format or an IATA message format. The message generation module can then be controlled to send the aviation message to the message distribution module.
[0064] Optionally, the message generation module can extract target data to be processed from various data sources, such as departure systems and flight management systems, and assemble the required information into a message to send to the message distribution module. This is just an example and no specific restrictions are imposed here.
[0065] Optionally, by preprocessing the target data, the accuracy and consistency of the target data can be ensured, providing a reliable data foundation for subsequent target data conversion and aeronautical message generation.
[0066] Optionally, the target data can be formatted, such as encoded, decoded, or have headers and trailers added. This can convert the target data into a standard message format suitable for transmission, such as Extensible Markup Language (XML) or JavaScript Object Notation (JSON). These are just examples and no specific limitations are made here.
[0067] As an optional embodiment, in response to the message distribution module receiving an aviation message, the message quantity of the message generation module is obtained, wherein the message quantity is used to represent the generation speed of the aviation message generated by the message generation module; in response to the message quantity being greater than a message quantity threshold, the aviation messages whose takeoff time is within a first target time interval are stored in the message delay module, including: in response to the message quantity being greater than a message quantity threshold, controlling the message distribution module to send the aviation messages within the first target time interval to the message delay module; the method further includes: controlling the message distribution module to send the message quantity to the message delay module.
[0068] In this embodiment, when the message distribution module receives aviation messages, it can obtain the message volume of the message generation module. During the process of storing aviation messages with departure times within the first target time interval to the message delay module when the message volume exceeds the message volume threshold, the message distribution module can be controlled to send aviation messages within the first target time interval to the message delay module when the message volume exceeds the threshold. The message distribution module can also be controlled to send a large number of messages to the message delay module. Here, the message volume represents the generation rate of aviation messages by the message generation module, for example, 10 messages per second.
[0069] Optionally, if the number of messages exceeds the set message volume threshold, it means that the central message queue may face the risk of overload, or the processing speed of aviation messages may not be able to keep up with the generation speed, affecting the processing efficiency of aviation messages at the airport. In this case, the message distribution module can adopt a delayed sending strategy, prioritizing the control of current aviation messages to avoid congestion in the central message queue.
[0070] Optionally, the message distribution module can send aviation messages of flights departing on the next day and thereafter to the message delay module, prioritizing the ability to process aviation messages of flights departing on the same day and reducing delays.
[0071] As an optional embodiment, the central server includes a message queue sending module. The method further includes: in response to the message delay module receiving aviation messages and message volume within a first target time interval, storing the aviation messages in different areas according to flight information, wherein different areas correspond to different flight information; sorting the aviation messages in the areas according to departure time to obtain sorted aviation messages; and controlling the message delay module to send the sorted aviation messages to the message queue sending module based on the message volume.
[0072] In this embodiment, when the message delay module receives aviation messages and the message volume within the first target time interval, it can store the aviation messages in different areas according to flight information, with each area corresponding to different flight information. At this time, each area corresponds to specific flight information, meaning that all messages for the same flight will be stored in the same area. Messages can be cached separately according to flight, facilitating subsequent unified processing and management. The aviation messages in the areas can be sorted according to departure time to obtain sorted aviation messages. Based on the message volume, the message delay module can be controlled to send the sorted aviation messages to the message queue sending module included in the central server.
[0073] Optionally, sorting aviation messages can ensure that aviation messages of flights with similar departure times can be processed with priority, which can meet the peak demand for message processing 2 hours before flight departure in civil aviation business characteristics, and can improve the efficiency of aviation message processing and the airport's response speed to aviation messages.
[0074] Optionally, by controlling the speed at which messages are sent to the message queue sending module based on the size of the message volume, subsequent aviation message downloads can reach the peak processing speed, while preventing message backlog in the message queue sending module.
[0075] Optionally, the message queue sending module can receive sorted aviation messages from the message delay module and send the aviation messages to the corresponding queues in the central message queue according to the flight information and departure time. Through parallel processing and load balancing, the sending efficiency of aviation messages can be improved and the latency of aviation messages in network transmission can be reduced.
[0076] Optionally, the message delay module can prioritize non-urgent messages. When the message volume exceeds a threshold, aviation messages for flights departing the next day and thereafter will be temporarily cached and sorted, while messages for the same day will be sent to the airport first, ensuring timely processing of urgent aviation messages and orderly processing of non-urgent aviation messages.
[0077] As an optional embodiment, the central server includes a message queue sending module. Step S104, in response to the message volume exceeding a message volume threshold, distributes aviation messages with departure times within a second target time interval to the central message queue according to flight information and departure time. This includes: in response to the message volume exceeding the message volume threshold, controlling the message distribution module to distribute aviation messages within the second target time interval to the message queue distribution module; and in response to the message queue distribution module receiving aviation messages within the second target time interval, classifying the aviation messages according to flight information and sending the classified aviation messages to the message queue distribution module. The message is distributed to the central message queue corresponding to the flight information; Step S106, in response to the message volume of the aviation message being less than or equal to the message volume threshold, the aviation message is distributed to the corresponding central message queue according to the flight information and departure time of the aviation message, including: in response to the message volume of the aviation message being less than or equal to the message volume threshold, controlling the message distribution module to distribute the aviation message to the message queue distribution module; in response to the message queue distribution module receiving the aviation message, classifying the aviation message according to the flight information, and distributing the classified aviation message to the central message queue corresponding to the flight information.
[0078] In this embodiment, the central server includes a message queue sending module. When the message volume exceeds a message volume threshold, during the process of distributing aviation messages whose departure time falls within a second target time interval to the central message queue according to flight information and departure time, the message distribution module can be controlled to distribute aviation messages within the second target time interval to the message queue distribution module when the message volume exceeds the threshold. Furthermore, when the message queue distribution module receives aviation messages within the second target time interval, it can classify the aviation messages according to flight information and distribute the classified aviation messages to the central message queue corresponding to the flight information. When the message volume of an aviation message is less than or equal to the message volume threshold, during the process of distributing the aviation message to the corresponding central message queue according to the flight information and departure time, the message distribution module can control the message distribution module to distribute the aviation message to the message queue distribution module when the message volume of the aviation message is less than or equal to the message volume threshold. When the message queue distribution module receives the aviation message, it can classify the aviation message according to the flight information and distribute the classified aviation message to the central message queue corresponding to the flight information.
[0079] As an optional embodiment, the method further includes: in response to the number of central message queues being less than the number of flight information, distributing aviation messages that meet the number of central message queues to the corresponding central message queues; and distributing aviation messages that exceed the number of central message queues to central message queues that are in an idle state.
[0080] In this embodiment, when the number of central message queues is less than the number of flight information, aviation messages that meet the number of central message queues can be distributed to the corresponding central message queues; aviation messages that exceed the number of central message queues can be distributed to central message queues that are in an idle state.
[0081] Optionally, when the number of central message queues is less than the number of flight information entries, the message distribution module will first ensure that each existing central message queue is fully utilized. This means that the message distribution module will distribute aviation messages equal to the number of central message queues to the queues, ensuring that each queue has a corresponding aviation message processing task. For aviation messages exceeding the number of central message queues, the message distribution module will dynamically search for and allocate idle central message queues. Based on the current load of the queues, it can prioritize the queues with the least load or those that are idle to avoid queue overload and ensure efficient and orderly aviation message processing.
[0082] In this embodiment of the invention, if it is necessary to send an aviation message to the airport, the aviation message to be processed, as well as the flight information and departure time of the corresponding flight, can be obtained. When the message volume of the aviation message is greater than the message volume threshold, the aviation messages with departure times within the first target time interval can be stored in the message delay module, and the aviation messages with departure times within the second target time interval can be distributed to the central message queue according to the flight information and departure time. When the message volume of the aviation message is less than or equal to the message volume threshold, the aviation message can be distributed to the corresponding central message queue according to the flight information and departure time of the corresponding aviation message. The central message queue can be used to send the aviation message to the airport corresponding to the central server. In this embodiment, by using the central message queue and message delay module of the central server, urgent aviation messages are distributed to the central message queue and non-urgent aviation messages are distributed to the message delay module according to the message volume of aviation messages and the corresponding flight information and departure time. This improves the message processing capacity of the central server during peak flight periods, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0083] This invention provides a method for processing aviation messages from the airport perspective. Specifically, Figure 2 This is a flowchart of another method for processing aeronautical messages according to an embodiment of the present invention, such as... Figure 2 As shown, this method is applied to the airport side, which includes a local message queue and a departure database, and includes the following steps:
[0084] Step S202: Receive the aviation message to be processed sent from the central message queue of the central server.
[0085] In the technical solution provided by step S202 of the present invention, the airport can receive unprocessed aviation messages sent by the central message queue of the central server. The aviation messages received by the airport are aviation messages whose departure time is within a second target time interval, sent by the central message queue in response to the message volume being greater than the message volume threshold. Alternatively, the aviation messages received by the airport are aviation messages sent by the central message queue according to flight information and departure time, in response to the message volume being less than or equal to the message volume threshold. The central server includes a message delay module, which stores aviation messages whose departure time is within a first target time interval in the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval.
[0086] In this embodiment, when a new aviation message is sent to the central message queue, the airport can immediately initiate the receiving process and receive the aviation message to be processed through network communication protocols (such as Transmission Control Protocol / Internet Protocol (TCP / IP), Advanced Message Queuing Protocol (AMQP), etc.). This is only an example and no specific limitations are made here.
[0087] Step S204: Send the received aviation message to the local message queue.
[0088] In the technical solution provided by step S204 of the present invention, after receiving the aviation message to be processed sent from the central message queue of the central server, the received aviation message can be sent to the local message queue.
[0089] In this embodiment, a local message queue is deployed at the airport end to receive messages from the central message queue and perform local storage and processing. The local message queue is designed to follow a First-In, First-Out (FIFO) principle, ensuring that messages are persisted in the order they are received, thereby maintaining the orderliness of aviation messages. The local message queue can also store messages along with their corresponding receive timestamps for later parsing and database entry.
[0090] Step S206: Parse the aviation messages in the local message queue and store the parsed aviation messages in the departure database.
[0091] In the technical solution provided by step S206 of this embodiment of the invention, after the received aviation message is sent to the local message queue, the aviation message in the local message queue can be parsed, and the parsed aviation message can be stored in the departure database. The departure database is a key database component in the civil aviation information system, which can be used to store and manage all data and information related to flight departure (i.e., passenger boarding, baggage check-in, flight scheduling, etc. before flight takeoff). In the airport's departure system, the departure database can receive, process, and store aviation messages from different sources, such as passenger information, flight status, gate changes, baggage handling status, etc.
[0092] In this embodiment, aviation messages in the local message queue can be processed by a parallel parsing workgroup. Each subgroup within the workgroup is responsible for parsing aviation messages for a specific flight, ensuring that all messages from the same flight are parsed sequentially within a single subgroup, avoiding out-of-order parsing. The parsed message data is then stored in the departure database, achieving structured data storage and efficient retrieval, and providing a solid foundation for the continuity, security, and optimization of airport departure operations.
[0093] In steps S202 to S206 of this embodiment of the invention, the airport can receive unprocessed aviation messages sent from the central message queue of the central server; the received aviation messages can be sent to a local message queue; the aviation messages in the local message queue can be parsed, and the parsed aviation messages can be stored in the departure database. Through the local message queue and parallel parsing operation, the efficiency of aviation message processing can be significantly improved, the waiting time and processing delay of aviation messages can be reduced, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0094] The embodiments of the present invention will now be described in detail with reference to the steps described above.
[0095] As an optional embodiment, the airport end includes a local concurrent message receiving module, which includes threads. The number of threads is the same as the number of central message queues on the central server. Step S202, receiving unprocessed aviation messages sent from the central message queue, includes: the control thread receiving the aviation message sent by the corresponding central message queue; Step S204, sending the received aviation message to the local message queue, includes: the control thread sending the received aviation message to the local message queue.
[0096] In this embodiment, during the process of receiving pending aviation messages from the central message queue, threads can be controlled to receive the corresponding aviation messages sent by the central message queue. During the process of sending the received aviation messages to the local message queue, threads can be controlled to send the received aviation messages to the local message queue. The airport end includes a local concurrent message receiving module, which includes threads, the number of which is the same as the number of central message queues on the central server.
[0097] Optionally, in the local concurrent message receiving module, the number of threads is set to be the same as the number of central message queues on the central server. This means that each central message queue has a dedicated thread responsible for receiving aviation messages, thus achieving concurrent message receiving operations. This one-to-one correspondence ensures that the reception of aviation messages in each queue is not affected by other queues, maintaining load balance.
[0098] Optionally, the local concurrent message receiving module can receive aviation messages from the central message queue and store them in the local message queue in the order they are received. The local message queue provides a message queue for aviation message parsing, and the ordered queue ensures the order in which subsequent messages are entered into the database.
[0099] As an optional embodiment, the airport end includes a parallel parsing working group, which includes working subgroups. The number of working subgroups is the same as the number of central message queues. Step S206, parsing the aviation messages in the local message queue and storing the parsed aviation messages in the departure database, includes: controlling the local message queue to distribute the aviation messages to the corresponding working subgroups according to the flight information in the aviation messages; controlling the working subgroups to parse the received aviation messages and store the parsed aviation messages in the departure database.
[0100] In this embodiment, during the process of parsing aviation messages in the local message queue and storing the parsed aviation messages in the departure database, the local message queue can be controlled to distribute the aviation messages to the corresponding working subgroups according to the flight information in the aviation messages; the working subgroups can be controlled to parse the received aviation messages and store the parsed aviation messages in the departure database. The airport end includes a parallel parsing working group, which in turn includes working subgroups, and the number of working subgroups is the same as the number of central message queues.
[0101] Optionally, by controlling the local message queue to distribute aviation messages to the corresponding working subgroups for parallel parsing, and storing the parsed data in the departure database, the efficiency of aviation message processing can be improved, the orderliness and accuracy of flight data can be maintained, and powerful data processing capabilities and business support can be provided to the airport, which helps to improve the airport's operational efficiency and service level.
[0102] Optionally, aviation messages in the local message queue can be categorized based on the flight information they contain, ensuring that aviation messages from the same flight are assigned to the same work subgroup for processing, which helps maintain the integrity and consistency of flight data.
[0103] Optionally, the number of work subgroups is the same as the number of central message queues, which enables the simultaneous processing of messages in multiple queues, speeding up the processing of aviation messages and reducing processing latency, which is crucial for improving the efficiency of aviation message processing.
[0104] In this embodiment of the invention, the airport can receive unprocessed aviation messages sent from the central message queue of the central server; the received aviation messages can be sent to a local message queue; the aviation messages in the local message queue can be parsed, and the parsed aviation messages can be stored in the departure database. Through the local message queue and parallel parsing operations, the efficiency of aviation message processing can be significantly improved, the waiting time and processing latency of aviation messages can be reduced, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0105] Example 2
[0106] The following describes in detail another optional implementation method.
[0107] Currently, the local query and boarding services handled by the airport departure local backup system require timely, accurate, and orderly local cached data. Therefore, fast, accurate, orderly, and efficient message processing is the core requirement of the airport departure local backup system.
[0108] In related technologies, Figure 3 This is a schematic diagram of a message processing system in a related technology, such as... Figure 3As shown, the message processing system includes an intelligent distribution module 302, a parallel download module 304, and a parsing and storage module 306. The intelligent distribution module 302 can be deployed at the central server 308 (central end) to efficiently send aviation messages (messages) to the parallel download module 304 in parallel. While ensuring that messages from the same flight are in the same queue, it distributes messages as evenly as possible across queues to maintain load balance. The parallel download module 304 can be deployed at the airport end 310 to achieve multi-threaded concurrent message reception and persistence. While ensuring the order of messages within a flight, it downloads messages as quickly as possible to avoid congestion in the central message queue. The parsing and storage module 306 can be deployed at the airport end 310 to ensure that locally persisted messages are parsed and stored in the database in parallel and orderly manner according to flight. However, during peak periods, the message volume of a specific flight may far exceed that of other flights. If the queue allocation mechanism is not flexible enough, some queues may be overloaded while other queues remain idle. Therefore, the technical problem of low processing efficiency for aviation messages still exists.
[0109] This invention proposes a high-speed parallel message processing method based on the characteristics of civil aviation operations. This method utilizes high-performance, off-site, massive data orderly synchronization technology to synchronize data from the airport's local application backend departure system. The airport's local application uses intelligent message distribution technology to allocate messages from the same flight to the same queue, ensuring that messages within the same queue are ordered and processed in a first-in, first-out (FIFO) manner. Messages from different queues are processed in parallel without interference. Based on the operational characteristics of the civil aviation field, this achieves the goal of parallel and orderly processing of massive amounts of messages, thereby improving the technical efficiency of aviation message processing and solving the technical problem of low processing efficiency in aviation messages.
[0110] The method will be further described below.
[0111] Figure 4 This is a schematic diagram of a message intelligent distribution process according to an embodiment of the present invention, such as... Figure 4 As shown, message information can be transmitted using intelligent distribution across multiple message queues. If the departing host randomly places messages into multiple message queues, it will inevitably lead to message disorder within the flight, affecting the accuracy of local departure message data at the airport. Intelligent message distribution can calculate which queue (queue a, b, c, or d) a message should be placed in based on message characteristics and the distribution of flights within the queues, ensuring that messages from the same flight are sent to the same queue for business purposes, thus guaranteeing the orderliness of messages within a flight. When the message volume is too large, messages from flights the next day and later are placed into the message delay module in their original order, delaying non-urgent messages and prioritizing the transmission of urgent messages from flights on the same day to meet the business needs of local airport applications.
[0112] Figure 5This is a schematic diagram of a message intelligent distribution system according to an embodiment of the present invention, such as... Figure 5 As shown, the intelligent message distribution system may include a message generation module 502, a message distribution module 504, a message delay module 506, and a message queue sending module 508.
[0113] The message generation module 502 can assemble the required information into a message and send it to the message distribution module 504. The message generation speed of the message generation module 502, that is, the number of messages, is, for example, 10 messages per second.
[0114] The message distribution module 504 can directly send the messages of flights on the same day to the message queue sending module 508, and send the messages of flights on the next day and later to the message delay module 506, while also sending the message volume to the message delay module 506.
[0115] The message buffering module 506 can buffer messages separately according to flight schedules. It can also sort flights by departure time, prioritizing messages from flights with closer departure times. Based on the message volume, the speed at which messages are sent to the message queue sending module 508 is controlled, ensuring that subsequent message downloads reach peak processing speed while preventing message backlog in the message queue sending module.
[0116] The message queue sending module 508 can send messages to the corresponding queues in the central message queue according to flight classification. If a flight has already been assigned a queue, it is used directly. If no queue has been assigned, a suitable idle queue is allocated.
[0117] Figure 6 This is a schematic diagram of a parallel message download process according to an embodiment of the present invention, as shown below. Figure 6 As shown, the system includes a central message queue module 602, a local concurrent message receiving module 604, and a local message queue module 606. The central message queue module 602 includes different queues: queue a, queue b, queue c, and queue d. Each queue contains different flights: flight A, flight B, flight C, and flight D. The local concurrent message receiving module 604 receives messages from the central message queue module 602 and stores them in the local message queue module 606 according to the receiving order. The local message queue module 606 provides a message queue for message parsing; the ordered queues ensure the subsequent order of data entry.
[0118] Figure 7 This is a schematic diagram of a message parsing process according to an embodiment of the present invention, such as... Figure 7As shown, the parallel parsing workgroup and the message receiving module are designed in a pipeline and do not interfere with each other. The parallel parsing workgroup can retrieve multiple messages from the local message queue at once, and process each message sequentially in a message parser (worker) categorized by flight, including work subgroups 7-1, 7-2, 7-3, and 7-4. The message parser can then store the parsed messages in the departure database.
[0119] Figure 8 This is a flowchart of a high-speed parallel message processing method based on the characteristics of civil aviation operations according to an embodiment of the present invention, such as... Figure 8 As shown, the method may include the following steps:
[0120] Step S802: Distribute the message to the central message queue.
[0121] In this embodiment, the central server can distribute messages evenly to multiple central message queues based on flight schedules and departure times.
[0122] Optionally, the central message queue can have multiple queues. The airport-side software can retrieve the message queues, and all messages for a flight will be transmitted in only one queue.
[0123] Step S804: Wait for the airport to receive the message.
[0124] In this embodiment, the central message queue can store multiple flights separately, waiting for the airport to receive them.
[0125] Step S806: Check if there are any messages in the airport's message queue.
[0126] In this embodiment, the airport can check if there are any messages in the central message queue. If there are no messages, it can wait and check again.
[0127] Step S808: Receive and store messages from the central message queue.
[0128] In this embodiment, the local message queue can receive messages from the central message queue and store them in the local message queue in order to achieve persistence.
[0129] Step S810: The airport checks whether there are any pending messages in the local message queue.
[0130] In this embodiment, the airport can check whether there are any pending messages in the local message queue. If there are no messages, it will wait and check again.
[0131] Through steps S804 to S810, parallel message downloading can be achieved. The airport's local application receives messages from the central message queue. Each message queue is received by a single thread, maximizing the advantages of parallelism to improve message throughput. After receiving messages, the airport's locally backed-up concurrent message receiving module can persist the messages and timestamps to the local database message queue, ensuring that messages within a flight are not out of order. Since parsing messages takes significantly longer than receiving them, persistence allows for immediate retrieval of the next message without further parsing, prioritizing preventing message queue congestion.
[0132] Step S812: Perform message parsing.
[0133] In this embodiment, the airport can parse messages in the local message queue and store them in a local database to ensure the orderliness of the messages.
[0134] In this embodiment of the invention, the central message queue and message delay module of the central server, as well as the local message queue and departure database of the airport, are used to distribute, delay, download and parse messages in parallel. This solves the problem of low efficiency of related message processing methods when faced with a large number of messages and peak flight periods, and provides a more efficient and stable data synchronization solution. It meets the requirements of high-speed parallel message processing, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0135] Simply ensuring that messages from the same flight are in the same queue and maintaining order within a flight is not a reasonable solution. The characteristics of civil aviation operations dictate that transaction volume for a typical flight begins to peak two hours before departure, generating a large number of messages, while almost no transaction messages are generated after departure. Figure 9 This is a schematic diagram illustrating an example of an unreasonable message allocation according to an embodiment of the present invention, such as... Figure 9 As shown, flights in queues 1 and 2 are concentrated on departures before 12:00, while flights in queues 3 and 4 are concentrated on departures after 12:00. This allocation scheme results in a large number of packets in queues 1 and 2 before 12:00, which can easily lead to packet congestion, while queues 3 and 4 are relatively idle, wasting resources. Similarly, after 12:00, queues 3 and 4 have a large number of packets, while queues 1 and 2 are idle.
[0136] Figure 10 This is a schematic diagram of a message intelligent distribution rule according to an embodiment of the present invention, such as... Figure 10 As shown, the intelligent message distribution module can determine how many flights are distributed in each queue based on the number of flights and the number of partitions, and can determine the flight distribution rules for each partition based on the flight departure time, so as to ensure that the flights in each queue are evenly distributed as much as possible.
[0137] Figure 11This is a flowchart of a message distribution rule processing method according to an embodiment of the present invention, such as... Figure 11 As shown, the method may include the following steps:
[0138] Step S1102: Calculate the characteristics of the message to be sent.
[0139] In this embodiment, it can be determined whether the message for the flight has been assigned to a queue. If a queue has been assigned, it is directly pushed to the original queue. If no queue has been assigned, step S1104 is performed.
[0140] Step S1104: Select the zone with the fewest flights.
[0141] In this embodiment, the partition (queue) with the fewest flights can be selected. If there is only one result, the flight is assigned to that queue and a message is pushed. If multiple results are selected, step S1106 is performed.
[0142] Step S1106: Calculate the partition with the least available time slot for flight departures.
[0143] In this embodiment, the number of flights being processed in each queue 2 hours before the departure of the current flight can be calculated, and the queue with the least available flights can be selected.
[0144] Step S1108: Determine the partition and push the message.
[0145] In this embodiment, if there are multiple idle partitions, a specific partition can be randomly selected and a message can be pushed.
[0146] Figure 12 This is a schematic diagram of a reasonable message allocation example according to an embodiment of the present invention, such as... Figure 12 As shown, flights are distributed relatively evenly in each queue according to their departure time, which can ensure that the message volume is as stable as possible.
[0147] Figure 13 This is a flowchart of a message delay method according to an embodiment of the present invention, such as... Figure 13 As shown, it includes the following steps:
[0148] Step S1302: Obtain the message to be distributed.
[0149] In this embodiment, after obtaining the message to be distributed, step S1304 is executed.
[0150] Step S1304: Whether the message to be distributed has reached a certain high threshold and has continued for a period of time.
[0151] In this embodiment, it is determined whether the message to be distributed has reached a certain high threshold and has lasted for a period of time. If so, step S1306 is executed; otherwise, step S1312 is executed.
[0152] Step S1306: Is it a flight message for the current day?
[0153] In this embodiment, it is determined whether the message is a flight message of the day. If it is, step S1308 is executed; otherwise, step S1310 is executed.
[0154] Step S1308: Distribute the message.
[0155] In this embodiment, when the message to be distributed is a flight message for the current day, the message is distributed.
[0156] Step S1310, sender's slow-send queue.
[0157] In this embodiment, if the message to be distributed is not a flight message of the day, it enters the sender's delayed delivery queue.
[0158] In step S1312, if there are messages in the delayed dispatch queue, the messages of the current day's flights are transmitted first, followed by the messages of the delayed dispatch queue. New messages of non-current day's flights are stored in the delayed dispatch queue of the sending end.
[0159] In this embodiment, if the number of messages to be distributed has not reached a certain high threshold and has been there for a period of time, and there are messages in the delayed delivery queue, the messages of the same day's flights are transmitted first, followed by the messages in the delayed delivery queue. New messages of non-same-day flights are stored in the delayed delivery queue of the sending end, and step S1308 is executed.
[0160] Optionally, during peak message volume periods, messages from the next day and beyond can be delayed to prioritize the synchronization of messages from the current day, thereby reducing the number of messages waiting in the queue and reducing synchronization latency.
[0161] Example 3
[0162] This invention provides an apparatus for processing aviation messages. It should be noted that this apparatus can be used to perform... Figure 1 The present invention provides a method for processing aviation messages. The following describes the apparatus for processing aviation messages provided in the embodiments of the present invention.
[0163] Figure 14 This is a schematic diagram of an aeronautical message processing apparatus according to an embodiment of the present invention, as shown below. Figure 14 As shown, the device is applied to the central server, which includes a central message queue and a message delay module. The processing device 1400 for the aviation message may include: an acquisition unit 1402, a delay unit 1404, a distribution unit 1406, and a first sending unit 1408.
[0164] The acquisition unit 1402 is used to acquire the aviation message to be processed, as well as the flight information and departure time of the corresponding flight.
[0165] The delayed delivery unit 1404 is used to respond to the fact that the number of aviation messages exceeds the message volume threshold, store aviation messages whose departure time is within the first target time interval to the message delayed delivery module, and distribute aviation messages whose departure time is within the second target time interval to the central message queue according to the flight information and departure time. The urgency of aviation messages in the first target time interval is lower than that of aviation messages in the second target time interval.
[0166] The distribution unit 1406 is used to distribute the aviation message to the corresponding central message queue according to the flight information and departure time corresponding to the aviation message when the message volume of the aviation message is less than or equal to the message volume threshold.
[0167] The first sending unit 1408 is used to send aviation messages to the airport end corresponding to the central server using the central message queue.
[0168] The aviation message processing apparatus provided in this embodiment of the invention acquires the aviation message to be processed, as well as the flight information and departure time of the corresponding flight, through the acquisition unit 1402; in response to the aviation message volume exceeding a message volume threshold, the delay unit 1404 stores aviation messages with departure times within a first target time interval into the message delay module, and distributes aviation messages with departure times within a second target time interval to the central message queue according to the flight information and departure time, wherein the urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval; in response to the aviation message volume being less than or equal to a message volume threshold, the distribution unit 1406 distributes the aviation message to the corresponding central message queue according to the corresponding flight information and departure time; and the first sending unit 1408 uses the central message queue to send the aviation message to the airport end corresponding to the central server, thereby achieving the technical effect of improving the processing efficiency of aviation messages and solving the technical problem of low processing efficiency of aviation messages.
[0169] This invention provides another aeronautical message processing apparatus. It should be noted that the aeronautical message processing apparatus of this invention can be used to perform… Figure 2 The present invention provides a method for processing aviation messages. The following describes the apparatus for processing aviation messages provided in the embodiments of the present invention.
[0170] Figure 15 This is a schematic diagram of another aviation message processing apparatus according to an embodiment of the present invention, such as... Figure 15As shown, the device is applied at the airport end, which includes a local message queue and a departure database. The processing device 1500 for the aviation message may include: a receiving unit 1502, a second sending unit 1504, and a storage unit 1506.
[0171] The receiving unit 1502 is used to receive unprocessed aviation messages sent by the central message queue of the central server. The aviation messages received by the airport are aviation messages whose departure time is within a second target time interval, sent by the central message queue in response to the message volume being greater than the message volume threshold. Alternatively, the aviation messages received by the airport are aviation messages sent by the central message queue according to flight information and departure time, in response to the message volume being less than or equal to the message volume threshold. The central server includes a message delay module, which stores aviation messages whose departure time is within a first target time interval in the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval.
[0172] The second sending unit 1504 is used to send the received aviation messages to the local message queue.
[0173] Storage unit 1506 is used to parse aviation messages in the local message queue and store the parsed aviation messages into the departure database.
[0174] The aviation message processing apparatus provided in this embodiment of the invention receives aviation messages to be processed from a central message queue of a central server via a receiving unit 1502. The aviation messages received at the airport are either aviation messages whose departure time corresponds to a flight within a second target time interval, sent by the central message queue in response to a message volume exceeding a message volume threshold, or aviation messages received at the airport are aviation messages sent by the central message queue according to flight information and departure time, in response to a message volume less than or equal to a message volume threshold. The central server includes... The message delay module stores aviation messages whose departure times fall within the first target time interval. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. The received aviation messages are sent to the local message queue through the second sending unit 1504. The aviation messages in the local message queue are parsed by the storage unit 1506, and the parsed aviation messages are stored in the departure database. This achieves the technical effect of improving the processing efficiency of aviation messages and solves the technical problem of low processing efficiency of aviation messages.
[0175] The aforementioned aviation message processing device may further include a processor and a memory. The aforementioned units are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0176] The aforementioned processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and by adjusting kernel parameters, graceful shutdown of devices of the same type awaiting shutdown can be controlled.
[0177] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory, and the memory includes at least one memory chip.
[0178] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and adjusting kernel parameters can improve the efficiency of traders.
[0179] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0180] Example 4
[0181] According to embodiments of the present invention, an aviation message processing system is also provided. Figure 16 This is a schematic diagram of the structure of an aviation message processing system according to an embodiment of the present invention, as shown below. Figure 16 As shown, the aviation message processing system 1600 includes a central server 1602 and an airport terminal 1604.
[0182] The central server 1602 is used to acquire aviation messages to be processed, as well as the flight information and departure time of the corresponding flights. In response to a message volume exceeding a threshold, aviation messages with departure times within a first target time interval are stored in the central server's message delay module. Aviation messages with departure times within a second target time interval are distributed to the central server's central message queue according to flight information and departure time. The urgency of aviation messages within the first target time interval is lower than that within the second target time interval. In response to a message volume less than or equal to a threshold, aviation messages are distributed to the corresponding central message queues according to flight information and departure time. Finally, the central message queues are used to send the aviation messages to the airport terminal corresponding to the central server.
[0183] Airport terminal 1604 is used to receive aviation messages sent from the central message queue; send the received aviation messages to the local message queue; parse the aviation messages in the local message queue; and store the parsed aviation messages in the airport terminal's departure database.
[0184] Example 5
[0185] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a program is stored, which, when executed by a processor, implements a method for processing aeronautical messages.
[0186] Example 6
[0187] According to an embodiment of the present invention, a processor is also provided, which is used to run a program, wherein the program executes a method for processing aeronautical messages during runtime.
[0188] Example 7
[0189] Figure 17 This is a schematic diagram of an electronic device for processing aviation messages according to an embodiment of the present invention, as shown below. Figure 17 As shown in the embodiment of the present invention, an electronic device 1700 is also provided. The device includes a processor 1701, a memory 1702, and a program stored in the memory and executable on the processor 1701. The processor 1701 executes the steps described above in the embodiment of the present invention.
[0190] Example 8
[0191] Embodiments of this application also provide a computer program product. Optionally, in this embodiment, the computer program product may include a computer program that, when executed by a processor, implements the aeronautical message processing method of the embodiments of this application.
[0192] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0193] The present invention also provides a computer program product, which, when executed on a data processing device, is adapted to the above-described steps in the embodiments of the present invention.
[0194] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0195] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0196] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0197] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0198] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0199] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory. Memory is an example of computer-readable media.
[0200] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media do not include transient computer-readable media, such as modulated data signals and carrier waves.
[0201] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0202] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0203] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for processing aviation messages, characterized in that, Applied to a central server, the central server includes a central message queue and a message buffering module, and the method includes: Obtain the aviation message to be processed, as well as the flight information of the corresponding flight and the departure time of the flight; In response to the fact that the number of aviation messages exceeds the message volume threshold, the aviation messages whose departure time is within the first target time interval are stored in the message delay module, and the aviation messages whose departure time is within the second target time interval are distributed to the central message queue according to the flight information and the departure time. The urgency of the aviation messages in the first target time interval is lower than that of the aviation messages in the second target time interval. In response to the fact that the message volume of the aviation message is less than or equal to the message volume threshold, the aviation message is distributed to the corresponding central message queue according to the flight information and the departure time corresponding to the aviation message; The aviation message is sent to the airport terminal corresponding to the central server using the central message queue.
2. The processing method according to claim 1, characterized in that, The central server includes a message generation module and a message distribution module, wherein acquiring the aviation message to be processed includes: The message generation module is controlled to obtain target data to be processed from the data source, wherein the target data includes the flight information and the departure time; The target data is preprocessed, and the data format of the preprocessed target data is converted into a message format to obtain the aviation message. The method further includes: controlling the message generation module to send the aviation message to the message distribution module.
3. The processing method according to claim 2, characterized in that, The method further includes: In response to the message distribution module receiving the aviation message, the message quantity of the message generation module is obtained, wherein the message quantity is used to represent the generation speed of the message generation module in generating the aviation message; In response to the message volume exceeding the message volume threshold, the aviation messages whose departure time falls within the first target time interval are stored in the message delay module, including: In response to the message volume exceeding the message volume threshold, the message distribution module is controlled to send the aviation messages within the first target time interval to the message delay module; The method further includes: controlling the message distribution module to send the message volume to the message delay module.
4. The processing method according to claim 3, characterized in that, The central server includes a message queue sending module, and the method further includes: In response to the message delay module receiving the aviation message and the message quantity within the first target time interval, the aviation message is stored in different areas according to the flight information, wherein different areas correspond to different flight information; According to the departure time, the aviation messages in the region are sorted to obtain the sorted aviation messages; Based on the message volume, the message delay module is controlled to send the sorted aviation messages to the message queue sending module.
5. The processing method according to claim 2, characterized in that, The central server includes a message queue sending module, wherein, in response to the message volume exceeding the message volume threshold, the aviation messages whose departure time falls within a second target time interval are distributed to the central message queue according to the flight information and the departure time, including: In response to the message volume exceeding the message volume threshold, the message distribution module is controlled to distribute the aviation messages within the second target time zone to the message queue distribution module. In response to the message queue distribution module receiving the aviation message within the second target time zone, the aviation message is classified according to the flight information, and the classified aviation message is distributed to the central message queue corresponding to the flight information; In response to the fact that the message volume of the aviation message is less than or equal to the message volume threshold, the aviation message is distributed to the corresponding central message queue according to the flight information and departure time corresponding to the aviation message, including: In response to the fact that the message volume of the aviation message is less than or equal to the message volume threshold, the message distribution module is controlled to distribute the aviation message to the message queue distribution module; In response to the message queue distribution module receiving the aviation message, the module classifies the aviation message according to the flight information and distributes the classified aviation message to the central message queue corresponding to the flight information.
6. The processing method according to claim 5, characterized in that, The method further includes: In response to the fact that the number of central message queues is less than the number of flight information, the aviation messages that meet the number of central message queues are distributed to the corresponding central message queues; The number of aviation messages exceeding the number of those in the central message queue is distributed to the central message queue that is in an idle state.
7. A method for processing aviation messages, characterized in that, The method is applied to an airport terminal, which includes a local message queue and a departure database. The method includes: The system receives pending aviation messages from a central message queue of a central server. The aviation messages received by the airport are either aviation messages whose departure time falls within a second target time interval, or aviation messages whose message volume exceeds a threshold and are sent by the central message queue according to the flight information and departure time. Alternatively, the aviation messages received by the airport are aviation messages whose message volume is less than or equal to the threshold and are sent by the central message queue according to the flight information and departure time. The central server includes a message delay module. The central server stores aviation messages whose departure time falls within a first target time interval in the message delay module. The urgency of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. Send the received aeronautical message to the local message queue; The aviation messages in the local message queue are parsed, and the parsed aviation messages are stored in the departure database.
8. The processing method according to claim 7, characterized in that, The airport terminal includes a local concurrent message receiving module, which includes threads. The number of threads is the same as the number of central message queues on the central server. Receiving unprocessed aviation messages from the central message queues includes: The thread is controlled to receive the aviation message sent by the corresponding central message queue; Sending the received aviation message to the local message queue includes: controlling the thread to send the received aviation message to the local message queue.
9. The processing method according to claim 8, characterized in that, The airport end includes a parallel parsing workgroup, which in turn includes work subgroups. The number of work subgroups is the same as the number of central message queues. The process involves parsing the aviation messages in the local message queues and storing the parsed aviation messages in the departure database, including: Control the local message queue to distribute the aviation message to the corresponding work subgroup according to the flight information in the aviation message; The control subgroup parses the received aviation messages and stores the parsed aviation messages in the departure database.
10. A system for processing aviation messages, characterized in that, include: The central server is used to obtain the aviation messages to be processed, as well as the flight information of the corresponding flight and the departure time of the flight; In response to the aviation message's message volume exceeding a message volume threshold, aviation messages with departure times within a first target time interval are stored in the message delay module of the central server. Then, according to the flight information and departure time, aviation messages with departure times within a second target time interval are distributed to the central message queue of the central server. The urgency of aviation messages within the first target time interval is lower than that within the second target time interval. In response to the aviation message's message volume being less than or equal to a message volume threshold, aviation messages are distributed to the corresponding central message queue according to the flight information and departure time. Finally, the central message queue is used to send the aviation message to the airport terminal corresponding to the central server. The airport terminal is used to receive the aviation messages sent from the central message queue. The aviation messages received by the airport terminal are either aviation messages whose departure time falls within a second target time interval, indicating that the message volume is greater than a message volume threshold, or aviation messages whose departure time falls within a second target time interval, indicating that the message volume is less than or equal to the message volume threshold, and are sent by the central message queue according to the flight information and departure time. The central server includes a message delay module. The central server stores aviation messages whose departure time falls within a first target time interval in the message delay module. The urgency level of aviation messages within the first target time interval is lower than that of aviation messages within the second target time interval. The central server sends the received aviation messages to a local message queue, parses the aviation messages in the local message queue, and stores the parsed aviation messages in the airport terminal's departure database.
Citation Information
Patent Citations
Multi-type message real-time processing method and device
CN103763188A
Aerocar message processing method, processing device, communication system and aerocar
CN117812009A