Flight space state cache updating method, system, equipment, medium and product

By setting the HOST parameter and monitoring TPS usage in real time, requests are sent in packets, which solves the problem of cache update efficiency and accuracy caused by the large volume of flight cabin status queries, and achieves the effect of flexibly controlling the query volume and improving cache update efficiency.

CN120994676AActive Publication Date: 2025-11-21TRAVELSKY TECHNOLOGY LIMITED
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202511211654.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-11-21
Estimated Expiration
2045-08-27

AI Technical Summary

Technical Problem

In existing technologies, the large volume of flight cabin status queries leads to query capacity threshold limitations in airline PSS systems, affecting cache update efficiency and accuracy.

Method used

By setting the HOST parameter for each airline, the TPS usage is monitored in real time. Requests are sent in packets grouped by HOST, and any reported anomalies are received and the cache status is updated.

Benefits of technology

Without changing the host capacity, the query volume can be flexibly controlled, improving the efficiency and accuracy of cache updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994676A_ABST
    Figure CN120994676A_ABST
Patent Text Reader

Abstract

The invention discloses a flight space state cache updating method, system and device, a medium and a product. The method comprises the following steps: setting HOST parameters to which a passenger service system of each airline belongs; acquiring flight space states from a cache according to the flight query request, and putting flight query information corresponding to the flight space states with failed cache into a corresponding to-be-reported flight queue according to the HOST to which the flight query information belongs; the TPS use condition of each HOST is monitored in real time, and when the TPS use condition of a certain HOST is smaller than a TPS threshold value, an effective flight is acquired from the corresponding queue to be grouped and reported, and a request message is sent to the HOST; and receiving the return of each HOST, judging whether the return is abnormal or not, and updating the flight space state in the normal return to the cache. According to the method, under the condition that the HOST capacity is not changed, the query quantity can be flexibly controlled, the cache updating efficiency is improved to the maximum extent, and the cache accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of civil aviation technology, and in particular to methods, systems, devices, media and products for updating flight cabin status cache. Background Technology

[0002] Current flight fare searches involve two key data types: fare data and flight and cabin availability. When a user queries, the system typically calculates the price based on both the fare and cabin availability and returns it to the user. This calculation requires querying the Passenger Service System (PSS) of the airline to which the flight belongs to for cabin availability information. Because the query volume is very high, and airline PSS systems generally have a certain query capacity threshold, and for multiple airlines sharing the same PSS provider HOST (the main system to which the airline's PSS belongs), there is a total capacity threshold, many fare search systems use caching technology to reduce the number of queries requesting AV (Availability, or cabin availability status) from the passenger service system.

[0003] Therefore, there is an urgent need for a flight cabin status cache update method that can effectively help the fare search system flexibly control its query volume without changing its host capacity, while maximizing cache update efficiency and cache accuracy. Summary of the Invention

[0004] The purpose of this invention is to provide a method, system, device, medium, and product for updating flight cabin status cache, which can flexibly control the query volume without changing the host capacity, thereby maximizing cache update efficiency and improving cache accuracy.

[0005] To achieve the above objectives, the present invention provides the following technical solution: In a first aspect, embodiments of the present invention provide a method for updating a flight cabin status cache, the method comprising: Configure the HOST parameters for each airline's passenger service system; Based on the flight query request, query the cache status of the flight cabin status, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs. Real-time monitoring of TPS usage for each host; when the TPS usage of a host is less than the TPS threshold, retrieve valid flights from the corresponding pending flight queue and send a request message to that host. Receive reports from each host and determine if the reports are abnormal. Update the flight cabin status in the normal reports to the cache.

[0006] Secondly, embodiments of the present invention provide a flight cache update system, the system comprising: The HOST parameter setting component is used to set the HOST parameters for each airline's passenger service system; The cache query component is used to retrieve the flight cabin status from the cache based on the flight query request, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs; The message sending component is used to monitor the TPS usage of each HOST in real time. When the TPS usage of a certain HOST is less than the TPS threshold, it retrieves the valid flight from the corresponding pending message queue and sends a request message to that HOST. The cache update component is used to receive reports from each host and determine whether the reports are abnormal. Normal reports will be updated to the cache with the flight cabin status. Multiple cache query components, message sending components, and cache update components are deployed.

[0007] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program or instructions to implement the aforementioned method for updating flight cabin status cache.

[0008] Fourthly, embodiments of the present invention also provide a computer storage medium storing a computer program or instructions, which, when executed by a processor, implement the aforementioned method for updating a flight cabin status cache.

[0009] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the aforementioned method for updating a flight cabin status cache.

[0010] The technical effects and advantages of this invention are as follows: By adding a HOST threshold access monitoring mechanism to the cabin cache update module, this invention can determine whether to send a real-time request message to the HOST based on the HOST's real-time TPS usage. This invention can effectively help the fare search system flexibly control the HOST's query volume without changing its HOST capacity, and mix and group flights from the same HOST airline to maximize cache update efficiency while effectively improving cache accuracy.

[0011] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a flight cabin status cache update method according to an embodiment of the present invention; Figure 2 This is a detailed flowchart of a flight cabin status cache update method according to an embodiment of the present invention; Figure 3 This is a scenario application diagram of a flight cabin status cache update method according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a flight cache update system according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0015] To address the shortcomings of existing technologies, this invention discloses a method for updating flight cabin status cache, such as... Figure 1 As shown, it includes the following steps: Step S1: Set the HOST parameters for each airline's passenger service system; Step S2: Retrieve the flight cabin status from the cache according to the flight query request, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs; Step S3: Monitor the TPS usage of each HOST in real time. When the TPS usage of a certain HOST is less than the TPS threshold, obtain a valid flight from the corresponding pending grouping queue and send a request message to the HOST. Step S4: Receive reports from each HOST and determine if the reports are abnormal. For normal reports, update the flight cabin status to the cache.

[0016] In some specific embodiments, step S1: setting the HOST parameter of each airline's passenger service system, specifically including: The HOST parameter setting component configures various parameters of the HOST, mainly including two configuration tables: the airline HOST table and the HOST parameter table. In practice, the HOST parameter setting component is usually exposed to the front end for users to use.

[0017] Specifically, users obtain the airline HOST table by establishing a mapping relationship between each airline and HOST through the HOST parameter setting component, and set the TPS threshold, maximum number of flights per message, flight waiting time threshold (referring to the time in the queue of flights to be grouped) and timeout time for each HOST to construct the HOST parameter table; the airline HOST table and HOST parameter table are shown below.

[0018] Table 1. Airline HOST List

[0019] Table 2 HOST Parameter Table

[0020] In this embodiment, by setting the TPS threshold of the host to which each airline's PSS belongs, it can be determined whether a message can be sent to the host during a query.

[0021] In some specific embodiments, step S2 involves retrieving the flight cabin status from the cache based on the flight query request, and placing the flight query information corresponding to the expired flight cabin status into the corresponding queue of flights to be reported according to their respective HOSTs. In practice, multiple cache query components are deployed to perform step S2 in parallel. Therefore, the processing flow of the cache query components is as follows: The cache query component constructs a cache query key for flight cabin status based on the flight number, flight date, OD (Origin and Destination) information, POS (Point of Sale) information, and POC (Point of Commencement) information in the flight query request.

[0022] like Figure 2 As shown, the cache query component retrieves the corresponding flight cabin status from the cache based on the cache query key, and determines the cache status of the flight cabin status based on the cache timestamp of the flight cabin status (referring to the timestamp when the flight cabin status was cached): If the timestamp of the flight cabin status has not expired, it means that the flight cabin status cache is valid, and the cache query component will directly return the flight cabin status.

[0023] If the cache timestamp of the flight cabin status has expired, it means that the flight cabin status cache is invalid. The cache query component obtains the flight query information corresponding to the expired flight cabin status, and then queries the HOST of the airline in the flight query information according to the airline HOST table. The flight query information is then put into the pending flight queue corresponding to the HOST. At the same time, deduplication is performed and the request timestamp of the flight query information is recorded.

[0024] Each HOST has a corresponding queue of flights to be grouped and reported; the request timestamp represents the timestamp when the flight query information is placed into the queue of flights to be grouped and reported; the flight query information includes: flight number, OD information, flight date, POS information, and POC information, etc.

[0025] In some specific embodiments, step S3 involves real-time monitoring of the TPS (Transactions Per Second) usage of each host. When the TPS usage of a host is less than the TPS threshold, a valid flight is retrieved from the corresponding pending packet queue, and a request packet is sent to that host. In practice, multiple packet sending components are deployed to perform step S3 in parallel. Therefore, the processing flow of the packet sending components is as follows: (1) The message sending component is initialized: The message sending component obtains the TPS threshold, maximum number of messages, flight waiting time threshold, and timeout time for each HOST according to the HOST parameter table; then the message sending component monitors whether the corresponding list of flights to be grouped is empty according to the HOST parameter table. If it is not empty, the following steps (2) are executed repeatedly until the list of flights to be grouped is empty.

[0026] (2) The message sending component sends messages: The message sending component uses the obtained TPS threshold, maximum number of flights per message, flight waiting time threshold, and timeout time for each host to calculate the current host's TPS usage in real time and determine whether it exceeds the corresponding TPS threshold. If the current TPS usage of a host exceeds the corresponding TPS threshold, the packet sending component will pause packet sending for that host and wait for a preset time before recalculating the TPS usage for that host. Only when the TPS usage of the host is less than the corresponding TPS threshold can the next packet sending operation be performed for that host.

[0027] If the current host's TPS usage is less than or does not exceed the corresponding TPS threshold, the message sending component will select flights with valid request timestamps (i.e., flights with current system time - request timestamp <= flight waiting time threshold, i.e., valid flights) from the corresponding flight queue to be grouped according to the flight waiting time threshold of the host. Flights with expired request timestamps (i.e., invalid request timestamps) will be discarded directly. The flights with valid request timestamps will be grouped according to POS information and POC information to obtain several messages. In a single message, when the number of flights requesting valid timestamps reaches the maximum number of flights for the corresponding host (i.e., the message is created according to the maximum flight array), the message is sealed and sent to the corresponding host.

[0028] In some specific embodiments, step S4 involves receiving a report and determining whether it is abnormal, then updating the flight cabin status in the normal report to the cache. In practice, multiple cache update components are deployed to perform step S4 in parallel. Therefore, the processing flow of the cache update components is as follows: Receive responses from each host and determine whether a response has timed out based on the timeout period of each host: If the report times out, the timed-out report will be treated as an abnormal report and an alarm or abnormal handling will be triggered. If the return does not time out, the return that has not timed out is treated as a normal return. The normal return is parsed to obtain flight query information, and a cache key is constructed according to the corresponding flight query information. The flight cabin status in the normal return is then updated to the cache based on the cache key.

[0029] In this embodiment, because the fare search system receives a very large number of queries, multiple cache query components, message sending components, and cache update components are deployed (i.e., Figure 2 (n in the middle), each cache query component may trigger message sending. To save resources, all requested flights, along with OD information, POS information, and POC information, are placed into the flight queue to be grouped according to HOST and deduplicated. When grouping, the maximum number of flights limited by HOST can be grouped to reduce the concurrent TPS.

[0030] In specific practice, such as Figure 3As shown in the embodiment of the present invention, the method provided is applied to the cabin class cache update module of the fare search system. When calculating fares, after constructing the flight based on the query conditions, the cache status of the corresponding flight cabin class status is queried. If the cache of the flight cabin class status has expired, a real-time AV query request needs to be initiated to the corresponding airline's PSS system. If the query volume of the airline's PSS system has exceeded the threshold, the AV query request will time out or be rejected. Therefore, the present invention adds a HOST threshold access monitoring mechanism to the cabin class cache update module, which can determine whether to send a real-time request message to the HOST based on the real-time TPS usage of the HOST. This method can effectively help the fare search system flexibly control the query volume of the HOST without changing its HOST capacity, maximize the cache update efficiency, and effectively improve the cache accuracy.

[0031] This invention also discloses a flight cache update system, such as... Figure 4 As shown, the system includes: The HOST parameter setting component is used to set the HOST parameters for each airline's passenger service system; The cache query component is used to retrieve the flight cabin status from the cache based on the flight query request, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs; The message sending component is used to monitor the TPS usage of each HOST in real time. When the TPS usage of a certain HOST is less than the TPS threshold, it retrieves the valid flight from the corresponding pending message queue and sends a request message to that HOST. The cache update component is used to receive reports from each host and determine whether the reports are abnormal. Normal reports will be updated to the cache with the flight cabin status. Multiple cache query components, message sending components, and cache update components are deployed, and these multiple cache query components, message sending components, and cache update components all run in parallel.

[0032] In some specific embodiments, the cache query component is specifically used for: Based on the flight number, OD information, flight date, POS information, and POC information in the flight query request, construct a cache query key for flight cabin status; The corresponding flight cabin status is retrieved from the cache based on the cache query key, and the cache status of the flight cabin status information is determined based on the cache timestamp. If the cache timestamp has not expired, it means that the flight cabin status information cache is valid, and the cache query component directly returns the flight cabin status information in the cache. If the timestamp of the flight cabin status information in the cache has expired, it means that the query cache is invalid. The cache query component obtains the flight query information corresponding to the expired flight cabin status, and then queries the HOST table of the airline to which the flight belongs in the flight query information. The flight query information is then placed into the queue of flights to be grouped and reported corresponding to the HOST. At the same time, deduplication is performed and the request timestamp of the flight query information is recorded (referring to the timestamp when the flight query information is placed into the queue of flights to be grouped and reported). Each HOST has a corresponding queue of flights to be grouped and reported; the request timestamp represents the timestamp when the flight query information is placed into the queue of flights to be grouped and reported; the flight query information includes: flight number, OD information, flight date, POS information, and POC information.

[0033] In some specific embodiments, the message sending component is specifically used for: Obtain the TPS threshold, maximum number of flights per message, flight waiting time threshold, and timeout time for each HOST based on the HOST parameter table; The TPS usage of each HOST is counted in real time. If the TPS usage of a certain HOST exceeds the corresponding TPS threshold, the packet transmission of that HOST is suspended and the TPS usage is counted again after a preset time until the TPS usage of that HOST is less than the corresponding TPS threshold. When the TPS usage of a certain host is less than the corresponding TPS threshold, flights with valid timestamps are selected from the corresponding flight queue to be grouped and reported according to the valid flight time of the host. The flights with valid timestamps are then grouped and reported according to POS information and POC information to obtain several messages. In a single message, when the number of flights with valid timestamps reaches the maximum number of messages for the corresponding host, the message is sealed and sent to the corresponding host.

[0034] In some specific embodiments, the cache update component is specifically used for: Receive reports from each host and determine whether the report has timed out based on the timeout period of each host; Treat overdue reports as abnormal reports and trigger an alarm or handle the anomaly accordingly. Treat the non-timeout reward as a normal reward, parse the normal reward to obtain flight query information, construct a cache key according to the corresponding flight query information, and update the flight cabin status information in the normal reward to the cache according to the cache key.

[0035] Regarding the system in the above embodiments, the specific manner in which each unit module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.

[0036] Based on the same inventive concept, embodiments of the present invention also provide an electronic device, the structure of which is as follows: Figure 5 As shown, it includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program or instructions to implement the aforementioned method for updating flight cabin status cache.

[0037] Based on the same inventive concept, embodiments of the present invention also provide a computer storage medium storing a computer program or instructions, which, when executed by a processor, implements the aforementioned method for updating flight cabin status cache.

[0038] Based on the same inventive concept, embodiments of the present invention also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the aforementioned method for updating flight cabin status cache.

[0039] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for updating flight cabin status cache, characterized in that, The method includes: Configure the HOST parameters for each airline's passenger service system; Based on the flight query request, retrieve the flight cabin status from the cache, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs; Real-time monitoring of TPS usage for each host; when the TPS usage of a host is less than the TPS threshold, retrieve valid flights from the corresponding pending flight queue and send a request message to that host. Receive reports from each host and determine if the reports are abnormal. Update the flight cabin status in the normal reports to the cache.

2. The method of claim 1, wherein, Configure the HOST parameters for each airline's passenger service system, including: Establish a mapping table between each airline and its host, and obtain the airline host table; Set the TPS threshold, maximum number of flights per message, flight waiting time threshold, and timeout time for each HOST, and construct the HOST parameter table.

3. The method of claim 1, wherein, Based on the flight query request, retrieve the flight cabin status from the cache, and place the flight query information corresponding to the expired flight cabin status into the corresponding pending flight queue according to the HOST, including: Based on the flight number, OD information, flight date, POS information, and POC information in the flight query request, construct a cache query key for flight cabin status; The corresponding flight cabin status is retrieved from the cache based on the cache query key, and the cache status of the flight cabin status is determined based on the cache timestamp of the flight cabin status. If the cache timestamp of the flight cabin status has expired, it means that the flight cabin status cache is invalid. Obtain the flight query information corresponding to the invalid flight cabin status, query the HOST of the airline to which the flight belongs in the flight query information according to the airline HOST table, and put the flight query information into the corresponding pending flight queue according to the HOST and record the request timestamp. Each HOST has a corresponding queue of flights to be grouped and reported; the request timestamp represents the timestamp when the flight query information is placed into the queue of flights to be grouped and reported; the flight query information includes: flight number, OD information, flight date, POS information, and POC information.

4. A method for updating flight cabin status cache according to claim 1 or 3, characterized in that, Real-time monitoring of TPS usage for each host. When the TPS usage of a host falls below the TPS threshold, retrieve timestamp-valid flights from the corresponding pending packet queue and send a request packet to that host, including: Obtain the TPS threshold, maximum number of flights per message, flight waiting time threshold, and timeout time for each HOST based on the HOST parameter table; The TPS usage of each HOST is counted in real time. If the TPS usage of a certain HOST exceeds the corresponding TPS threshold, the packet transmission of that HOST is suspended and the TPS usage is counted again after a preset time until the TPS usage of that HOST is less than the corresponding TPS threshold. When the TPS usage of a certain host is less than the corresponding TPS threshold, the flights with valid request timestamps are selected from the corresponding flight queue to be grouped and reported according to the flight waiting time threshold of that host, and the flights with valid request timestamps are grouped and reported according to POS information and POC information to obtain several messages. In a single message, when the number of flights requesting valid timestamps reaches the maximum number of flights for the corresponding host, the message is sealed and sent to the corresponding host.

5. The method for updating flight cabin status cache according to claim 1, characterized in that, Receive reports and determine if they are abnormal. Update the flight cabin status in the cache if the reports are normal, including: Receive reports from each host and determine whether the report has timed out based on the timeout period of each host; Treat overdue reports as abnormal reports and trigger an alarm or handle the anomaly accordingly. Treat the non-timeout reward as a normal reward, parse the normal reward to obtain the corresponding flight query information, construct a cache key according to the corresponding flight query information, and update the flight cabin status in the normal reward to the cache according to the cache key.

6. A flight cache update system, characterized in that, The system includes: The HOST parameter setting component is used to set the HOST parameters for each airline's passenger service system; The cache query component is used to retrieve the flight cabin status from the cache based on the flight query request, and put the flight query information corresponding to the expired flight cabin status into the corresponding flight queue according to the HOST to which it belongs; The message sending component is used to monitor the TPS usage of each HOST in real time. When the TPS usage of a certain HOST is less than the TPS threshold, it retrieves the valid flight from the corresponding pending message queue and sends a request message to that HOST. The cache update component is used to receive reports from each host and determine whether the reports are abnormal. Normal reports will be updated to the cache with the flight cabin status. Multiple cache query components, message sending components, and cache update components are deployed.

7. A flight cache update system according to claim 6, characterized in that, The cache query component is specifically used for: Based on the flight number, OD information, flight date, POS information, and POC information in the flight query request, construct a cache query key for flight cabin status; The corresponding flight cabin status is retrieved from the cache based on the cache query key, and the cache status of the flight cabin status is determined based on the cache timestamp of the flight cabin status. If the cache timestamp of the flight cabin status has expired, it means that the flight cabin status cache is invalid. Obtain the flight query information corresponding to the invalid flight cabin status, query the HOST of the airline to which the flight belongs in the flight query information according to the airline HOST table, and put the flight query information into the corresponding pending flight queue according to the HOST and record the request timestamp. Each HOST has a corresponding queue of flights to be grouped and reported; the request timestamp represents the timestamp when the flight query information is placed into the queue of flights to be grouped and reported; the flight query information includes: flight number, OD information, flight date, POS information, and POC information.

8. An electronic device, characterized in that, The system includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program or instructions to implement the flight cabin status cache update method according to any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions, which, when executed by a processor, implement the flight cabin status cache update method according to any one of claims 1-5.

10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the flight cabin status cache update method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Data caching method and device

    CN113094392A

  • Flow control parameter adjustment method, apparatus and device, and readable storage medium

    CN117041163A

  • Flight space cache processing method and system

    CN119377277A

  • Bypass storage class: Read cache based on a queue threshold

    DE102019130450A1

  • Rate-limiting secondary index creation for an online table

    US10102230B1