CN114648262A - Express delivery method, device, terminal equipment and storage medium based on RocktMQ - Google Patents

Express delivery method, device, terminal equipment and storage medium based on RocktMQ Download PDF

Info

Publication number
CN114648262A
CN114648262A CN202011519059.3A CN202011519059A CN114648262A CN 114648262 A CN114648262 A CN 114648262A CN 202011519059 A CN202011519059 A CN 202011519059A CN 114648262 A CN114648262 A CN 114648262A
Authority
CN
China
Prior art keywords
delay
waybill
customized
information
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011519059.3A
Other languages
Chinese (zh)
Inventor
刘梦超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202011519059.3A priority Critical patent/CN114648262A/en
Publication of CN114648262A publication Critical patent/CN114648262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06314Calendaring for a resource

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An express delivery method, an express delivery device, terminal equipment and a storage medium based on a RockettMQ are provided, wherein the express delivery method comprises the following steps: acquiring waybill information, judging whether the waybill information is a customized waybill, and if so, extracting time information carried by the waybill information; configuring matched delay levels for the customized waybill according to the time information; converting the customized waybill and the delay level into a delay message expressed by a RocketMQ, and sending the delay message to the RocketMQ; consuming the delay message with a RocktMQ automatically triggers the execution operation of the customized waybill. The customized waybill of the user is managed through the customized delay level, after the customized time point set by the user is reached, the message notification mechanism is automatically triggered to notify the network points to dispatch the customized waybill, the network points are not needed to manually maintain information to be dispatched, the labor cost of the tail end network points can be saved while the customized dispatching demand of the mass users is met, the dispatching efficiency is improved, and the purpose of meeting the customized dispatching demand of the user is achieved.

Description

Express delivery method, device, terminal equipment and storage medium based on RocktMQ
Technical Field
The invention relates to the technical field of express delivery, in particular to an express delivery method, device, terminal equipment and storage medium based on a RockettMQ.
Background
With the development of the times, the rhythm of life of people is faster and faster. Many users may wish to have the dispatcher dispatch at a designated time period based on their own schedule, e.g., the user wishes the courier to post at a certain time period of a few days later. Therefore, personalized and customized delivery is likely to become a bright spot in the future of the logistics industry.
As a value-added service of an express service, a customized delivery is managed manually through a network site, for example, a salesperson or a network site manually maintains a customized dispatch of a user, so that the express service industry can only achieve such demands of a very small number of users at present.
When a large number of users are subjected to customized delivery, the traditional manual management customized delivery is still adopted, so that the larger additional labor cost and energy are brought, and the price cost is higher, so that how to realize the requirement of quickly, efficiently and massively supporting the customized delivery is a difficult problem in the industry and is a pain point and challenge in the current industry.
Disclosure of Invention
Aiming at the problems faced by the mass customized dispatch requirements of users, the express delivery method, the express delivery device, the terminal equipment and the storage medium based on the RockettMQ are provided, and the mass customized dispatch requirements of the users are managed through the technical scheme, so that the pain point problem is effectively solved.
The technical scheme of the invention is as follows:
the invention provides an express delivery method based on a RockettMQ, which comprises the following steps:
acquiring waybill information, and judging whether the waybill information is a customized waybill or not, if so, extracting time information carried by the waybill information, wherein the customized waybill is a waybill with user-defined delivery time or user-defined consignment time, and the time information is user-defined delivery time or consignment time;
configuring matched delay levels for the customized waybill according to the time information;
converting the customized waybill and the delay level into a delay message expressed by the RocketMQ, and sending the delay message to the RocketMQ;
consuming the delay message with a RockettMQ to automatically trigger an execution operation of the customized waybill.
Further preferably, the method further comprises a step of dynamically configuring a delay level list, wherein the delay level list is used for storing the custom delay level configured according to the custom delivery time or the custom mail time of the user.
Further preferably, the configuring, according to the time information, a matched delay level for the customized waybill includes:
searching the delay level list for a matched delay level according to the time information;
if the delay level list does not have a matched delay level, dynamically configuring the delay level matched with the time information, and updating the dynamically configured delay level into the delay level list;
and setting the delay level matched with the time information as the delay level of the customized waybill.
Further preferably, before the delayed message is triggered and consumed by using the rockmq, the method further includes a step of automatically loading the delay level list by using the rockmq, so that the rockmq consumes the corresponding delayed message according to the self-defined delay level in the delay level list.
Further preferably, the rocktmq is configured with a delay message queue for storing delay messages, and the execution operation of the customized waybill is automatically triggered by consuming the delay messages by the rocktmq, which specifically includes the steps of:
reading the delay messages to be consumed in the delay message queue;
searching the delay level list for a delay level matching the delay message;
judging whether the delay time corresponding to the delay level is due, if so, consuming the delay message, otherwise, not consuming the delay message;
and automatically triggering the tail end network points according to the consumption of the delay message so that the tail end network points push customized freight notes corresponding to the delay message to the courier terminal.
Further preferably, the waybill information is configured with identification information for identifying a customized waybill, and whether the waybill information is the customized waybill is determined according to the identification information.
The invention also provides an express delivery device based on the RocketMQ, which comprises:
the express system platform is used for acquiring waybill information, judging whether the waybill information is a customized waybill or not, if so, extracting time information carried by the waybill information, configuring a matched delay level for the customized waybill according to the time information, converting the customized waybill and the delay level into a delay message expressed by a RocketMQ (RocketMQ) and sending the delay message to a RocketMQ middleware; the customized waybill is a waybill with user-defined delivery time or user-defined sending time, and the time information is the user-defined delivery time or sending time;
and the RockettMQ middleware is used for consuming the delay message to automatically trigger the execution operation of the customized waybill.
Further preferably, the system further comprises a configuration center, wherein the configuration center is used for dynamically configuring a delay level list, and the delay level list is used for storing the custom delay level configured according to the custom delivery time or the custom mail time of the user.
The invention also provides express terminal equipment based on the RockettMQ, which comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the express method.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the courier method described above.
According to the express delivery method, the express delivery device, the terminal equipment and the storage medium based on the RockettMQ, the customized waybill of the user is managed through the user-defined delay level, after the user-defined time point set by the user is reached, the message notification mechanism is automatically triggered, the notification network point sends the customized waybill, the network point does not need to manually maintain information of the to-be-sent waybill, the mass customized distribution requirements of the user are met, meanwhile, the labor cost of the terminal network point can be saved, the sending efficiency is improved, and therefore the purpose of meeting the customized sending requirements of the user is achieved.
Drawings
FIG. 1 is a flow chart of a method of courier delivery;
FIG. 2 is a schematic representation of an express delivery sequence;
FIG. 3 is a schematic diagram of a courier apparatus;
fig. 4 is a schematic diagram of an express terminal device.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The application of the delay queue in the project is more, especially like an e-commerce platform, and the scenes below can be solved by applying the delay queue. For example,
1. after the order is successful, the order is automatically cancelled if no payment is made within 30 minutes;
2. the takeout platform sends a meal ordering notice, and a short message is pushed to the user 60s after the order is successfully placed;
3. if the order is always in a certain incomplete state, the order is processed in time, and the stock is returned;
4. and the new merchants of panning have not uploaded commodity information within one month, and will freeze shops, etc.
In addition to the above applications, the delay queue is also widely applied in the field of express delivery technology, for example, a user wants a courier to dispatch an order in a certain time period of several days, such a requirement may be called a customized waybill, and the customized waybill for the user has various customized dispatch requirements. However, there are many pieces that the clerk will send a day, which can result in additional labor costs and effort if the clerk or website specializes in maintaining a large number of custom-made pieces. Aiming at the situation, the express delivery method based on the RocktMQ is provided to manage the requirement of mass customization of users, so that the pain point problem is effectively solved.
The RocktMQ referred to in this application is an open source message middleware of a distributed, queue model donated by Ali to Apache, which has undergone a salute of Taobao Shuangelen.
The RocketMQ has the following characteristics: the method supports strict message sequence, supports two modes of Topic and Queue, has hundred million-level message accumulation capacity, has relatively friendly distributed characteristic, simultaneously supports Push and Pull mode consumption messages, is tested by double eleven mass messages of cats after multiple times of daily tests, and is compiled by pure Java based on a communication framework Netty. The precursor of RocktMQ is named MetaQ, which is renamed to RocktMQ when MeataQ releases 3.0 version, the design idea is similar to Kafka in nature, but the method is different from Kafka in that Java is used for development, and since Java audience population in China is far more than Scala, RocktMQ is the first choice of many companies which mainly use Java language.
Open source rockmq supports delayed messages but does not support second-level precision. The default supports 18 level delay messages, which is determined by the messageDelayLevel configuration item of the browser terminal. The delay level of the rocktmq supports 18 levels by default, and specifically, the delay level of the RcoketMQ is as follows: 1s, 5s, 10s, 30s, 1m, 2m, 3m, 4m, 5m, 6m, 7m, 8m, 9m, 10m, 20m, 30m, 1h, 2 h. level is 0, indicating no delay. level 1 indicates a level 1 delay, corresponding to a delay of 1 s. level 2 means 2-level delay, corresponding to 5s, and so on. It can be seen that the rocktmq minimum delay level is 1s, the highest delay level is 2h, and the rocktmq minimum delay level does not support a day level or other self-defined message delay levels, that is, the rocktmq minimum delay level does not support a certain time point from a span hour to a day, or even self-defined.
The application creatively improves the RocketMQ middleware, enables the improved RocketMQ middleware to support any delay level, and applies the RocketMQ middleware to the technical field of express delivery to realize automatic triggering execution of customized waybills. That is, based on the improved rocktmq middleware, the customized dispatch requirement information of the user is converted into information that the rocktmq can express, and corresponding management is performed. When the time set by the user is reached, the system flow is automatically triggered, and the network point is informed to carry out corresponding dispatch operation. The basic concept of the present application is described in detail below by specific examples.
The first embodiment is as follows:
the embodiment provides an express delivery method based on a rocktmq, and a flowchart of the express delivery method is shown in fig. 1, which specifically includes the following steps.
S100: acquiring waybill information, judging whether the waybill information is a customized waybill, and if so, extracting time information carried by the waybill information.
S200: and configuring the matched delay level for the customized waybill according to the time information.
S300: and converting the customized waybill and the delay level into a delay message expressed by the RocketMQ, and sending the delay message to the RocketMQ.
S400: the execution of the customized waybill is automatically triggered using a rocktmq consumption delay message.
For the user, the waybill may be an consignment waybill of the user or a consignment waybill of the user, and the user may mark personalized requirements in the waybill, such as personalized requirements for consignment time and personalized requirements for consignment pickup at home, to form a customized waybill, so in step S100, the customized waybill is a waybill with user-defined delivery time or user-defined consignment time, and the time information is user-defined delivery time or consignment time.
In order to clearly identify the customized waybill, furthermore, identification information for identifying the customized waybill is configured in the waybill information, and whether the obtained waybill information is the customized waybill is judged according to the identification information, for example, a remark column for a user to make an individualized requirement is configured in the waybill information, and the user can fill corresponding customized requirement information in the remark column.
In order to enable the rocktmq to support any delay level, the method further comprises the step of dynamically configuring a delay level list, wherein the delay level list is used for storing a custom delay level configured according to user custom delivery time or custom mail time, and specifically, the delay level in the delay level list is dynamically configured through an Apollo configuration center.
The Apollo (Apollo) is a distributed configuration center developed by a journey-carrying framework department, can be used for centrally managing the configuration of different environments and different clusters, can be pushed to an application end in real time after configuration modification, has the characteristics of standard authority, process management and the like, and is suitable for a micro-service configuration management scene.
In step S200, configuring a matched delay level for the customized waybill according to the time information, which specifically includes the following steps:
s201: searching the delay level list for a matching delay level according to the time information.
S202: and if the delay level list does not have the matched delay level, dynamically configuring the delay level matched with the time information, and updating the dynamically configured delay level into the delay level list.
S203: and setting the delay level matched with the time information as the delay level of the customized waybill.
The RocktMQ message comprises a Topic message and a Tag message, wherein the Topic message is a Topic message, the class message is a primary message type, the message is classified through the Topic message, the Tag message is a message label, and the secondary message type is used for further distinguishing the message classification under a certain Topic message. The RocketMQ allows the consumer to filter messages according to Tag, ensuring that the consumer ultimately consumes only the types of messages he is interested in. In step S300, the customized waybill and the delay level are converted into a delay message expressed by a rockmq, and sent to the rockmq; specifically, the customized waybill is expressed as Topic of RocketMQ, the delay level is expressed as Tag of RocketMQ, and the customized waybill is consumed according to the Tag.
Before step S400, a rockmq automatic loading delay level list is further included, so that the rockmq consumes the corresponding delay message according to the self-defined delay level in the delay level list. The rocktmq is configured with a delay message queue for storing delay messages, and further, in step S400, the rocktmq is used to consume the delay messages to automatically trigger the execution operation of the customized waybill, which specifically includes the steps of:
reading a delay message to be consumed in a delay message queue;
searching the delay level list for a delay level matched with the delay message;
judging whether the delay time corresponding to the delay level is due, if so, consuming the delay message, otherwise, not consuming the delay message;
and automatically triggering the tail end network points according to the consumption of the delay messages so that the tail end network points push customized freight notes corresponding to the delay messages to the courier terminal.
The steps S100 to S400 are specifically described below by way of specific examples.
As shown in fig. 2, a dispatcher inputs waybill information through a dispatcher terminal device, the waybill information includes dispatch time information and transmits the waybill information to a system background, the system background judges whether the waybill information is a customized waybill, if so, the dispatch time information is converted into a corresponding delay level, the system background caches a delay level list, the system background further judges whether the delay level exists in the delay level list, if not, the delay level is dynamically configured through an Apollo configuration center, the Apollo configuration center stores an updated delay level list, and feeds the updated delay level list back to the system background in time, so that the system synchronously updates the delay level list; the RocktMQ dynamically acquires a delay level list updated by an Apollo configuration center; the system background pushes the customized waybill and the corresponding delay level to the RocktMQ, when the time slice corresponding to the delay level arrives, the RocktMQ consumes the corresponding delay message, if the time slice corresponding to the delay level does not arrive, the RocktMQ does not do any operation, the RocktMQ triggers the system background through the consumption delay message, the system background automatically pushes the customized waybill to the member dispatching terminal equipment through the triggering, and the member dispatching personnel is informed to dispatch the customized waybill.
Based on the RockettMQ dispatch, if the dispatch belongs to a package of a customized dispatch, when a terminal website scans the dispatch, a waiter is prompted that the dispatch scanning operation cannot be performed until a system dispatch notice is received, and the operation can be performed.
In the technical scheme for realizing the customized waybill based on the RocktetMQ, the RocktetMQ pursues high reliability, high availability, high concurrency and low delay, and meanwhile, engineers also solve the problems of optimizing a slow request and unifying storage engines.
Wherein, optimizing the slow request: the method mainly solves the problems of jitter and burrs of the whole cluster caused by slow requests under the condition of high mass concurrency. This is a challenging technique, followed by engineers for tuning, with 99.996% of the delay falling within 10ms and 99.6% of the delay within 1 ms. Optimization mainly focuses on the algorithm optimization of a RockettMQ storage layer, JVM and operating system tuning.
A unified storage engine: the main problem of high availability and cost of the message engine is solved. On the premise of coexistence of multi-generation message engines, engineers comprehensively transplant and replace the Notify storage module.
According to the express delivery method based on the RockettMQ, the customized delivery time information of the user is managed through the user-defined delay queue, after the time point set by the user is reached, the message notification mechanism is automatically triggered, the network site is notified to deliver the list, and the network site does not need to manually maintain the information of the to-be-delivered item, so that the purposes of saving labor cost, improving the delivery efficiency and meeting the customized delivery requirement of the user are achieved.
Example two:
based on the first embodiment, the present embodiment provides a courier device based on a rocktmq, and a schematic diagram of the courier device is shown in fig. 3, and the courier device includes a courier system platform, a configuration center, and a rockmq middleware.
The express delivery system platform is used for acquiring waybill information, judging whether the waybill information is a customized waybill or not, if yes, extracting time information carried by the waybill information, configuring a matched delay level for the customized waybill according to the time information, converting the customized waybill and the delay level into delay information expressed by a RocketMQ (RocketMQ) and sending the delay information to a RocketMQ middleware; the customized waybill is a waybill with user-defined delivery time or user-defined sending time, and the time information is the user-defined delivery time or sending time.
The configuration center is an Apollo configuration center and is used for dynamically configuring a delay level list, and the delay level list is used for storing custom delay levels configured according to custom delivery time or custom mail sending time of a user.
And the RocktMQ middleware is used for consuming the delay message to automatically trigger the execution operation of the customized waybill.
The working principle of the express delivery device is as follows: a delivery person inputs waybill information through a delivery person terminal device, the waybill information comprises delivery time information and is transmitted to an express system platform, the express system platform judges whether the waybill information is a customized waybill, if yes, the delivery time information is converted into a corresponding delay level, the express system platform caches a delay level list, the express system platform further judges whether the delay level exists in the delay level list, if not, the delay level is dynamically configured through an Apollo configuration center, the Apollo configuration center stores an updated delay level list and feeds the updated delay level list back to the express system platform in time so that the express system platform synchronously updates the delay level list; the RocktMQ middleware dynamically acquires a delay level list updated by an Apollo configuration center; the express delivery system platform pushes the customized waybill and the corresponding delay level to the RocktMQ middleware, when the time slice corresponding to the delay level arrives, the RocktMQ middleware consumes the corresponding delay message, if the time slice corresponding to the delay level does not arrive, the RocktMQ middleware does not do any operation, the RocktMQ middleware triggers the express delivery system platform through the consumption delay message, the express delivery system platform automatically pushes the customized waybill to the courier terminal device through the triggering, and a courier is informed to deliver the customized waybill.
Example three:
based on the first embodiment and the second embodiment, the present embodiment provides an express terminal device based on a rocktmq, a schematic diagram of the terminal device is shown in fig. 4, and the terminal device 400 may be a tablet computer, a notebook computer, or a desktop computer. The terminal device 400 may also be referred to by other names, such as portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal device 400 includes a processor 4001 and a memory 4002, and the processor 4001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 4001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 4001 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state.
In some embodiments, the processor 4001 may be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 4001 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 4002 may include one or more computer-readable storage media, which may be non-transitory. Memory 4002 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer-readable storage medium in the memory 4002 is used to store at least one instruction, at least one program, a set of codes, or a set of instructions for execution by the processor 4001 to implement the courier method provided by embodiment one of the present application.
Therefore, the device 400 of the present application, which executes the courier method provided in the first embodiment through at least one instruction, at least one program, a code set, or an instruction set, has the following advantages: the customized distribution time information of the user is managed through the user-defined delay queue, after the time point set by the user is reached, a message notification mechanism is automatically triggered to notify the network to distribute the list, and the network does not need to manually maintain the information of the to-be-distributed pieces, so that the purposes of saving labor cost, improving the distribution efficiency and meeting the customized distribution requirements of the user are achieved.
In some embodiments, the apparatus 400 may further optionally include: a peripheral interface 4003 and at least one peripheral. The processor 4001, the memory 4002, and the peripheral interface 4003 may be connected by a bus or a signal line. Various peripheral devices may be connected to peripheral interface 4003 by buses, signal lines, or circuit boards.
Specifically, in this embodiment, in order to implement the express delivery method based on a rocktmq, the corresponding peripheral device includes a consignor terminal device 4004, the consignor terminal device 4004 may input corresponding waybill information, further, the processor 4001 may obtain the waybill information through the consignor terminal device 4004, and when the processor 4001 determines that the waybill information is a customized waybill, the consignor terminal device 4004 is automatically triggered based on the rockmq to notify the consignor to execute the customized waybill.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium. The computer-readable storage medium has instructions stored therein, which when executed on a computer, cause the computer to execute the courier method of the first embodiment.
The modules in the second embodiment, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

Claims (10)

1. An express delivery method based on RocktetMQ is characterized by comprising the following steps:
acquiring waybill information, and judging whether the waybill information is a customized waybill or not, if so, extracting time information carried by the waybill information, wherein the customized waybill is a waybill with user-defined delivery time or user-defined consignment time, and the time information is user-defined delivery time or consignment time;
configuring matched delay levels for the customized waybill according to the time information;
converting the customized waybill and the delay level into a delay message expressed by a RocketMQ, and sending the delay message to the RocketMQ;
consuming the delay message with a RockettMQ to automatically trigger an execution operation of the customized waybill.
2. The courier method of claim 1, further comprising the step of dynamically configuring a list of delay levels for storing custom delay levels configured according to a user custom delivery time or a custom mail time.
3. The express delivery method according to claim 2, wherein the configuring the matched delay level for the customized waybill according to the time information specifically includes:
searching the delay level list for a matched delay level according to the time information;
if the delay level list does not have a matched delay level, dynamically configuring the delay level matched with the time information, and updating the dynamically configured delay level into the delay level list;
and setting the delay level matched with the time information as the delay level of the customized waybill.
4. The courier method of claim 3, further comprising, prior to triggering consumption of the delay message using a RockettMQ, the step of the RockettMQ automatically loading the delay level list such that the RockettMQ consumes the corresponding delay message according to the custom delay level in the delay level list.
5. The courier method of claim 4, wherein the RocktMQ is configured with a delay message queue for storing delay messages, and wherein the consumption of the delay messages by the RocktMQ automatically triggers the execution of the customized waybill, specifically comprising the steps of:
reading the delay messages to be consumed in the delay message queue;
searching the delay level list for a delay level matching the delay message;
judging whether the delay time corresponding to the delay level is due, if so, consuming the delay message, otherwise, not consuming the delay message;
and automatically triggering the tail end network points according to the consumption of the delay message so that the tail end network points push customized freight notes corresponding to the delay message to the courier terminal.
6. The express delivery method of claim 1, wherein identification information for identifying a customized waybill is configured in the waybill information, and whether the waybill information is the customized waybill is determined according to the identification information.
7. A courier apparatus based on RocktetMQ, comprising:
the express delivery system platform is used for acquiring waybill information, judging whether the waybill information is a customized waybill or not, if yes, extracting time information carried by the waybill information, configuring a matched delay level for the customized waybill according to the time information, converting the customized waybill and the delay level into a delay message expressed by a RockettMQ, and sending the delay message to a RockettMQ middleware; the customized waybill is a waybill with user-defined delivery time or user-defined consignment time, and the time information is the user-defined delivery time or consignment time;
and the RocketMQ middleware is used for consuming the delay message to automatically trigger the execution operation of the customized waybill.
8. The courier apparatus of claim 7, further comprising a configuration center configured to dynamically configure a list of delay levels for storing custom delay levels configured according to a user custom delivery time or a custom mail time.
9. A express delivery terminal device based on a RockettMQ, characterized by comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the express delivery method according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a courier method according to any one of claims 1 to 6.
CN202011519059.3A 2020-12-21 2020-12-21 Express delivery method, device, terminal equipment and storage medium based on RocktMQ Pending CN114648262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011519059.3A CN114648262A (en) 2020-12-21 2020-12-21 Express delivery method, device, terminal equipment and storage medium based on RocktMQ

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011519059.3A CN114648262A (en) 2020-12-21 2020-12-21 Express delivery method, device, terminal equipment and storage medium based on RocktMQ

Publications (1)

Publication Number Publication Date
CN114648262A true CN114648262A (en) 2022-06-21

Family

ID=81989634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011519059.3A Pending CN114648262A (en) 2020-12-21 2020-12-21 Express delivery method, device, terminal equipment and storage medium based on RocktMQ

Country Status (1)

Country Link
CN (1) CN114648262A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415759A (en) * 2017-02-09 2018-08-17 阿里巴巴集团控股有限公司 Processing method, device and the electronic equipment of message
CN111598277A (en) * 2020-04-15 2020-08-28 杭州优行科技有限公司 Delivery method and device for reserved delivery piece order, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415759A (en) * 2017-02-09 2018-08-17 阿里巴巴集团控股有限公司 Processing method, device and the electronic equipment of message
CN111598277A (en) * 2020-04-15 2020-08-28 杭州优行科技有限公司 Delivery method and device for reserved delivery piece order, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿里云开发者: "如何让快递更‘快’?菜鸟自研定时任务调度引擎首次公开", pages 1 - 7, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/35583711/> *

Similar Documents

Publication Publication Date Title
CN105190555B (en) Centralized task schedule
CN111324786B (en) Method and device for processing consultation problem information
JP2017041239A (en) Method, system and recording medium for notifying reception of message
CN101802815A (en) Data-driving is synchronous
CN110895472A (en) Method and device for identifying service change
JPWO2019065286A1 (en) Purchase support device, purchase support terminal and purchase support system
CN110033337A (en) The method and apparatus of order production
CN111400056A (en) Message queue-based message transmission method, device and equipment
CN113835692A (en) Dictionary data processing method and device, electronic equipment and computer storage medium
CN112365238A (en) TODO automatic reminding method, system, electronic equipment and readable storage medium
CN111767127A (en) Service data processing method and device
CN111144804A (en) Order processing method, device and system
CN113538028B (en) Advertisement putting method and device
CN114640707A (en) Message asynchronous processing method and device, electronic equipment and storage medium
CN110223179A (en) The data processing method of fund, device, system, medium
CN114140252A (en) Resource allocation method of target object and related device
CN111260280B (en) Goods checking method, device, electronic equipment, system and storage medium
CN111861323B (en) Logistics information management method and device, storage medium and computer system
CN114374857A (en) Content distribution method, device, server and storage medium
CN113780915A (en) Service docking method and device
CN111552575B (en) Message consumption method, device and equipment based on message queue
CN114648262A (en) Express delivery method, device, terminal equipment and storage medium based on RocktMQ
CN105009629A (en) Scheduling data in background services on mobile devices
US9824318B1 (en) Generating labor requirements
CN106779460B (en) Energy scheduling method and device for energy station

Legal Events

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