Order processing method, device, equipment and computer-readable storage medium
By dividing strong related businesses and weak related businesses in the order system, first dealing with strong related businesses to quickly generate order results, and then processing weak related businesses after the order is successfully placed, the problem of slow response in traditional order systems is solved, and user experience and response speed is improved.
Patent Information
- Application Number
- CN202310249714.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-03-15
AI Technical Summary
Traditional order systems respond slowly to users' order placing operations, which affects users' order placing experience.
By pre-dividing strong related businesses and weak related businesses, we first process strong related businesses corresponding to the order information, obtain the order results of items to be placed, and process weak related businesses after the order is successfully placed.
It greatly shortens the response time for user ordering operations, improves the response speed of ordering, and improves the user's ordering experience while responding to ordering quickly.
Smart Images

Figure CN116228369B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and specifically to an order processing method, device, equipment, and computer-readable storage medium. Background Art
[0002] With the rapid development of Internet technology, the application of e-commerce in daily life is becoming more and more common. The order system in e-commerce is a common application software system, and users can place orders on the order system to complete the purchase of items.
[0003] In response to the user's order operation, the traditional order system adopts chain processing for each business involved in the order business logic, that is, each business needs to be executed to generate the order result. Since the chain of the order business logic is usually long, the traditional order system responds slowly to the user's order operation, resulting in a poor user ordering experience. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides an order processing method for solving the problem in the prior art that the response to the user's order operation is slow, affecting the user's order experience.
[0005] According to one aspect of an embodiment of the present invention, there is provided an order processing method, the method comprising: in response to an order instruction input by a user, obtaining order information of items to be ordered; based on the order information, processing strongly related businesses corresponding to the order information to obtain order results for the items to be ordered; if the order result indicates that the order for the items to be ordered is successful, processing weakly related businesses corresponding to the order information based on order information generated after the order for the items to be ordered is successfully placed.
[0006] In an optional manner, the order information includes user information and information of the items to be ordered, and the strongly related services include a payment deduction information query service, a commodity inventory query service, a payment deduction service and an order generation service; based on the order information, processing the strongly related services corresponding to the order information to obtain the order result of the items to be ordered includes: based on the user information, processing the payment deduction information query service to obtain the payment deduction information corresponding to the user information; based on the information of the items to be ordered, processing the commodity inventory query service to obtain the inventory information of the items to be ordered; based on the payment deduction information and the inventory information of the items to be ordered, processing the payment deduction service and the order generation service to generate the order result of the items to be ordered.
[0007] In an optional manner, the order information includes user information and information of items to be ordered, and the weakly related services include data update services and issuance interaction services; the weakly related services corresponding to the order information are processed based on the order information generated after the order for the items to be ordered is successfully placed, including: based on the order information, processing the data update service to update the user information and the inventory information of the items to be ordered; based on the order information, processing the issuance interaction service to send an interaction message to the user, the interaction message being used to indicate that the user has successfully placed the order and that the user information has been updated.
[0008] In an optional manner, the data update service is processed based on the order information to update the user information and the inventory information of the items to be ordered, including: obtaining user update information corresponding to the user information and item update information corresponding to the items to be ordered based on the order information; and updating the user information and the inventory information of the items to be ordered respectively based on the user update information and the item update information.
[0009] In an optional manner, before the step of obtaining the order information of the items to be ordered in response to the order instruction input by the user, the step includes: obtaining data information corresponding to the strongly related business from a database; storing the data information corresponding to the strongly related business in a cache middleware; and processing the strongly related business corresponding to the order information based on the order information to obtain the order result of the items to be ordered, including: obtaining data information corresponding to the strongly related business corresponding to the order information from the cache middleware based on the order information; processing the strongly related business corresponding to the order information based on the data information corresponding to the strongly related business corresponding to the order information to obtain the order result of the items to be ordered.
[0010] In an optional manner, the method further includes: if the order result indicates that the order of the item to be ordered has failed, re-executing the step of processing strongly related businesses corresponding to the order information based on the order information to obtain the order result of the item to be ordered.
[0011] In an optional manner, the method further includes: determining the strongly related business and the weakly related business among the multiple businesses based on execution parameters of the multiple businesses, the execution parameters including at least one of importance weight, execution time and execution success rate.
[0012] According to another aspect of an embodiment of the present invention, an order processing device is provided, the order processing device comprising: an information acquisition module, a first processing module, and a second processing module. The information acquisition module is used to obtain order information of items to be ordered in response to an order instruction input by a user; the first processing module is used to process strongly related services corresponding to the order information based on the order information to obtain an order result of the items to be ordered; the second processing module is used to process weakly related services corresponding to the order information based on the order information generated after the order of the items to be ordered is successfully placed if the order result indicates that the order of the items to be ordered is successfully placed.
[0013] In an optional manner, the order information includes user information and information of the items to be ordered, and the strongly related services include a payment deduction information inquiry service, a commodity inventory inquiry service, a payment deduction service, and an order generation service;
[0014] The first processing module is also used to: based on the user information, process the payment deduction information query service to obtain the payment deduction information corresponding to the user information; based on the information of the items to be ordered, process the commodity inventory query service to obtain the inventory information of the items to be ordered; based on the payment deduction information and the inventory information of the items to be ordered, process the payment deduction service and the order generation service to generate the order result of the items to be ordered.
[0015] In an optional manner, the order information includes user information and information of items to be ordered, and the weakly related services include data update services and issuance interaction services; the second processing module is also used to: based on the order information, process the data update service to update the user information and the inventory information of the items to be ordered; based on the order information, process the issuance interaction service to send an interaction message to the user, and the interaction message is used to indicate that the user has successfully placed an order and that the user information has been updated.
[0016] In an optional manner, the second processing module is also used to: obtain user update information corresponding to the user information and item update information corresponding to the items to be ordered based on the order information; and update the user information and inventory information of the items to be ordered respectively based on the user update information and the item update information.
[0017] In an optional manner, before the information acquisition module, the order processing device also includes: a cache module, used to obtain data information corresponding to the strongly related business from a database; and store the data information corresponding to the strongly related business in a cache middleware; the first processing module is also used to: based on the order information, obtain data information corresponding to the strongly related business corresponding to the order information from the cache middleware; based on the data information corresponding to the strongly related business corresponding to the order information, process the strongly related business corresponding to the order information to obtain the order result of the item to be ordered.
[0018] In an optional manner, the first processing module is further used for: if the order result indicates that the order of the item to be ordered has failed, re-execute the step of processing strongly related businesses corresponding to the order information based on the order information to obtain the order result of the item to be ordered.
[0019] In an optional manner, the order processing device also includes: a business classification module, which is used to determine the strongly related business and the weakly related business among the multiple businesses based on execution parameters of the multiple businesses, and the execution parameters include at least one of importance weight, execution time and execution success rate.
[0020] According to another aspect of an embodiment of the present invention, there is provided an order processing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction enables the processor to perform the following steps: in response to an order instruction input by a user, obtaining order information of an item to be ordered; based on the order information, processing strongly related businesses corresponding to the order information to obtain order results for the item to be ordered; if the order result indicates that the order for the item to be ordered is successful, processing weakly related businesses corresponding to the order information based on the order information generated after the order for the item to be ordered is successfully placed.
[0021] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, wherein the executable instruction enables an order processing device / apparatus to perform the following operations: in response to an order instruction input by a user, obtaining order information of items to be ordered; based on the order information, processing strongly related businesses corresponding to the order information to obtain order results for the items to be ordered; if the order result indicates that the order for the items to be ordered is successful, processing weakly related businesses corresponding to the order information based on the order information generated after the order for the items to be ordered is successfully placed.
[0022] The embodiment of the present invention can process the strongly related business corresponding to the order information first based on the order information by pre-dividing the strongly related business and the weakly related business, and obtain the order result of the item to be ordered. Since the order result can be obtained after the strongly related business is processed, it is not necessary to obtain the order result after both the strongly related business and the weakly related business are processed. Therefore, the response time to the user's order operation can be greatly shortened, and the response speed of the order can be improved. In addition, after the order of the item to be ordered is successfully placed, the weakly related business corresponding to the order information is processed based on the order information generated after the order is successfully placed. The weakly related business can be separated and post-processed, and the processing result of the weakly related business does not affect the success of the order. Therefore, while responding to the order quickly, the user's order experience can be further improved.
[0023] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0025] Figure 1 A schematic diagram of an application scenario of an order processing device is shown;
[0026] Figure 2 A flow chart showing a conventional order processing method;
[0027] Figure 3 A flow chart of an order processing method provided by the present invention is shown;
[0028] Figure 4 A flow chart showing another order processing method provided by the present invention;
[0029] Figure 5 A flow chart of another order processing method provided by the present invention is shown;
[0030] Figure 6 A flowchart of another order processing method provided by the present invention is shown;
[0031] Figure 7 A flow chart of another order processing method provided by the present invention is shown;
[0032] Figure 8 A flow chart of another order processing method provided by the present invention is shown;
[0033] Fig. 9 A flowchart of another order processing method provided by the present invention is shown;
[0034] Fig.10 A schematic structural diagram of an order processing device provided by the present invention is shown;
[0035] Fig.11 A structural schematic diagram of an order processing device provided by the present invention is shown. DETAILED DESCRIPTION
[0036] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0037] Figure 1 The following is a schematic diagram showing the application scenario of the order processing device. Figure 1 As shown, in the order processing system, the user can input the order instruction to the order processing device after determining the items to be ordered. The order processing device uses the source data stored in the database to process the various businesses involved in the order business logic, and finally feedback the order result to the user.
[0038] Figure 2 FIG. 1 is a flow chart showing a conventional order processing method, which is executed by an order processing device. Figure 2 As shown, the traditional order processing method responds to the user's order instruction and can use chain processing for each business involved in the order business logic, such as: user information query business, commodity inventory processing business, red envelope card processing business, activity commodity processing business, points issuance business, and title issuance business, that is, each business needs to be executed to generate the order result and complete the order. For example, the user information query business takes 0.1 seconds, the commodity inventory processing business takes 0.3 seconds, the red envelope card processing business takes 0.3 seconds, the activity commodity processing business takes 0.3 seconds, the points issuance business takes 0.2 seconds, and the title issuance business takes 0.2 seconds, and it takes a total of 1.4 seconds to complete the order.
[0039] Since the ordering business logic involves a series of business processes that are unrelated to user ordering behavior, such as product inventory validity, user rights and interests cards, user points issuance, product activity cycle, etc., the ordering business logic link is usually long, and problems in the processing of one business will affect the processing of other businesses. Therefore, the use of this traditional order processing method will result in slow response to user ordering operations and poor user ordering experience.
[0040] In order to solve the above problems, the present application provides an order processing method, which can be executed by an order processing device, such as Figure 3 As shown, the method comprises the following steps:
[0041] Step 110: In response to the order instruction input by the user, the order information of the items to be ordered is obtained.
[0042] The order instruction may be an instruction inputted by the user through the central control screen after the user determines the item to be ordered from the product information. For example, the user may input the order instruction in the order processing device by touch or voice, or may remotely send the order instruction to the order processing device through the user's handheld terminal.
[0043] After receiving the order instruction, the order processing device can obtain the order information of the items to be ordered according to the order instruction. For example, the order information includes user information and information of the items to be ordered.
[0044] Exemplarily, user information is used to indicate the identity information of the current user, such as member account, member level, member title, bound discount information, usable red envelope information, usable card and coupon information, cashable points information, etc.
[0045] Exemplarily, the information of the items to be ordered is used to indicate the transaction information of the items to be ordered, for example, the item type, order quantity, purchase price, item discount, shipping information, receipt information, etc. of the items to be ordered.
[0046] Step 120: Based on the order information, strongly related businesses corresponding to the order information are processed to obtain order results for the items to be ordered.
[0047] Among them, strongly related services are used to indicate the smallest granularity of ordering services, that is, services that are highly related to the user's ordering behavior and must be processed during the ordering process. For example, strongly related services may include payment deduction information query services, commodity inventory query services, payment deduction services, and order generation services.
[0048] Among them, the payment deduction information query service is used to indicate whether there is available payment deduction information from the stored data. For example, red envelope information, card information, discount information, and points information that can be deducted from the purchase price. The commodity inventory query service is used to indicate that the inventory quantity of the item to be ordered is queried from the stored data. The payment deduction service is used to indicate that payment deduction is performed during the process of the user actually paying the price of the item to be ordered. The order generation service is used to indicate that the order information of the item to be ordered is generated after the user actually pays the price of the item to be ordered.
[0049] It should be noted that when classifying the various businesses involved in the order business logic in advance, strongly related businesses can be divided out from the multiple businesses involved in the order business logic based on the execution parameters of the multiple businesses. Among them, the execution parameters may include at least one of importance weight, execution time and execution success rate. The importance weight is used to indicate the importance of the business in the entire order business logic, the execution time is used to indicate the time required from the start to the end of the business, and the execution success rate is used to indicate the probability of successful execution of the business. For example, a business with an importance weight greater than a first threshold, an execution time less than a second threshold, and an execution success rate greater than a third threshold can be determined as a strongly related business.
[0050] Exemplarily, the order result of the item to be ordered can be used to indicate whether the order of the item to be ordered is successfully placed, that is, whether the strongly related business is successfully processed. For example, if it is not possible to successfully query whether there is available payment deduction information from the stored data, or there is no available inventory of the item to be ordered, or the user fails to pay the payment for the item to be ordered, or the order is not successfully generated, then the order result of the item to be ordered indicates that the order of the item to be ordered has failed. If the strongly related business is successfully processed, then the order result of the item to be ordered indicates that the order of the item to be ordered is successful.
[0051] Step 130: If the order result indicates that the order of the item to be ordered is successful, based on the order information generated after the order of the item to be ordered is successfully placed, a weakly related business corresponding to the order information is processed.
[0052] After the order of the items to be ordered is successfully placed, the corresponding order information will be generated, and the order information already includes the order information of the items to be ordered. Weakly related services are used to indicate services that are not related to the user's ordering behavior, that is, services that are weakly related to the order and can be processed after the order is completed. For example, weakly related services may include data update services and distribution interaction services.
[0053] Exemplarily, the data update service is used to indicate that the stored data is updated based on the order information. For example, the inventory quantity of the item to be ordered is updated to the difference between the original inventory quantity and the purchase quantity, and the user's membership title is upgraded to a new level. The issuance interaction service is used to indicate the interaction of messages with the user. For example, a prompt message of successful payment, information about a gifted red envelope, information about gifted points, updated membership title, etc. is sent to the user.
[0054] It should be noted that when the various businesses involved in the order business logic are classified in advance, weakly related businesses can be divided out from the multiple businesses involved in the order business logic based on the execution parameters of the multiple businesses. Among them, the execution parameters may include at least one of the importance weight, execution time and execution success rate. The importance weight is used to indicate the importance of the business in the entire order business logic, the execution time is used to indicate the time required for the business from start to end, and the execution success rate is used to indicate the probability of successful execution of the business. For example, a business whose importance weight is less than or equal to the first threshold, whose execution time is greater than or equal to the second threshold, and whose execution success rate is less than or equal to the third threshold can be determined as a weakly related business. Weakly related businesses are processed only after the order of the items to be ordered is successfully placed. In the embodiment of the present invention, whether the weakly related business is processed successfully is not considered.
[0055] An order processing method provided by an embodiment of the present invention can process strongly related businesses corresponding to order information first based on order information by pre-dividing strongly related businesses and weakly related businesses, and obtain order results of items to be ordered. Since the order results can be obtained after the strongly related businesses are processed, the response time to the user's order operation can be greatly shortened, and the response speed of the order can be improved. In addition, after the order of the items to be ordered is successfully placed, the weakly related businesses corresponding to the order information are processed based on the order information generated after the order is successfully placed, and the weakly related businesses can be separated and post-processed, and the processing results of the weakly related businesses have no effect on whether the order is successful or not, so the user's order experience can be further improved while responding to the order quickly.
[0056] Figure 4 A flowchart showing another order processing method provided by the present invention is shown. Figure 3 In some examples, order information includes user information and information about items to be ordered, and strongly related services include payment deduction information query service, commodity inventory query service, payment deduction service, and order generation service.
[0057] like Figure 4 As shown, Figure 3 Step 120 in the embodiment may specifically include the following steps 1201-1203:
[0058] Step 1201: Based on the user information, process the payment deduction information query service to obtain the payment deduction information corresponding to the user information.
[0059] Exemplarily, based on the user information, the payment deduction information corresponding to the user information can be queried and obtained from the stored user data, for example, the discount information, red envelope information, card information, and points information bound to the user.
[0060] Step 1202: Based on the information of the items to be ordered, the commodity inventory query business is processed to obtain the inventory information of the items to be ordered.
[0061] Exemplarily, based on the information of the items to be ordered, the inventory information of the items to be ordered, for example, the inventory quantity, can be queried and obtained from the stored commodity data.
[0062] Step 1203: Based on the payment deduction information and the inventory information of the items to be ordered, the payment deduction business and the order generation business are processed to generate the order result of the items to be ordered.
[0063] Exemplarily, when the inventory quantity of the items to be ordered is not zero, the purchase price of the items to be ordered is deducted based on the payment deduction information to generate prepayment information. After the user confirms the prepayment information and completes the payment operation, order information is generated in response to the user's payment completion instruction, and the order result of the items to be ordered is generated based on the order information.
[0064] By applying the method of the embodiment of the present invention, the strongly related business processed is the business with the smallest granularity in the order business logic, and the order business logic can be completed quickly, which greatly shortens the response time to the user's order operation and improves the response speed of the order.
[0065] Figure 5 A flowchart of another order processing method provided by the present invention is shown, combined with Figure 3 In some examples, order information includes user information and information about items to be ordered, and weakly related services include data update services and distribution interaction services. Figure 5 As shown, Figure 3 Step 130 in the embodiment may specifically include the following steps 1301-1302:
[0066] Step 1301: If the order result indicates that the order of the item to be ordered is successful, then based on the order information, a data update service is processed to update the user information and the inventory information of the item to be ordered.
[0067] Step 1302: Based on the order information, process and issue interactive services to send interactive messages to the user.
[0068] Among them, the interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated, that is, the interactive message can prompt the user that the payment has been completed, or the red envelope or points have been given, or the title has been upgraded.
[0069] Interaction messages can be completed by message middleware, which is a supporting software system based on queue and message delivery technology that provides synchronous or asynchronous, reliable message transmission for application systems in a network environment, such as ActiveMQ, RabbitMQ, RocketMQ, Kafka, and ZeroMQ. Message middleware is used to send interaction messages to users. The order processing device can first send the interaction message to the message middleware, and then the message middleware sends the interaction message to the user based on the sending logic set by itself.
[0070] By applying the method of the embodiment of the present invention, weakly related businesses can be stripped off, and the businesses can be split by sending asynchronous messages. After the strongly related businesses are successfully processed, interactive messages can be sent in the form of message middleware, thereby improving processing efficiency.
[0071] Figure 6 A flowchart of another order processing method provided by the present invention is shown, combined with Figure 5 ,like Figure 6 As shown, Figure 5 Step 1301 in the embodiment may specifically include the following steps 13011-13012:
[0072] Step 13011: If the order result indicates that the order of the item to be ordered is successful, based on the order information, user update information corresponding to the user information and item update information corresponding to the item to be ordered are obtained.
[0073] For example, the user's membership level is level one, the number of items to be ordered is M, the unit price is N yuan, and the payment deduction is L yuan. Then the price actually paid by the user in the order information is (M×NL). After conversion to the corresponding points, the user's total points reach the upgrade threshold. The user update information is to update the membership level to level two, and the member points are increased accordingly; the item update information corresponding to the item to be ordered is a reduction of M pieces in inventory.
[0074] Step 13012: Based on the user update information and the item update information, update the user information and the inventory information of the items to be ordered respectively.
[0075] Among them, the data in storage is updated.
[0076] By applying the method of the embodiment of the present invention, the stored product information and user information can be updated in a timely manner according to the actual order result, and because it is completed after the order is successfully placed, it will not affect the order processing speed and user experience.
[0077] Figure 7 FIG. 2 shows a flow chart of another order processing method provided by the present invention, which is executed by an order processing device. Figure 7As shown, in addition to the above steps 110 to 130, the order processing method may also include the following steps 140 to 150 before executing step 110:
[0078] Step 140: Obtain data information corresponding to strongly related services from the database.
[0079] The database is used to store all user data and all commodity data involved in the ordering business. The database can be set on a separate storage device, or can also be set on an order processing device.
[0080] Step 150: Store the data information corresponding to the strongly related business into the cache middleware.
[0081] Among them, after classifying the various businesses involved in the order business logic in advance, the data information corresponding to the strongly related businesses can be extracted from the database and stored in the cache middleware, such as Redis, ES.
[0082] The data information corresponding to strongly related businesses can be stored in the same cache middleware. For example, all product data and user data are stored in Redis. Alternatively, the data information corresponding to strongly related businesses can also be stored in different cache middleware. For example, the inventory data corresponding to each product is stored in Redis, the user data and product data are stored in ES, and the red envelopes and coupons are stored according to the storage location of the user data.
[0083] Based on the above steps 140 to 150, step 120 may specifically include the following steps 1204 to 1205:
[0084] Step 1204: Based on the order information, data information corresponding to the strongly related business corresponding to the order information is obtained from the cache middleware.
[0085] Step 1205: Based on the data information corresponding to the strongly related business corresponding to the order information, the strongly related business corresponding to the order information is processed to obtain the order result of the item to be ordered.
[0086] Exemplarily, the strongly related business includes the business of querying payment deduction information. The payment deduction information corresponding to the user information can be queried and read from the payment deduction information corresponding to all user information stored in the cache middleware, for example, the discount information, red envelope information, card information, and points information bound to the user.
[0087] By applying the method of the embodiment of the present invention, data information corresponding to strongly related businesses can be cached, and corresponding data can be directly read from the cache when processing strongly related businesses, which can greatly improve data query speed and order response speed.
[0088] Figure 8 FIG. 2 shows a flow chart of another order processing method provided by the present invention, which is executed by an order processing device. Figure 8 As shown, the order processing method may further include the following step 160 in addition to the above steps 110 to 130:
[0089] Step 160: If the order result indicates that the order of the item to be ordered has failed, the step of re-executing the order information based on the order information, processing the strongly related business corresponding to the order information, and obtaining the order result of the item to be ordered.
[0090] If the order result indicates that the order of the item to be ordered has failed, the weakly related business corresponding to the order information will no longer be executed.
[0091] Exemplarily, the step of re-executing, based on the order information, processing strongly related businesses corresponding to the order information, and obtaining the order results of the items to be ordered can be executed immediately after the order result indicates that the order of the items to be ordered has failed, or can be executed after a preset time interval after the order result indicates that the order of the items to be ordered has failed, or can be executed after the order result indicates that the order of the items to be ordered has failed, prompting the user that the order has failed, and then executing after receiving the user's instruction to place an order again.
[0092] By applying the method of the embodiment of the present invention, weakly related services are processed only after strongly related services are processed successfully. If the processing of strongly related services fails, weakly related services are not executed. The failure of processing weakly related services does not affect the current main process and can be repaired later, so that the user's ordering experience can be improved. In addition, if the processing of strongly related services fails, the processing steps of strongly related services can be repeated, thereby preventing users from repeatedly selecting ordering information and improving user experience.
[0093] Fig. 9 FIG. 2 shows a flow chart of another order processing method provided by the present invention, which is executed by an order processing device. Fig. 9As shown, the order processing method responds to the user's order instruction, and for the strongly related services obtained by pre-classification, such as: user information query service, commodity inventory processing service, red envelope card processing service, and activity commodity processing service, the user information, inventory, red envelope, and activity commodity information are initialized to the cache middleware to improve the data query processing rate. After the strong related service is successfully processed, for the weakly related services obtained by pre-classification, such as: points issuance service and title issuance service, the user's order message is synchronized to the message middleware when processing the weakly related services, and the points and titles are issued through the message middleware, so as to achieve the speed improvement. Exemplarily, the user information query service takes 0.04 seconds, the commodity inventory processing service takes 0.1 seconds, the red envelope card processing service takes 0.15 seconds, and the activity commodity processing service takes 0.1 seconds. It takes a total of 0.39 seconds to complete the order.
[0094] By applying the method of the embodiment of the present invention, the response efficiency of placing orders and the user experience can be greatly improved by splitting the strongly related businesses and the weakly related businesses respectively, and the method has strong subsequent scalability.
[0095] Fig.10 FIG. 2 shows a schematic diagram of the structure of an order processing device provided by the present invention. Fig.10 As shown, the order processing device 1000 includes: an information acquisition module 1010, a first processing module 1020 and a second processing module 1030.
[0096] The information acquisition module 1010 is used to obtain order information of items to be ordered in response to an order instruction input by a user.
[0097] The first processing module 1020 is used to process the strongly related business corresponding to the order information based on the order information, and obtain the order result of the item to be ordered.
[0098] The second processing module 1030 is configured to process weakly related services corresponding to the order information based on the order information generated after the order of the items to be ordered is successfully placed if the order result indicates that the order of the items to be ordered is successfully placed.
[0099] In an optional manner, the order information includes user information and information of items to be ordered, and strongly related services include a payment deduction information inquiry service, a commodity inventory inquiry service, a payment deduction service, and an order generation service.
[0100] The first processing module 1020 is used for:
[0101] Based on the user information, the payment deduction information query service is processed to obtain the payment deduction information corresponding to the user information.
[0102] Based on the information of the items to be ordered, the commodity inventory query business is processed to obtain the inventory information of the items to be ordered.
[0103] Based on the payment deduction information and the inventory information of the items to be ordered, the payment deduction business and the order generation business are processed to generate the order results of the items to be ordered.
[0104] In an optional manner, the order information includes user information and information about items to be ordered, and the weakly related services include data update services and distribution interaction services. The second processing module 1030 is used to:
[0105] Based on the order information, process data update business to update user information and inventory information of items to be ordered.
[0106] Based on the order information, the interactive service is processed and issued to send an interactive message to the user. The interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated.
[0107] In an optional manner, the second processing module 1030 is used to:
[0108] Based on the order information, user update information corresponding to the user information and item update information corresponding to the item to be ordered are obtained.
[0109] Based on the user update information and the item update information, the user information and the inventory information of the items to be ordered are updated respectively.
[0110] In an optional manner, before the information acquisition module 1010, the order processing device further includes a cache module, and the cache module is used to:
[0111] Obtain data information corresponding to strongly related businesses from the database.
[0112] Store the data information corresponding to the strongly related business in the cache middleware.
[0113] The first processing module 1020 is further used to: based on the order information, obtain data information corresponding to the strongly related business corresponding to the order information from the cache middleware. Based on the data information corresponding to the strongly related business corresponding to the order information, process the strongly related business corresponding to the order information to obtain the order result of the item to be ordered.
[0114] In an optional manner, the first processing module 1020 is further configured to:
[0115] If the order result indicates that the order of the item to be ordered has failed, the step of re-executing the order information based on the order information, processing the strongly related business corresponding to the order information, and obtaining the order result of the item to be ordered.
[0116] In an optional manner, the order processing device 1000 also includes: a business classification module, which is used to determine strongly related businesses and weakly related businesses among multiple businesses based on execution parameters of multiple businesses, and the execution parameters include at least one of importance weight, execution time and execution success rate.
[0117] The embodiment of the present invention provides an order processing device 1000, which can pre-divide strongly related services and weakly related services, and can first process the strongly related services corresponding to the order information based on the order information through the first processing module 1020, and obtain the order result of the items to be ordered. Since the order result can be obtained after the strongly related services are processed, it is not necessary to obtain the order result after the strongly related services and the weakly related services are processed. Therefore, the response time to the user's order operation can be greatly shortened, and the response speed of the order can be improved. In addition, after the order of the items to be ordered is successfully placed, the weakly related services corresponding to the order information are processed based on the order information by the second processing module 1030, and the weakly related services can be separated and post-processed, and the processing results of the weakly related services do not affect the success of the order, so that the user's order experience can be further improved while responding to the order quickly.
[0118] Fig.11 A schematic diagram of the structure of an order processing device provided by the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the order processing device.
[0119] like Fig.11 As shown, the order processing device may include: a processor (processor) 1102, a communication interface (Communications Interface) 1104, a memory (memory) 1106, and a communication bus 1108.
[0120] The processor 1102, the communication interface 1104, and the memory 1106 communicate with each other via the communication bus 1108. The communication interface 1104 is used to communicate with other devices such as a client or other server network elements. The processor 1102 is used to execute the program 1110, which can specifically execute the relevant steps in the above-mentioned order processing method embodiment.
[0121] Specifically, the program 1110 may include program code, which includes computer-executable instructions.
[0122] The processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the order processing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0123] The memory 1106 is used to store the program 1110. The memory 1106 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0124] Program 1110 can be specifically called by processor 1102 to enable the order processing device to perform the following operations:
[0125] In response to an order instruction input by a user, obtaining order information of items to be ordered;
[0126] Based on the order information, processing strongly related businesses corresponding to the order information to obtain an order result for the item to be ordered;
[0127] If the order result indicates that the order of the item to be ordered is successful, based on the order information generated after the order of the item to be ordered is successfully placed, a weakly related business corresponding to the order information is processed.
[0128] In an optional manner, the order information includes user information and information of the items to be ordered, and the strongly related services include a payment deduction information inquiry service, a commodity inventory inquiry service, a payment deduction service, and an order generation service;
[0129] The processing of the strongly related business corresponding to the order information based on the order information to obtain the order result of the item to be ordered includes:
[0130] Based on the user information, processing the payment deduction information query service to obtain the payment deduction information corresponding to the user information;
[0131] Based on the information of the items to be ordered, the commodity inventory query service is processed to obtain the inventory information of the items to be ordered;
[0132] Based on the payment deduction information and the inventory information of the items to be ordered, the payment deduction business and the order generation business are processed to generate an order result for the items to be ordered.
[0133] In an optional manner, the order information includes user information and information of items to be ordered, and the weakly related services include data update services and distribution interaction services; the processing of the weakly related services corresponding to the order information based on the order information generated after the order of the items to be ordered is successfully placed includes:
[0134] Based on the order information, processing the data update service to update the user information and the inventory information of the items to be ordered;
[0135] Based on the order information, the issuance interactive service is processed to send an interactive message to the user, where the interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated.
[0136] In an optional manner, processing the data update service based on the order information to update the user information and the inventory information of the item to be ordered includes:
[0137] Based on the order information, obtaining user update information corresponding to the user information and item update information corresponding to the item to be ordered;
[0138] Based on the user updated information and the item updated information, the user information and the inventory information of the item to be ordered are updated respectively.
[0139] In an optional manner, before the step of obtaining order information of items to be ordered in response to an order instruction input by a user, the step includes:
[0140] Acquire data information corresponding to the strongly related business from a database;
[0141] Storing the data information corresponding to the strongly related business in the cache middleware;
[0142] The processing of the strongly related business corresponding to the order information based on the order information to obtain the order result of the item to be ordered includes:
[0143] Based on the order information, obtaining data information corresponding to the strongly related business corresponding to the order information from the cache middleware;
[0144] Based on the data information corresponding to the strongly related business corresponding to the order information, the strongly related business corresponding to the order information is processed to obtain the order result of the item to be ordered.
[0145] In an optional manner, the program 1110 may be specifically called by the processor 1102 to enable the order processing device to further perform the following operations:
[0146] If the order result indicates that the order of the item to be ordered has failed, the step of re-executing the order information based on the order information, processing the strongly related business corresponding to the order information, and obtaining the order result of the item to be ordered.
[0147] In an optional manner, the program 1110 may be specifically called by the processor 1102 to enable the order processing device to further perform the following operations:
[0148] The strongly related business and the weakly related business are determined from the multiple businesses based on execution parameters of the multiple businesses, wherein the execution parameters include at least one of importance weight, execution time and execution success rate.
[0149] The embodiment of the present invention provides an order processing device, which can pre-divide strongly related businesses and weakly related businesses, and can first process the strongly related businesses corresponding to the order information based on the order information, and obtain the order result of the items to be ordered. Since the order result can be obtained after the strongly related businesses are processed, there is no need to obtain the order result after both the strongly related businesses and the weakly related businesses are processed. Therefore, the response time to the user's order operation can be greatly shortened and the response speed of the order can be improved. In addition, after the order of the items to be ordered is successfully placed, the weakly related businesses corresponding to the order information are processed based on the order information, and the weakly related businesses can be separated and post-processed. The processing result of the weakly related business has no effect on the success of the order. Therefore, while quickly responding to the order, the user's order experience can be further improved.
[0150] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on an order processing device / apparatus, the order processing device / apparatus executes the order processing method in any of the above method embodiments.
[0151] The executable instructions may be used to cause the order processing device / apparatus to perform the following operations:
[0152] In response to an order instruction input by a user, obtaining order information of items to be ordered;
[0153] Based on the order information, processing strongly related businesses corresponding to the order information to obtain an order result for the item to be ordered;
[0154] If the order result indicates that the order of the item to be ordered is successful, based on the order information generated after the order of the item to be ordered is successfully placed, a weakly related business corresponding to the order information is processed.
[0155] In an optional manner, the order information includes user information and information of the items to be ordered, and the strongly related services include a payment deduction information inquiry service, a commodity inventory inquiry service, a payment deduction service, and an order generation service;
[0156] The processing of the strongly related business corresponding to the order information based on the order information to obtain the order result of the item to be ordered includes:
[0157] Based on the user information, processing the payment deduction information query service to obtain the payment deduction information corresponding to the user information;
[0158] Based on the information of the items to be ordered, the commodity inventory query service is processed to obtain the inventory information of the items to be ordered;
[0159] Based on the payment deduction information and the inventory information of the items to be ordered, the payment deduction business and the order generation business are processed to generate an order result for the items to be ordered.
[0160] In an optional manner, the order information includes user information and information of items to be ordered, and the weakly related services include data update services and distribution interaction services; the processing of the weakly related services corresponding to the order information based on the order information generated after the order of the items to be ordered is successfully placed includes:
[0161] Based on the order information, processing the data update service to update the user information and the inventory information of the items to be ordered;
[0162] Based on the order information, the issuance interactive service is processed to send an interactive message to the user, where the interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated.
[0163] In an optional manner, processing the data update service based on the order information to update the user information and the inventory information of the item to be ordered includes:
[0164] Based on the order information, obtaining user update information corresponding to the user information and item update information corresponding to the item to be ordered;
[0165] Based on the user updated information and the item updated information, the user information and the inventory information of the item to be ordered are updated respectively.
[0166] In an optional manner, before the step of obtaining order information of items to be ordered in response to an order instruction input by a user, the step includes:
[0167] Acquire data information corresponding to the strongly related business from a database;
[0168] Storing the data information corresponding to the strongly related business in the cache middleware;
[0169] The processing of the strongly related business corresponding to the order information based on the order information to obtain the order result of the item to be ordered includes:
[0170] Based on the order information, obtaining data information corresponding to the strongly related business corresponding to the order information from the cache middleware;
[0171] Based on the data information corresponding to the strongly related business corresponding to the order information, the strongly related business corresponding to the order information is processed to obtain the order result of the item to be ordered.
[0172] In an optional manner, the executable instructions may be specifically used to cause the order processing device / apparatus to further perform the following operations:
[0173] If the order result indicates that the order of the item to be ordered has failed, the step of re-executing the order information based on the order information, processing the strongly related business corresponding to the order information, and obtaining the order result of the item to be ordered.
[0174] In an optional manner, the executable instructions may be specifically used to cause the order processing device / apparatus to further perform the following operations:
[0175] The strongly related business and the weakly related business are determined from the multiple businesses based on execution parameters of the multiple businesses, wherein the execution parameters include at least one of importance weight, execution time and execution success rate.
[0176] An embodiment of the present invention provides a computer-readable storage medium. When the executable instructions stored in the computer-readable storage medium are executed, by pre-dividing strongly related businesses and weakly related businesses, it is possible to first process the strongly related businesses corresponding to the order information based on the order information, and obtain the order result of the items to be ordered. Since the order result can be obtained after the strongly related businesses are processed, the response time to the user's order operation can be greatly shortened, and the response speed of the order can be improved. In addition, after the order of the items to be ordered is successfully placed, the weakly related businesses corresponding to the order information are processed based on the order information, and the weakly related businesses can be separated and post-processed, and the processing results of the weakly related businesses have no effect on the success of the order. Therefore, while quickly responding to the order, the user's order experience can be further improved.
[0177] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0178] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0179] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0180] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for processing an order, characterized in that: The method comprises: In response to an order instruction input by a user, acquiring order information of an item to be ordered, the order information including user information and information of the item to be ordered; Based on the order information, strongly related services corresponding to the order information are processed to obtain the order result of the item to be ordered, wherein the strongly related services include payment deduction information query service, commodity inventory query service, payment deduction service and order generation service, and the data information corresponding to the strongly related services are stored in the same cache middleware, or the data information corresponding to the strongly related services are stored in different cache middleware. After the strongly related services are successfully processed, interactive messages are sent in the form of message middleware to improve processing efficiency; If the order result indicates that the order of the item to be ordered is successful, based on the order information generated after the order of the item to be ordered is successfully placed, processing weakly related services corresponding to the order information, wherein the weakly related services include data update services and issuance interaction services; Wherein, based on the order information, processing the strongly related business corresponding to the order information to obtain the order result of the item to be ordered includes: Based on the user information, processing the payment deduction information query service to obtain the payment deduction information corresponding to the user information; Based on the information of the items to be ordered, the commodity inventory query service is processed to obtain the inventory information of the items to be ordered; Based on the payment deduction information and the inventory information of the items to be ordered, processing the payment deduction business and the order generation business, and generating an order result for the items to be ordered; The processing of the weakly related business corresponding to the order information based on the order information generated after the order of the item to be ordered is successfully placed includes: Based on the order information, processing the data update service to update the user information and the inventory information of the items to be ordered; Based on the order information, the issuance interactive service is processed to send an interactive message to the user, where the interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated.
2. The order processing method according to claim 1, characterized in that: The processing of the data update service based on the order information to update the user information and the inventory information of the item to be ordered includes: Based on the order information, obtaining user update information corresponding to the user information and item update information corresponding to the item to be ordered; Based on the user updated information and the item updated information, the user information and the inventory information of the item to be ordered are updated respectively.
3. The order processing method according to any one of claims 1-2, characterized in that: Before the step of obtaining order information of items to be ordered in response to an order instruction input by a user, the method includes: Acquire data information corresponding to the strongly related business from a database; Storing the data information corresponding to the strongly related business in the cache middleware; The processing of the strongly related business corresponding to the order information based on the order information to obtain the order result of the item to be ordered includes: Based on the order information, obtaining data information corresponding to the strongly related business corresponding to the order information from the cache middleware; Based on the data information corresponding to the strongly related business corresponding to the order information, the strongly related business corresponding to the order information is processed to obtain the order result of the item to be ordered.
4. The order processing method according to any one of claims 1-2, characterized in that: The method further comprises: If the order result indicates that the order of the item to be ordered has failed, the step of re-executing the order information based on the order information to process the strongly related business corresponding to the order information to obtain the order result of the item to be ordered.
5. The order processing method according to any one of claims 1-2, characterized in that: The method further comprises: The strongly related business and the weakly related business are determined from the multiple businesses based on execution parameters of the multiple businesses, wherein the execution parameters include at least one of importance weight, execution time and execution success rate.
6. An order processing device, characterized in that: The device comprises: An information acquisition module, configured to acquire order information of items to be ordered in response to an order instruction input by a user, wherein the order information includes user information and information of the items to be ordered; A first processing module is used to process strongly related services corresponding to the order information based on the order information to obtain the order result of the item to be ordered, wherein the strongly related services include payment deduction information inquiry service, commodity inventory inquiry service, payment deduction service and order generation service, and the data information corresponding to the strongly related services is stored in the same cache middleware, or the data information corresponding to the strongly related services is stored in different cache middleware. After the strongly related services are successfully processed, interactive messages are sent in the form of message middleware to improve processing efficiency; A second processing module is configured to process weakly related services corresponding to the order information based on the order information generated after the order of the item to be ordered is successfully placed if the order result indicates that the order of the item to be ordered is successfully placed, wherein the weakly related services include data update services and issuance interaction services; The first processing module is further used to process the query payment deduction information service based on the user information to obtain the payment deduction information corresponding to the user information; Based on the information of the items to be ordered, the commodity inventory query service is processed to obtain the inventory information of the items to be ordered; Based on the payment deduction information and the inventory information of the items to be ordered, processing the payment deduction business and the order generation business, and generating an order result for the items to be ordered; The second processing module is further used to process the data update service based on the order information to update the user information and the inventory information of the items to be ordered; Based on the order information, the issuance interactive service is processed to send an interactive message to the user, where the interactive message is used to indicate that the user has successfully placed an order and that the user information has been updated.
7. An order processing device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the order processing method described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the order processing device / apparatus, the order processing device / apparatus executes the operation of the order processing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method, system and device for automatically booking ticket
CN102054204A
Order form processing system and order form division method
CN108205780A