Information processing method and device, computer program product and electronic equipment
By introducing a departure information center into the airport departure system, decoupling direct information transmission between services and using a queue mechanism to store and send departure information, the problem of high system coupling is solved, and the system stability and operation efficiency are improved. Ensures on-time delivery and accuracy of information.
Patent Information
- Application Number
- CN202411363491.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-13
AI Technical Summary
The direct communication mode between services in the existing airport departure system leads to high system coupling, increasing maintenance complexity and information transmission delay, affecting system stability and operational efficiency.
By introducing a departure information center, the departure information is received and stored according to the event type, the direct information transmission between services is decoupled, and the queue mechanism is used to store and send departure information to reduce the coupling degree between services.
It reduces the complexity of system maintenance and information transmission delay, improves system stability and operational efficiency, and ensures on-time transmission and accuracy of information.
Smart Images

Figure CN119127535A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data, and more specifically, to an information processing method, device, computer program product, and electronic device. Background Art
[0002] In the operation and management system of modern airports, departure information plays a vital role. It not only includes basic data such as flight departure time, gate information, seat allocation, etc., but also covers key information such as flight status changes, delay notifications, and baggage check-in status. This information plays an irreplaceable role in ensuring that flights take off on time, ensuring the smooth travel of passengers, and improving the overall operational efficiency of the airport. Through the accurate transmission of departure information, the airport can provide passengers with necessary travel guidance in a timely manner, reduce confusion and delays caused by information asymmetry; at the same time, it can also provide decision-making support for airport staff, helping them to better coordinate resources and respond to emergencies. Therefore, the real-time, accuracy, and comprehensiveness of departure information are directly related to the service quality and passenger satisfaction of the airport.
[0003] However, in the current airport departure system architecture design, the communication method used between services is direct communication, that is, service A sends departure information directly to service B. Although the direct communication mode between services meets the demand for rapid information transmission to a certain extent, with the continuous expansion of airport scale and the surge in the number of flights, this mode has also exposed many problems. First, the direct transmission mode from service to service leads to a significant increase in the coupling between services within the system, forming an intricate network of dependencies. This high degree of coupling not only increases the difficulty and cost of system maintenance, but also makes any change in a small service likely to trigger a chain reaction, affecting the stability and reliability of the entire system. Secondly, when faced with large-scale concurrent queries, the direct communication mode is prone to cause network congestion, resulting in delayed or even lost information transmission. This will not only affect the travel experience of passengers, but may also cause unnecessary interference and losses to the operation of the airport.
[0004] Currently, no effective solution has been proposed to address the problem that departure information is transmitted directly between services in related technologies, which results in a high degree of coupling between services within the departure system, increasing the complexity of system operation and maintenance. Summary of the invention
[0005] The present application provides an information processing method, device, computer program product and electronic device to solve the problem in the related art that departure information is directly transmitted between services, resulting in a high degree of coupling between services within the departure system, which increases the complexity of system operation and maintenance.
[0006] According to one aspect of the present application, a method for processing information is provided. The method includes: receiving target departure information and obtaining the event type of the target departure information; determining a queue for storing departure information under the event type, obtaining a target queue, and storing the target departure information in the target queue; upon receiving an event acquisition instruction sent by a first server, obtaining instruction information carried in the event acquisition instruction, obtaining the target departure information from the target queue according to the instruction information, and sending the target departure information to the first server.
[0007] Optionally, receiving target departure information and obtaining the event type of the target departure information includes: obtaining attribute information and event content of the target departure information; judging whether there is a target attribute feature in the attribute information, and if the target attribute feature exists in the attribute information, determining the event type of the target departure information according to the target attribute feature, wherein the target attribute feature is used to characterize the event type of the target departure information; if the target attribute feature does not exist in the attribute information, identifying the event content to obtain an identification result, and determining the event type of the target departure information according to the identification result.
[0008] Optionally, before storing the target departure information in the target queue, the method also includes: acquiring attribute information and event content of the target departure information; judging whether there is historical departure information identical to the target departure information in the target queue based on the attribute information and the event content, wherein the attribute information and the event content of the historical departure information are identical to the attribute information and the event content of the target departure information; if there is historical departure information in the target queue, terminating the step of storing the target departure information in the target queue; if there is no historical departure information in the target queue, executing the step of storing the target departure information in the target queue; sending the target departure information to the first server end according to the instruction information includes: acquiring the historical departure information from the target queue, and sending the historical departure information to the first server end.
[0009] Optionally, after storing the target departure information in the target queue, the method further includes: obtaining a server list of the target queue, wherein the server list includes multiple servers associated with the target queue; and sending the target departure information to each server in the server list.
[0010] Optionally, the method also includes: upon receiving a subscription instruction sent by the second server, identifying the subscription instruction and obtaining a subscription object, wherein the subscription object is used to indicate an event queue subscribed to by the second server; adding the second server to a server list of the event queue, and sending all departure information in the event queue to the second server in chronological order.
[0011] Optionally, the method further includes: obtaining the number of departure information stored in the target queue to obtain a target number; when the target number is greater than a preset number, obtaining a target time, and deleting the departure information in the target queue that is before the target time to obtain an updated target queue.
[0012] Optionally, after storing the target departure information in the target queue, the method further includes: persistently storing the target departure information in a target disk, wherein the target disk is used to back up the departure information in the target queue.
[0013] According to another aspect of the present application, an information processing device is provided. The device includes: a receiving unit, which is used to receive target departure information and obtain the event type of the target departure information; a determining unit, which is used to determine the queue for storing departure information under the event type, obtain the target queue, and store the target departure information in the target queue; a first obtaining unit, which is used to obtain the instruction information carried in the event obtaining instruction when receiving the event obtaining instruction sent by the first server, obtain the target departure information from the target queue according to the instruction information, and send the target departure information to the first server.
[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, an information processing method in the present application is implemented.
[0015] According to another aspect of the present invention, an electronic device is provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein the computer-readable instructions execute an information processing method when executed.
[0016] Through this application, the following steps are adopted: receiving target departure information and obtaining the event type of the target departure information; determining the queue for storing departure information under the event type, obtaining the target queue, and storing the target departure information in the target queue; in the case of receiving the event acquisition instruction sent by the first server, obtaining the instruction information carried in the event acquisition instruction, and obtaining the target departure information from the target queue according to the instruction information, and sending the target departure information to the first server. The problem that the departure information in the related art adopts the mode of direct transmission between services, which makes the coupling degree between the services in the departure system high, resulting in increased complexity of system operation and maintenance is solved. By receiving the departure information and storing the departure information in the queue according to the event type, and in the case of receiving the event acquisition instruction, the departure information is obtained from the storage queue and sent to the corresponding server, so that the departure information is received and stored by setting the departure information center, and the departure information is sent to the server that needs the departure information, and the information transmission mode between services is decoupled, thereby achieving the technical effect of reducing the coupling degree between services in the system and reducing the complexity of system operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of an information processing system provided according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for processing information provided in an embodiment of the present application;
[0020] Figure 3 is a flowchart of an optional information processing method provided according to an embodiment of the present application;
[0021] Figure 4 is a flowchart of another optional information processing method provided according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of an information processing device provided according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the information processing methods, devices, computer program products and electronic devices determined in the present disclosure can be used in the field of big data, and can also be used in any field except the field of big data. The application field of the information processing methods, devices, computer program products and electronic devices determined in the present disclosure is not limited.
[0028] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation portals are provided for users to choose to authorize or refuse to use. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0030] Departure Control System (DCS): also known as the airport passenger processing system, is a key computer information system for airport passengers to check in. It has functions such as departure control, flight passenger information extraction and processing, overweight baggage processing, boarding pass, baggage tag printing, etc.
[0031] Departure information: mainly refers to various data, status or notifications generated when the aircraft is preparing to leave the airport. Departure information is mainly used to ensure the safe departure of the aircraft, the punctuality of the flight and the smoothness of logistics transportation. Departure information is stored and transmitted in the departure system.
[0032] In this embodiment, Figure 1 is a schematic diagram of an information processing system provided according to an embodiment of the present application, such as Figure 1 As shown, an optional information processing system is used as an execution subject to execute the aforementioned information processing method, and the information processing system at least includes: multiple service terminals and a departure information center, wherein:
[0033] The server can be used to send departure information to the departure information center, and can also be used to receive departure information and perform corresponding operations based on the departure information. For example, the departure information sent by server A indicates that the ID information of passenger A has changed. At this time, server B is required to modify the system corresponding to the ID according to the change so that passenger A can board the plane normally based on the updated ID information.
[0034] The departure information center is used to store departure information and classify and store the departure information according to the event type of the departure information, so that the server can subscribe or query according to the event type of the departure information, thereby changing the information interaction between services to the interaction between services and the information center, reducing the coupling between a large number of servers in the system.
[0035] According to an embodiment of the present application, a method for processing information is provided, which is applied to the above-mentioned information processing system.
[0036] Figure 2 1 is a flowchart of a method for processing information provided in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0037] Step S201, receiving target departure information, and acquiring the event type of the target departure information.
[0038] Specifically, the target departure information may be departure information sent from any server A to server B. When sent from server A to server B, it needs to be stored and sent by the departure information center. Therefore, the departure information center will receive the target departure information and determine the event type of the target departure information. One departure information corresponds to one event type. The event type may include passenger events, flight events, baggage events, etc. Common flight events may include flight status changes, such as flight protection, flight cancellation protection, flight final closure, flight cancellation final closure, flight initial closure, flight cancellation initial closure, or flight information changes, such as adding additional information, opening note information changes, etc. Passenger events may include boarding passenger updates, such as passenger boarding, passenger boarding cancellation, passenger boarding review, and stopover passenger itinerary termination, or passenger information modifications, such as document modification, name change, service addition, or standby status changes, such as standby passenger check-in changes to checked-in status, and checked-in passengers are pulled down and changed to standby passengers.
[0039] It should be noted that the target departure information consists of three parts: flight day data, event type, and content data.
[0040] Among them, the flight day data mainly describes which flight the target departure information belongs to. The main contents include: airline code, flight number, flight suffix, and flight date. For example, "A1351X2023-12-12" is a standard flight day data, A is the airline code, 1351 is the flight number, X is the flight suffix, and 2023-12-12 is the flight date. The content data can be the operation that the server that receives the departure data needs to perform.
[0041] It should be noted that the information described in this embodiment is departure information, but the technical process in this application is not limited to the processing of departure information, and can also be applied to information related to "flight information" in the entire civil aviation field, such as dining information, reservation information, etc., as well as information at the same latitude as flight information, such as railway information, ship information, etc. This application does not limit the source and use of the information.
[0042] Step S202, determining a queue for storing departure information under the event type, obtaining a target queue, and storing the target departure information in the target queue.
[0043] Specifically, after the departure information center obtains the target departure information, the target departure information needs to be stored so that the server that needs to obtain the target departure information can obtain it from the departure information center. When storing the target departure information, it can be stored according to the event type of the target departure information, and the target departure information can be stored in the queue corresponding to the event type according to the time sequence of the flight day data.
[0044] For example, when the event type of the target departure information is a baggage event, the target departure information can be stored in the queue corresponding to the baggage event, and stored in the queue of the baggage event according to the flight day data. That is, the queues of each event type in the departure information center in this application are ordered and classified, where "ordered" means that the corresponding events are sorted by time according to the order of the flight day data, and "classified" means that according to the departure event composition data, the flight day is divided into major categories and the event type is divided into minor categories.
[0045] For example, when the target departure information A is the baggage type under airline A, the queue set is first obtained according to the airline level, and the queue of the baggage type is determined under the queue set, so that the target departure information is stored in the queue of the baggage type, so that when the departure information center searches for the target departure information, the target departure information can be quickly obtained according to the flight day data and event type of the target departure information.
[0046] It should be noted that Figure 3 is a flowchart of an optional information processing method provided according to an embodiment of the present application, such as Figure 3 As shown, when multiple departure information are received at the same time, each departure information in the departure information can be stored in multiple queues according to the event type of each departure information. For example, departure information of flight A (A is the code of an airline) of the type of passenger event type and departure information of flight B (B is the code of another airline) of the type of passenger event type can be stored in the same queue, thereby achieving the effect of storing departure information according to different event types.
[0047] Step S203, upon receiving the event acquisition instruction sent by the first server, acquire instruction information carried in the event acquisition instruction, acquire target departure information from the target queue according to the instruction information, and send the target departure information to the first server.
[0048] Specifically, when receiving an event acquisition instruction sent by a certain server, such as the first server, it indicates that the first server needs to obtain the target departure information and perform corresponding operations according to the content data in the target departure information. At this time, the target departure information needs to be sent to the first server according to the event acquisition instruction, so that the first server can obtain the target departure information in time, and perform corresponding operations according to the content in the target departure information, so as to ensure that the user to whom the target departure information belongs can leave normally.
[0049] The information processing method provided in the embodiment of the present application receives the target departure information and obtains the event type of the target departure information; determines the queue for storing the departure information under the event type, obtains the target queue, and stores the target departure information in the target queue; when receiving the event acquisition instruction sent by the first server, obtains the instruction information carried in the event acquisition instruction, and obtains the target departure information from the target queue according to the instruction information, and sends the target departure information to the first server. The problem that the departure information in the related art adopts the mode of direct transmission between services, which makes the coupling degree between the services in the departure system high, resulting in increased complexity of system operation and maintenance. By receiving the departure information and storing the departure information in the queue according to the event type, and when receiving the event acquisition instruction, the departure information is obtained from the storage queue and sent to the corresponding server, so that the departure information is received and stored by setting the departure information center, and the departure information is sent to the server that needs the departure information, the information transmission mode between services is decoupled, thereby achieving the technical effect of reducing the coupling degree between services in the system and reducing the complexity of system operation and maintenance.
[0050] In order to ensure the accuracy of identifying event types, optionally, in the information processing method provided in the embodiment of the present application, receiving target departure information, and obtaining the event type of the target departure information includes: obtaining attribute information and event content of the target departure information; judging whether there is a target attribute feature in the attribute information, and if there is a target attribute feature in the attribute information, determining the event type of the target departure information according to the target attribute feature, wherein the target attribute feature is used to characterize the event type of the target departure information; if there is no target attribute feature in the attribute information, identifying the event content to obtain an identification result, and determining the event type of the target departure information according to the identification result.
[0051] Specifically, when determining the event type of the target departure information, the attribute information and event content of the target departure information can be obtained, wherein the attribute information can be flight day data. After obtaining the attribute information, it can be determined whether there are target attribute features in the attribute information, wherein the target attribute features can be features with flight attributes, such as flight number, passenger name and other information. When there is a user name, it can be determined whether there is a baggage number. When there is a user name but no baggage number, the event type can be determined to be a passenger event. When there is a user name and a baggage number, the event type can be determined to be a baggage event.
[0052] Furthermore, when there is no target attribute feature in the attribute information, the event content can be directly identified and the event type can be determined based on the event content. For example, when the event content is the cancellation of flight A, the target departure information can be determined to be a flight event.
[0053] This embodiment achieves the technical effect of accurately classifying the target departure information by determining the event type of the target departure information.
[0054] In order to ensure that there is no duplicate departure information in the same queue, optionally, in the information processing method provided in the embodiment of the present application, before storing the target departure information in the target queue, the method also includes: obtaining attribute information and event content of the target departure information; judging whether there is historical departure information identical to the target departure information in the target queue according to the attribute information and the event content, wherein the attribute information and event content of the historical departure information are identical to the attribute information and event content of the target departure information; if there is historical departure information in the target queue, terminating the step of storing the target departure information in the target queue; if there is no historical departure information in the target queue, executing the step of storing the target departure information in the target queue; sending the target departure information to the first server according to the instruction information includes: obtaining the historical departure information from the target queue, and sending the historical departure information to the first server.
[0055] Specifically, since the received target departure information may be repeated, after receiving the target departure information, it is necessary to perform a deduplication operation on the target departure information. When performing the deduplication operation, it is necessary to first obtain the attribute information and event content of the target departure information, and determine the event type of the target departure information based on the acquired attribute information and event content of the target departure information, thereby determining the queue to which the target departure type belongs, and further determining whether there is historical departure information that is identical to the target departure information in the queue, and if there is an identical historical departure information, terminate the operation of storing the target departure information in the queue, thereby ensuring that no duplicate departure information appears in the queue.
[0056] It should be noted that, when there is no historical departure information identical to the target departure information in the queue, it is necessary to store the target departure information in the queue. At this time, when the target departure information is sent to the first server according to the instruction information, the target departure information can be directly obtained from the queue according to the attribute information of the target departure information, and the target departure information is sent to the first server, so that the server sending the target departure information does not need to send the target departure information directly to the first server, thereby achieving the technical effect of reducing the coupling rate of the system.
[0057] In order to ensure the timeliness of departure information transmission, optionally, in the information processing method provided in the embodiment of the present application, after storing the target departure information in the target queue, the method also includes: obtaining a server list of the target queue, wherein the server list includes multiple servers that are associated with the target queue; and sending the target departure information to each server in the server list.
[0058] It should be noted that when sending the target departure information, not only can the target departure information be sent when the acquisition instruction is received, but also the target departure information can be directly sent to the server that subscribes to the target queue when the target queue receives the target departure information through subscription.
[0059] Specifically, each target queue can create a server list, which can contain multiple servers subscribed to the target queue. When new target departure information is detected in the target queue, the target departure information in the target queue can be sent to each server in the server list, thereby ensuring that each server subscribed to the target queue can receive the latest target departure information at the first time, thereby ensuring the timeliness of each server's processing of the target information.
[0060] It should be noted that the server can subscribe to queues under different event types and different flights at the same time. For example, the passenger server of Airline A can subscribe to the queue containing departure information related to Airline A's flights; the baggage transfer server can only subscribe to the queue containing departure information related to baggage type events, thereby improving the flexibility of departure information subscription.
[0061] In order to ensure that the newly added subscription server can completely receive the departure information, optionally, in the information processing method provided in the embodiment of the present application, the method also includes: when receiving a subscription instruction sent by the second server, identifying the subscription instruction, obtaining a subscription object, wherein the subscription object is used to indicate the event queue subscribed by the second server; adding the second server to the server list of the event queue, and sending all the departure information in the event queue to the second server in chronological order.
[0062] Specifically, when a subscription instruction sent by the second server is received, it indicates that the second server needs to subscribe to the queue corresponding to the instruction. At this time, the subscription instruction can be identified, the subscription object that the second server wants to subscribe to is obtained, and the second server is added to the server list in the event queue, so that when departure information is added to the subscription object later, the departure information can be sent to the second server in a timely manner.
[0063] It should be noted that after adding the second server to the server list of the subscription object, all departure information in the queue of the subscription object needs to be sent to the second server in chronological order so that the second server can obtain complete departure information, thereby avoiding the phenomenon that the second server does not receive certain departure information.
[0064] This embodiment adds the second server to the server list and sends the departure information in the event queue to the second server, thereby ensuring the timeliness and accuracy of the departure information received by the second server.
[0065] In order to reduce the redundancy of departure information in the queue, optionally, in the information processing method provided in the embodiment of the present application, the method also includes: obtaining the number of departure information stored in the target queue to obtain a target number; when the target number is greater than a preset number, obtaining the target time, and deleting the departure information in the target queue that is before the target time to obtain an updated target queue.
[0066] Specifically, in order to ensure that too much departure information is not stored in the target queue, resulting in excessive data volume in the departure information center, it is necessary to regularly clear the departure information in each queue in the departure information center. At this time, the target number of departure information stored in the target queue can be obtained, and when the target number is greater than the preset number, the departure information before the target time is deleted, and the target time is continuously updated according to the change of time, so as to delete the departure information with a longer storage time, thereby ensuring the timeliness of the departure information in the queue and ensuring that the departure information in the queue is not too redundant.
[0067] Optionally, in the information processing method provided in the embodiment of the present application, after storing the target departure information in the target queue, the method further includes: persistently storing the target departure information in the target disk, wherein the target disk is used to back up the departure information in the target queue.
[0068] Specifically, the departure information center used in the present application can be a distributed streaming processing platform. After receiving the departure information, the entire departure information center can first persist it to the disk to avoid data loss caused by service crash. The step of persisting to the hard disk can adopt a sequential read and write disk mode, using partitioned data. A partition is divided into multiple ends. Each segment contains three types of files, namely ".index", ".timeindex", and ".log" files. The file name is named after the offset of the first message in the segment. When searching for a message, the message offset can be used to quickly locate the .index in which the message is located, and then the actual physical subscript of the message can be obtained, so as to obtain the real message from the .log. The log adopts the append method, and the message is always appended to the end of the file, that is, sequential writing, and the message is stored in the internal queue at the same time, thereby ensuring the safe storage of data.
[0069] It should be noted that when the departure information is persistently stored, the A / B block method can be adopted, and the A and B blocks can be switched at preset time intervals. When the A block stores the departure information, the departure information in the B block is persisted. When the switching time is reached, the B block is switched to store the departure information, and the departure information in the A block is persisted, thereby ensuring the timeliness of the persistence operation without affecting the normal storage of the departure information by the departure information center.
[0070] Figure 4 is a flowchart of another optional information processing method provided according to an embodiment of the present application, such as Figure 4 As shown, first, the departure information center receives the departure information sent by the producer server, and determines the event type of the departure information according to the message content of the departure information, determines the target queue for storing the departure information according to the event type, and judges whether the departure information already exists in the target queue. If the departure information already exists in the target queue, delete the departure information; if the departure information does not exist, add the departure information to the target queue, and send the departure information to the listener server, thereby completing the operation of processing and transmitting the departure information according to the departure information center.
[0071] It should be noted that before sending the departure information to the listener server, the departure information needs to be persisted to the disk. The persistence process uses sequential reading and writing, and sets timestamps and offsets to avoid data loss due to problems at one point, thereby ensuring the security of the departure information.
[0072] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0073] The embodiment of the present application also provides an information processing device. It should be noted that the information processing device of the embodiment of the present application can be used to execute the information processing method provided by the embodiment of the present application. The information processing device provided by the embodiment of the present application is introduced below.
[0074] Figure 5 Schematic diagram of an information processing device according to an embodiment of the present application. Figure 5 As shown, the device includes: a receiving unit 51, a determining unit 52, and a first acquiring unit 53.
[0075] The receiving unit 51 is used to receive target departure information and obtain the event type of the target departure information.
[0076] The determining unit 52 is used to determine a queue for storing departure information under the event type, obtain a target queue, and store the target departure information in the target queue.
[0077] The first acquisition unit 53 is used to acquire instruction information carried in the event acquisition instruction when receiving the event acquisition instruction sent by the first server, acquire target departure information from the target queue according to the instruction information, and send the target departure information to the first server.
[0078] The information processing device provided in the embodiment of the present application receives the target departure information through the receiving unit 51, and obtains the event type of the target departure information; the determining unit 52 determines the queue for storing the departure information under the event type, obtains the target queue, and stores the target departure information in the target queue; the first obtaining unit 53 obtains the instruction information carried in the event obtaining instruction when receiving the event obtaining instruction sent by the first server, obtains the target departure information from the target queue according to the instruction information, and sends the target departure information to the first server, which solves the problem that the departure information in the related art is directly transmitted between services. In order to solve the problem that the coupling degree between the services within the departure system is high, which leads to increased complexity in system operation and maintenance, the departure information is received and stored in a queue according to the event type, and upon receiving an event acquisition instruction, the departure information is obtained from the storage queue and sent to the corresponding server. Thus, a departure information center is set up to receive and store the departure information, and send the departure information to the server that needs the departure information, thereby decoupling the information transmission method between services, thereby achieving the technical effect of reducing the coupling degree between services in the system and reducing the complexity of system operation and maintenance.
[0079] Optionally, in the information processing device provided in the embodiment of the present application, the receiving unit 51 includes: an acquisition module, used to acquire attribute information and event content of the target departure information; a judgment module, used to judge whether there is a target attribute feature in the attribute information, and when the target attribute feature exists in the attribute information, determine the event type of the target departure information according to the target attribute feature, wherein the target attribute feature is used to characterize the event type of the target departure information; an identification module, used to identify the event content when the target attribute feature does not exist in the attribute information, obtain an identification result, and determine the event type of the target departure information according to the identification result.
[0080] Optionally, in the information processing device provided in the embodiment of the present application, before storing the target departure information in the target queue, the device also includes: a second acquisition unit, used to acquire attribute information and event content of the target departure information; a judgment unit, used to judge whether there is historical departure information that is the same as the target departure information in the target queue based on the attribute information and the event content, wherein the attribute information and event content of the historical departure information are the same as the attribute information and event content of the target departure information; a termination unit, used to terminate the step of storing the target departure information in the target queue when there is historical departure information in the target queue; an execution unit, used to execute the step of storing the target departure information in the target queue when there is no historical departure information in the target queue; the first acquisition unit 53 includes: a sending module, used to acquire historical departure information from the target queue, and send the historical departure information to the first server.
[0081] Optionally, in the information processing device provided in the embodiment of the present application, after storing the target departure information in the target queue, the device also includes: a third acquisition unit, used to obtain a server list of the target queue, wherein the server list includes multiple servers that are associated with the target queue; and a first sending unit, used to send the target departure information to each server in the server list.
[0082] Optionally, in the information processing device provided in the embodiment of the present application, the device also includes: an identification unit, used to identify the subscription instruction when receiving the subscription instruction sent by the second server, and obtain a subscription object, wherein the subscription object is used to indicate the event queue subscribed by the second server; a second sending unit, used to add the second server to the server list of the event queue, and send all departure information in the event queue to the second server in chronological order.
[0083] Optionally, in the information processing device provided in the embodiment of the present application, the device also includes: a fourth acquisition unit, used to acquire the number of departure information stored in the target queue to obtain a target number; a deletion unit, used to acquire the target time when the target number is greater than a preset number, and delete the departure information in the target queue that is before the target time to obtain an updated target queue.
[0084] Optionally, in the information processing device provided in the embodiment of the present application, after storing the target departure information in the target queue, the device also includes: a storage unit, used to persistently store the target departure information in the target disk, wherein the target disk is used to back up the departure information in the target queue.
[0085] The information processing device includes a processor and a memory. The receiving unit 51, the determining unit 52, the first acquiring unit 53, etc. are all stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0086] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set. By adjusting the kernel parameters, the problem that the departure information in the related technology is directly transmitted between services, which makes the coupling degree between the services in the departure system high, resulting in increased complexity of system operation and maintenance is solved.
[0087] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0088] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the information processing method is implemented.
[0089] An embodiment of the present invention provides a processor, which is used to run a program, wherein the information processing method is executed when the program is running.
[0090] Figure 6 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 6 As shown, an embodiment of the present invention provides an electronic device, the electronic device 60 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving target departure information and obtaining the event type of the target departure information; determining a queue for storing departure information under the event type, obtaining a target queue, and storing the target departure information in the target queue; upon receiving an event acquisition instruction sent by a first server, obtaining instruction information carried in the event acquisition instruction, obtaining the target departure information from the target queue according to the instruction information, and sending the target departure information to the first server. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0091] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving target departure information and obtaining the event type of the target departure information; determining a queue for storing departure information under the event type, obtaining a target queue, and storing the target departure information in the target queue; upon receiving an event acquisition instruction sent by a first server, obtaining instruction information carried in the event acquisition instruction, and obtaining the target departure information from the target queue according to the instruction information, and sending the target departure information to the first server.
[0092] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0093] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0097] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0098] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0099] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0100] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method of processing information, It is characterized in that include: Receive target departure information, and obtain the event type of the target departure information; Determine a queue for storing departure information under the event type, obtain a target queue, and store the target departure information in the target queue; When receiving the event acquisition instruction sent by the first server, the instruction information carried in the event acquisition instruction is acquired, and the target departure information is acquired from the target queue according to the instruction information, and the target departure information is sent to the first server.
2. The method according to claim 1, It is characterized in that Receiving target departure information, and obtaining the event types of the target departure information include: Obtaining attribute information and event content of the target departure information; Determining whether there is a target attribute feature in the attribute information, and if the target attribute feature exists in the attribute information, determining the event type of the target departure information according to the target attribute feature, wherein the target attribute feature is used to characterize the event type of the target departure information; In the case that the target attribute feature does not exist in the attribute information, the event content is identified to obtain an identification result, and the event type of the target departure information is determined according to the identification result.
3. The method according to claim 1, It is characterized in that Before storing the target departure information in the target queue, the method further includes: Obtaining attribute information and event content of the target departure information; Determining whether there is historical departure information identical to the target departure information in the target queue according to the attribute information and the event content, wherein the attribute information and event content of the historical departure information are identical to the attribute information and event content of the target departure information; In the case where the historical departure information exists in the target queue, terminating the step of storing the target departure information in the target queue; In the case where the historical departure information does not exist in the target queue, performing the step of storing the target departure information in the target queue; Sending the target departure information to the first server according to the instruction information includes: The historical departure information is obtained from the target queue, and the historical departure information is sent to the first server.
4. The method according to claim 1, It is characterized in that After storing the target departure information in the target queue, the method further includes: Acquire a server list of the target queue, wherein the server list includes a plurality of servers associated with the target queue; The target departure information is sent to each server in the server list.
5. The method according to claim 1, It is characterized in that The method further comprises: When receiving a subscription instruction sent by the second server, identifying the subscription instruction and obtaining a subscription object, wherein the subscription object is used to indicate an event queue subscribed by the second server; The second server is added to the server list of the event queue, and all departure information in the event queue is sent to the second server in chronological order.
6. The method according to claim 1, It is characterized in that The method further comprises: Obtaining the number of departure information stored in the target queue to obtain a target number; When the target number is greater than a preset number, the target time is obtained, and the departure information before the target time in the target queue is deleted to obtain an updated target queue.
7. The method according to claim 1, It is characterized in that After storing the target departure information in the target queue, the method further includes: The target departure information is persistently stored in a target disk, wherein the target disk is used for backing up and storing the departure information in the target queue.
8. An information processing device, It is characterized in that include: A receiving unit, configured to receive target departure information and obtain an event type of the target departure information; a determining unit, configured to determine a queue for storing the departure information under the event type, obtain a target queue, and store the target departure information in the target queue; The first acquisition unit is used to, upon receiving an event acquisition instruction sent by the first server, acquire instruction information carried in the event acquisition instruction, acquire the target departure information from the target queue according to the instruction information, and send the target departure information to the first server.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the information processing method according to any one of claims 1 to 7 is implemented.
10. An electronic device, It is characterized in that It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the information processing method described in any one of claims 1 to 7.
