A real-time calculation method and system for global fuel charges and airport taxes for civil aviation tickets based on microservice group structure
By designing the global fuel fee and airport tax real-time calculation system for civil aviation tickets as a microservice group, the performance bottleneck and fault location problems caused by the monolithic architecture are solved, efficient parallel computing and localization transformation are achieved, and the system performance and operation are improved. Dimensional efficiency.
Patent Information
- Application Number
- CN202411099762.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The existing real-time global fuel fee and airport tax calculation system for civil aviation tickets adopts a monolithic architecture and lacks the ability to handle concurrent requests, resulting in performance bottlenecks and low fault location efficiency, and it is difficult to carry out localization transformation.
Adopting a structural design based on microservice groups, the decomposition system is divided into authorization authentication microservice group, basic data analysis microservice group, multi-level cache generation microservice group, voyage global analysis microservice group and multi-level cache calculation Microservice groups realize efficient parallel computing and independent component updates.
It improves the computing performance and operation and maintenance efficiency of the system, simplifies fault location, reduces dependencies between complex businesses, and supports efficient localization transformation.
Smart Images

Figure CN118628191B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of real-time calculation of global fuel charges and airport taxes for civil aviation tickets, and specifically relates to a real-time calculation method and system for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure. Background Art
[0002] At present, the access requirements of various users for real-time calculation of fuel charges and airport taxes have increased significantly, which has made airlines urgently need to optimize and improve the operation and maintenance capabilities and computing performance of existing real-time computing systems. In addition, in order to further meet the independent control of the technical chain of such real-time systems, it is also necessary to carry out localization and adaptive transformation of existing system components. Therefore, how to enable the existing real-time calculation system of fuel charges and airport taxes to meet higher-scale concurrent processing capabilities, more convenient fault tracing capabilities, and support efficient localization transformation is an important challenge at this stage.
[0003] Specifically, due to the extremely complex processing rules of the global fuel fee and airport tax real-time calculation system, it is often designed with a monolithic architecture. On the one hand, this design restricts the system's ability to handle higher concurrent requests. For example, when the number of user requests exceeds a certain scale, the processing speed of such systems will be bottlenecked or even directly crash, causing huge economic losses and user loss to airlines, which is intolerable for real-time computing systems. On the other hand, the traditional monolithic architecture models and couples all business logic in an overall application, which often makes it impossible for operation and maintenance personnel to accurately and quickly locate faults and analyze root causes, affecting the efficiency of operation and maintenance work. In addition, due to the organizational structure of the monolithic application, it also brings challenges to the subsequent domestic technology transformation. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a real-time calculation method and system for global fuel surcharges and airport taxes for civil aviation tickets based on a microservice group structure. According to the industry demand for civil aviation e-commerce ticketing, the global fuel surcharge and airport tax calculation tasks in the civil aviation ticket e-commerce sales system are analyzed, and multiple microservice groups and their organizational structure are set up according to the demand to achieve more efficient and convenient real-time calculation of global fuel surcharges and airport taxes for civil aviation tickets, thereby improving the overall computing performance and operation and maintenance efficiency.
[0005] The specific technical solution for achieving the purpose of the present invention is:
[0006] Step 1: The authorization and authentication microservice group obtains the access authorization code and verifies the compliance and legality of the authorization code;
[0007] Step 2: The basic data analysis microservice group regularly obtains the global fuel fee and airport tax basic data source files, performs standardized analysis, and stores them in a structured physical database to form an original database;
[0008] Step 3: The multi-level cache generation microservice group obtains the original data of the physical database, and caches and processes the original data;
[0009] Step 4: Initialize the microservice group to load the multi-level cache regularly to generate cache data in the microservice group;
[0010] Step 5: The voyage global analysis microservice group obtains external access request data, analyzes the request data, and obtains voyage information;
[0011] Step 6: The multi-level cache computing microservice group determines the adapted global fuel charges and airport tax data based on the flight information, and feeds the information back to the external interaction microservice group;
[0012] Step 7: The external interaction microservice group receives global fuel charges and airport tax data, and feeds back the data based on external request information.
[0013] The present invention also provides a real-time calculation system for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure, including an authorization and authentication microservice group, a basic data analysis microservice group, a multi-level cache generation microservice group, an initialization microservice group, a voyage global analysis microservice group, a multi-level cache calculation microservice group, and an external interaction microservice group;
[0014] The authorization and authentication microservice group is used to perform compliance verification on the access authorization information;
[0015] The basic data analysis microservice group is used to perform structured analysis on the global fuel charges and airport tax basic data and store it in the basic physical database;
[0016] The multi-level cache generation microservice group is used to process the data in the basic physical database;
[0017] The initialization microservice group is used to perform timed initialization loading according to the verification result of the authorization and authentication microservice group and the data processed by the multi-level cache generation microservice group;
[0018] The voyage global analysis microservice group is used to perform rule retrieval and verification based on external access request data combined with the loading data of the initialization microservice group;
[0019] The multi-level cache calculation microservice group is used to perform real-time calculation of fuel charges and airport taxes based on the verification results of the voyage global analysis microservice group;
[0020] The external interaction microservice group is used to receive external access request data, and at the same time interactively share the calculation results of the multi-level cache calculation microservice group with the external system.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] The solution of the present invention designs the computing tasks, data management and other functions involved in the real-time calculation of global fuel charges and airport taxes for civil aviation tickets according to business logic, and proposes a structural relationship of microservice groups, which enables operation and maintenance personnel to efficiently and accurately locate faults for this specific microservice group, thereby reducing the pressure of system operation and maintenance;
[0023] The solution of the present invention decouples the fuel fee and airport tax real-time calculation system based on the microservice group structure design, which can reduce the dependency between complex businesses and provide a basis for better parallel maximization of computing resources. At the same time, based on multi-level cache generation of microservice groups and multi-level cache calculation microservice groups, the system computing efficiency is improved by optimizing the original basic data structure, highly parallelized real-time computing is achieved, and system performance is improved.
[0024] (3) The solution of the present invention is based on the microservice group structure design, which introduces the concept of microservice group and forms a relatively independent component coupling mode. A single microservice group can be updated and replaced independently, providing a basis for the subsequent adaptive technical transformation of the localized components of the system.
[0025] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The present invention is a schematic diagram of a method and system for real-time calculation of global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure in an embodiment of the present invention.
[0027] Figure 2 It is a schematic diagram of the process of forming an L1 cache library in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] Example
[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an kind" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0031] Combination Figure 1 , a real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure, comprising the following steps:
[0032] Step 1: The authorization and authentication microservice group obtains the access authorization code and verifies the compliance and legality of the authorization code:
[0033] Perform compliance check on the received airport tax authorization code (for example, it cannot contain illegal characters or spaces). If the check fails, the service will be stopped. If the check succeeds, the airport tax authorization code will be decoded according to the airport tax authorization decryption algorithm to obtain the real authorization information, and the legitimacy of the real authorization information will be checked.
[0034] Perform compliance check on the received fuel fee authorization code (for example, it cannot contain illegal characters or spaces). If the check fails, the service is stopped. If the check succeeds, the fuel fee authorization code is decoded according to the fuel fee authorization decryption algorithm to obtain the real authorization information, and the legitimacy of the real authorization information is checked.
[0035] The compliance check includes a null value check and an illegal character check for the airport tax authorization code or the fuel fee authorization code.
[0036] The authorization code is composed of service information and the server's unique identification code, and is generated through an encryption algorithm.
[0037] Step 2: The basic data analysis microservice group regularly obtains the global fuel fee and airport tax basic data source files released by international civil aviation industry organizations, performs standardized analysis, and stores them in a structured physical database to form an original database:
[0038] Design the original data structure of airport tax based on the complex airport tax rules in the global civil aviation industry, and parse and persistently store the airport tax data files acquired regularly according to this structure;
[0039] Design the original fuel cost data structure based on the complex fuel cost rules in the global civil aviation industry, and parse and persistently store the regularly acquired fuel cost data files according to this structure;
[0040] Extract and design the common structure of other basic data (such as global exchange rates) that may be involved, and parse and persistently store the regularly acquired data files according to this structure;
[0041] Specifically, according to the update frequency of common data source files and the real-time requirements of the global fuel and airport tax real-time calculation engine for basic data, set the running time of the parsing service. For example, the update frequency of ICER is zero to multiple times a day, and it affects the accuracy of the calculation results of the global fuel and airport tax real-time calculation engine. Therefore, the running time of the ICER parsing task is set to be executed regularly every day.
[0042] Step 3: The multi-level cache generation microservice group obtains the original data of the physical database, and caches and processes the original data:
[0043] The multi-level cache generation microservice group includes the third-level cache generation microservice subgroup, the second-level cache generation microservice subgroup and the first-level cache generation microservice subgroup, which cache and process data respectively. Among them, the third-level cache generation microservice subgroup cleans and preprocesses the structured original data, deletes redundant data and invalid data to ensure the quality of the data, and provides data support for the next-level cache generation. The L3 cache library formed by it has the largest capacity among the three-level cache libraries. It stores the full amount of valid global airport tax and fuel fee data, which can be used for real-time calculation of global fuel fees and airport taxes for civil aviation tickets. The second-level cache generation microservice subgroup is based on the L3 cache library, analyzes and optimizes the original complex structure, selects key business fields to recombin and sort, improves data access speed, and thus improves the efficiency of real-time calculation of global fuel fees and airport taxes. Compared with the L3 cache library, the L2 cache library formed by the second-level cache generation microservice subgroup has a smaller capacity but a more streamlined structure, which can quickly adapt to data and greatly improve the response speed of real-time calculation. The first-level cache generation microservice subgroup is used to retain the most frequently accessed routes and their corresponding global fuel costs and airport tax results, which can reduce the frequency of data access to the L2 cache library and further improve the performance of real-time computing. The L1 cache library formed by the first-level cache generation microservice subgroup stores the route result set and can be directly fed back to external users, reducing intermediate calculation links and minimizing response time.
[0044] However, since the route result set stored in the L1 cache is frequently called every day, its route result set cannot satisfy all external access requests. Therefore, the L2 cache also serves as the guarantee data of the L1 cache to ensure the integrity of the calculation. The multi-level cache generation microservice group here can optimize the original basic data structure, improve the system calculation efficiency, and realize highly parallel real-time calculation, including:
[0045] Step 3-1: The third-level cache generation microservice subgroup removes duplication and extracts valid records from the original fuel fee and airport tax data in the physical database according to business rules to form an L3 cache library:
[0046] Step 3-1-1: Determine the scope of airport tax records in the original database based on the airline's flight plan, and classify and store these records according to the country category corresponding to the airport tax;
[0047] Step 3-1-2: According to the adjustment of the fuel fee collection price and collection time, the invalid fuel fee records in the original database are removed, and the valid records are stored;
[0048] Step 3-1-3, sort, determine the duplication and validity of the common records of fuel charges and airport taxes in the original database, and store the valid data after deduplication;
[0049] Specifically, firstly, the record set in the original database is obtained, including airport tax records, fuel fee records, and fuel fee and airport tax common records. Secondly, the records are sorted by date and valid records are extracted.
[0050] For example, the fields of the common data ICER include base currency type, conversion currency type, exchange rate value, and exchange rate effective date; assuming that the target effective date is 2023-01-16, the original database contains multiple ICER records with exchange rate effective dates of 2023-01-14, 2023-01-15, 2023-01-16, etc. After a series of rule checks, the ICER record with an exchange rate effective date of 2023-01-16 is finally stored as the exchange rate set ICER_1.
[0051] The L3 cache library generated based on this step can be used for the subsequent generation of the L2 cache library, which can effectively improve the computing efficiency of the entire computing process.
[0052] Step 3-2: The second-level cache generation microservice subgroup is based on the L3 cache library, and further extracts the fuel fee and airport tax data stored therein according to the structure for real-time calculation of global fuel fees and airport taxes for civil aviation tickets to form an L2 cache library;
[0053] Specifically, firstly, the data type of the records in the L3 cache library is judged (the data types include fuel fee data, airport tax data, and common data of fuel fee and airport tax), and the cache structure analysis and design for airport tax calculation or fuel fee calculation are performed on this type to form the L2 cache library;
[0054] Step 3-3, the first-level cache generation microservice subgroup regularly obtains the parameter combination value that is strongly associated with the real-time calculation from the global flight analysis microservice group, and accumulates this value to the L1-level route library according to business rules; it automatically traverses each route in the L1-level route library regularly, and calculates the routes one by one in combination with the global fuel surcharge and airport tax real-time calculation engine, obtains the global fuel surcharge and airport tax results for each route, forms an L1-level cache library, and combines Figure 2 Specifically:
[0055] Step 3-3-1, obtain the parameter combination values that are strongly associated with the real-time calculation from the global analysis of the voyage, analyze the route type, remove the duplication of routes, and accumulate the number of routes of the same type for the parameter combination values, and store the summarized results in the physical database to form an L1-level route library;
[0056] The route types include international one-way routes, domestic one-way routes, domestic round-trip routes, international round-trip routes, transit routes, stopover routes, etc.;
[0057] For example, parameter combination values that are strongly associated with real-time calculations are obtained from a global analysis of the voyage, and the parameter combination values are classified and summarized according to route categories (such as international one-way routes, domestic one-way routes, domestic round-trip routes, international round-trip routes, etc.) and transfer categories (such as transfer, stopover), to obtain L1-level routes to be merged; secondly, the L1-level routes to be merged are searched in the L1-level route library. If no L1-level routes are found, the routes are directly stored. Otherwise, the count value in the L1-level route library is obtained, and the count value is added by one and then stored.
[0058] Assume a parameter implementation example that meets the verification rules: Route A: Beijing-Shanghai; Shanghai-Beijing (PEK-SHA; SHA-PEK); Booking date: 2023-01-16; Departure date: 2023-10-21 11:50; 2023-12-21 09:50, Arrival date: 2023-10-21 15:30; 2023-12-21 11:50, Currency type: CNY; Passenger type: ADT; Issuer code: C; Market code: C; Carrier code: C.
[0059] In the above example, since Beijing and Shanghai are both airports in China, the route category is judged to be a domestic round-trip route; based on the time difference between the departure date and the arrival date, the transfer category is judged to be a transfer; if there is no record of the same type in the L1-level route library, route A is taken as a new record and is counted as 1 and stored in the L1-level route library; if it is already included and the count value is 10, the count value in the L1-level route library is updated to 11.
[0060] Step 3-3-2, obtain all routes in the L1 route database, analyze them and construct parameters of the global fuel fee and airport tax real-time calculation engine; obtain airport tax and fuel fee details by combining the global fuel fee and airport tax real-time calculation engine, and integrate the airport tax and fuel fee details with route information to generate L1 cache records;
[0061] Specifically, firstly, route a in the above-mentioned hypothetical L1-level route library is extracted, and the calculation parameters of route A are constructed according to the request input parameter format of the global fuel fee and airport tax real-time calculation engine (the calculation parameters include the specific route, booking date, departure date, arrival date, currency type, passenger type, ticket issuer code, market code, and carrier code); secondly, the calculation parameters are brought into the global fuel fee and airport tax real-time calculation engine to obtain the calculation results of the airport tax and fuel fee; finally, the route and the corresponding calculated airport tax and fuel fee details are integrated to form an L1-level cache record.
[0062] Among them, assuming that the passenger types of route A are adults, children, and infants, three types of input parameters can be constructed according to the passenger types. Input parameter a1: the route is Beijing-Shanghai; Shanghai-Beijing, the booking date is 2023-01-01, and the passenger type is adult; input parameter a2: the route is Beijing-Shanghai; Shanghai-Beijing, and the passenger type is child; input parameter a3: the route is Beijing-Shanghai; Shanghai-Beijing, and the passenger type is infant. Take a1, a2, and a3 as calculation input parameters, respectively send requests to the global fuel fee and airport tax real-time calculation engine, and obtain the corresponding airport tax and fuel fee details (r1, r2, r3); integrate a1 and r1, a2 and r2, and a3 and r3 to generate L1 cache records (b1, b2, b3).
[0063] Step 3-3-3, automatically and regularly update and switch the L1 cache records according to business rules, realize daily dynamic update of the L1 cache, and ensure the real-time effectiveness of the L1 cache;
[0064] Specifically, based on the above assumption, the validity period of the L1 cache record is from 2023-01-01 00:00:00 to 2023-01-01 23:59:59, and the switching time is set to 2023-01-01 00:00:00.
[0065] Step 4: Initialize the microservice group to load the multi-level cache regularly to generate cache data in the microservice group;
[0066] In this embodiment, the three records b1, b2, and b3 in the above-mentioned assumed L1 cache are loaded into the memory, and the record set of ICER_1 in the above-mentioned assumed L2 cache is loaded into the memory.
[0067] Step 5: The voyage global analysis microservice group obtains external access request data, analyzes the request data, and obtains voyage information:
[0068] The global flight analysis microservice group obtains the request parameters for the global fuel fee and airport tax real-time calculation engine from various channels of the airline, and uses each parameter as a screening condition to search in the abnormal route information table; if the search result is not zero, the global fuel fee and airport tax calculation request is stopped, otherwise the parameter information is disassembled and classified according to the industry's classification standards for route types and transfer methods to obtain the flight combination result.
[0069] Specifically, a global analysis rule base for flights is constructed, including route classification rules, transfer classification rules, and passenger type classification rules; for example, routes include international one-way routes, domestic one-way routes, international open-jaw routes, and domestic open-jaw routes; transfers include transfers and stopovers; and passenger categories include adults, children, and infants.
[0070] First, the parameter compliance of the input information is checked. For example, when the departure time is less than the booking time, the system returns a parameter exception. Secondly, the route category is judged based on whether the flight points in the route are all in the same country. If so, it is judged as a domestic route, otherwise it is an international route. For example, the route: New York-Shanghai, this route category is an international route. When all the rules in the rule base are analyzed, the analysis results are summarized to obtain the flight combination result.
[0071] The abnormal route information table includes specific routes, markets, carriers, countries, etc. The designated route emergency service analyzes and judges the voyage combination results based on the abnormal route information table. If the voyage combination result matches any item in the abnormal route information table, the calculation request for this route is suspended. Assuming that the fuel cost calculation of the Kunming-Bangkok route is wrong, the abnormal route information table configures a specific route, whose content is Kunming-Bangkok; when the route combination result contains the Kunming-Bangkok segment, the current calculation request is stopped and a prompt message is returned.
[0072] Step 6: The multi-level cache computing microservice group determines the global fuel charges and airport taxes based on the flight information, and feeds the information back to the external interaction microservice group:
[0073] Step 6-1, traverse the flight combination results obtained in step 5, and determine whether the current flight value exists in the L1 cache record; if not, store this flight to the flight combination to be calculated; if so, read the airport tax and fuel fee details in the corresponding L1 cache record, and then store the flight value and its airport tax and fuel fee details to the calculated flight combination;
[0074] Step 6-2: Adapt, screen and calculate each airport point in the voyage to be calculated in accordance with the airport tax calculation rules to obtain the airport tax details of the voyage; analyze and calculate the voyage to be calculated according to the fuel fee calculation rules to obtain the fuel fee details of the voyage;
[0075] Step 6-3: Integrate the calculated flight combinations, and finally feed back the summarized airport tax and fuel fee details to the external interaction microservice group.
[0076] In addition, the L1 cache synchronization service automatically pushes data change messages to the first-level cache generation microservice subgroup in each server at a fixed time. After the first-level cache generation microservice subgroup listens to this message, it updates the latest L1 cache record to the first-level cache generation microservice subgroup.
[0077] Step 7: The external microservice group receives global fuel charges and airport tax data, and feeds back the data based on external request information.
[0078] The external interaction microservice group in this embodiment includes a variety of interface services, such as query interface service, ticket change interface service, ticket refund interface service and tax verification interface service. According to the different needs of customers, the fuel fee and airport tax calculation results of the multi-level cache calculation microservice group can be further calculated, and feedback can be provided according to customer needs to adapt to diverse e-commerce sales business scenarios, meet the calls of different users, and realize seamless connection of requests to the target interface service.
[0079] The present invention also provides a real-time calculation system for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure. First, based on the "low coupling" design principle, the functional modules are decoupled according to the business field to determine the boundaries of the microservice group, that is, similar functions are placed in the same microservice group, thereby reducing system complexity and facilitating system maintenance and management. Among them, airport tax authorization authentication and fuel fee authorization authentication belong to the background management business, which are used for identity authentication to ensure secure access to the system and data, and are therefore classified into the authorization authentication microservice group. Secondly, the dependencies between microservice groups are sorted out, and the pre-continuation and subsequent calling relationships of the service groups are designed, so that the massive microservices can operate more efficiently and collaboratively, and finally the real-time calculation of global fuel charges and airport taxes for civil aviation tickets is realized;
[0080] Specifically, it includes authorization and authentication microservice group, basic data analysis microservice group, multi-level cache generation microservice group, initialization microservice group, voyage global analysis microservice group, multi-level cache calculation microservice group and external interaction microservice group.
[0081] The authorization and authentication microservice group is used to perform compliance verification on the access authorization information;
[0082] The basic data analysis microservice group is used to perform structured analysis on the global fuel charges and airport tax basic data and store it in the basic physical database;
[0083] The multi-level cache generation microservice group is used to process the data in the basic physical database;
[0084] The initialization microservice group is used to perform timed initialization loading according to the verification result of the authorization and authentication microservice group and the data processed by the multi-level cache generation microservice group;
[0085] The voyage global analysis microservice group is used to perform rule retrieval and verification based on external access request data combined with the loading data of the initialization microservice group;
[0086] The multi-level cache calculation microservice group is used to perform real-time calculation of fuel charges and airport taxes based on the verification results of the voyage global analysis microservice group;
[0087] The external interaction microservice group is used to receive external access request data, and at the same time interactively share the calculation results of the multi-level cache calculation microservice group with the external system.
[0088] This system designs and decouples the computing tasks, data management and other functions involved in the real-time calculation of global fuel charges and airport taxes for civil aviation tickets according to business logic, and proposes a structural relationship of microservice groups, which can reduce the dependencies between complex businesses, better realize the parallelization of computing resources, and improve system performance. At the same time, a single microservice group can be updated and replaced independently, providing a basis for the adaptive technical transformation of the system's domestic components.
[0089] The above embodiments show and describe the basic principles and main features of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.
Claims
1. A real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure, characterized in that: The following steps are involved: Step 1: The authorization and authentication microservice group obtains the access authorization code and verifies the compliance and legality of the authorization code; Step 2: The basic data analysis microservice group regularly obtains the global fuel fee and airport tax basic data source files, performs standardized analysis, and stores them in a structured physical database to form an original database; Step 3: The multi-level cache generation microservice group obtains the original data of the physical database, and caches and processes the original data; Step 4: Initialize the microservice group to load the multi-level cache regularly to generate cache data in the microservice group; Step 5: The voyage global analysis microservice group obtains external access request data, analyzes the request data, and obtains voyage information; Step 6: The multi-level cache computing microservice group determines the adapted global fuel charges and airport tax data based on the flight information, and feeds the information back to the external interaction microservice group; Step 7: The external interaction microservice group receives global fuel charges and airport tax data, and feeds back the data based on external request information.
2. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 1 is characterized in that: The compliance and legality of the authorization code in step 1 are verified as follows: Perform compliance check on the received airport tax authorization code. If the check fails, stop the service. If the check succeeds, decode the airport tax authorization code according to the airport tax authorization decryption algorithm to obtain the real authorization information, and perform legality check on the real authorization information. Perform compliance check on the received fuel fee authorization code. If the check fails, stop the service. If the check succeeds, decode the fuel fee authorization code according to the fuel fee authorization decryption algorithm to obtain the real authorization information, and perform legality check on the real authorization information. The compliance check includes a null value check and an illegal character check for the airport tax authorization code or the fuel fee authorization code.
3. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 1 is characterized in that: The specific process of forming the original database in step 2 is: Design the original data structure of airport tax based on the industry airport tax rules, and parse and persistently store the airport tax data files acquired regularly according to this structure; Design the original data structure of fuel cost based on the industry fuel cost rules, and parse and persistently store the fuel cost data files acquired regularly according to this structure; Extract and design the common structure of other basic data that may be involved, and parse and persistently store the data files acquired at regular intervals according to this structure.
4. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 1 is characterized in that: The multi-level cache generation microservice group in step 3 includes a third-level cache generation microservice subgroup, a second-level cache generation microservice subgroup, and a first-level cache generation microservice subgroup, which cache and process data respectively, including: Step 3-1: The third-level cache generation microservice subgroup removes duplication and extracts valid records of the original fuel fee and airport tax data in the physical database according to business rules to form an L3 cache library; Step 3-2: The second-level cache generation microservice subgroup extracts the fuel fee and airport tax data stored in the L3 cache library according to the structure of real-time calculation of global fuel fees and airport taxes for civil aviation tickets to form an L2 cache library; Step 3-3, the first-level cache generation microservice subgroup periodically obtains the parameter combination values that are strongly related to the real-time calculation from the global flight analysis microservice group, and accumulates this value to the L1-level route library according to business rules; it automatically traverses each route in the L1-level route library at a regular interval, and calculates the routes one by one in combination with the global fuel surcharge and airport tax real-time calculation engine, obtains the global fuel surcharge and airport tax results for each route, and forms an L1-level cache library.
5. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 4 is characterized in that: The third-level cache generation microservice subgroup in step 3-1 removes duplicates and extracts valid records of the original fuel fee and airport tax data in the physical database according to business rules, specifically: Step 3-1-1: Determine the scope of airport tax records in the original database based on the airline's flight plan, and classify and store these records according to the country category corresponding to the airport tax; Step 3-1-2: According to the adjustment of the fuel fee collection price and collection time, the invalid fuel fee records in the original database are removed, and the valid records are stored; Step 3-1-3: Sort, determine the duplication and validity of the common records of fuel charges and airport taxes in the original database, and store the valid data after deduplication.
6. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 4 is characterized in that: The formation of the L1 cache library in step 3-3 is specifically as follows: Step 3-3-1, obtain the parameter combination values that are strongly associated with the real-time calculation from the global analysis of the voyage, analyze the route type, remove the duplication of routes, and accumulate the number of routes of the same type for the parameter combination values, and store the summarized results in the physical database to form an L1-level route library; The route types include international one-way routes, domestic one-way routes, domestic round-trip routes, international round-trip routes, transit routes, and stopover routes; Step 3-3-2, obtain all routes in the L1 route database, analyze them and construct parameters of the global fuel fee and airport tax real-time calculation engine; obtain airport tax and fuel fee details by combining the global fuel fee and airport tax real-time calculation engine, and integrate the airport tax and fuel fee details with route information to generate L1 cache records; Step 3-3-3: Automatically update and switch the L1 cache library regularly according to business rules to achieve daily dynamic update of the L1 cache and ensure the real-time effectiveness of the L1 cache.
7. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 4 is characterized in that: The voyage global analysis microservice group in step 5 obtains voyage information, specifically: The global flight analysis microservice group obtains the request parameters of the global fuel fee and airport tax real-time calculation engine from various channels of the airline, and uses each parameter as a screening condition to search in the abnormal route information table; if the search result is not zero, the real-time calculation of global fuel fees and airport taxes is stopped; otherwise, the parameter information is disassembled and classified according to the industry's classification standards for route types and transit methods to obtain the flight combination results.
8. The real-time calculation method for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure according to claim 7 is characterized in that: The multi-level cache computing microservice group in step 6 determines the global fuel fee and airport tax data based on the flight information, specifically: Step 6-1, the L1 level computing microservice subgroup traverses the flight combination results obtained in step 5, and determines whether the current flight value exists in the L1 level cache record; If it does not exist, store the flight into the flight combination to be calculated. If it does exist, read the airport tax and fuel fee details in the corresponding L1 cache record, and then store the flight value and its airport tax and fuel fee details into the calculated flight combination. Step 6-2, the L2 computing microservice subgroup adapts, screens, and calculates each airport point in the flight to be calculated in accordance with the airport tax calculation rules to obtain the airport tax details of the flight; The L2 computing microservice subgroup analyzes and calculates the voyage to be calculated according to the fuel cost calculation rules to obtain the fuel cost details of the voyage; Step 6-3: Integrate the calculated flight combinations, and finally feed back the summarized airport tax and fuel fee details to the external interaction microservice group.
9. A real-time calculation system for global fuel charges and airport taxes for civil aviation tickets based on a microservice group structure, characterized in that: Including authorization and authentication microservice group, basic data analysis microservice group, multi-level cache generation microservice group, initialization microservice group, voyage global analysis microservice group, multi-level cache calculation microservice group and external interaction microservice group; The authorization and authentication microservice group is used to perform compliance verification on the access authorization information; The basic data analysis microservice group is used to perform structured analysis on the global fuel charges and airport tax basic data and store it in the basic physical database; The multi-level cache generation microservice group is used to process the data in the basic physical database; The initialization microservice group is used to perform timed initialization loading according to the verification result of the authorization and authentication microservice group and the data processed by the multi-level cache generation microservice group; The voyage global analysis microservice group is used to perform rule retrieval and verification based on external access request data combined with the loading data of the initialization microservice group; The multi-level cache calculation microservice group is used to perform real-time calculation of fuel charges and airport taxes based on the verification results of the voyage global analysis microservice group; The external interaction microservice group is used to receive external access request data, and at the same time interactively share the calculation results of the multi-level cache calculation microservice group with the external system.
Citation Information
Patent Citations
Intelligent operation data management device and method and computer system
CN113032000A
Micro-service development management system
CN115242644A
Data processing system based on Redis distributed cache
CN115481151A
Real-time calculation method and system for fuel charge of passenger ticket for global civil aviation
CN116433256A
Real-time calculation method and system for global civil aviation passenger ticket airport tax
CN116485565A
