A method and system for airline data processing based on NDC
The NDC-based airline data processing method solves the resource waste problem caused by frequent airline protocol upgrades, achieves efficient data integration and cluster scaling, and reduces user maintenance costs.
Patent Information
- Application Number
- CN202111329438.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2041-11-10
AI Technical Summary
Airlines frequently upgrade their agreements, which results in downstream users having to frequently connect with each other, resulting in a waste of time and resources.
Adopting an NDC-based airline data processing method, it supports data integration from different airlines by receiving user requests, controlling permissions and traffic, converting protocols, and using load strategies to distribute tasks to the cluster for data acquisition, as well as caching and aggregation operations.
It improves resource acquisition efficiency, reduces user development and maintenance costs, supports cluster scale expansion, and adapts to the increase in upstream airlines.
Smart Images

Figure CN114281518B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of domestic and international air ticket data processing, and in particular to a method and system for airline data processing based on NDC. Background Art
[0002] In recent years, airlines have increasingly offered API-based data exporting of freight rates and product data to downstream customers to increase their direct sales ratio. This has led to a continuous increase in data superiority and resource richness. However, due to differences in product offerings and R&D capabilities, API protocols vary significantly, requiring downstream users to complete system integration on a case-by-case basis to access these resources.
[0003] In addition, airlines frequently upgrade their agreements, and each change requires all users to upgrade to ensure that the product can better reach users. This takes a lot of time and causes a large waste of R&D and hardware resources for downstream agents and other users. Summary of the Invention
[0004] In order to solve the problem that airlines frequently upgrade their agreements, and each change requires all users to connect and upgrade, which takes a lot of time, this application provides a method and system for airline data processing based on NDC.
[0005] In the first aspect, this application provides a method for processing airline data based on NDC, which adopts the following technical solutions:
[0006] A method for processing airline data based on NDC, comprising the following steps:
[0007] Receive NDC requests sent by the user end and perform permission and flow control on the NDC requests;
[0008] Convert the NDC request protocol sent by the user end into the system internal model;
[0009] Send user requests to the search cluster or transaction cluster using a preset load strategy;
[0010] Split the NDC request into multiple tasks based on the NDC request parameters and distribute the split tasks to the airline access service cluster for data acquisition.
[0011] Convert NDC request parameters according to the agreements of each airline and initiate query requests to each airline;
[0012] The search cluster caches and aggregates the query data before responding to upstream applications.
[0013] Convert the system internal model into NDC protocol and respond to the user end.
[0014] By adopting the above technical solutions, through cluster caching and asynchronous processing methods, the efficiency of resource acquisition is improved. Based on the NDC standard protocol and integrating the data of all airlines, the cost of user development and maintenance is greatly saved. By adopting a distributed stateless architecture, the scalability of cluster scale is supported and the continuous increase of upstream airlines is supported.
[0015] Optionally, converting the NDC request protocol sent by the user terminal into a system internal model specifically includes:
[0016] Parse the user's request and obtain the request item information;
[0017] According to the request information, the data corresponding to the request information in the system internal model is selected.
[0018] By adopting the above technical solution, the NDC request protocol issued by the user end is converted into the system's internal model, so that the request issued by the user end is converted into universal data applicable to different airlines, thereby facilitating the acquisition of information from different airlines. Users can obtain the desired data without having to upgrade the system.
[0019] Optionally, sending the user request to the search cluster or the transaction cluster using a preset load strategy specifically includes:
[0020] After receiving the NDC request, the request sent by the client to the load balancing module is forwarded to a node in the transaction cluster / search cluster in turn.
[0021] By adopting the above technical solution, requests are processed in a load balancing manner, which has the characteristics of simple implementation and enables each cluster node to share all requests evenly, reducing the pressure on the server and improving the speed of data transmission.
[0022] Optionally, the step of splitting the request task corresponding to the NDC request into multiple tasks based on the parameters of the NDC request and distributing the split tasks to the airline access service cluster for data acquisition specifically includes:
[0023] Split the request task into multiple tasks based on the parameters of the user request;
[0024] Filter invalid tasks;
[0025] Prioritize cache hits for filtered tasks;
[0026] Distribute the cache penetration task to the airline access service cluster for data acquisition.
[0027] By adopting the above technical solution, invalid tasks can be screened and intercepted in time, which can avoid invalid tasks being assigned to airlines as much as possible, resulting in the situation where the airlines need to handle too many tasks.
[0028] Optionally, converting the parameters of the NDC request according to the agreement of each airline and initiating a query request to each airline specifically includes:
[0029] Parsing the response data, which includes flight information fed back by the airline to the airline access service cluster;
[0030] Supplement and standardize discrepancy data, including content required by the system but missing from the flight information provided by the airlines;
[0031] The processed data is converted into an internal structure and responded to the search cluster.
[0032] By adopting the above technical solution, the airline responds to the received tasks and feeds back the flight information corresponding to the tasks. The system receives the information sent by the airline and supplements the information, so as to facilitate the subsequent presentation of the flight information required by the user, integrate the flight information of different airlines, and improve the convenience of query.
[0033] Optionally, converting the system internal model into the NDC protocol and responding to the user terminal further includes:
[0034] Perform data tracking for NDC requests.
[0035] By adopting the above technical solution, a record is made for each query, and the number of queries is counted to facilitate subsequent problem troubleshooting, and query volume charges can be implemented.
[0036] Secondly, this application provides a system for processing airline data based on NDC, which adopts the following technical solutions:
[0037] An NDC-based airline data processing system includes an operations management platform, an access gateway module, a transaction cluster, a search cluster, and an airline access service cluster; the transaction cluster and the search cluster both interact and communicate with the access gateway module, and both interact and communicate with the airline access service cluster;
[0038] The access gateway module receives the NDC request sent by the user end and is used to complete the NDC protocol standardization adaptation, flow control, query-to-subscription ratio setting, billing and rights limitation issues;
[0039] The transaction cluster is responsible for transaction recording, payment, ticketing, and order query tasks; the transaction cluster receives transaction requests that are applicable to the system's internal model and transmits the processed transaction requests to the airline access service cluster;
[0040] The search cluster is used to implement airline data caching, task distribution, and data aggregation. The search cluster receives transaction requests that are applicable to the system's internal model and transmits the processed transaction requests to the airline access service cluster.
[0041] The airline access service cluster is responsible for the processes of airline access, protocol analysis, data conversion, and data filling. The airline access service cluster is used to distribute tasks to corresponding airlines and receive flight information feedback from the airlines.
[0042] By adopting the above technical solutions, through cluster caching and asynchronous processing methods, the efficiency of resource acquisition is improved. Based on the NDC standard protocol and integrating the data of all airlines, the cost of user development and maintenance is greatly saved. By adopting a distributed stateless architecture, the scalability of cluster scale is supported and the continuous increase of upstream airlines is supported.
[0043] Optionally, it also includes an airline's own interface protocol, which is used to adapt to all airline interfaces.
[0044] By adopting the above technical solution, flight information of different airlines can be integrated through the same interface protocol, which facilitates the unified management of resources and improves the efficiency of resource acquisition.
[0045] In a third aspect, the present application provides a smart terminal that adopts the following technical solution:
[0046] An intelligent terminal includes a memory and a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for processing airline data based on NDC as described above is implemented.
[0047] By adopting the above technical solution, corresponding programs can be stored and processed, unified processing of data resources can be achieved, and resource acquisition efficiency is improved.
[0048] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0049] A computer-readable storage medium comprises a readable storage medium and a computer program stored and running on the readable storage medium, wherein the computer program is loaded and executed by a processor to implement any of the above-described methods for processing airline data based on NDC.
[0050] By adopting the above technical solution, it is convenient to store related programs, thereby improving resource acquisition efficiency.
[0051] In summary, this application includes at least one of the following beneficial technical effects:
[0052] 1. Improve resource acquisition efficiency through cluster caching and asynchronous processing;
[0053] 2. Based on the NDC standard protocol and integrating data from all airlines, it significantly reduces user development and maintenance costs;
[0054] 3. By adopting a distributed stateless architecture, it supports the expansion and contraction of cluster size and the continuous increase of upstream airlines. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is an overall structural block diagram of an NDC-based airline data processing system in an embodiment of the present application.
[0056] Figure 2 This is a structural block diagram of the protocol conversion in an embodiment of the present application.
[0057] Figure 3 It is a structural block diagram of the system of the embodiment of the present application.
[0058] Figure 4 This is a schematic diagram of the overall process of an NDC-based airline data processing method in an embodiment of the present application.
[0059] Figure 5 This is a flow chart of converting the NDC protocol into system internal model data in an embodiment of the present application.
[0060] Figure 6 It is a flowchart of task allocation in an embodiment of the present application.
[0061] Figure 7 It is a flowchart of the task feedback process in the embodiment of the present application.
[0062] Figure 8 This is a timing diagram of an NDC-based airline data processing method in an embodiment of the present application.
[0063] Explanation of the accompanying symbols: 1. Operation management platform; 11. Access gateway module; 111. Authentication unit; 112. Flow control unit; 113. Internal model adaptation unit; 114. NDC protocol model adaptation unit; 12. Transaction cluster; 13. Search cluster; 131. Task splitting unit; 132. Invalid task filtering unit; 133. Cache hit unit; 134. Cache breakdown unit; 135. Update cache module; 136. Data merging module; 14. Airlines access service cluster; 141. Airlines protocol adaptation unit; 142. Forwarding request unit; 143. Receiving response unit; 144. Adaptation to internal model unit; 145. Basic data supplement unit; 15. Airlines' own interface protocol. DETAILED DESCRIPTION
[0064] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0065] NDC (New Distribution Capability), the NDC standard released by IATA, aims to develop and popularize a new set of data transmission standards based on the Internet XML language.
[0066] Airline API interface: Airlines establish direct sales with agents, OTAs, TMCs, etc. through the interface to better sell their air tickets, ancillary products, services and other products.
[0067] Check-in / booking ratio: A measure of the ratio of the total number of flight inquiries to the number of bookings. Check-in / booking ratio = flight inquiries / booking PNRs.
[0068] The following is a further detailed description of an embodiment of the method and system for airline data processing based on NDC in the present application in conjunction with the drawings in the specification.
[0069] The present application embodiment discloses a system for processing airline data based on NDC. Figure 1 and Figure 2 An NDC-based airline data processing system includes an operations management platform 1, an access gateway module 11, a transaction cluster 12, a search cluster 13, and an airline access service cluster 14. Operations management platform 1 includes an airline-specific interface protocol 15, which is used to adapt to all airline interfaces. Using the same interface protocol, flight information from different airlines can be integrated, facilitating unified resource management and improving resource acquisition efficiency.
[0070] Reference Figure 1 and Figure 3 The access gateway module 11 is used to complete the NDC protocol standardization adaptation, flow control, check-to-book ratio setting, billing and rights limitation issues. Specifically, the access gateway module 11 includes an authentication unit 111, a flow control unit 112 and an adaptation internal model unit 113. The authentication unit 111 is used to perform rights identification on the user's request task and determine the airlines that the user can access. The flow control unit 112 is used to manage and control tasks within the system, which is conducive to preventing data loss due to the mismatch between the number of tasks and the processing speed of the operation management platform 1. The adaptation internal model unit 113 is used to convert the NDC request protocol sent by the user end into data adapted to the system's internal model, so as to facilitate unified scheduling of task data.
[0071] Reference Figure 1 and Figure 2, the search cluster 13 is used to implement airline data caching, task distribution and data aggregation. Specifically, the search cluster 13 includes a task splitting unit 131, an invalid task filtering unit 132, a cache hit unit 133 and a cache breakdown unit 134. The task splitting unit 131 is used to split the acquired task information, select the airline to which the task is adapted, and distribute the tasks to the adapted airlines in turn. The invalid task filtering unit 132 is used to filter out invalid tasks, which is beneficial to reducing the processing load of the operation management platform 1. In one embodiment, if the flight corresponding to the task is canceled, the task will be filtered and will not enter the next step. The cache hit unit 133 is used to increase the query speed, intercept duplicate requests, and reduce the query and booking ratio. The cache breakdown unit 134 is used to distribute tasks that have not been intercepted to the airline access service cluster 14.
[0072] Reference Figure 1 and Figure 2 Specifically, the airline access service cluster 14 includes an airline protocol adaptation unit 141, a forwarding request unit 142, a receiving response unit 143, an internal model adaptation unit 144, and a basic data supplement unit 145. The airline protocol adaptation unit 141 is used to convert the task data of the system internal model into data adapted to the airline protocol corresponding to the task. The forwarding request unit 142 is used to send a query request to the airline and transmit the converted data to the airline. The receiving response unit 143 is used to receive the flight information fed back by the airline based on the task data. The internal model adaptation unit 144 is used to convert the flight information corresponding to the airline's airline protocol into data adapted to the system internal model. The basic data supplement unit 145 is used to supplement the converted flight information and feed the supplemented flight information data back to the search cluster 13.
[0073] The search cluster 13 also includes an update cache module 135 and a data merging module 136. The update cache module 135 is used to store the supplemented flight information in the database of the operation management platform 1 for user query. The data merging module 136 is used to unify and plan the data information fed back by different airlines for user viewing.
[0074] Reference Figure 1 and Figure 3 The transaction cluster 12 is responsible for transaction records, payments, ticketing, order inquiries, etc. The tasks received by the transaction cluster 12 are only for one airline, so the transaction cluster 12 will directly transfer the tasks to the access cluster, thereby obtaining transaction information through feedback from the airline.
[0075] The access gateway module 11 also includes an NDC protocol model adaptation unit 114, which converts data from the internal model adaptation unit 113 into data that conforms to the NDC protocol. This allows users to conveniently query required flight information without having to upgrade their systems. Data from different airlines is processed uniformly, improving the speed and convenience of data acquisition.
[0076] The following describes in detail the implementation of an NDC-based airline data processing method, using an NDC-based airline data processing system:
[0077] Reference Figure 1 and Figure 4 Another embodiment of the present application provides a method for processing airline data based on NDC, comprising the following steps:
[0078] S10, receiving user requests and performing permission and flow control on the user requests;
[0079] The airlines that the user terminal can access are different, and when the access gateway module 11 receives a request from the user terminal, it needs to control the number of requests entering the operation management platform, so as to avoid the situation where the server is stuck due to too much request information.
[0080] In one embodiment, a user sends a request to query Air China, China Southern Airlines, and China Eastern Airlines flights from Shanghai to Beijing on October 1st. First, a check is performed to determine whether the user has permission to query Air China flights, China Southern Airlines flights, or China Eastern Airlines flights. If the user is authorized to query Air China and China Southern Airlines flights but not China Eastern Airlines flights, two tasks are generated. Task one is sent to Air China, querying flights from Shanghai to Beijing on October 1st; task two is sent to China Southern Airlines, querying flights from Shanghai to Beijing on October 1st.
[0081] During implementation, the amount of tasks that the operation management platform 1 can handle simultaneously is preset, and the traffic within the operation management platform 1 is restricted, thereby effectively avoiding the situation where data loss occurs due to excessive tasks of the operation management platform 1 in the same time period.
[0082] S20, converting the NDC request protocol sent by the user end into a system internal model;
[0083] Reference Figure 1 and Figure 5 ,The specific steps of converting the NDC request protocol sent by the user ,client into the system internal model include:
[0084] S201, parsing the request from the user to obtain the request items;
[0085] S202: Select all flight information corresponding to the obtained request items according to the request items.
[0086] By converting the NDC request protocol sent by the user end into the system's internal model, the request sent by the user end is converted into universal data applicable to different airlines, making it easier to obtain information from different airlines. Users can obtain the data they want without having to upgrade the system.
[0087] In one embodiment, a user sends a request to query flights from Shanghai to Beijing on October 1st. In the protocol used by the user, information about flights from Shanghai to Beijing on October 1st is represented in XML format. Information about flights from Shanghai to Beijing on October 1st is represented in POJO format within the operations management platform 1. Specifically, the XML format representing the task information on the user side is converted to POJO format. Both formats correspond to the task information about flights from Shanghai to Beijing on October 1st. Specifically, the POJO object contains the departure airport (Shanghai), the return airport (Beijing), the departure date (October 1st), the return date, and the itinerary type. The operations management platform collects signals from the user side to obtain the specific request information, analyzes the request information, and sends transaction requests to the transaction cluster and search requests to the search cluster.
[0088] S30, sending the user request to the search cluster 13 or the transaction cluster 12 through the load strategy;
[0089] The load strategy uses a round-robin algorithm to achieve load balancing. Specifically, after a request arrives, the client's request to the load balancing module is forwarded to a node in the backend service cluster in turn. This strategy is simple to implement, and each cluster node evenly shares all requests.
[0090] In one embodiment, operations management platform 1 simultaneously receives twenty task requests. The transaction cluster 12 within operations management platform 1 includes three transaction core service nodes, and the search cluster 13 within operations management platform 1 includes three search core service nodes. Of the twenty task requests, eight are transaction requests, and twelve are search requests. The eight transaction requests are forwarded in turn to the three transaction core service nodes, while the twelve search requests are forwarded in turn to the three search core service nodes. Load balancing processes these requests, simplifying implementation and ensuring that each cluster node evenly shares all requests, reduces server pressure, and increases data transmission speed.
[0091] S40, splitting the request task into multiple tasks based on the parameters of the user request and distributing the tasks to the airline access service cluster 14 for data acquisition;
[0092] During implementation, the operation management platform 1 will receive many tasks, including many useless tasks. Therefore, it is necessary to screen the tasks to avoid the airline from receiving useless tasks as much as possible. Figure 1 and Figure 6 , the specific steps are as follows:
[0093] S401, splitting the requested task into multiple tasks based on the parameters of the user request;
[0094] S402, filtering invalid tasks;
[0095] Invalid tasks are tasks that the operation management platform 1 determines do not exist, such as querying sold-out tickets, querying flights that the airline does not have, etc.
[0096] S403, giving priority to cache hits;
[0097] When a user accesses an acceleration node, if the node has the requested data cached, it's considered a hit. If not, the node needs to return to the original server for the data, which is considered a miss. The data retrieval process is synchronized with the user's access, so even when retrieving new data, the user doesn't notice any delay. The hit rate is calculated as: hit rate = number of hits / (number of hits + number of misses). Caching technology is primarily used to increase query speed, prevent duplicate requests, and reduce the query-to-results ratio.
[0098] S404: Distribute the cache penetration task to the airline access service cluster 14 for data acquisition.
[0099] Tasks are distributed based on the parameter information in the user request or the task splitting results. The parameter information includes flight time, flight number, flight fare, flight departure point and flight arrival point, etc. The task splitting results include task filtering results, cache hit results, etc.
[0100] In one embodiment, the parameters of the user request are flight information from Shanghai to Beijing between October 1st and October 3rd. The user request is divided into three tasks: Task 1 is to query flight information from Shanghai to Beijing on October 1st, Task 2 is to query flight information from Shanghai to Beijing on October 2nd, and Task 3 is to query flight information from Shanghai to Beijing on October 3rd. Since the flight from Shanghai to Beijing on October 1st is sold out, Task 1 is automatically filtered out. A cache hit is performed on Task 2 and Task 3 to determine whether Task 2 and Task 3 are duplicate requests. If Task 2 and Task 3 are determined to be executable tasks, Task 2 and Task 3 are distributed to the airline access service cluster 14 for data acquisition.
[0101] During implementation, screening and timely intercepting invalid tasks can help avoid sending invalid tasks to airlines, which would cause the airlines to have too many tasks to handle.
[0102] S50: Initiate a query request by integrating parameters according to the agreement between the airlines;
[0103] Reference Figure 1 and Figure 7 , according to the agreement of each airline, the parameters are integrated and the query request is initiated, which includes the following steps:
[0104] S501, parsing the response data;
[0105] In one embodiment, the task parsed by operations management platform 1 is to query China Southern Airlines flights from Shanghai to Beijing on October 1st. The task data is represented in POJO format within operations management platform 1. The airline's proprietary interface protocol 15 on operations management platform 1 converts the POJO task data into data compatible with China Southern Airlines' protocol, thereby obtaining detailed information about China Southern Airlines' flights from Shanghai to Beijing on October 1st.
[0106] S502, supplementing and standardizing the difference data;
[0107] S503 , converting the processed data into an internal structure and responding to the search cluster 13 .
[0108] In one embodiment, China Southern Airlines provides information about flights from Shanghai to Beijing on October 1st, including flight time, corresponding fares, flight number, flight on-time performance, fuel surcharges, and available seats. All of this information is represented by data corresponding to the China Southern Airlines protocol. China Southern Airlines feeds this information back to the airline access service cluster 14 via an interface, which converts the information into data compatible with the system's internal model, displaying it in a POJO format.
[0109] In another embodiment, the POJO-formatted data obtained by the airline access service cluster 14 is missing. After analyzing the data, it is found that the data obtained by the airline access service cluster 14 lacks the name of the airline corresponding to the flight and the name of the airport where the flight is located. The airline access service cluster 14 supplements the data with the corresponding airline name and airport name in POJO format to make the data more complete and meet the requirements of standard flight information.
[0110] S60: cache and aggregate the data and respond to the upstream application;
[0111] The data content provided by different airlines is different. After obtaining the flight information of different airlines, the operation management platform 1 needs to uniformly process the flight information data to facilitate the user's ticket purchasing experience.
[0112] In one embodiment, a user searches for flights from Shanghai to Beijing on October 1st on Air China, China Southern Airlines, and China Eastern Airlines. The information provided by Air China is in the following order: flight time, corresponding fare, flight number, flight on-time performance, fuel surcharge, and available seats. The information provided by China Southern Airlines is in the following order: corresponding fare, flight number, flight on-time performance, fuel surcharge, flight time, and available seats. After collecting the information, the flight information is sorted chronologically and then reordered in the following order: flight time, total fare, flight number, available seats, and flight on-time performance. The total fare is the sum of the corresponding fare and fuel surcharge.
[0113] S70: Convert the system internal model into the NDC protocol and respond to the user.
[0114] In one embodiment, the data that the operation management platform 1 needs to feed back to the user end is to query flights from Shanghai to Beijing on October 1st. In the protocol used by the user end, the information for querying flights from Shanghai to Beijing on October 1st is expressed in XML format. The information for querying flights from Shanghai to Beijing on October 1st within the operation management platform 1 is expressed in POJO format. That is, the POJO format representing task information on the operation management platform 1 is converted to XML format. The task information corresponding to both formats is to query flights from Shanghai to Beijing on October 1st. After receiving the feedback information, the user end will display all flight information from Shanghai to Beijing on October 1st for the user to select.
[0115] In another embodiment, the search cluster 13 transmits task information and flight information provided by airlines to the access gateway module 11. The access gateway module 11 then performs data tracking and collects statistics on users' browsing, query, and transaction behaviors. Specifically, statistics include user browsing time, number of flight queries, and purchased tickets. This information is used to calculate the search-to-book ratio, which can be used to troubleshoot issues and optimize the system.
[0116] Reference Figure 1 and Figure 8, the user end sends the NDC request to the access gateway module 11. After the access gateway module 11 performs rights authentication and flow control on the NDC request, it converts the NDC into task data that is adapted to the system's internal model and transmits it to the search cluster 13. The search cluster 13 splits and caches the tasks, and assigns the processed tasks to the corresponding airline access service cluster 14. The airline access service cluster 14 transmits the tasks to the corresponding airline in a manner adapted to the corresponding airline protocol, and obtains the flight information fed back by the airline. The airline access service cluster 14 transmits the flight information to the search cluster 13. The search cluster 13 caches and aggregates the received flight information and transmits it to the access gateway module 11 for tracking, and feeds back the flight information to the user end in a manner adapted to the NDC protocol.
[0117] This embodiment of the application proposes a more efficient and convenient direct data connection method by adapting airline data interfaces to the NDC standard protocol, while also aggregating existing non-standard protocol airlines and outputting them using a standardized protocol. This improves resource acquisition efficiency through cluster caching and asynchronous processing. The integration of airline-wide data based on the NDC standard protocol significantly reduces user development and maintenance costs. The distributed, stateless architecture supports cluster scalability and the continued addition of upstream airlines.
[0118] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a smart terminal.
[0119] An intelligent terminal includes a memory and a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, any of the above-mentioned methods for processing airline data based on NDC is implemented.
[0120] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a computer-readable storage medium, including a readable storage medium and a computer program stored and running on the readable storage medium. The computer program is loaded and executed by a processor to implement any of the above-mentioned methods for airline data processing based on NDC.
[0121] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0122] Those skilled in the art will appreciate that all or part of the steps of implementing the above embodiments may be accomplished by hardware, or may be accomplished by a program instructing the relevant hardware. The program may be stored in a computer-readable storage medium. The above-mentioned storage medium may include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0123] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for processing airline data based on NDC, characterized by: The following steps are involved: Receive NDC requests sent by the user end and perform permission and flow control on the NDC requests; Convert the NDC request protocol sent by the user end into the system internal model; User requests are sent to a search cluster or transaction cluster using a pre-set load strategy. The search cluster is used to cache airline data, distribute tasks, and aggregate data. The transaction cluster is responsible for transaction records, payments, ticketing, and order inquiries. Tasks received by the transaction cluster are only for one airline. Split the NDC request into multiple tasks based on the NDC request parameters and distribute the split tasks to the airline access service cluster for data acquisition. Convert NDC request parameters according to the agreements of each airline and initiate query requests to each airline; The search cluster caches and aggregates the query data before responding to upstream applications. Convert the system internal model into NDC protocol and respond to the user end; The method of splitting the request task corresponding to the NDC request into multiple tasks based on the parameters of the NDC request and distributing the split tasks to the airline access service cluster for data acquisition specifically includes: splitting the request task into multiple tasks based on the parameters of the user request; filtering invalid tasks; giving priority to cache hits for the filtered tasks; and distributing cache-penetrated tasks to the airline access service cluster for data acquisition; The NDC request parameters are converted according to the agreement between each airline and the query request is sent to each airline, specifically including: parsing the response data, which includes the flight information provided by the airline to the airline access service cluster; supplementing and standardizing the difference data, which includes content required by the system but missing from the flight information provided by the airline; and converting the processed data into an internal structure and sending it back to the search cluster. Converting the NDC request protocol sent by the user terminal into a system internal model specifically includes: Parse the user's request and obtain the request item information; According to the request information, the data corresponding to the request information in the system internal model is selected.
2. The method for processing airline data based on NDC according to claim 1, characterized in that: The sending of the user request to the search cluster or the transaction cluster using the preset load strategy specifically includes: After receiving the NDC request, the request sent by the client to the load balancing module is forwarded to a node in the transaction cluster / search cluster in turn.
3. The method for processing airline data based on NDC according to claim 1, characterized in that: The converting of the system internal model into the NDC protocol and responding to the user end further includes: Perform data tracking for NDC requests.
4. A system for processing airline data based on NDC, characterized by: The system adopts the method according to any one of claims 1 to 3, and the system comprises: an operation management platform, an access gateway module, a transaction cluster, a search cluster, and an airline access service cluster; the transaction cluster and the search cluster both interact and communicate with the access gateway module, and the transaction cluster and the search cluster both interact and communicate with the airline access service cluster; The access gateway module receives the NDC request sent by the user end and is used to complete the NDC protocol standardization adaptation, flow control, query-to-subscription ratio setting, billing and rights limitation issues; The transaction cluster is responsible for transaction recording, payment, ticketing, and order query tasks; the transaction cluster receives transaction requests that are applicable to the system's internal model and transmits the processed transaction requests to the airline access service cluster; The search cluster is used to implement airline data caching, task distribution, and data aggregation. The search cluster receives transaction requests that are applicable to the system's internal model and transmits the processed transaction requests to the airline access service cluster. The airline access service cluster is responsible for the processes of airline access, protocol analysis, data conversion, and data filling. The airline access service cluster is used to distribute tasks to corresponding airlines and receive flight information feedback from the airlines.
5. The system for processing airline data based on NDC according to claim 4, characterized in that: Also included is an airline's own interface protocol, which is used to adapt to all airline interfaces.
6. An intelligent terminal, characterized in that: The invention comprises a memory and a processor and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for processing airline data based on NDC as claimed in any one of claims 1 to 3 is implemented.
7. A computer-readable storage medium, characterized in that It includes a readable storage medium and a computer program stored and running on the readable storage medium, wherein the computer program is loaded and executed by a processor to implement a method for airline data processing based on NDC as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Civil-aviation mobile platform system and method thereof
CN102624872A
A standardized airline additional service sales method and device
CN112231542A