CN115134372B - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
CN115134372B
CN115134372B CN202210718810.5A CN202210718810A CN115134372B CN 115134372 B CN115134372 B CN 115134372B CN 202210718810 A CN202210718810 A CN 202210718810A CN 115134372 B CN115134372 B CN 115134372B
Authority
CN
China
Prior art keywords
message
flight
return
backup
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210718810.5A
Other languages
Chinese (zh)
Other versions
CN115134372A (en
Inventor
李艳
邢统坤
李伟
马明明
张帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202210718810.5A priority Critical patent/CN115134372B/en
Publication of CN115134372A publication Critical patent/CN115134372A/en
Application granted granted Critical
Publication of CN115134372B publication Critical patent/CN115134372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data processing method and a related device, wherein if data transmission between an APG and a DC system fails, a DLB system replaces the DC system to generate a backup flight departure information message, so that the data failure has no influence on a user. And the DLB system generates a return message according to whether the backup flight departure information message is updated to the backup flight departure information message and adds a version identifier, and sends the return message to the intermediate storage system. The DC system actively acquires the return message from the intermediate storage system, and if the return message is determined to be an unprocessed and current latest version message according to the version identification, the DC system processes the return message. Therefore, the DLB system and the DC system are decoupled by temporarily storing the backup flight departure information message in the intermediate storage system. And version identification is added for the backup flight departure information message, so that the same message is processed only once, the workload of the DC system is reduced, and the consistency of data is ensured.

Description

Data processing method and related device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and a related device.
Background
The airport departure passenger check-in is a program which is necessary for the passenger to get on the airplane after buying the ticket, and comprises a series of operations of processing passenger information, confirming seats on the airplane, issuing boarding passes, delivering baggage and the like. If the network is disconnected or the DC system fails to communicate, the airline departure front end (APG) cannot connect to the departure core function (Departure Control Base, DC) system, which will cause the passengers to be unable to check in.
In the related art, a mode of double data storage of a DC system and a local backup (Departure Local Backup, DLB) system is adopted, namely, data backup of the DC system is carried out in the DLB system. When the DC system or the network link between the airport and the center fails, the flight can be switched to the DLB system to transact business such as passenger check-in, after the business is processed, the departure data (such as flight and passenger) of the flight are stored in the DLB system, so that the DLB system synchronizes the data to the DC system after the subsequent recovery.
Data is stored through a DC system and a DLB system, and the reliability of the data can be improved, but the consistency of the data becomes a technical problem to be solved urgently.
Disclosure of Invention
The application provides a data processing method and a related device for solving the problem of consistency of data stored by a DC system and a DLB system.
Based on the above, the embodiment of the application discloses the following technical scheme:
in one aspect, an embodiment of the present application provides a data processing method, including:
if the data transmission between the front end APG of the departure of the airline company and the DC system of the departure core function fails, the local departure backup system DLB is connected with the APG system and generates a backup flight departure information message;
the DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to an intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
the DC system acquires the return message from the intermediate storage system;
and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, the DC system processes the returned message.
In another aspect the application provides a data processing system, the system comprising: the system comprises an departure core function DC system, an departure local backup DLB system and an intermediate storage system;
the DLB system is used for connecting with the APG system and generating the backup flight departure information message if the data transmission between the APG and the DC system fails, and obtaining a return message according to whether the backup flight departure information message is updated to the backup flight departure information message added version identification or not and sending the return message to the intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
the DC system is used for acquiring the return message from the intermediate storage system; and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, processing the returned message.
In another aspect the application provides a computer device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
The processor is configured to perform the method of the above aspect according to instructions in the program code.
In another aspect the application provides a computer readable storage medium for storing a computer program for performing the method of the above aspect.
In another aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method described in the above aspect.
Compared with the prior art, the technical scheme of the application has the advantages that:
if the number transmission between the APG and the DC system fails, the DC system cannot receive the operation requests of the passenger check-in and the like sent by the APG, and the APG can send the operation requests to the DLB system at the moment, so that the DLB system can generate backup flight departure information messages according to the operation requests. The DLB system can work in place of the DC system so that the data transmission failure has no effect on the user. When the data of the flight changes, such as adding or deleting passenger information, the backup flight departure information message changes, and the DLB system generates a return message according to whether the backup flight departure information message is updated to the backup flight departure information message and adds a version identifier, and sends the return message to the intermediate storage system. The DC system actively acquires the returned message from the intermediate storage system, and if the returned message is determined to be an unprocessed and current latest version message according to the version identification, the DC system processes the returned message. Therefore, the DLB system and the DC system are decoupled by temporarily storing the backup flight departure information message in the intermediate storage system. And the version identification is added for the backup flight departure information message, so that the same message is processed only once, the workload of the DC system is reduced, and only the backup flight departure information message of the latest version is processed, thereby ensuring the consistency of data.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a diagram of an airport local check-in system according to an embodiment of the present application;
FIG. 2 is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The present application will be described below.
Referring to fig. 1, the architecture diagram of an airport local check-in system according to an embodiment of the present application is shown. The airport local check-in system comprises a user layer, a support layer and a core application layer. Wherein the user layer comprises an APG system and a DLB system, the support layer comprises a SAT (a service interface) and a micro service message (Microservice Event Server, MES) system, and the core application layer comprises a DC system. The following description will be given separately.
(1) An airline departure front end (APG) system is an SAT service interface provided by hosting service software based on the PSS product delivery service field and the product sales field, and integrates the working flow of departure control, departure operation and additional service sales service scenes based on the departure backup service provided by ASCII. And providing a graphical management and operation interface for the outward navigation departure personnel, and providing a standard departure service flow and an additional service sales and delivery flow.
(2) An departure airport local backup (Depature Local Backup, DLB) system provides departure business related information query and backup check-in services for the deployed departure front end of each airport.
(3) The micro service message (Microservice Event Server, MES) system was developed based on kafka to provide services such as message forwarding for applications running on the TAP platform. MES is an important component in a distributed system, mainly solving the system decoupling, asynchronous messaging, implementing high performance, high availability, scalability and final consistency architecture.
(4) An departure core function (Departure Control Base, DC) system provides departure core modules for departure flight management, passenger check-in, baggage management, passenger boarding, government security, etc. services.
The APG is connected with the DC system through the SAT to perform business operations such as passenger check-in, and when the APG system cannot be connected with the DC system due to network failure and the like, the APG system is connected with the DLB system to continue the operations such as passenger check-in, and the subsequent DLB system can send the backup flight departure information message to the intermediate storage system, and the DC system goes to the intermediate storage system to acquire the backup flight departure information message so as to update corresponding data. The process is that the DLB system transmits a back-up flight departure information message or a back-up message back to the DC system.
Because the DC system does not know when the DLB system sends the return messages, the DLB system can send a plurality of return messages in the fault period, after the fault is recovered to be normal, the DC system receives a plurality of return messages, and if a passenger is added, the passenger is deleted, if the DC system does not process the return messages according to the sequence, the data processing is abnormal, and the data stored by the DC system and the DLB system are inconsistent.
Based on this, the embodiment of the application provides a data processing method, which enables a DLB system and a DC system to be decoupled by temporarily storing the backup flight departure information message in an intermediate storage system. And the version identification is added for the backup flight departure information message, so that the same message is processed only once, the workload of the DC system is reduced, and only the backup flight departure information message of the latest version is processed, thereby ensuring the consistency of data.
A data processing method according to an embodiment of the present application is described below with reference to fig. 2. Referring to fig. 2, a flowchart of a data processing method according to an embodiment of the present application may include S101-S104.
S101: if the data transmission between the APG and the DC system fails, the DLB system is connected with the APG system and generates a backup flight departure information message.
In the related art, an APG performs business operations such as a passenger check-in through a SAT connection DC system, and after a network and other reasons occur, the APG cannot be connected with the DC system, data transmission cannot be performed between the APG and the DC system, so that the DC system cannot receive an operation request such as a passenger check-in sent by the APG, and further the DC system cannot generate a flight departure information message and the like according to the operation request, so that the problems such as incapability of checking-in of the passenger and the like occur, and user experience is affected.
Based on the above, the application provides the DLB system, the DLB system and the APG system are both at the airport terminal, the DLB system is equivalent to a substitute system of the DC system, if the number transmission between the APG system and the DC system fails, the APG system can send the operation requests such as the passenger check-in to the DLB system, so that the DLB system acts as the role of the DC system to perform the operations such as the passenger check-in and the like, and the corresponding backup flight departure information message is generated, thereby the failure between the APG and the DC system is not perceived by a user, and the user experience is improved.
It should be noted that the backup flight departure information message is used for characterizing relevant information of a flight, for example, the backup flight departure information message includes passenger information, flight information, etc.
S102: and the DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message and sends the return message to the intermediate storage system.
The DLB generates a backup flight departure information message after receiving an operation request sent by the APG, and stores the backup departure information message so as to send the backup departure information to the DC system after the recovery of the operation request. However, since the link communication problem is not determined when it will be repaired, the method of storing the backup departure information message on the intermediate storage system is convenient for the DLB system to send the backup flight departure information message and for the DC system to receive the backup flight departure information message. Therefore, the DLB system and the DC system are decoupled by temporarily storing the backup flight departure information message in the intermediate storage system.
However, during the fault period, the DLB may send a plurality of return messages, the DC system may receive a plurality of return messages, and there is a sequence between the return messages, for example, if a passenger is added and then deleted, if the DC system does not process the return messages according to the sequence, the data processing may be abnormal, and thus the data stored in the DC system and the DLB system may be inconsistent.
In order to ensure data consistency, the DLB system increases a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, and generates a return message which comprises the backup flight departure information message and the version identifier corresponding to the backup flight departure information message, so that the subsequent DC system processes the backup flight departure information message according to the version identifier. Therefore, the same backup flight departure information message is only processed once, the workload of the DC system is reduced, and only the backup flight departure information message of the latest version is processed, so that the consistency of data is ensured.
As a possible implementation manner, the intermediate storage system may be a server at an airport terminal, and may also be a cloud server. For example, the intermediate storage system may be an MES system. If the intermediate storage system is an MES system, because the maximum message supported by the MES system is 4M, the DLB system needs to compress the backup flight departure information message carrying the version identifier to obtain a return message, i.e. the return message does not exceed 4M, so as to ensure that the MES system can receive the return message.
S103: the DC system obtains the return message from the intermediate storage system.
It should be noted that, all the check-in passenger information in the same flight will form a backup flight departure information message, if the passenger information in the flight changes, a backup flight departure information message will be formed again, the DLB system will increase the version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, for example, if not, the version identifier is used, if so, 1 is added to generate a new version identifier based on the last version identifier.
As one possible implementation, the DC system may acquire the return message from the intermediate storage system every fixed time, e.g., the DC system requests the intermediate storage system to acquire the message once every 5s, because it is uncertain when the DLB system is sending the message.
S104: if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, the DC system processes the returned message.
Because the return messages sent by the DLB system do not necessarily arrive at the intermediate storage system in sequence, the return messages acquired by the DC system from the intermediate storage system are not necessarily acquired in sequence, and in order to ensure that no abnormality occurs in data processing, the DC system can process the return messages according to the version identification, i.e. if the return messages are determined to be unprocessed messages of the current latest version according to the version identification, the DC system processes the return messages. For example, the DC system may first determine whether a return message with the same version identifier has been processed, and if so, the message is directly discarded. If the return message with the same version identification is not processed, whether the current return message is the latest version or not needs to be judged again, and if so, the return message is processed again. If not, discarding the received message. For example, if there are two messages A and B for flight X, B is up to date, but the order stored on the MES is B, A. The DC system acquires the B message firstly, acquires the A message after processing, discovers that the version identifier of the A message is not new to the version identifier of the B message, and can not process the A message at the moment. With this message identification, it can be ensured that the DC system processes the latest message. The old data is prevented from covering the new data, and the consistency with the data in the DLB system is ensured.
Therefore, the backup flight departure information messages with the same version identification are considered to be the same message, and one message is only processed once, so that the workload of the DC system is reduced. And the backup flight departure information messages with different version identifications only process the new version messages. For example, if the last version of the backup flight departure information message has been processed and then the old version of the backup flight departure information message is received, the old version of the backup flight departure information message is directly discarded and not processed. And if the backup flight departure information message of the updated version is received, processing the backup flight departure information message again. Only the latest version of the backup flight departure information message is processed, so that the DC system processes the backup flight departure information messages in sequence to a certain extent, and the consistency of data is further ensured.
According to the technical scheme, if the number transmission between the APG and the DC system fails, the DC system cannot receive the operation requests of the passenger check-in machine and the like sent by the APG, and the APG can send the operation requests to the DLB system, so that the DLB system can generate backup flight departure information messages according to the operation requests. The DLB system can work in place of the DC system so that the data transmission failure has no effect on the user. When the data of the flight changes, such as adding or deleting passenger information, the backup flight departure information message changes, and the DLB system generates a return message according to whether the backup flight departure information message is updated to the backup flight departure information message and adds a version identifier, and sends the return message to the intermediate storage system. The DC system actively acquires the returned message from the intermediate storage system, and if the returned message is determined to be an unprocessed and current latest version message according to the version identification, the DC system processes the returned message. Therefore, the DLB system and the DC system are decoupled by temporarily storing the backup flight departure information message in the intermediate storage system. And the version identification is added for the backup flight departure information message, so that the same message is processed only once, the workload of the DC system is reduced, and only the backup flight departure information message of the latest version is processed, thereby ensuring the consistency of data.
As a possible implementation manner, the embodiment of the present application provides a specific implementation manner of S102, that is, according to whether the backup flight departure information packet is updated to a backup flight departure information packet, the DLB system adds a version identifier to obtain a return packet, and sends the return packet to the intermediate storage system, which is specifically as follows:
s1021: the DLB system determines a historical backup flight departure information message which is the same as the flight information included in the backup flight departure information message.
If one flight has a plurality of backup flight departure information messages, for example, airport staff submits the same backup flight departure information message for a plurality of times through an APG, or submits the updated backup flight departure information message again after passenger update occurs, so that the DLB system can determine the plurality of backup flight departure information messages according to the flight information, wherein the version identification is the historical backup flight departure information message.
S1022: if the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, the DLB system takes the version identification of the historical backup flight departure information message as the version identification of the backup flight departure information message.
If the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, it is indicated that the passenger information is not updated, and only airport staff submits the same backup flight departure information message for a plurality of times through the APG, at this time, the version identifier of the historical backup flight departure information message can be used as the version identifier of the backup flight departure information message.
S1023: if the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the DLB system obtains an updated version identifier according to the version identifier of the historical backup flight departure information message, and the updated version identifier is used as the version identifier of the backup flight departure information message.
If the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the passenger information of the flight is updated, 1 can be added to the version identifier of the historical backup flight departure information message at this time, an updated version identifier is obtained, and the updated version identifier is used as the version identifier of the backup flight departure information message.
Therefore, whether the passenger information included in the backup flight departure information message is updated or not is distinguished through the version identification, so that the subsequent DC system only processes the unprocessed and current latest version message according to the version identification, the workload of the DC system is further reduced, and the working efficiency of the DC system is improved.
As a possible implementation manner, the DC system analyzes the return message to obtain flight information and passenger information, and the embodiment of the present application provides a specific implementation manner of processing the return message by the DC system, that is, the DC system updates the flight status of the corresponding flight according to the flight information, and updates the passenger data of the flight according to the passenger information.
For example, the flight status includes that the flight has taken off, not taken off, has landed, etc. Updating passenger data is somewhat complex, involving seat and baggage information, etc. If the number of passengers included in the passenger information is consistent with the number of passengers in the DC system, updating the passenger data in the DC system directly according to the return message; if the number of passengers included in the passenger information is more than the original number of passengers in the DC system, the DLB system is indicated to newly add the passenger data, the newly added passenger data is added into the DC system, and the state of the newly added passenger data is indicated to be the DLB system for being added so as to facilitate subsequent check, and other corresponding passengers directly update the data; if the passenger information includes less passengers than the number of passengers in the DC system, the DC system modifies the unmatched passenger status to be deleted by the DLB system, and other corresponding passengers update the data directly.
Further, since the DC system may discard some feedback messages and make them inconsistent with the data processed by the DLB system, if the DC system determines that the updated flight status of the flight is consistent with the flight status represented by the flight information from the DLB system, and that the passenger information from the DLB system is consistent with the updated passenger data of the flight, the update is considered successful, and a prompt for successful update may be sent to the DLB. If the data is inconsistent, the updating is considered to be abnormal, and corresponding abnormal information is sent to the DLB system so as to update again, thereby realizing the consistency of the data.
For example, the returned message sent by the DLB system is parsed into corresponding flight information and passenger information, and the flight information and passenger information are stored in corresponding database tables for comparison with data (updated flight status and updated passenger data) after the DC system processes the returned message. On one hand, the consistency of the data is ensured, and on the other hand, the DLB system is also convenient to inquire the return processing details. And updating the processed flight and passenger data which need to be updated again into a corresponding database table of the DC system so as to be used as abnormal information to be sent to the DLB system.
As a possible implementation manner, if the intermediate storage system is an MES system, the DLB system compresses the backup flight departure information message carrying the version identifier to obtain a return message; the return message does not exceed 4M, so that the DC system decompresses the return message to obtain the decompressed return message, and processes the decompressed return message.
As a possible implementation manner, before the DC system processes the return message, the DC system may further check whether the return message includes flight information and passenger information, and whether the flight information and the passenger information meet the corresponding format requirements, if so, S104 is executed; if not, the return message is discarded.
For example, the DC system checks whether the return packet contains flight information and passenger information, and checks whether basic information in the flight, such as the airline, flight number, start station, etc., meets the corresponding format requirements. If the verification is not qualified, the message is directly discarded.
Before the DC system processes the return message, the method further includes:
the DC system acquires the flight status of the corresponding flight;
as one possible implementation, if the DC system determines that the flight status is in a protected state or an initial shutdown state of the flight, the DC system releases the protected state or releases the initial shutdown operation.
For example, since the DC system is in a protected state or an initial closed state of a flight (a state after stopping the boarding operation), the boarding operation cannot be performed, if the flight in the DC system is in a protected state or an initial closed state, it is necessary to perform the unprotected state or the initial closed state of the flight.
As a possible implementation, the back-up flight departure information message may also include an electronic ticket list message (Electronic Ticket List Message, ELT) message. The ETL message is used for listing the actual checked-in passengers using the electronic ticket, so as to be sent to the booking system after the departure of the flight.
The booking system (Inventory Control System, ICS) is a large host system for providing passenger booking service for airline users by Chinese airline news. The ICS host is connected to the terminal equipment through a network, so that automatic transmission and processing of flight/passenger information and a host system are realized. The ICS host is connected with systems such as departure systems, airline frequent flyer systems, electronic ticket systems, foreign airlines and the like. The ICS host provides functions such as flight data control, flight availability information inquiry, passenger reservation and ticket issuing, on-board seat control, flight change, passenger protection, frequent flyer identification and the like for the airline company user.
Therefore, the feedback message sent by the DLB system to the DC system includes two types: backup flight departure information messages (data such as flights and passengers) and ETL messages. The DLB system transmits the return message in two cases, which are described below.
First, the backup flight departure information message and the ETL message are sent separately: after the DLB system completes the check-in of the passenger, a backup flight departure information message is sent to the DC system, and the DC system analyzes the message and updates the database. After the flight takes off, the DLB system sends an ETL message again to change the state of the electronic ticket.
Second, the backup flight departure information message and the ELT message are sent simultaneously: after the flight takes off, the DLB system sends a backup flight departure information message and an ETL message to the DC system, and the DC system analyzes the message to update a database and forwards the ETL message to change the state of the electronic ticket.
Because it is unclear whether the transmitted return message is a backup flight departure information message and an ETL message sent separately or a backup flight departure information message and an ETL message sent simultaneously, it is also necessary to ensure that the seat booking system can process data according to the ETL message, specifically as follows:
the DC system judges whether the return message comprises an ETL message, if the return message does not comprise the ETL message, the backup flight departure information message and the ETL message are sent separately, and at the moment, the DC system may have processed the backup flight departure information message or not processed the backup flight departure information message, and the flight state of the corresponding flight needs to be determined. If the flight status is ETL return, the backup flight departure information message is processed, and the return message can be discarded; if the flight status is not the completed ETL return, the backup flight departure information message is not processed, and the flight status and the passenger information are updated according to the return message, wherein the flight status is the completed stowage return.
The DC system judges whether the return message comprises an ETL message, if the return message comprises the ETL message, the backup flight departure information message and the ELT message are sent simultaneously, at the moment, the DC system may process the backup flight departure information message or not process the backup flight departure information message, and the DC system determines the flight state of the corresponding flight. If the flight status is the loaded return, indicating that the backup flight departure information message is processed, the ELT message is not processed, sending an ETL message to the booking system, and updating the flight status to the completed ETL return; if the flight status is not the completed ETL return, indicating that the backup flight departure information message and the ELT message are not processed, updating the flight status and the passenger information according to the return message, and sending the ETL message to the booking system, wherein the flight status is the completed ETL return; further, if the flight status is that the ETL return is completed, the backup flight departure information message and the ETL message are processed, and the return message is directly discarded.
In order to make the technical solution provided by the embodiment of the present application clearer, the data processing method provided by the embodiment of the present application is described below by using a DC system as an execution body through two examples.
Embodiment one: and processing a certain flight return message for the first time.
S301: the DC system requests the MES system once every 5s so as to acquire the return message sent by the DLB system from the MES system.
S302: the DC system analyzes and checks the returned message after acquiring the returned message. The DC system checks whether the return message contains flight information and passenger information, and checks whether the flight information and the passenger information meet corresponding format requirements, such as whether basic information of a flight department, a flight number, a starting station and the like in the flight meet the corresponding format requirements. S303 is executed after the verification is completed.
S303: the DC system acquires the flight state of the corresponding flight, judges that the flight state is in a protected state or an initial closing state of the flight, and releases the protected state or the initial closing operation. If so, S304 is performed. If not, S305 is performed.
The DC system has a flight table, shown in table 1, for storing flight information. The passenger check-in operation is an operation after the flight is initialized, so that the flight information in the return message exists in the flight list of the DC system at the moment. The flight status of the flight in the flight table is first obtained and a determination is made as to whether it is protected or in an initial closed state.
TABLE 1
S304: the DC system releases the protection state or releases the initial shutdown operation.
The deprotection and release of the initial closed state operation is performed on the flight in the DC system flight table for the on-boarding operation, i.e., S305 is performed.
S305: and the DC system updates the flight state of the corresponding flight according to the flight information and updates the passenger data of the flight according to the passenger information.
For example, the data corresponding to the flight table and the passenger table of the DC system are updated according to the flight information and the passenger information in the return message.
S306, the DC system judges whether the return message contains an ETL message. If so, S307 is performed, and if not, S309 is performed.
S307: and sending the ETL message to an address appointed by the departure system, and forwarding the ETL message to the booking system by the departure system.
S308: the DC system also stores the flight information and passenger information in the return message in the database, as shown in tables 2 and 3, and sets the flight status in the message to be stored as "ETL return completed".
TABLE 2
TABLE 3 Table 3
S309: the DC system also stores the flight information and the passenger information in the backhaul message in the database, and at this time, the flight status in the message to be stored is set as "loaded backhaul".
S310: and respectively storing the flight information and the passenger information in the return message into a database table 2 and a database table 3 in the DC database.
Embodiment two: and processing a flight return message for the first time.
S401: the DC system requests the MES system once every 5s so as to acquire the return message sent by the DLB system from the MES system.
S402: the DC system analyzes and checks the returned message after acquiring the returned message. The DC system checks whether the return message contains flight information and passenger information, and checks whether the flight information and the passenger information meet corresponding format requirements, such as whether basic information of a flight department, a flight number, a starting station and the like in the flight meet the corresponding format requirements. S403 is executed after the verification is completed.
S403: judging whether the version identifiers of the backup flight departure information message and the historical backup flight departure information message are the same, if so, discarding the backup flight departure information message; if not, S404 is performed.
Before executing S403, it may also determine a historical backup flight departure information message that is the same as the flight information included in the backup flight departure information message.
S404: judging whether the returned message is an unprocessed message with the current latest version according to the version identification, and if not, discarding the backup flight departure information message; if yes, S405 is executed.
S405: the DC system acquires the flight state of the corresponding flight, judges that the flight state is in a protected state or an initial closing state of the flight, and releases the protected state or the initial closing operation. If so, S406 is performed. If not, S407 is performed.
S406: the DC system releases the protection state or releases the initial shutdown operation.
The deprotection and release of the initial closed state operation is performed on the flight in the DC system flight table for the on-boarding operation, i.e., S407 is performed.
S407: the DC system determines whether the feedback message includes the ETL message, if so, then S408 is executed, and if not, S416 is executed.
S408: the DC system determines whether the flight status is "loaded back", if so, then S409 is executed, and if not, S412 is executed.
S409: the DC system sends an ETL message to the booking system.
S410: the DC system updates the flight status to "completed ETL return".
S411: the DC system stores the flight information and the passenger information in the return message into a database table 2 and a database table 3 in the DC database respectively.
S412, the DC system judges whether the flight status is ETL return completed, if yes, the return message is discarded, if not, the process is directed to S413.
S413: the DC system updates the flight status and the passenger information according to the return message.
S414: and the DC system sends an ETL message to the booking system.
S415: the DC system updates the flight status to "ETL completed return" and then performs S411.
S416: the DC system determines whether the flight status is "ETL return completed", if so, discards the return message, and if not, executes S417.
S417: the DC system updates the flight status and the passenger information according to the return message.
S418: the DC system updates the flight status to "completed stowage return" and then performs S411.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
In addition to the data processing method provided by the embodiment of the application, a data processing system is also provided, as shown in fig. 3, including: an departure core function DC system 302, an departure local backup DLB system 303, and an intermediate storage system 304;
The DLB system 302 is configured to connect to the APG system and generate the backup flight departure information packet if the data transmission between the APG and the DC system fails. The DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to the intermediate storage system 304; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
the DC system 303 is configured to obtain the return packet from the intermediate storage system 304; and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, processing the returned message.
As a possible implementation manner, the backup flight departure information packet includes flight information and passenger information, and the DLB system 302 is configured to:
the DLB system 302 determines a historical backup flight departure information message that is identical to the flight information included in the backup flight departure information message;
if the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, the DLB system 302 uses the version identifier of the historical backup flight departure information message as the version identifier of the backup flight departure information message;
If the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the DLB system 302 obtains an updated version identifier according to the version identifier of the historical backup flight departure information message, and uses the updated version identifier as the version identifier of the backup flight departure information message.
As a possible implementation manner, the DC system 303 is further configured to parse the return packet to obtain flight information and passenger information; and updating the flight state of the corresponding flight according to the flight information, and updating the passenger data of the flight according to the passenger information.
As a possible implementation manner, if the DC system 303 determines that the updated flight status of the flight is consistent with the flight status represented by the flight information, and that the updated passenger data of the flight is consistent with the passenger information, the update is successful.
As a possible implementation manner, if the DC system 303 processes the return message for the first time, the DC system 303 is configured to:
the DC system 303 updates the flight status of the corresponding flight according to the flight information, and updates the passenger data of the flight according to the passenger information;
If the return message includes an ETL message, the DC system 303 sends the ETL message to a custom system, and updates the flight status to a completed ETL return;
if the return message does not include the ETL message, the DC system 303 updates the flight status to a completed stowage return.
As a possible implementation manner, if the DC system 303 does not process the return message for the first time, the DC system 303 is configured to:
if the return message does not include the electronic ticket list message ETL message, the DC system 303 determines a flight status of the corresponding flight; discarding the return message if the flight status is ETL return completed; if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, wherein the flight status is the completed stowage return;
if the return message includes the ETL message, the DC system 303 determines a flight status of the corresponding flight; if the flight status is the completed allocation return, sending the ETL message to a booking system, and updating the flight status to the completed ETL return; and if the flight status is the completed ETL return, updating the flight status and the passenger information according to the return message, and sending the ETL message to the booking system, wherein the flight status is the completed ETL return.
As a possible implementation manner, if the intermediate storage system is a micro service message MES system, the DLB system 302 compresses the backup flight departure information message carrying the version identifier to obtain a return message; the return message is not more than 4 megabits;
the DC system 303 is configured to:
decompressing the return message to obtain a decompressed return message;
and the DC system processes the decompressed feedback message.
As a possible implementation, before the DC system 303 processes the return packet, the DC system 303 checks whether the return packet includes flight information and passenger information, and whether the flight information and the passenger information meet corresponding format requirements;
if yes, executing the step of processing the feedback message by the DC system 303; if not, discarding the return message.
As a possible implementation, before the DC system 303 processes the return packet, the DC system 303 obtains a flight status of the corresponding flight;
if the DC system 303 determines that the flight status is in a protected status or an initial shutdown status of the flight, the DC system 303 removes the protected status or removes the initial shutdown operation.
According to the technical scheme, if the number transmission between the APG and the DC system fails, the DC system cannot receive the operation requests of the passenger check-in machine and the like sent by the APG, and the APG can send the operation requests to the DLB system, so that the DLB system can generate backup flight departure information messages according to the operation requests. The DLB system can work in place of the DC system so that the data transmission failure has no effect on the user. When the data of the flight changes, such as adding or deleting passenger information, the backup flight departure information message changes, and the DLB system generates a return message according to whether the backup flight departure information message is updated to the backup flight departure information message and adds a version identifier, and sends the return message to the intermediate storage system. The DC system actively acquires the returned message from the intermediate storage system, and if the returned message is determined to be an unprocessed and current latest version message according to the version identification, the DC system processes the returned message. Therefore, the DLB system and the DC system are decoupled by temporarily storing the backup flight departure information message in the intermediate storage system. And the version identification is added for the backup flight departure information message, so that the same message is processed only once, the workload of the DC system is reduced, and only the backup flight departure information message of the latest version is processed, thereby ensuring the consistency of data.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Referring now to fig. 4, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 606 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 606 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: if the data transmission between the front end APG of the departure of the airline company and the DC system of the departure core function fails, the APG sends a backup flight departure information message to the local backup DLB system of the departure; the DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to an intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message; the DC system acquires the return message from the intermediate storage system; and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, the DC system processes the returned message.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 606, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
According to one or more embodiments of the present application, there is provided a data processing method, the method comprising:
if the data transmission between the front end APG of the departure of the airline company and the DC system of the departure core function fails, the local departure backup DLB system is connected with the APG system and generates a backup flight departure information message;
The DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to an intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
the DC system acquires the return message from the intermediate storage system;
and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, the DC system processes the returned message.
According to one or more embodiments of the present application, an exemplary second aspect provides a data processing method, where the backup flight departure information packet includes flight information and passenger information, and the DLB system increases a version identifier according to whether the backup flight departure information packet is updated to the backup flight departure information packet, including:
the DLB system determines a historical backup flight departure information message which is the same as the flight information included in the backup flight departure information message;
if the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, the DLB system takes the version identifier of the historical backup flight departure information message as the version identifier of the backup flight departure information message;
If the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the DLB system obtains an updated version identifier according to the version identifier of the historical backup flight departure information message, and takes the updated version identifier as the version identifier of the backup flight departure information message.
According to one or more embodiments of the present application, there is provided a data processing method [ example three ], the method further comprising:
the DC system analyzes the returned message to obtain flight information and passenger information;
the DC system processes the feedback message, including:
and the DC system updates the flight state of the corresponding flight according to the flight information and updates the passenger data of the flight according to the passenger information.
According to one or more embodiments of the present application, there is provided a data processing method [ example four ], the method further comprising:
and if the DC system determines that the updated flight state of the flight is consistent with the flight state represented by the flight information, and that the updated passenger data of the flight is consistent with the passenger information, the updating is successful.
According to one or more embodiments of the present application, there is provided a data processing method [ example five ], where if a DC system processes a return message for the first time, the DC system processes the return message, including:
the DC system updates the flight state of the corresponding flight according to the flight information, and updates the passenger data of the flight according to the passenger information;
if the return message comprises an ETL message of an electronic ticket list message, the DC system sends the ETL message to a custom system and updates the flight status to be the completed ETL return;
and if the return message does not comprise the ETL message, the DC system updates the flight status to finish the load return.
According to one or more embodiments of the present application, there is provided a data processing method [ example six ], where if a DC system does not process a return message for the first time, the DC system processes the return message, including:
if the return message does not include the ETL message, the DC system determines the flight status of the corresponding flight; discarding the return message if the flight status is ETL return completed; if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, wherein the flight status is the completed stowage return;
If the return message comprises the ETL message, the DC system determines the flight status of the corresponding flight; if the flight status is the completed allocation return, sending the ETL message to a booking system, and updating the flight status to the completed ETL return; discarding the return message if the flight status is ETL return completed; and if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, and sending the ETL message to the booking system, wherein the flight status is the completed ETL return.
According to one or more embodiments of the present application, there is provided a data processing method [ example seven ], if the intermediate storage system is a micro service message MES system, the method further comprising:
the DLB system compresses the backup flight departure information message carrying the version identifier to obtain a return message; the return message is not more than 4 megabits;
the DC system processes the feedback message, including:
the DC system decompresses the return message to obtain the decompressed return message;
and the DC system processes the decompressed feedback message.
According to one or more embodiments of the present application, there is provided a data processing method, wherein before the DC system processes the return message, the DC system checks whether the return message includes flight information and passenger information, and whether the flight information and the passenger information meet corresponding format requirements;
If yes, executing the step of processing the return message by the DC system; if not, discarding the return message.
According to one or more embodiments of the present application, there is provided a data processing method, wherein the DC system acquires a flight status of a corresponding flight before the DC system processes the return message;
and if the DC system determines that the flight state is in a protected state or an initial flight closing state, the DC system releases the protection state or releases the initial closing operation.
According to one or more embodiments of the present application, there is provided a data processing system, the system comprising: the system comprises an departure core function DC system, an departure local backup DLB system and an intermediate storage system;
and the DLB system is used for connecting with the APG system and generating the backup flight departure information message after the data transmission between the APG and the DC system fails. The DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to the intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
The DC system is used for acquiring the return message from the intermediate storage system; and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, processing the returned message.
According to one or more embodiments of the present application, there is provided a data processing system [ example eleven ] the backup flight departure information message includes flight information and passenger information, the DLB system being configured to:
the DLB system determines a historical backup flight departure information message which is the same as the flight information included in the backup flight departure information message;
if the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, the DLB system takes the version identifier of the historical backup flight departure information message as the version identifier of the backup flight departure information message;
if the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the DLB system obtains an updated version identifier according to the version identifier of the historical backup flight departure information message, and takes the updated version identifier as the version identifier of the backup flight departure information message.
According to one or more embodiments of the present application, there is provided a data processing system [ example twelve ], where the DC system is further configured to parse the return packet to obtain flight information and passenger information; and updating the flight state of the corresponding flight according to the flight information, and updating the passenger data of the flight according to the passenger information.
According to one or more embodiments of the present application, there is provided a data processing system if the DC system determines that the updated flight status of the flight is consistent with the flight status characterized by the flight information, and that the updated passenger data of the flight is consistent with the passenger information, the update is successful.
According to one or more embodiments of the present application, there is provided a data processing system, if a DC system processes a return message for the first time, the DC system is configured to:
the DC system updates the flight state of the corresponding flight according to the flight information, and updates the passenger data of the flight according to the passenger information;
if the return message comprises an ETL message of an electronic ticket list message, the DC system sends the ETL message to a custom system and updates the flight status to be the completed ETL return;
And if the return message does not comprise the ETL message, the DC system updates the flight status to finish the load return.
According to one or more embodiments of the present application, there is provided a data processing system, if the DC system does not process the return message for the first time, the DC system is configured to:
if the return message does not include the ETL message, the DC system determines the flight status of the corresponding flight; discarding the return message if the flight status is ETL return completed; if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, wherein the flight status is the completed stowage return;
if the return message comprises the ETL message, the DC system determines the flight status of the corresponding flight; if the flight status is the completed allocation return, sending the ETL message to a booking system, and updating the flight status to the completed ETL return; discarding the return message if the flight status is ETL return completed; and if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, and sending the ETL message to the booking system, wherein the flight status is the completed ETL return.
According to one or more embodiments of the present application, there is provided a data processing system [ example sixteen ], where if the intermediate storage system is a micro service message MES system, the DLB system compresses a backup flight departure information message carrying the version identifier to obtain a return message; the return message is not more than 4 megabits;
the DC system is used for:
decompressing the return message to obtain a decompressed return message;
and the DC system processes the decompressed feedback message.
According to one or more embodiments of the present application, there is provided a data processing system, before the DC system processes the return message, the DC system checks whether the return message includes flight information and passenger information, and whether the flight information and the passenger information meet corresponding format requirements;
if yes, executing the step of processing the return message by the DC system; if not, discarding the return message.
According to one or more embodiments of the present application, there is provided a data processing system, the DC system acquiring a flight status of a corresponding flight before the DC system processes the return message;
And if the DC system determines that the flight state is in a protected state or an initial flight closing state, the DC system releases the protection state or releases the initial closing operation.
According to one or more embodiments of the present application, there is provided an electronic device, characterized by comprising:
one or more processors;
a storage device having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of examples one through nine.
According to one or more embodiments of the present application, there is provided a computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method according to any one of examples one to nine.
According to one or more embodiments of the present application, there is provided a computer program product, comprising a computer program or instructions; the computer program or instructions, when executed by a processor, performs the method of any one of examples one to nine.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (10)

1. A method of data processing, the method comprising:
if the data transmission between the front end APG of the departure of the airline company and the DC system of the departure core function fails, the departure local backup DLB system is connected with the APG system and generates a backup flight departure information message;
the DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, obtains a return message, and sends the return message to an intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
the DC system acquires the return message from the intermediate storage system;
and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, the DC system processes the returned message.
2. The method of claim 1, wherein the backup flight departure information message includes flight information and passenger information, and wherein the DLB system adds a version identifier according to whether the backup flight departure information message is updated to the backup flight departure information message, comprising:
The DLB system determines a historical backup flight departure information message which is the same as the flight information included in the backup flight departure information message;
if the passenger information included in the backup flight departure information message is the same as the passenger information included in the historical backup flight departure information message, the DLB system takes the version identifier of the historical backup flight departure information message as the version identifier of the backup flight departure information message;
if the passenger information included in the backup flight departure information message is different from the passenger information included in the historical backup flight departure information message, the DLB system obtains an updated version identifier according to the version identifier of the historical backup flight departure information message, and takes the updated version identifier as the version identifier of the backup flight departure information message.
3. The method according to claim 1, wherein the method further comprises:
the DC system analyzes the returned message to obtain flight information and passenger information;
the DC system processes the feedback message, including:
and the DC system updates the flight state of the corresponding flight according to the flight information and updates the passenger data of the flight according to the passenger information.
4. A method according to claim 3, characterized in that the method further comprises:
and if the DC system determines that the updated flight state of the flight is consistent with the flight state represented by the flight information, and that the updated passenger data of the flight is consistent with the passenger information, the updating is successful.
5. The method of claim 1, wherein the DC system processing the backhaul message comprises:
if the return message does not include the ETL message, the DC system determines the flight status of the corresponding flight; discarding the return message if the flight status is ETL return completed; if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, wherein the flight status is the completed stowage return;
if the return message comprises the ETL message, the DC system determines the flight status of the corresponding flight; if the flight status is the completed allocation return, sending the ETL message to a booking system, and updating the flight status to the completed ETL return; discarding the return message if the flight status is ETL return completed; and if the flight status is not the completed ETL return, updating the flight status and the passenger information according to the return message, and sending the ETL message to the booking system, wherein the flight status is the completed ETL return.
6. The method of claim 1, wherein if the intermediate storage system is a microservice message MES system, the method further comprises:
the DLB system compresses the backup flight departure information message carrying the version identifier to obtain a return message; the return message is not more than 4 megabits;
the DC system processes the feedback message, including:
the DC system decompresses the return message to obtain the decompressed return message;
and the DC system processes the decompressed feedback message.
7. A data processing system, the system comprising: the system comprises an departure core function DC system, an departure local backup DLB system and an intermediate storage system;
the DLB system is used for connecting with the APG system and generating a backup flight departure information message if data transmission between the APG and the DC system fails, and the DLB system obtains a return message according to whether the backup flight departure information message is updated to the backup flight departure information message and adds a version identifier to the backup flight departure information message and sends the return message to the intermediate storage system; the return message comprises a backup flight departure information message and a version identifier corresponding to the backup flight departure information message;
The DC system is used for acquiring the return message from the intermediate storage system; and if the returned message is determined to be the unprocessed message with the current latest version according to the version identification, processing the returned message.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, characterized in that a computer program is stored thereon, wherein the program, when executed by a processor, implements the method according to any of claims 1-6.
10. A computer program product comprising a computer program or instructions; the method of any of claims 1-6, when executed by a processor.
CN202210718810.5A 2022-06-23 2022-06-23 Data processing method and related device Active CN115134372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210718810.5A CN115134372B (en) 2022-06-23 2022-06-23 Data processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210718810.5A CN115134372B (en) 2022-06-23 2022-06-23 Data processing method and related device

Publications (2)

Publication Number Publication Date
CN115134372A CN115134372A (en) 2022-09-30
CN115134372B true CN115134372B (en) 2023-08-29

Family

ID=83379051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210718810.5A Active CN115134372B (en) 2022-06-23 2022-06-23 Data processing method and related device

Country Status (1)

Country Link
CN (1) CN115134372B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161632A1 (en) * 2017-03-09 2018-09-13 华为技术有限公司 Capacity updating method and apparatus for distributed device
CN111930557A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Data processing method, device and equipment
CN114003363A (en) * 2021-11-01 2022-02-01 支付宝(杭州)信息技术有限公司 Method and device for sending inter-thread interrupt signal
CN114303138A (en) * 2019-09-11 2022-04-08 英特尔公司 Hardware queue scheduling for multi-core computing environments
CN114398065A (en) * 2022-03-24 2022-04-26 Tcl通讯科技(成都)有限公司 Micro front-end system updating method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9542423B2 (en) * 2012-12-31 2017-01-10 Apple Inc. Backup user interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161632A1 (en) * 2017-03-09 2018-09-13 华为技术有限公司 Capacity updating method and apparatus for distributed device
CN111930557A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Data processing method, device and equipment
CN114303138A (en) * 2019-09-11 2022-04-08 英特尔公司 Hardware queue scheduling for multi-core computing environments
CN114003363A (en) * 2021-11-01 2022-02-01 支付宝(杭州)信息技术有限公司 Method and device for sending inter-thread interrupt signal
CN114398065A (en) * 2022-03-24 2022-04-26 Tcl通讯科技(成都)有限公司 Micro front-end system updating method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115134372A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN111897862B (en) Data synchronization system, method and storage medium for civil aviation data
US20190132189A1 (en) Disseminating commands from a dms server to fielded devices using an extendable command architecture
CN109783151B (en) Method and device for rule change
CN115345559B (en) Method, device and system for transmitting and confirming loading notification of aircraft cargo hold
CN102411511B (en) Data migration for service upgrades
CN111104413A (en) System and method for updating a shared database using blockchain techniques
CN112486825B (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
CN112182006B (en) Flight data updating method, device, server and storage medium
CN115134372B (en) Data processing method and related device
CN107682573B (en) High-concurrency outbound method, system, equipment and storage medium
EP3282604A1 (en) Integrated monitoring control device and integrated monitoring control system
CN113179324A (en) Block chain node and service processing method executed by same
CN108833147B (en) Configuration information updating method and device
CN113312420B (en) Flight data processing method, device, equipment and storage medium
CN112231560B (en) Flight information query method, device, equipment and readable storage medium
CN112651531A (en) Method for re-staging missed passengers and related equipment
CN110661857B (en) Data synchronization method and device
CN113761075A (en) Method, device, equipment and computer readable medium for switching databases
CN113783826A (en) Micro-service exception handling method and device
CN116029790A (en) Method and device for trading airline frequent flyer
CN110750316A (en) Method for processing internal task or input event and application program architecture system
CN114862264B (en) Electricity-changing order information generation method, device, equipment and computer readable medium
CN118233324A (en) Testing method and system based on flow interception and asynchronous forwarding
CN111314457B (en) Method and device for setting virtual private cloud
CN112258298A (en) Data processing method and device and electronic equipment

Legal Events

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