A parking order distribution and consumption method and related equipment

By setting up an order queue and multiple order consumption equipment monitoring queues in the parking order distribution system, cache and consume parking orders, the problems of low efficiency and high order loss rate in the existing technology are solved, and more efficient order push and lower order loss rate are achieved.

CN119784466APending Publication Date: 2025-04-08GUIYANG SHIJIHENGTONG TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411807245.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

When the existing parking order distribution plan faces massive parking orders, the order push efficiency is poor, and transaction rollback occurs due to the failure of the order push logic processing, resulting in parking order loss, and there is a large overall order data loss rate.

Method used

By setting up an order queue to cache consumer parking orders and consumption abnormal parking orders, and using multiple order consumption devices to monitor the order queues at the same time for order consumption, improving the efficiency of order push, and continuing to perform deduction processing for abnormal parking orders that fail to handle order push logic to prevent order loss.

Benefits of technology

It effectively improves the order push efficiency of massive parking orders, reduces the order data loss rate, and ensures that abnormal parking orders that fail to handle the order push logic can continue to be deducted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784466A_ABST
    Figure CN119784466A_ABST
Patent Text Reader

Abstract

The present application provides a parking order distribution and consumption method and related equipment, and relates to the field of big data technology. The present application caches parking orders to be consumed by setting a normal order queue, and caches abnormal parking orders by setting an abnormal order queue, and uses multiple normal order consumption devices to monitor the normal order queue for order consumption at the same time, and uses multiple abnormal order consumption devices to monitor the abnormal order queue for order consumption at the same time, so as to effectively improve the order push efficiency for massive parking orders, and continue to execute the deduction process for abnormal parking orders that fail to process the order push logic, thereby effectively preventing the loss of parking orders and reducing the order data loss rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and more specifically, to a parking order distribution and consumption method and related equipment. Background Art

[0002] With the continuous development of science and technology, big data technology is increasingly being used in various industries, among which the urban transportation industry is an important research direction of big data technology today. In the application of big data technology in the urban transportation industry, it is usually necessary to efficiently manage massive parking order data in order to provide users with more intelligent and efficient services.

[0003] At present, after receiving parking orders from various parking lots, major parking fee deduction platforms directly distribute the received parking orders to different service providers through order forwarding to deduct the order, thereby providing parking fee deduction assistance services to various parking lots. However, it is worth noting that this parking order distribution solution has poor order push efficiency when facing massive parking orders. At the same time, transactions often roll back due to failure of order push logic processing, resulting in parking order loss, and an overall high order data loss rate. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a parking order distribution and consumption method, an order management server and a readable storage medium, which can cache parking orders to be consumed and abnormal parking orders by setting up order queues, and use multiple order consumption devices to simultaneously monitor the order queues for order consumption, thereby effectively improving the order push efficiency for massive parking orders, and can continue to execute deduction processing for abnormal parking orders due to failure of order push logic processing, so as to effectively prevent the loss of parking orders and reduce the order data loss rate.

[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, the present application provides a parking order distribution and consumption method, which is applied to an order management server, wherein the order management server is respectively connected to a plurality of normal order consumption devices and a plurality of abnormal order consumption devices in communication, and the method comprises:

[0007] Acquire the parking order to be consumed, and add the acquired parking order to be consumed to a normal order queue, so that multiple normal order consumption devices can monitor and consume the normal order queue;

[0008] When at least one normal order consumption device monitors a first parking order at a queue exit of the normal order queue, a first consumption device is determined in the at least one normal order consumption device, and the first parking order is allocated to the first consumption device for consumption;

[0009] Receive the first order consumption result fed back by the first consumer device for the first parking order, and when the first order consumption result is an order consumption failure, add the first parking order to an abnormal order queue, so that multiple abnormal order consumer devices can perform queue monitoring and consumption on the abnormal order queue.

[0010] In an optional implementation, the step of determining the first consumer device in the at least one normal order consumer device includes:

[0011] Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one normal order consumption devices to select a first candidate order consumption device with the best current device performance from the at least one normal order consumption device;

[0012] The screened first candidate order consumption device is directly used as the first consumption device.

[0013] In an optional implementation, the step of allocating the first parking order to the first consumer device for consumption includes:

[0014] Taking the first parking order out of the normal order queue, and storing the first parking order in a first queue middleware corresponding to the normal order queue;

[0015] The actual order data of the first parking order is sent to the first consumer device for consumption, and when the consumption result of the first order is a successful order consumption, the first parking order in the first queue middleware is deleted; wherein, when the consumption result of the first order is a failed order consumption, the first parking order is moved from the first queue middleware to the abnormal order queue.

[0016] In an optional implementation, the abnormal order queue includes multiple order sub-queues, wherein each order sub-queue corresponds to a monitoring delay level, and the waiting monitoring time of different monitoring delay levels increases gradually. Then, the step of adding the first parking order to the abnormal order queue includes:

[0017] Setting the actual monitoring delay level of the first parking order to the minimum monitoring delay level of the abnormal order queue;

[0018] The first parking order is added to the order sub-queue corresponding to the minimum monitoring delay level.

[0019] In an optional embodiment, the method comprises:

[0020] When a second parking order at a queue exit of any order sub-queue in the abnormal order queue is detected by at least one abnormal order consuming device, a second consuming device is determined in the at least one abnormal order consuming device, and the second parking order is allocated to the second consuming device for consumption;

[0021] receiving a second order consumption result fed back by the second consumer device for the second parking order, and when the second order consumption result is an order consumption failure, adding one to the actual monitoring delay level of the second parking order to obtain an expected monitoring delay level of the second parking order;

[0022] Detect whether the expected monitoring delay level of the second parking order is greater than the maximum monitoring delay level of the abnormal order queue, and when it is detected that the expected monitoring delay level is not greater than the maximum monitoring delay level, add the second parking order to the order sub-queue corresponding to the expected monitoring delay level.

[0023] In an optional implementation, the step of determining the second consumer device in the at least one abnormal order consumer device includes:

[0024] Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one abnormal order consumption devices to select a second candidate order consumption device with the best current device performance from the at least one abnormal order consumption device;

[0025] The screened second candidate order consumption device is directly used as the second consumption device.

[0026] In an optional implementation, the step of allocating the second parking order to the second consumer device for consumption includes:

[0027] Taking the second parking order out of the corresponding order sub-queue, and storing the second parking order in the second queue middleware corresponding to the abnormal order queue;

[0028] The actual order data of the second parking order is sent to the second consumer device for consumption, and when the second order consumption result is a successful order consumption, the second parking order in the second queue middleware is deleted; wherein, when the second order consumption result is a failed order consumption, the second parking order is moved from the second queue middleware to the order sub-queue corresponding to the expected listening delay level.

[0029] In an optional embodiment, the method further comprises:

[0030] When it is detected that the expected monitoring delay level is greater than the maximum monitoring delay level, the second parking order is moved and added to the abnormal order manual processing table so as to manually verify and process the second parking order.

[0031] In a second aspect, the present application provides an order management server, wherein the order management server is communicatively connected to a plurality of normal order consumption devices and a plurality of abnormal order consumption devices, respectively, wherein the order management server comprises a processor and a memory;

[0032] The memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the parking order distribution and consumption method described in any one of the aforementioned embodiments.

[0033] In a third aspect, the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by an order management server, the parking order distribution and consumption method described in any one of the aforementioned embodiments is implemented.

[0034] In this case, the beneficial effects of the embodiments of the present application may include the following:

[0035] The present application adds the acquired parking orders to be consumed into a normal order queue so that multiple normal order consumption devices can monitor the normal order queue for consumption, and when at least one normal order consumption device monitors the first parking order at the queue exit of the normal order queue, the first parking order is allocated to a first consumption device among the at least one normal order consumption device for consumption, and then when the first consumption result of the first parking order fed back by the first consumption device is an order consumption failure, the first parking order is moved and added to the abnormal order queue, and multiple abnormal order consumption devices monitor the abnormal order queue for consumption, thereby caching the parking orders to be consumed and the abnormal parking orders by setting an order queue, and using multiple order consumption devices to monitor the order queue at the same time for order consumption, the order push efficiency of massive parking orders is effectively improved, and the deduction processing can continue to be executed for the abnormal parking orders due to the failure of the order push logic processing, so as to effectively prevent the loss of parking orders and reduce the order data loss rate.

[0036] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of the composition of the order management server provided in the embodiment of the present application;

[0039] Figure 2 One of the flow charts of the parking order distribution and consumption method provided in the embodiment of the present application;

[0040] Figure 3 for Figure 2 A schematic flow chart of the sub-steps included in step S230;

[0041] Figure 4 The second flowchart of the parking order distribution and consumption method provided in the embodiment of the present application.

[0042] Icons: 10 - order management server; 11 - memory; 12 - processor; 13 - communication unit. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0044] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0046] In the description of the present application, it should be understood that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the product of the application is conventionally placed when in use, or are the orientations or positional relationships conventionally understood by those skilled in the art. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0047] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0048] In addition, in the description of the present application, it is understood that the relational terms such as the term "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood by specific circumstances.

[0049] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0050] Please refer to Figure 1 , Figure 1 It is a schematic diagram of the composition of the order management server 10 provided in the embodiment of the present application. In the embodiment of the present application, the order management server 10 can be respectively connected to at least one parking order generation device and multiple normal order consumption devices to obtain the parking orders to be consumed generated by each parking order generation device, and provide parking fee deduction and payment assistance services to each parking lot based on the multiple normal order consumption devices for the large number of parking orders to be consumed. Among them, each of the parking order generation devices corresponds to a parking lot separately, and each of the parking order generation devices can be but not limited to: a personal computer, a laptop computer, a tablet computer, a smart phone, etc.; the parking order to be consumed is used to indicate a parking order that needs to be deducted and has not been consumed by any normal order consumption device; each normal order consumption device corresponds to a service provider separately, and each normal order consumption device is used to perform order deduction processing on any parking order marked as the parking order to be consumed, so as to realize the order consumption function of the normal order consumption device; each of the normal order consumption devices can be but not limited to: a personal computer, a laptop computer, a tablet computer, a smart phone, etc.

[0051] In addition, the order management server 10 can also be connected to multiple abnormal order consumption devices in communication, so as to use the multiple abnormal order consumption devices to process a large number of abnormal parking orders to deduct payment, and realize the order consumption function for a large number of abnormal parking orders, thereby effectively preventing the loss of parking orders and reducing the order data loss rate. Among them, the abnormal parking order is used to represent a parking order that has not been successfully consumed by any normal order consumption device; each abnormal order consumption device corresponds to a service provider separately, and each abnormal order consumption device is used to process any parking order marked as the abnormal parking order to deduct payment, so as to realize the order consumption function of the abnormal order consumption device; each abnormal order consumption device can be but not limited to: a personal computer, a laptop computer, a tablet computer, a smart phone, etc.

[0052] In the embodiment of the present application, the order management server 10 may include a memory 11, a processor 12, and a communication unit 13, wherein the memory 11, the processor 12, and the communication unit 13 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the memory 11, the processor 12, and the communication unit 13 may be electrically connected to each other via one or more communication buses or signal lines.

[0053] In this embodiment, the memory 11 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 11 is used to store a computer program, and the processor 12 may execute the computer program accordingly after receiving an execution instruction.

[0054] In addition, the memory 11 can also be used to deploy an order database, a normal order queue, and an abnormal order queue. The order database can be implemented based on MySQL (Structured Query Language) database technology, and the order database is used to record all parking orders acquired by the order management server 10. The order database may include an order consumption success table and an abnormal order manual processing table implemented based on a MySQL table. The order consumption success table is used to record parking orders that are successfully consumed by the abnormal order consumption device or the normal order consumption device, and the abnormal order manual processing table is used to record parking orders that still fail after being consumed by the abnormal order consumption device.

[0055] The normal order queue is used to cache all parking orders to be consumed acquired by the order management server 10. Each parking order to be consumed cached by the normal order queue is monitored and consumed by multiple normal order consumption devices according to the first-in-first-out principle, wherein the normal order queue can be implemented by a RocketMQ (Message Queue) queue. The abnormal order queue is used to cache abnormal parking orders, wherein the abnormal order queue can include multiple order sub-queues, each order sub-queue corresponds to a monitoring delay level, and the waiting monitoring time of different monitoring delay levels increases step by step. The level interval between two adjacent monitoring delay levels is 1, and the larger the monitoring delay level, the larger the corresponding waiting monitoring time; when an abnormal parking order is added to an order sub-queue, the abnormal parking order needs to be separated by a waiting time corresponding to the waiting monitoring time of the order sub-queue before it can be monitored and consumed by at least one abnormal order consumption device; each abnormal parking order cached by the same order sub-queue is monitored and consumed by the abnormal order consumption device according to the first-in-first-out principle, wherein the multiple order sub-queues included in the abnormal order queue can be implemented by a RocketMQ (Message Queue) queue.

[0056] In this embodiment, the processor 12 may be an integrated circuit chip with signal processing capability. The processor 12 may be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or at least one of other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., which may implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present application.

[0057] In this embodiment, the communication unit 13 is used to establish a communication connection between the order management server 10 and other electronic devices through a network, and to send and receive data through the network, wherein the network includes a wired communication network and a wireless communication network.

[0058] In this embodiment, the order management server 10 may pre-store a specific computer program related to the parking order distribution and consumption function in the memory 11, and drive the processor 12 to execute the specific computer program accordingly, by setting an order queue to cache parking orders to be consumed and abnormal parking orders, and using multiple order consumption devices to simultaneously monitor the order queue for order consumption, so as to improve the order push efficiency for massive parking orders, and continue to execute the deduction processing for abnormal parking orders due to the failure of order push logic processing, so as to effectively prevent the loss of parking orders and reduce the order data loss rate.

[0059] Understandably, Figure 1 The block diagram shown is only a schematic diagram of a composition of the order management server 10. The order management server 10 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0060] In the present application, in order to ensure that the order management server 10 can improve the order push efficiency for massive parking orders, and can continue to execute the deduction processing for abnormal parking orders due to the failure of order push logic processing, so as to effectively prevent the loss of parking orders and reduce the order data loss rate, the embodiment of the present application achieves the above-mentioned purpose by providing a parking order distribution and consumption method. The parking order distribution and consumption method provided by the present application is described in detail below.

[0061] Please refer to Figure 2 , Figure 2 This is one of the flow charts of the parking order distribution and consumption method provided in the embodiment of the present application. In the embodiment of the present application, the parking order distribution and consumption method may include steps S210 to S230.

[0062] Step S210, obtaining the parking order to be consumed, and adding the obtained parking order to be consumed to the normal order queue, so that multiple normal order consumption devices can monitor the normal order queue for consumption.

[0063] In this embodiment, after obtaining the parking order to be consumed generated by any parking order generating device, the order management server 10 will perform necessary data verification operations on the received parking order to be consumed, and then write the parking order to be consumed with successful data verification into the normal order queue. At this time, a mechanism of multiple normal order consuming devices simultaneously monitoring and pulling messages from the normal order queue can be used to effectively improve the order processing speed of the normal order queue, reduce the order cache pressure, and avoid the problem of order accumulation in the normal order queue. Among them, the order management server 10 can use the order database to record the received parking order to be consumed.

[0064] Step S220: When at least one normal order consumption device monitors the first parking order at the queue exit of the normal order queue, a first consumption device is determined in the at least one normal order consumption device, and the first parking order is allocated to the first consumption device for consumption.

[0065] In this embodiment, when any normal order consumption device monitors the first parking order (i.e., the parking order to be consumed) at the exit of the normal order queue, the normal order consumption device will send an order pull request for the first parking order to the order management server 10, so as to request the order management server 10 to consume the first parking order. When the order management server 10 receives the order pull request for the first parking order from at least one normal order consumption device, it will determine the first consumption device adapted to the first parking order based on the load balancing principle according to the device operation status of each of the at least one normal order consumption devices (including the number of parking orders currently being processed by the corresponding normal order consumption device, the hardware device parameters of the corresponding normal order consumption device, and other information), and then allocate the first parking order to the first consumption device for consumption.

[0066] Optionally, in this embodiment, for at least one normal order consuming device that monitors the first parking order, the step of “determining the first consuming device in the at least one normal order consuming device” may include:

[0067] Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one normal order consumption devices to select a first candidate order consumption device with the best current device performance from the at least one normal order consumption device;

[0068] The screened first candidate order consumption device is directly used as the first consumption device.

[0069] Therefore, the present application can effectively improve the order processing speed of the normal order queue and avoid the order backlog problem in the normal order queue by executing the specific step process of the above-mentioned step "determining the first consumer device in the at least one normal order consumer device".

[0070] Optionally, in this embodiment, in order to further reduce the order cache pressure of the normal order queue during the order push process and avoid the order accumulation problem in the normal order queue, the present application can construct a first queue middleware for the normal order queue at the order management server 10, so as to use the first queue middleware to temporarily store the parking orders to be consumed that are taken out of the normal order queue and assigned to the normal order consumption device for consumption. At this time, the step of "assigning the first parking order to the first consumption device for consumption" may include:

[0071] Taking the first parking order out of the normal order queue, and storing the first parking order in a first queue middleware corresponding to the normal order queue;

[0072] The actual order data of the first parking order is sent to the first consumer device for consumption, and when the first order consumption result fed back by the first consumer device for the first parking order is that the order consumption is successful, the first parking order temporarily stored in the first queue middleware is deleted.

[0073] Among them, when the first order consumption result fed back by the first consumer device for the first parking order is that the order consumption is successful, the order management server 10 will record the first parking order accordingly in the order consumption success table; and when the first order consumption result fed back by the first consumer device for the first parking order is that the order consumption failed, the order management server 10 will take out the first parking order from the first queue middleware, and move the taken out first parking order to the abnormal order queue, so that multiple abnormal order consumer devices can monitor the abnormal order queue for consumption, to ensure that the abnormal parking order due to the failure of the order push logic processing can continue to execute the deduction processing under the action of multiple abnormal order consumer devices, to avoid the loss of parking orders due to the failure of the order push logic processing, thereby effectively reducing the order data loss rate.

[0074] Step S230, receiving the first order consumption result fed back by the first consumer device for the first parking order, and when the first order consumption result is an order consumption failure, adding the first parking order to the abnormal order queue, so that multiple abnormal order consumer devices can monitor and consume the abnormal order queue.

[0075] In this embodiment, when the first order consumption result fed back by the first consumer device for the first parking order is an order consumption failure, the order management server 10 will mark the first parking order as an abnormal parking order, and add the first parking order to the abnormal order queue. At this time, a mechanism of multiple abnormal order consumer devices simultaneously monitoring and pulling messages from the abnormal order queue can be used to effectively improve the order processing speed of the abnormal order queue, and ensure that abnormal parking orders that fail due to order push logic processing can continue to be deducted, so as to improve the problem of lost parking orders.

[0076] Optionally, see Figure 3 , Figure 3 yes Figure 2 Schematic diagram of the process of sub-steps included in step S230. In the embodiment of the present application, the step of "adding the first parking order to the abnormal order queue" in step S230 may include sub-steps S231 to S232 to ensure that the abnormal parking order newly added to the abnormal order queue can be pushed for consumption as soon as possible.

[0077] Sub-step S231, setting the actual monitoring delay level of the first parking order to the minimum monitoring delay level of the abnormal order queue.

[0078] Sub-step S232, adding the first parking order to the order sub-queue corresponding to the minimum monitoring delay level.

[0079] Therefore, the present application can ensure that the abnormal parking orders newly added to the abnormal order queue can be pushed for consumption as soon as possible by executing the above sub-steps S231 to S232.

[0080] The present application can improve the order push efficiency for massive parking orders by executing the above steps S210 to S230, and continue to execute the deduction process for abnormal parking orders due to the failure of order push logic processing, so as to effectively prevent the loss of parking orders and reduce the order data loss rate.

[0081] Optionally, see Figure 4 , Figure 4 This is the second flow chart of the parking order distribution and consumption method provided in the embodiment of the present application. Figure 2 Compared with the parking order distribution consumption method shown, Figure 4 The parking order distribution and consumption method shown may also include steps S240 to S280 to ensure that any abnormal parking order can be pushed for consumption multiple times during the push consumption process of massive abnormal parking orders, and to avoid specific abnormal orders that cannot be consumed by abnormal order consumption devices or cannot be successfully consumed by abnormal order consumption devices in a short period of time from continuously occupying abnormal order queue resources, thereby facilitating manual verification and processing of such specific abnormal orders.

[0082] Step S240, when detecting that at least one abnormal order consumption device has sent a second parking order at the queue exit of any order sub-queue in the abnormal order queue, a second consumption device is determined in the at least one abnormal order consumption device, and the second parking order is allocated to the second consumption device for consumption.

[0083] In this embodiment, for any order sub-queue in the abnormal order queue, multiple abnormal order consumption devices will simultaneously monitor and pull messages from the order sub-queue, and when any abnormal order consumption device monitors the second parking order (i.e., abnormal parking order) of the order sub-queue at the exit of the queue, the abnormal order consumption device will send an order pull request for the second parking order to the order management server 10, so as to request the order management server 10 to consume the second parking order. When the order management server 10 receives an order pull request for the second parking order from at least one abnormal order consumption device, it will determine the second consumption device adapted to the second parking order based on the load balancing principle according to the device operation status of each of the at least one abnormal order consumption devices (including the number of parking orders currently being processed by the corresponding abnormal order consumption device, the hardware device parameters of the corresponding abnormal order consumption device, and other information), and then allocate the second parking order to the second consumption device for consumption.

[0084] Optionally, in this embodiment, for at least one abnormal order consuming device that monitors the second parking order of any order sub-queue, the step of “determining the second consuming device in the at least one abnormal order consuming device” may include:

[0085] Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one abnormal order consumption devices to select a second candidate order consumption device with the best current device performance from the at least one abnormal order consumption device;

[0086] The screened second candidate order consumption device is directly used as the second consumption device.

[0087] Therefore, the present application can effectively improve the order processing speed of the abnormal order queue and avoid the order backlog problem in the abnormal order queue by executing the specific step process of the above-mentioned step "determining a second consumer device in the at least one abnormal order consumer device".

[0088] Optionally, in this embodiment, in order to further reduce the order cache pressure of the abnormal order queue during the order push process and avoid the order accumulation problem in the abnormal order queue, the present application can construct a second queue middleware for the abnormal order queue at the order management server 10, so as to use the second queue middleware to temporarily store the abnormal parking orders taken from each order sub-queue included in the abnormal order queue and assigned to the abnormal order consumption device for consumption. At this time, the step of "assigning the second parking order to the second consumption device for consumption" may include:

[0089] Taking the second parking order out of the corresponding order sub-queue, and storing the second parking order in the second queue middleware corresponding to the abnormal order queue;

[0090] The actual order data of the second parking order is sent to the second consumer device for consumption, and when the second order consumption result fed back by the second consumer device for the second parking order is that the order consumption is successful, the second parking order temporarily stored in the second queue middleware is deleted.

[0091] Among them, when the second order consumption result fed back by the second consumer device for the second parking order is that the order consumption is successful, the order management server 10 will record the second parking order accordingly in the order consumption success table; and when the second order consumption result fed back by the second consumer device for the second parking order is that the order consumption failed, the order management server 10 will take out the second parking order from the second queue middleware, and determine whether the taken out second car order can continue to be pushed for consumption. Then, when it is determined that the second car order can continue to be pushed for consumption, the second parking order will be moved and added to the order sub-queue corresponding to the expected monitoring delay level, so that multiple abnormal order consumption devices can continue to perform queue monitoring and consumption on the second parking order.

[0092] During this process, the order management server 10 can add one to the actual monitoring delay level of the second parking order before adding it to the second queue middleware to obtain the expected monitoring delay level of the second parking order, and detect whether the corresponding expected monitoring delay level exceeds the maximum monitoring delay level of the abnormal order queue, thereby determining whether the second car ordering order can continue to be pushed for consumption. If it is detected that the corresponding expected monitoring delay level is less than or equal to the maximum monitoring delay level of the abnormal order queue, it indicates that the second car ordering order can continue to be pushed for consumption. Otherwise, it indicates that the second car ordering order cannot continue to be pushed for consumption. At this time, the second car ordering order is an abnormal order that cannot be consumed by the abnormal order consumption device or cannot be successfully consumed by the abnormal order consumption device in a short time.

[0093] Step S250, receiving the second order consumption result fed back by the second consumer device for the second parking order, and when the second order consumption result is an order consumption failure, adding one to the actual monitoring delay level of the second parking order to obtain the expected monitoring delay level of the second parking order.

[0094] Step S260, detecting whether the expected monitoring delay level of the second parking order is greater than the maximum monitoring delay level of the abnormal order queue.

[0095] In this embodiment, for the second parking order whose second order consumption result is order consumption failure, when it is detected that the expected monitoring delay level of the second parking order is not greater than the maximum monitoring delay level, it indicates that the second parking order can continue to be pushed for consumption. At this time, the order management server 10 will execute step S270 accordingly. When it is detected that the expected monitoring delay level of the second parking order is greater than the maximum monitoring delay level, it indicates that the second parking order cannot continue to be pushed for consumption. The second car order is an abnormal order that cannot be consumed by the abnormal order consumption device or cannot be successfully consumed by the abnormal order consumption device in a short time. At this time, the order management server 10 will execute step S280 accordingly.

[0096] Step S270: adding the second parking order to the order subqueue corresponding to the expected monitoring delay level.

[0097] In this embodiment, when a parking order is moved from the order subqueue corresponding to the original actual monitoring delay level to the order subqueue corresponding to the expected monitoring delay level (obtained by adding one to the aforementioned actual monitoring delay level), the parking order needs to be monitored and consumed by at least one abnormal order consumption device after a waiting time matching the expected monitoring delay level, and then the aforementioned steps S240 to S260 are repeatedly executed to ensure that the corresponding parking order is eventually consumed successfully, or is identified as an abnormal order that cannot be consumed by an abnormal order consumption device or cannot be consumed successfully by an abnormal order consumption device in a short time. Among them, the specific duration of the waiting time is consistent with the waiting listening duration corresponding to the expected monitoring delay level.

[0098] Step S280, moving the second parking order to the abnormal order manual processing table so as to manually verify and process the second parking order.

[0099] In this embodiment, for abnormal parking orders that are determined to be unable to be consumed by abnormal order consumption devices or unable to be successfully consumed by abnormal order consumption devices within a short period of time, after the abnormal parking order is taken out from the second queue middleware, the abnormal parking order can be directly added to the abnormal order manual processing table, so as to inform the operation management personnel of the order management server 10 through the abnormal order manual processing table to manually verify the abnormal parking order and perform manual deductions on the abnormal parking order.

[0100] Therefore, the present application can ensure that any abnormal parking order can be pushed for consumption multiple times during the push consumption process of massive abnormal parking orders by executing the above steps S240 to S280, and avoid specific abnormal orders that cannot be consumed by abnormal order consumption devices or cannot be successfully consumed by abnormal order consumption devices in a short period of time from continuously occupying abnormal order queue resources, thereby facilitating manual verification and processing of such specific abnormal orders.

[0101] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the various functions provided by the present application are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including several instructions for the order management server 10 to execute all or part of the steps of the method recorded in each embodiment of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0103] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A parking order distribution and consumption method, characterized in that: Applied to an order management server, the order management server is respectively connected to a plurality of normal order consumption devices and a plurality of abnormal order consumption devices in communication, the method comprising: Acquire the parking order to be consumed, and add the acquired parking order to be consumed to a normal order queue, so that multiple normal order consumption devices can monitor and consume the normal order queue; When at least one normal order consumption device monitors a first parking order at a queue exit of the normal order queue, a first consumption device is determined in the at least one normal order consumption device, and the first parking order is allocated to the first consumption device for consumption; Receive the first order consumption result fed back by the first consumer device for the first parking order, and when the first order consumption result is an order consumption failure, add the first parking order to an abnormal order queue, so that multiple abnormal order consumer devices can perform queue monitoring and consumption on the abnormal order queue.

2. The method according to claim 1, characterized in that The step of determining the first consumer device in the at least one normal order consumer device comprises: Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one normal order consumption devices to select a first candidate order consumption device with the best current device performance from the at least one normal order consumption device; The screened first candidate order consumption device is directly used as the first consumption device.

3. The method according to claim 1, characterized in that The step of allocating the first parking order to the first consumer device for consumption comprises: Taking the first parking order out of the normal order queue, and storing the first parking order in a first queue middleware corresponding to the normal order queue; The actual order data of the first parking order is sent to the first consumer device for consumption, and when the consumption result of the first order is a successful order consumption, the first parking order in the first queue middleware is deleted; wherein, when the consumption result of the first order is a failed order consumption, the first parking order is moved from the first queue middleware to the abnormal order queue.

4. The method according to any one of claims 1 to 3, characterized in that: The abnormal order queue includes multiple order sub-queues, wherein each order sub-queue corresponds to a monitoring delay level, and the waiting monitoring time of different monitoring delay levels increases gradually. The step of adding the first parking order to the abnormal order queue includes: Setting the actual monitoring delay level of the first parking order to the minimum monitoring delay level of the abnormal order queue; The first parking order is added to the order subqueue corresponding to the minimum monitoring delay level.

5. The method according to claim 4, characterized in that The method comprises: When a second parking order at a queue exit of any order sub-queue in the abnormal order queue is detected by at least one abnormal order consuming device, a second consuming device is determined in the at least one abnormal order consuming device, and the second parking order is allocated to the second consuming device for consumption; receiving a second order consumption result fed back by the second consumer device for the second parking order, and when the second order consumption result is an order consumption failure, adding one to the actual monitoring delay level of the second parking order to obtain an expected monitoring delay level of the second parking order; Detect whether the expected monitoring delay level of the second parking order is greater than the maximum monitoring delay level of the abnormal order queue, and when it is detected that the expected monitoring delay level is not greater than the maximum monitoring delay level, add the second parking order to the order sub-queue corresponding to the expected monitoring delay level.

6. The method according to claim 5, characterized in that The step of determining a second consumer device in the at least one abnormal order consumer device comprises: Based on the load balancing principle, data analysis is performed on the device operation status of each of the at least one abnormal order consumption devices to select a second candidate order consumption device with the best current device performance from the at least one abnormal order consumption device; The screened second candidate order consumption device is directly used as the second consumption device.

7. The method according to claim 5, characterized in that The step of allocating the second parking order to the second consumer device for consumption comprises: Taking the second parking order out of the corresponding order sub-queue, and storing the second parking order in the second queue middleware corresponding to the abnormal order queue; The actual order data of the second parking order is sent to the second consumer device for consumption, and when the second order consumption result is a successful order consumption, the second parking order in the second queue middleware is deleted; wherein, when the second order consumption result is a failed order consumption, the second parking order is moved from the second queue middleware to the order sub-queue corresponding to the expected listening delay level.

8. The method according to claim 5, characterized in that The method further comprises: When it is detected that the expected monitoring delay level is greater than the maximum monitoring delay level, the second parking order is moved and added to the abnormal order manual processing table so as to manually verify and process the second parking order.

9. An order management server, characterized in that: The order management server is communicatively connected with a plurality of normal order consumption devices and a plurality of abnormal order consumption devices respectively, wherein the order management server comprises a processor and a memory; The memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the parking order distribution and consumption method described in any one of claims 1-8.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the order management server, it implements the parking order distribution and consumption method described in any one of claims 1-7.