CN111460338A - Information query method and device - Google Patents

Information query method and device Download PDF

Info

Publication number
CN111460338A
CN111460338A CN202010247378.7A CN202010247378A CN111460338A CN 111460338 A CN111460338 A CN 111460338A CN 202010247378 A CN202010247378 A CN 202010247378A CN 111460338 A CN111460338 A CN 111460338A
Authority
CN
China
Prior art keywords
information
message
server
identifier
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010247378.7A
Other languages
Chinese (zh)
Other versions
CN111460338B (en
Inventor
安自东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chuangxin Journey Network Technology Co ltd
Original Assignee
Beijing Chuangxin Journey Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chuangxin Journey Network Technology Co ltd filed Critical Beijing Chuangxin Journey Network Technology Co ltd
Priority to CN202010247378.7A priority Critical patent/CN111460338B/en
Publication of CN111460338A publication Critical patent/CN111460338A/en
Application granted granted Critical
Publication of CN111460338B publication Critical patent/CN111460338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/14Travel agencies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides an information query method and device. The method of the present application comprises: the calling identification is added into a tracking identification stack through a primary message interaction process of the unique calling identification, and all messages corresponding to the same user are completely and serially interacted by utilizing the tracking identification stack. And, obtain the temporary information according to each message interaction, include not merely the message information (for example, request message, response message) of each message interaction in the temporary information, also include the only one-time message interactive call identification of label. Therefore, when no order number exists, the message information is obtained according to the calling identification, the speed of searching the message information is improved, the calling identification in the tracking identification stack corresponds to the calling identification in the temporary information one by one, and the accuracy of the obtained message information is also improved.

Description

Information query method and device
Technical Field
The embodiment of the application relates to the technical field of information, in particular to an information query method and device.
Background
The travel e-commerce company provides a platform for users to order travel products or services, and provides the travel products or services provided by the supplier to the users. The business exchange between each supplier and the travel E-business company is communicated through messages. For example, when the user inquires the price, the travel e-commerce company sends a request message to the supplier to confirm whether the current price is the latest price, and the reply message of the supplier is obtained through the reply message of the supplier. Thus, the agreement between the travel electric company and each supplier can be determined by the message. Therefore, when the problem is checked between the supplier and the travel E-commerce company, the corresponding message information can be found to check the problem. The message information includes a request message and/or a response message.
In a complete transaction link of a user on a platform for ordering travel products or services, the user comprises a plurality of process nodes such as product searching, quotation, price checking, order generation, payment and the like, so that a plurality of message interactions are required between a travel e-commerce company and a supplier. In the prior art, when message information of one process node in a transaction link needs to be found, a subsequent process of the process node needs to be determined. For example, when one message information in the process node "quote" in the transaction link needs to be checked, starting from the process node "generate a bill", searching the message according to the characteristic value (for example, a time period) of the process node "generate a bill", determining the message information corresponding to the process node "check price" which meets the characteristic value, then determining the message information of the process node "quote" according to the characteristic value (for example, the price range) of the process node "check price", and then searching the message information to be searched in the finally determined message information depending on the staff.
Therefore, in the prior art, the incidence relation between the front flow and the back flow is established according to the characteristic value of the previous flow node, so that the number of message information to be checked is gradually reduced, and the manual searching time of workers is reduced. Therefore, the method for searching the message information in the prior art has the disadvantages of complicated searching process and low efficiency.
Disclosure of Invention
The embodiment of the application provides an information query method and device, message information related to the same user is connected in series through a tracking identification stack, the process of obtaining messages is simplified, and the efficiency and the accuracy of obtaining the messages are improved.
In a first aspect, an embodiment of the present application provides an information query method, including:
generating first tracking associated information when performing message interaction with a second server according to the first calling request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; the calling identifier is used for uniquely identifying the process of one-time message interaction;
adding the first trace associated information to a trace identification stack, and sending the trace identification stack to the first server when the message interaction with the second server is finished, so that the trace identification stack is carried in a second call request when the first server sends the second call request next time;
acquiring and storing first information, wherein the first information comprises the calling identifier, a request message and a response message;
and acquiring first information comprising any calling identifier in the calling identifiers according to the calling identifiers in the tracking identifier stack.
Optionally, after obtaining the order information, after obtaining the first information including any one of the call identifiers according to the call identifier included in the trace identifier stack, the method further includes:
obtaining second information from the first information, wherein the second information comprises at least one of the following: request message, response message;
and storing the second information, and establishing an association relationship between the second information and the order information, so as to inquire the second information establishing the association relationship with the order information according to the order information when the second information associated with the order information needs to be inquired.
Optionally, after obtaining the order information, the method further includes:
after carrying out message interaction once to a second server according to a third calling request, generating third information, wherein the third information comprises the order information, a request message and a response message corresponding to the request message;
and obtaining second information according to the third information, and adding the second information to related information associated with the order information according to the order number.
Optionally, the first tracking related information further includes at least one of the following: application name, operation name, link trace identification.
Optionally, if the first information including the call identifier is not acquired according to the call identifier in the trace identifier stack, the method further includes:
recording a calling identifier which cannot acquire the first information;
and after the first preset duration, obtaining the first information comprising the calling identifier of the first information which cannot be obtained again according to the calling identifier of the first information which cannot be obtained.
Optionally, the storing the first information includes:
and sequentially storing the first information through at least two message queues.
Optionally, the second invocation request is sent by the first server when the second server is invoked according to the operation requirement of the same user.
Optionally, the obtaining the identifier includes: the identification is generated by a Globally Unique Identifier (GUID) algorithm.
In a second aspect, an embodiment of the present application provides an information query apparatus, including:
the generation module is used for generating first tracking associated information when a request message is sent to the second server once according to the first calling request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; the calling identifier is used for uniquely identifying the action of sending the request message at one time;
a sending module, configured to add the first trace correlation information to a trace identifier stack, and send the trace identifier stack to the first server when the packet interaction with the second server is finished, so as to carry the trace identifier stack in a second invocation request when the first server sends the second invocation request next time;
the first obtaining module is used for obtaining and storing first information, wherein the first information comprises the calling identifier, a request message and a response message;
and the second acquisition module is used for acquiring first information comprising any calling identifier in the calling identifiers according to the calling identifiers in the tracking identifier stack.
Optionally, the second obtaining module is further configured to obtain second information from the first information, where the second information includes at least one of the following: request message, response message; and storing the second information, and establishing an association relationship between the second information and the order information, so as to inquire the second information establishing the association relationship with the order information according to the order information when the second information associated with the order information needs to be inquired.
Optionally, after obtaining the order information, the sending module is further configured to perform a message interaction to a second server according to a third call request, and generate third information, where the third information includes the order information, a request message, and a response message corresponding to the request message; and obtaining second information according to the third information, and adding the second information to related information associated with the order information according to the order number.
Optionally, the first tracking related information further includes at least one of the following: application name, operation name, link trace identification.
Optionally, if the first information including the call identifier is not acquired according to the call identifier in the trace identifier stack, the second acquiring module is further configured to: recording a calling identifier which cannot acquire the first information; and after the first preset duration, obtaining the first information comprising the calling identifier of the first information which cannot be obtained again according to the calling identifier of the first information which cannot be obtained.
Optionally, the first obtaining module is specifically configured to: and sequentially storing the first information through at least two message queues.
Optionally, the second invocation request is sent by the first server when the second server is invoked according to the operation requirement of the same user.
The optional generation module is specifically configured to: the identification is generated by a GUID algorithm.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions; the at least one processor executes computer-executable instructions stored by the memory to perform the method of any one of the first aspect of the embodiments of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, in which program instructions are stored, and when the program instructions are executed by a processor, the method according to any one of the first aspect of the embodiments of the present invention is implemented.
In a fifth aspect, this application embodiment provides a program product, which includes a computer program, where the computer program is stored in a readable storage medium, and the computer program can be read by at least one processor of an electronic device from the readable storage medium, and the computer program is executed by the at least one processor to enable the electronic device to implement the method according to any one of the first aspect of the application embodiment.
The embodiment of the application provides an information query method and device, wherein a calling identifier is added into a tracking identifier stack through a primary message interaction process of a calling identifier unique identifier, and the tracking identifier stack is transmitted between a service side server and a server 103, so that all messages corresponding to the same user are completely and interactively connected in series by utilizing the tracking identifier stack. And, obtain the temporary information according to each message interaction, include not merely the message information (for example, request message, response message) of each message interaction in the temporary information, also include the only one-time message interactive call identification of label. Therefore, when no order number exists, the message information is obtained according to the calling identification, the speed of searching the message information is improved, the calling identification in the tracking identification stack corresponds to the calling identification in the temporary information one by one, and the accuracy of the obtained message information is also improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of an information query method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an information query apparatus according to an embodiment of the present application;
fig. 4 is a structural illustration of an electronic device according to an embodiment of the present application;
fig. 5 is a block diagram of the information query device 20 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, when a user orders a travel product or service through a travel electric company, the problem may occur that the policy (for example, price) of the travel product or service ordered by the user from the travel electric company is different from the policy provided by a supplier to the travel electric company. The reason for this problem may be that the travel electric company does not timely update the policy of the travel products or services provided by the supplier, or the supplier does not timely notify the travel electric company when the policy of the travel products or services provided by the supplier changes. Therefore, in order to determine the cause of the above problems, message information between the travel electric company and the supplier related to the above problems can be found, and the cause can be determined by the message information.
However, when the problem occurs, the message information related to the problem needs to be found, and the message information needs to be checked one by one from the back to the front according to the sequence of the process nodes in the transaction link, for example, the message information corresponding to the process node 'check price' which meets the characteristic value is determined by determining the message from the process node 'generate order', searching the message according to the characteristic value (for example, a time period) of the process node 'generate order', and thus, the number of the message information to be checked is reduced; and then determining the message information of the 'quotation' of the process node according to the characteristic value (such as price range) of the 'price check' of the process node, reducing the number of the message information to be checked again, and then searching the message information to be searched in the finally determined message information by depending on the staff.
Therefore, in the prior art, the incidence relation between the front flow and the back flow is established according to the characteristic value of the previous flow node, so that the number of message information to be checked is gradually reduced, and the manual searching time of workers is reduced. Therefore, the method for searching the message information in the prior art has the disadvantages of complicated searching process and low efficiency. Moreover, the association relationship between the process nodes is not in one-to-one correspondence, so that the searching accuracy is low.
In order to solve the problems existing in the prior art, the application provides: when a user orders a travel product or service through a travel e-commerce company, the operation from the operation of starting searching the travel product or service to the operation of obtaining an order by the user is serially connected in an adjacent operation mode, so that the message information of each message interaction corresponding to the operation from the operation of starting searching the travel product or service to the operation of obtaining the order by the user is serially connected, after an order number is obtained, the association relationship between each message information and the order number is established and stored, and the message information generated after the order is obtained is directly stored according to the order number. Because the incidence relation is established between the message information and the order number, all the message information related to the order number can be found according to the order number, thereby improving the efficiency and the accuracy of obtaining the message information.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application, where when a policy (for example, price) of a travel product or service ordered by a user from a travel e-commerce company is different from a policy provided by a provider to the travel e-commerce company, in order to find a reason for the above problem, a worker accesses a network platform of the travel e-commerce company through a terminal device 101 or a terminal device 102 to find message information, and a server 103 of the network platform obtains an access behavior of the worker, and obtains message information to be found by the worker. The server 103 obtains the message information by using the method shown in the following embodiments of the present application.
Fig. 2 is a flowchart of an information query method according to an embodiment of the present application, and as shown in fig. 2, an execution subject of the embodiment may be, for example, the server 103 in fig. 1. The method of the embodiment may include:
s201, generating first tracking associated information when performing message interaction with a second server according to the first calling request.
The first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; the calling identification is used for uniquely identifying the process of one-time message interaction.
In this embodiment, a user browses a network platform of a travel e-commerce company through a mobile terminal, and when the user searches for a travel product, submits an order, and the like on the network platform of the travel e-commerce company, a back-end server (i.e., a first server, which may also be referred to as a service side server) of the network platform acquires an operation behavior of the user, and performs message interaction with a server (i.e., a second server) of a provider according to the operation behavior of the user. When the service side server performs message interaction with the server of the provider, an interface of the server of the provider needs to be called through the interface gateway. Therefore, when the service side server performs message interaction with the server of the provider, the service side server sends a call request to the server (for example, server 103) corresponding to the interface gateway, wherein the call request is related to the operation of the user on the network platform.
For example, when a user searches for and inquires about a travel product, the business server sends a call request to the server 103 according to a search operation of the user on a webpage, so as to perform message interaction between the server 103 and a server of a supplier, confirm whether the information of the travel product shown on the current network platform is consistent with the information of the travel product provided by the current supplier, update the information of the travel product in time when the information of the travel product changes, and display the latest information of the travel product to the user.
For another example, when the user clicks the price, the service server sends a call request to the server 103 to confirm whether the price shown on the current network platform is consistent with the price provided by the current provider through message interaction between the server 103 and the provider's server, and when the price changes, the latest price is displayed, so as to avoid the contradiction between the travel electric company and the provider caused by the fact that the currently displayed price is not the latest price.
The server 103 sends a request message to the provider side server according to the call request, the provider side server replies a response message to the server 103 according to the request message, and the server 103 sends the response message to the service side server to complete one message interaction. Before the user submits no order, because no order number exists, the association relationship between each message interaction and the order number cannot be established, so that the process of one message interaction between the service side server and the server of the provider through the server 103 is recorded by generating a calling identifier. Wherein, the calling identifier uniquely identifies the interaction of the message for one time. Optionally, the identifier is generated by a GUID algorithm to ensure the uniqueness of each call identifier.
And generating tracking associated information corresponding to the message interaction process each time, and recording the tracking associated information as TrackFlow information, wherein the TrackFlow information comprises a calling identifier corresponding to the message interaction process.
In some embodiments, different providers may be invoked according to each operation of the user on the network platform, and therefore, the TrackFlow information further includes information of the provider performing the message interaction.
In some embodiments, since the transaction link includes a plurality of process nodes, for example, a plurality of process nodes including product search, quotation, price check, order generation, payment, etc., the purpose of message interaction is different for different process nodes, for example, the process node "searches" the corresponding message interaction for the purpose of determining information (e.g., hotel location, room standard, etc.) of the product, and the process node "quotation" the corresponding message interaction for the purpose of obtaining the current price of the product. Moreover, the packet interaction is corresponding to the operation of the user, so the TrackFlow information also includes information of the flow node corresponding to the packet interaction, that is, the operation name.
In some embodiments, the same supplier may cooperate with a plurality of travel e-commerce companies, in order to clarify the travel e-commerce company performing message interaction with the supplier-side server, the TrackFlow information may further include information of the travel e-commerce company corresponding to the message interaction, and the website information or the information of the application program corresponding to the service-side server sending the call request corresponds to the travel e-commerce company. Therefore, the TrackFlow information also includes website information or information of the application program corresponding to the message interaction, i.e., the application name.
When a user performs one operation, a message interaction is performed between the service server and the provider server, at this time, a calling identifier is generated, and the server 103 stores message information and the calling identifier during the message interaction. When another user performs the same operation, the server 103 may directly obtain the stored message information and the calling identifier, and may not perform a message interaction with the server of the provider, so that two users share one calling identifier and message information.
S202, adding the first tracking correlation information into a tracking identification stack, and sending the tracking identification stack to the first server when the message interaction with the second server is finished, so that the tracking identification stack is carried in the second calling request when the first server sends the second calling request next time.
Optionally, the second invocation request is sent by the first server when the first server invokes the second server according to the operation requirement of the same user.
In this embodiment, after generating the tracking related information, the tracking related information is added to the tracking identifier stack, and when the server 103 finishes interacting with the server message of the provider according to the call request, the server 103 receives a response message sent by the server of the provider. Server 103 then sends the trace identity stack to the server on the business side together with the response message as a response to the invocation request. When the service side server sends the call request again according to the operation requirement of the user, the service side server carries the trace identifier stack in the call request and sends the trace identifier stack to the server 103.
For example, when a user orders an air ticket on a network platform, an empty trace identifier stack is generated when a search is started, when a service side server generates a trace associated information after performing a message interaction with a provider server through the server 103, the trace associated information is added to the trace identifier stack, and the trace identifier stack is sent to the service side server. When the service side server needs to perform message interaction with the server of the provider through the server 103 according to the next operation of the user, the service side server carries the tracking identifier stack in a call request and sends the call request to the server 103, and after tracking associated information is generated, the server 103 adds the tracking associated information to the tracking identifier stack and sends the tracking associated information to the service side server until the user submits an order and generates an order number. Therefore, by tracing the label stack, a complete message interaction process generated according to the operation of the same user can be recorded, that is, the order generation process is connected in series by tracing the label stack.
S203, acquiring and storing the first information.
The first information comprises the calling identification, a request message and a response message.
In this embodiment, the server 103 sends a request message to the server of the provider according to the call request, the server of the provider replies a response message according to the content of the request message, the server 103 sends the trace identifier stack and the response message to the server of the service party, and constructs the call identifier, the request message, and the response message corresponding to the message interaction as temporary information (i.e., first information) to be temporarily stored in a temporary storage, for example, the temporary information is stored in an ElasticSeach. In some embodiments, the temporary information may further include the time when the message interaction corresponds to tracking association information and sending a request message.
It should be noted that, in the embodiment of the present application, the execution order of S203 and S204 is not limited.
S204, according to the calling identifiers included in the tracking identifier stack, first information including any calling identifier in the calling identifiers is obtained.
In this embodiment, after obtaining the call identifier, on one hand, the call identifier is pushed into the trace identifier stack, and on the other hand, the call identifier and the packet in the packet interaction identified by the call identifier form temporary information. For example, when the order number is not obtained, the required message information can be searched according to the calling identifier in the trace identifier stack. After the temporary information is inquired, the searched temporary information can be displayed.
In some embodiments, one possible implementation of S104 includes: and sequentially storing the first information through at least two message queues.
In this embodiment, if a user frequently operates a web page within a period of time, message interaction is performed for multiple times within a period of time, so that a large amount of temporary information is generated. Therefore, in order to avoid the loss of the temporary information, each piece of temporary information can be stored in the temporary memory by passing through at least two message queues in sequence. For example, after the temporary information is obtained, the temporary information is sent to the first message queue, and then the temporary information of the first message queue is sent to the temporary storage through the second message queue. The asynchronous storage of the temporary information is realized, so that peak clipping can be effectively carried out, the temporary information is prevented from being lost, the influence of load on the server can be reduced, and the usability of the server is improved. Wherein the first message queue is, for example, a dispatcher, and the second message queue adopts, for example, a distributed message queue Kafka.
In this embodiment, through the process of one-time message interaction of the unique calling identifier, the calling identifier is added to the trace identifier stack, and the trace identifier stack is transferred between the server of the service side and the server 103, so that all messages corresponding to the same user are completely and serially exchanged by using the trace identifier stack. And, obtain the temporary information according to each message interaction, include not merely the message information (for example, request message, response message) of each message interaction in the temporary information, also include the only one-time message interactive call identification of label. Therefore, when no order number exists, the message information is obtained according to the calling identification, the speed of searching the message information is improved, the calling identification in the tracking identification stack corresponds to the calling identification in the temporary information one by one, and the accuracy of the obtained message information is also improved.
Optionally, after obtaining the order information, the information query method according to the embodiment of the present application further includes:
s205, acquiring second information from the first information.
Wherein the second information comprises at least one of: request messages and response messages.
In this embodiment, after obtaining the order operation of the user on the network platform, the service side server generates an order number. After obtaining the order operation of the user on the network platform, the server 103 obtains the order number and the tracking identifier stack corresponding to the user. Because the calling identifier for identifying each message interaction is stored in the tracking identifier stack, and the calling identifier for identifying each message interaction is also stored in the temporary memory, the calling identifier stored in the tracking identifier stack is matched with the calling identifier stored in the temporary memory, and the temporary information of the calling identifier in the temporary memory matched with the calling identifier stored in the tracking identifier stack is obtained.
Information for solving the problem existing between the travel electric company and the supplier is extracted from the temporary information, such as: the request message and the response message are the message information obtained from the temporary information. The message information may further include at least one of information of a process node corresponding to the message interaction, information of a website or an application program, an application name, an operation name, and information of a provider.
S206, storing the second information, and establishing an association relationship between the second information and the order information, so that when the second information associated with the order information needs to be inquired, the second information establishing the association relationship with the order information is inquired according to the order information.
In this embodiment, after the temporary information is obtained according to the call identifier stored in the trace identifier stack, the message information is obtained according to the temporary information, and the message information is persistently stored, for example, the message information is stored in the HBase, and an association relationship between the message information and the order number is established. Therefore, when the information related to the order number needs to be searched, the message information related to the order number can be found by inputting the order number. After the message information is inquired, the searched message information can be displayed.
In this embodiment, after the order number is obtained, according to the call identifier in the trace identifier stack, the message information of each message interaction may be obtained through the temporary information, so that an association relationship is established between the message information of each message interaction and the order number. The method and the device realize the function of inquiring the message information of the message interaction related to the order according to the order number, simplify the process of acquiring the message information and improve the efficiency of acquiring the message information. In addition, because the tracing identification stack can interactively and completely connect all messages corresponding to the same user in series, the probability of interactive cross connection between the genetic message information and the messages among a plurality of users can be reduced, and the accuracy of obtaining the message information is improved.
In some embodiments, when the temporary information is matched from the temporary memory by the call identifier in the trace identifier stack, the call identifier may be stored in the trace identifier stack, but the temporary information of the call identifier is not contained in the temporary memory, so that the temporary information including the call identifier may not be obtained from the temporary memory according to the call identifier in the trace identifier stack. Therefore, in order to avoid missing the temporary information, the call identifier that is not matched to the temporary information may be marked, for example, the call identifier is added to the delay queue, and after a preset time period, the matching is retriggered, that is, the temporary information including the call identifier is matched again from the temporary storage according to the call identifier. If the calling identifier is not matched, when the preset time length is reached again, the matching is triggered again until the temporary information containing the calling identifier is matched, or the calling identifier is not matched after the preset matching times are reached, and the method is finished.
Optionally, after the user submits the order and obtains the order number, if the user needs to change the order, for example, change the sign, add a new service, and refund, according to the operation of the user, the service side server performs message interaction with the server of the provider through the server 103. Therefore, the information query method further comprises:
s301, after one message interaction is carried out on the second server according to the third calling request, third information is generated.
The third information comprises the order information, a request message and a response message corresponding to the request message.
In this embodiment, after the order number is generated, when the service server performs message interaction with the provider server through the server 103, the order number is carried in a request message sent to the provider server by the server 103, so that the provider server determines a corresponding order.
The supplier side server replies a response message according to the request message, the server 103 obtains the third information, and the third information is generated according to message interaction after the order number is obtained, so that the third information can directly establish an association relationship with the order number. The third information comprises an order number, a request message and a response message.
After the order number is generated, when the service server performs message interaction with the provider server through the server 103, a tracking associated message is also generated, where the tracking associated message includes a calling identifier, and the calling identifier is used to uniquely identify a process of message interaction. The trace association information is added to the trace identification stack.
S302, second information is obtained according to third information, and the second information is added to relevant information related to the order information according to the order number.
In this embodiment, after the third information is obtained, for example, the third information may be directly stored as message information in the related information of the order number stored in the HBase. Optionally, in order to reduce the occupied storage space in the HBase, information in the third information may be selectively stored, the message information is obtained according to the third information, and the message information is stored in the relevant information of the order number stored in the HBase.
In summary, the relevant information of the order number includes message information for interaction between the server of the network platform and the provider side server through the server 103 before, during and after the order is generated. Correspondingly, when the inquiring party inquires the interactive message between the travel E-commerce company and the supplier, the message corresponding to the order before, during and after the order is generated can be inquired according to the order number.
Because the content of the message information is more, before the message information related to the order number is acquired according to the order number, information such as request time of a request message corresponding to each message information, a user operation name, an application name, a calling identifier and the like corresponding to the request message can be displayed on an interface, so that an inquiring party can further determine specific second information according to the displayed information, and the efficiency of acquiring the message information is improved.
Fig. 3 is a schematic structural diagram of an information query apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus according to the embodiment may include: a generating module 31, a sending module 32, a first obtaining module 33 and a second obtaining module 34. Wherein the content of the first and second substances,
the generating module 31 is configured to generate first tracking association information when a request packet is sent to the second server once according to the first call request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; calling an action of the identifier for uniquely identifying the one-time transmission request message;
the sending module 32 is configured to add the first trace correlation information to the trace identifier stack, and send the trace identifier stack to the first server when the message interaction with the second server is finished, so that the trace identifier stack is carried in the second call request when the first server sends the second call request next time; the first obtaining module 33 is configured to obtain and store first information, where the first information includes a call identifier, a request packet, and a response packet;
the second obtaining module 34 is configured to obtain, according to the call identifier included in the trace identifier stack, first information including any call identifier in the call identifiers.
Optionally, the second obtaining module 34 is further configured to obtain second information from the first information, where the second information includes at least one of the following: request message, response message; and storing the second information, and establishing an association relationship between the second information and the order information, so as to inquire the second information establishing the association relationship with the order information according to the order information when the second information associated with the order information needs to be inquired.
Optionally, after obtaining the order information, the sending module 32 is further configured to perform a message interaction to the second server according to a third call request, and generate third information, where the third information includes the order information, the request message, and a response message corresponding to the request message; and obtaining second information according to the third information, and adding the second information to related information associated with the order information according to the order number.
Optionally, the first tracking related information further includes at least one of the following: application name, operation name, link trace identification.
Optionally, if the first information including the call identifier is not acquired according to the call identifier in the trace identifier stack, the second acquiring module 34 is further configured to: recording a calling identifier which cannot acquire the first information; and after the first preset duration, obtaining the first information including the calling identifier of the first information which cannot be obtained again according to the calling identifier of the first information which cannot be obtained.
Optionally, the first obtaining module 33 is specifically configured to: and sequentially storing the first information through at least two message queues.
Optionally, the second invocation request is sent by the first server when the second server is invoked according to the operation requirement of the same user.
Optionally, the generating module 31 is specifically configured to: the identification is generated by the GUID algorithm.
The apparatus of this embodiment may be configured to implement the technical solution of any one of the above-mentioned method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, the electronic device according to the embodiment may include: at least one processor 41, a first memory 42 and a second memory 43. Fig. 4 shows an electronic device as an example of a processor, wherein,
the processor 41 is configured to generate first tracking association information when performing a message interaction with the second server according to the first call request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; calling an identifier to uniquely identify a process of one-time message interaction; adding the first tracking associated information into a tracking identification stack, and sending the tracking identification stack to the first server when the message interaction with the second server is finished, so that the tracking identification stack is carried in the second calling request when the first server sends the second calling request next time; acquiring first information, and storing the first information in a first memory 42, wherein the first information comprises a calling identifier, a request message and a response message; first information including any one of the call identifiers is retrieved from the first memory 42 according to the call identifiers included in the trace identifier stack.
Optionally, after obtaining the order information and obtaining the first information including any calling identifier in the calling identifiers according to the tracking identifier stack including the calling identifiers, the processor 41 is further configured to: obtaining second information from the first information, wherein the second information comprises at least one of the following: request message, response message; the second information is stored in the second storage 43, and the association relationship between the second information and the order information is established, so that when the second information associated with the order information needs to be queried, the second information associated with the order information is queried according to the order information.
Optionally, after obtaining the order information, the processor 41 is further configured to: after carrying out message interaction to the second server once according to the third calling request, generating third information, wherein the third information comprises order information, a request message and a response message corresponding to the request message; the second information is obtained from the third information and added to the related information associated with the order information in the second memory 43 according to the order number.
Optionally, the first tracking related information further includes at least one of the following: application name, operation name, link trace identification.
Optionally, if the first information including the call identifier is not acquired according to the call identifier in the trace identifier stack, the processor 41 is further configured to: recording a calling identifier which cannot acquire the first information; and after the first preset duration, obtaining the first information including the calling identifier of the first information which cannot be obtained again according to the calling identifier of the first information which cannot be obtained.
Optionally, when the processor 41 stores the first information in the first memory 42, it is specifically configured to: and sequentially storing the first information through at least two message queues.
Optionally, the second invocation request is sent by the first server when the second server is invoked according to the operation requirement of the same user.
Optionally, when the processor 41 obtains the identifier, it is specifically configured to: the identification is generated by the GUID algorithm.
The processor 41 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Optionally, the electronic device of this embodiment may further include a third memory (not shown in the figure) for storing the program. In particular, the program may include program code comprising computer operating instructions. The processor 41 is used to call the instructions to implement the above-described scheme.
Alternatively, in a specific implementation, if the third memory and the processor 41 are implemented independently, the third memory and the processor 41 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Optionally, in a specific implementation, if the third memory and the processor 41 are integrated on a chip, the third memory and the processor 41 may complete the same communication through an internal interface.
The electronic device described above in this embodiment may be configured to execute the technical solutions in the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a block diagram of the information query device 20 according to an embodiment of the present invention. For example, the apparatus 20 may be provided as a server. Referring to fig. 5, the apparatus 20 includes a processing component 21, which further includes one or more processors, and memory resources, represented by memory 22, for storing instructions, such as applications, that are executable by the processing component 21. The application programs stored in memory 22 may include one or more modules that each correspond to a set of instructions. Furthermore, the processing component 21 is configured to execute instructions to perform the data transmission method shown in any of the embodiments described above.
The apparatus 20 may further include a power supply component 23 configured to perform power management of the apparatus 20, a wired or wireless network interface 24 configured to connect the apparatus 20 to a network, and an input/output (I/O) interface 25 the apparatus 20 may be operable based on an operating system stored in the memory 23, such as Windows server, Mac OS XTM, UnixTM, &ltttttranslation = L "&gtt translation &/t &gttinx, FreeBSDTM, or the like.
The information query apparatus described above in this embodiment may be configured to execute the technical solutions in the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media capable of storing program codes, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and the like.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. An information query method, comprising:
generating first tracking associated information when performing message interaction with a second server according to the first calling request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; the calling identifier is used for uniquely identifying the process of one-time message interaction;
adding the first trace associated information to a trace identification stack, and sending the trace identification stack to the first server when the message interaction with the second server is finished, so that the trace identification stack is carried in a second call request when the first server sends the second call request next time;
acquiring and storing first information, wherein the first information comprises the calling identifier, a request message and a response message;
and acquiring first information comprising any calling identifier in the calling identifiers according to the calling identifiers in the tracking identifier stack.
2. The method according to claim 1, wherein after obtaining order information, and after obtaining first information including any one of the call identifiers according to the call identifier included in the trace identifier stack, the method further comprises:
obtaining second information from the first information, wherein the second information comprises at least one of the following: request message, response message;
and storing the second information, and establishing an association relationship between the second information and the order information, so as to inquire the second information establishing the association relationship with the order information according to the order information when the second information associated with the order information needs to be inquired.
3. The method of claim 2, wherein after obtaining the order information, the method further comprises:
after carrying out message interaction once to a second server according to a third calling request, generating third information, wherein the third information comprises the order information, a request message and a response message corresponding to the request message;
and obtaining second information according to the third information, and adding the second information to related information associated with the order information according to the order number.
4. The method according to any of claims 1-3, wherein the first tracking association information further comprises at least one of: application name, operation name, link trace identification.
5. The method according to any one of claims 1 to 3, wherein if the first information including the call identifier is not obtained according to the call identifier in the trace identifier stack, the method further includes:
recording a calling identifier which cannot acquire the first information;
and after the first preset duration, obtaining the first information comprising the calling identifier of the first information which cannot be obtained again according to the calling identifier of the first information which cannot be obtained.
6. The method of any of claims 1-3, wherein storing the first information comprises:
and sequentially storing the first information through at least two message queues.
7. The method according to any one of claims 1 to 3, wherein the second invocation request is sent by the first server when the second server is invoked according to the operation needs of the same user.
8. An information inquiry apparatus, comprising:
the generation module is used for generating first tracking associated information when a request message is sent to the second server once according to the first calling request; the first calling request is sent when the first server calls the second server according to the operation requirement of the user; the first tracking associated information comprises a calling identifier; the calling identifier is used for uniquely identifying the action of sending the request message at one time;
a sending module, configured to add the first trace correlation information to a trace identifier stack, and send the trace identifier stack to the first server when the packet interaction with the second server is finished, so as to carry the trace identifier stack in a second invocation request when the first server sends the second invocation request next time; the second calling request is sent by the first server when the first server calls the second server according to the operation requirement of the same user;
the first obtaining module is used for obtaining and storing first information, wherein the first information comprises the calling identifier, a request message and a response message;
and the second acquisition module is used for acquiring first information comprising any calling identifier in the calling identifiers according to the calling identifiers in the tracking identifier stack.
9. An electronic device, comprising: a memory for storing program instructions and at least one processor for calling the program instructions in the memory to perform the information query method of any one of claims 1-7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program, when executed, implements the information query method of any one of claims 1-7.
CN202010247378.7A 2020-03-31 2020-03-31 Information query method and device Active CN111460338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247378.7A CN111460338B (en) 2020-03-31 2020-03-31 Information query method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247378.7A CN111460338B (en) 2020-03-31 2020-03-31 Information query method and device

Publications (2)

Publication Number Publication Date
CN111460338A true CN111460338A (en) 2020-07-28
CN111460338B CN111460338B (en) 2023-06-23

Family

ID=71682425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247378.7A Active CN111460338B (en) 2020-03-31 2020-03-31 Information query method and device

Country Status (1)

Country Link
CN (1) CN111460338B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014043862A1 (en) * 2012-09-19 2014-03-27 华为技术有限公司 User equipment tracking method and system, access device and access controller
KR20150088071A (en) * 2014-01-23 2015-07-31 에스케이플래닛 주식회사 System and method for providing location tracing service
CN105743988A (en) * 2016-03-30 2016-07-06 新浪网技术(中国)有限公司 Network user tracking implementation method, device and system
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107609913A (en) * 2017-09-19 2018-01-19 上海恺英网络科技有限公司 A kind of method and system of data analysis tracking
US20180083849A1 (en) * 2016-09-21 2018-03-22 Oracle International Corporation End-to-end tracing providers and session management
CN108173706A (en) * 2017-11-29 2018-06-15 阿里巴巴集团控股有限公司 Service marker method, apparatus and equipment under a kind of multiservice system
CN108234642A (en) * 2017-12-29 2018-06-29 中国银联股份有限公司 A kind of user tracking method, server and user terminal
CN108289038A (en) * 2017-12-30 2018-07-17 金蝶软件(中国)有限公司 Request tracing method, apparatus, computer equipment and storage medium
CN108462750A (en) * 2018-03-22 2018-08-28 平安好房(上海)电子商务有限公司 Distribution calls method for tracing, operation system, monitoring system and storage medium
CN108600045A (en) * 2018-04-05 2018-09-28 厦门快商通信息技术有限公司 A kind of service link monitoring method and device
CN110830577A (en) * 2019-11-08 2020-02-21 深圳前海环融联易信息科技服务有限公司 Service request call tracking method and device, computer equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014043862A1 (en) * 2012-09-19 2014-03-27 华为技术有限公司 User equipment tracking method and system, access device and access controller
CN104145497A (en) * 2012-09-19 2014-11-12 华为技术有限公司 User equipment tracking method and system, access device and access controller
KR20150088071A (en) * 2014-01-23 2015-07-31 에스케이플래닛 주식회사 System and method for providing location tracing service
CN105743988A (en) * 2016-03-30 2016-07-06 新浪网技术(中国)有限公司 Network user tracking implementation method, device and system
US20180083849A1 (en) * 2016-09-21 2018-03-22 Oracle International Corporation End-to-end tracing providers and session management
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107609913A (en) * 2017-09-19 2018-01-19 上海恺英网络科技有限公司 A kind of method and system of data analysis tracking
CN108173706A (en) * 2017-11-29 2018-06-15 阿里巴巴集团控股有限公司 Service marker method, apparatus and equipment under a kind of multiservice system
CN108234642A (en) * 2017-12-29 2018-06-29 中国银联股份有限公司 A kind of user tracking method, server and user terminal
CN108289038A (en) * 2017-12-30 2018-07-17 金蝶软件(中国)有限公司 Request tracing method, apparatus, computer equipment and storage medium
CN108462750A (en) * 2018-03-22 2018-08-28 平安好房(上海)电子商务有限公司 Distribution calls method for tracing, operation system, monitoring system and storage medium
CN108600045A (en) * 2018-04-05 2018-09-28 厦门快商通信息技术有限公司 A kind of service link monitoring method and device
CN110830577A (en) * 2019-11-08 2020-02-21 深圳前海环融联易信息科技服务有限公司 Service request call tracking method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
G. REINMAN;G. PITIGOI-ARON: "Trace cache miss tolerance for deeply pipelined superscalar processors", vol. 153, no. 5, XP006027075, DOI: 10.1049/ip-cdt:20050161 *
刘世开: "现代追踪识别技术与应用", 现代机械, no. 002 *

Also Published As

Publication number Publication date
CN111460338B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN108960691B (en) Method and device for determining article stock for server system
KR101543221B1 (en) - Method Apparatus and System for Providing Muti User-Multi Service
WO2016101811A1 (en) Information arrangement method and apparatus
CN111639279A (en) Graphic code generation method, target page loading method and device
CN104601712A (en) Resource push method and system
CN114416075A (en) Service processing method and device
CN112884405A (en) Inquiry system and scheduling method thereof
CN112214334A (en) Micro-service calling method and device, electronic equipment and computer-readable storage medium
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN113900907A (en) Mapping construction method and system
CN113220684A (en) Data packet storage and query method, device, system and storage medium
CN110753323B (en) Card resource allocation method and server
CN111460338A (en) Information query method and device
CN109525550B (en) Data message processing method, device and system
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
US7881735B2 (en) Messaging gateway and method
CN108268545B (en) Method and device for establishing hierarchical user label library
CN104615651A (en) Service information processing method and browser client
CN111489212B (en) Order billing method, device, equipment and medium based on big data
CN113742101A (en) Data intercommunication method, device, equipment and readable storage medium
CN102916820B (en) Charging system and charging method
CN111985186A (en) Dictionary entry conversion method, API gateway system, equipment and storage medium
CN113194109A (en) Method and device for pushing information
CN110827079A (en) Order following processing method, device and storage medium
JPWO2005094186A1 (en) E-mail automatic processing program, recording medium recorded with e-mail automatic processing program, e-mail automatic processing system

Legal Events

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