CN110502474A - Order allocation method, device and storage medium based on distributed memory system - Google Patents

Order allocation method, device and storage medium based on distributed memory system Download PDF

Info

Publication number
CN110502474A
CN110502474A CN201910561314.1A CN201910561314A CN110502474A CN 110502474 A CN110502474 A CN 110502474A CN 201910561314 A CN201910561314 A CN 201910561314A CN 110502474 A CN110502474 A CN 110502474A
Authority
CN
China
Prior art keywords
order
memory system
multiple target
distributed memory
distributed
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
CN201910561314.1A
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.)
China Telecom Wanwei Information Technology Co Ltd
Original Assignee
China Telecom Wanwei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Wanwei Information Technology Co Ltd filed Critical China Telecom Wanwei Information Technology Co Ltd
Priority to CN201910561314.1A priority Critical patent/CN110502474A/en
Publication of CN110502474A publication Critical patent/CN110502474A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses order allocation method, device and storage mediums based on distributed memory system to improve Order splitting efficiency for solving the problems, such as that high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more.The method of the present invention includes: the multiple request instructions for obtaining terminal and sending, and the multiple request instruction is used to indicate single demand under the difference of multiple users;Corresponding multiple target orders are generated according to the multiple request instruction;Multiple target orders of generation are indicated with attribute set, and are serialized after distributing unique O/No.;Order information after serializing is distributed to being stored and monitored in the distributed storage of order subregion;Calculating is allocated to multiple target orders in the distributed memory system according to preset time algorithm, calculates the successive allocation order of the multiple target order;It is allocated according to the successive allocation order to by the multiple target order.

Description

Order allocation method, device and storage medium based on distributed memory system
Technical field
The present invention relates to field of image processing more particularly to a kind of order allocation method based on distributed memory system, Device and storage medium.
Background technique
Computer network is the main medium of information transmission with publication, offer application and service.With computer network skill The rapid development of art and multimedia information, on network using more and more, each electron-like to circulate on network is ordered It is single also more and more.
Under the background of internet high speed development, it cannot be supported well at present using the ordering system of traditional technology High concurrent application scenarios.Such as the application of 12306, Taobao's type, much-sought-after item can attract thousands of user to buy, and use The request of family high concurrent will cause system effectiveness and sharply decline or an object more situations such as selling appearance.The user and businessman that use are made At very big loss.It is therefore desirable to be optimized to Order splitting, to solve the problems in traditional ordering system Order splitting.
Summary of the invention
The present invention provides order allocation method, device and storage mediums based on distributed memory system, for solving The problem of high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more, improve Order splitting efficiency.
The first aspect of the embodiment of the present invention provides a kind of order allocation method based on distributed memory system, comprising: Multiple request instructions that terminal is sent are obtained, the multiple request instruction is used to indicate single demand under the difference of multiple users;Root Corresponding multiple target orders are generated according to the multiple request instruction;Multiple target orders of generation are subjected to table with attribute set Show, and is serialized after distributing unique O/No.;Order information after serializing is distributed to the distribution of order subregion It is stored and is monitored in storage;According to preset time algorithm to multiple target orders in the distributed memory system into Row distribution calculates, and calculates the successive allocation order of the multiple target order;According to the successive allocation order to will be described Multiple target orders are allocated.
Optionally, in the first implementation of first aspect of the embodiment of the present invention, multiple targets by generation Order is indicated with attribute set, and distributes after unique O/No. that carry out serializing include: by the multiple mesh of generation Mark order is indicated with attribute set, obtains multiple order attributes set;It is uniquely ordered for the distribution of each order attributes set Single number, obtains the order attributes set with number;The order attributes set that the band is numbered is serialized, formation sequence Order information after change.
Optionally, in second of implementation of first aspect of the embodiment of the present invention, the order by after serializing Information is distributed to the order information for being stored and being monitored in the distributed storage of order subregion after comprising determining that each serializing Corresponding order subregion;Order information after each serializing is distributed to the distributed memory system of corresponding order subregion; O/No. in the order information is imported to the single-ended queue of distributed memory system, the single-ended queue in chronological order For first in first out strategy;Judge whether the length of the single-ended queue reaches threshold value;If the length is more than the threshold value, refuse Subsequent order instructions all absolutely.
Optionally, described to be calculated according to the preset time in the third implementation of first aspect of the embodiment of the present invention Method is allocated calculating to multiple target orders in the distributed memory system, calculates the elder generation of the multiple target order Allocation order includes: that multiple unique O/No.s are successively taken out from the single-ended queue of the distributed memory system afterwards;Pass through The multiple unique O/No. takes out the order information after corresponding multiple serializings;By the order after the multiple serializing Information carries out unserializing, obtains multiple target orders;For the corresponding article of the multiple target Order splitting, and will be described right The target information for the article answered is associated with one by one with corresponding target order, is calculated based on preset time algorithm multiple The successive allocation order of target order.
The second aspect of the embodiment of the present invention provides a kind of Order splitting device based on distributed memory system, packet Include: acquiring unit, for obtaining multiple request instructions of terminal transmission, the multiple request instruction is used to indicate multiple users' The lower single demand of difference;Generation unit, for generating corresponding multiple target orders according to the multiple request instruction;Assigned sequence Change unit, for being indicated the multiple target orders generated with attribute set, and carries out sequence after distributing unique O/No. Columnization;Monitoring unit is stored, for distributing the order information after serializing to depositing in the distributed storage of order subregion Storage and monitoring;Computing unit, for according to preset time algorithm to multiple target orders in the distributed memory system It is allocated calculating, calculates the successive allocation order of the multiple target order;Allocation unit, for successively being divided according to described Sequence ligand is allocated to by the multiple target order.
Optionally, in the first implementation of second aspect of the embodiment of the present invention, the assigned sequence unit packet Include: representation module obtains multiple order attributes collection for the multiple target order generated to be indicated with attribute set It closes;First distribution module obtains the order attributes with number for distributing unique O/No. for each order attributes set Set;Serialization module, the order attributes set for numbering the band serialize, the order letter after formation sequence Breath.
Optionally, in second of implementation of second aspect of the embodiment of the present invention, the storage monitoring unit includes: Determining module, for determining the corresponding order subregion of order information after each serializing;Second distribution module, being used for will be each Order information after serializing is distributed to the distributed memory system of corresponding order subregion;Import modul, for being ordered described O/No. in single information imports the single-ended queue of distributed memory system in chronological order, and the single-ended queue is advanced elder generation It is tactful out;Judgment module, for judging whether the length of the single-ended queue reaches threshold value;Refuse module, if the length is super The threshold value is crossed, then for refusing all subsequent order instructions.
Optionally, in the third implementation of second aspect of the embodiment of the present invention, the computing unit is specifically used for: Multiple unique O/No.s are successively taken out from the single-ended queue of the distributed memory system;Pass through the multiple unique order Number takes out the order information after corresponding multiple serializings;Order information after the multiple serializing is subjected to antitone sequence Change, obtains multiple target orders;For the corresponding article of the multiple target Order splitting, and by the target of the corresponding article Information is associated with one by one with corresponding target order, and the successive of multiple target orders is calculated based on preset time algorithm Allocation order.
The third aspect of the embodiment of the present invention provides a kind of Order splitting device based on distributed memory system, including Memory, processor and it is stored in the computer program that can be run on the memory and on the processor, the processing Device realizes the Order splitting described in any of the above-described embodiment based on distributed memory system when executing the computer program Method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, including instruction, when the finger When order is run on computers, so that computer executes ordering based on distributed memory system described in any of the above-described embodiment The step of single distribution method.
In technical solution provided in an embodiment of the present invention, multiple request instructions that terminal is sent, multiple request instructions are obtained It is used to indicate single demand under the difference of multiple users;Corresponding multiple target orders are generated according to multiple request instructions;It will generate Multiple target orders be indicated with attribute set, and serialized after distributing unique O/No.;After serializing Order information is distributed to being stored and monitored in the distributed storage of order subregion;According to preset time algorithm to distribution Multiple target orders in storage system are allocated calculating, calculate the successive allocation order of multiple target orders;According to elder generation Allocation order is allocated to that will state multiple target orders afterwards.The embodiment of the present invention, solving high concurrent causes ordering system to be imitated The problem of rate is low, Order splitting is inaccurate, an object is sold more, improves Order splitting efficiency.
Detailed description of the invention
Fig. 1 is one embodiment signal of the order allocation method based on distributed memory system in the embodiment of the present invention Figure;
Fig. 2 is another embodiment signal of the order allocation method based on distributed memory system in the embodiment of the present invention Figure;
Fig. 3 is one embodiment signal of the Order splitting device based on distributed memory system in the embodiment of the present invention Figure;
Fig. 4 is another embodiment signal of the Order splitting device based on distributed memory system in the embodiment of the present invention Figure;
Fig. 5 is another embodiment signal of the Order splitting device based on distributed memory system in the embodiment of the present invention Figure.
Specific embodiment
The present invention provides order allocation method, device, system and storage mediums based on distributed memory system, are used for It solves the problems, such as that high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more, improves Order splitting Efficiency.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention The embodiment of the present invention is described in attached drawing.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " or " having " and its any deformation, it is intended that covering is not Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set Standby intrinsic other step or units.
Referring to Fig. 1, the flow chart of the order allocation method provided in an embodiment of the present invention based on distributed memory system, It specifically includes:
101, multiple request instructions that terminal is sent are obtained, the difference that multiple request instructions are used to indicate multiple users places an order Demand.
Server obtains multiple request instructions that terminal is sent, and multiple request instructions are used to indicate under the difference of multiple users Single demand.Wherein, the demand possibility of each user is identical may also be different, therefore need to buy in the request instruction generated Article is not also identical, has unique identification information along with each user is also carried in request instruction, therefore multiple Request instruction is not fully identical.
It is understood that executing subject of the invention can be the Order splitting device based on distributed memory system, It can also be terminal or server, specifically herein without limitation.The embodiment of the present invention by server be executing subject for into Row explanation.
102, corresponding multiple target orders are generated according to multiple request instructions.
Server generates corresponding multiple target orders according to multiple request instructions.For electronic order, main point For foreground order inquiries module and backstage order management module, foreground order inquiries module is very important for enterprise Functional module is the core system of entire marketed Web site.Order management is the work that preferential shop, every institute must face, tradition Manual type management archive files there are many disadvantages: low efficiency, confidentiality are poor, in addition with the increase of quantity in, this Necessarily increase the workload and labor intensity of order management person.By foreground order inquiries module, can easily using Web and The technologies such as database solve these problems, and provide highly efficient management mode for enterprise and producer.
In the order module of backstage, the function of needing to realize mainly includes:
(1) the one of the access (database) of customer order, the inquiry based on plurality of classes and key combination, and modification Cause property;(2) preservation of order history information and modification are inquired;(3) order status inquiries and management mainly include to time-out here The sequence of operations such as order, order execution step inquiry are completed in order;(4) order management rights concerns, different types of use Family must inquire or modify the order formulated in range according to its permission, avoid occurring inconsistent in order storage system and accidentally grasp Make problem.
In order management system, the order of all orders sequentially in chronological sequence can be shown in the homepage of order management Number, lower one, the order amount of money, lower single time, order status etc..New order can be accomplished to highlight automatically, be convenient for order pipe Reason person makees new order and timely handles, such as inquiry order details, the processing status for changing order etc..Administrator can root It is scanned for according to order number or in the time range that some places an order.Omission can be avoided not consult manually " display new order " Order.Administrator can be " invalid order ", " showing invalid order " function according to certain order concrete condition self-setting order The order that all labels are can be listed in batches, and administrator can carry out batch deletions to all invalid orders.
103, multiple target orders of generation are indicated with attribute set, and carry out sequence after distributing unique O/No. Columnization.
Multiple target orders of generation are indicated by server with attribute set, and are carried out after distributing unique O/No. Serializing.Specifically, multiple target order of generation is indicated by server with attribute set, multiple order attributes are obtained Set;Server is that each order attributes set distributes unique O/No., obtains the order attributes set with number;Service Device serializes the order attributes set that the band is numbered, the order information after formation sequence.
Wherein, target order may include multiple attributes, for example, O/No., it is lower one, the order amount of money, lower single time, Multiple attributes such as order status, and O/No. is unique.Wherein, attribute set can also with the other forms such as array into Row expression, specifically herein without limitation.
104, the order information after serializing is distributed to being stored and monitored in the distributed storage of order subregion.
Server distributes the order information after serializing to being stored and monitored in the distributed storage of order subregion. Specifically, server determines the corresponding order subregion of the order information after each serializing;Server will be after each serializing Order information is distributed to the distributed memory system of corresponding order subregion;Server presses the O/No. in the order information Time sequencing imports the single-ended queue of distributed memory system, which is first in first out strategy;Server judges the list Whether the length of end queue reaches threshold value;If the length is more than the threshold value, all subsequent order instructions of server refusal.
It should be noted that when length is less than the threshold value, again to single-ended queue after the preset time period of server interval Length judged that specific details are not described herein again.
105, calculating is allocated to multiple target orders in distributed memory system according to preset time algorithm, counted Calculate the successive allocation order of multiple target orders.
Server is allocated calculating to multiple target orders in distributed memory system according to preset time algorithm, Calculate the successive allocation order of multiple target orders.
Specifically, server successively takes out multiple unique O/No.s from the single-ended queue of distributed memory system;Clothes Business device takes out the order information after corresponding multiple serializings by multiple unique O/No.s;Server will be after multiple serializings Order information carry out unserializing, obtain multiple target orders;Server is the corresponding article of multiple target Order splittings, and The target information of corresponding article is associated with one by one with corresponding target order, the successive of multiple target orders is calculated Allocation order.
106, it is allocated according to successive allocation order to by multiple target orders.
Server is allocated according to successive allocation order to by multiple target orders.
The embodiment of the present invention, solve high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more The problem of, improve Order splitting efficiency.
Referring to Fig. 2, another of the order allocation method provided in an embodiment of the present invention based on distributed memory system Flow chart specifically includes:
201, multiple request instructions that terminal is sent are obtained, the difference that multiple request instructions are used to indicate multiple users places an order Demand.
Server obtains multiple request instructions that terminal is sent, and multiple request instructions are used to indicate under the difference of multiple users Single demand.Wherein, the demand possibility of each user is identical may also be different, therefore need to buy in the request instruction generated Article is not also identical, has unique identification information along with each user is also carried in request instruction, therefore multiple Request instruction is not fully identical.
It is understood that executing subject of the invention can be the Order splitting device based on distributed memory system, It can also be terminal or server, specifically herein without limitation.The embodiment of the present invention by server be executing subject for into Row explanation.
202, corresponding multiple target orders are generated according to multiple request instructions.
Server generates corresponding multiple target orders according to multiple request instructions.For electronic order, main point For foreground order inquiries module and backstage order management module, foreground order inquiries module is very important for enterprise Functional module is the core system of entire marketed Web site.Order management is the work that preferential shop, every institute must face, tradition Manual type management archive files there are many disadvantages: low efficiency, confidentiality are poor, in addition with the increase of quantity in, this Necessarily increase the workload and labor intensity of order management person.By foreground order inquiries module, can easily using Web and The technologies such as database solve these problems, and provide highly efficient management mode for enterprise and producer.
In the order module of backstage, the function of needing to realize mainly includes:
(1) the one of the access (database) of customer order, the inquiry based on plurality of classes and key combination, and modification Cause property;(2) preservation of order history information and modification are inquired;(3) order status inquiries and management mainly include to time-out here The sequence of operations such as order, order execution step inquiry are completed in order;(4) order management rights concerns, different types of use Family must inquire or modify the order formulated in range according to its permission, avoid occurring inconsistent in order storage system and accidentally grasp Make problem.
In order management system, the order of all orders sequentially in chronological sequence can be shown in the homepage of order management Number, lower one, the order amount of money, lower single time, order status etc..New order can be accomplished to highlight automatically, be convenient for order pipe Reason person makees new order and timely handles, such as inquiry order details, the processing status for changing order etc..Administrator can root It is scanned for according to order number or in the time range that some places an order.Omission can be avoided not consult manually " display new order " Order.Administrator can be " invalid order ", " showing invalid order " function according to certain order concrete condition self-setting order The order that all labels are can be listed in batches, and administrator can carry out batch deletions to all invalid orders.
203, multiple target order of generation is indicated with attribute set, obtains multiple order attributes set.
Multiple target order of generation is indicated by server with attribute set, obtains multiple order attributes set. Wherein, target order may include multiple attributes, for example, O/No., lower one, the order amount of money, lower single time, order status Etc. multiple attributes, and O/No. is unique.Wherein, attribute set can also be indicated with other forms such as arrays, Specifically herein without limitation.
204, unique O/No. is distributed for each order attributes set, obtains the order attributes set with number.
Server is that each order attributes set distributes unique O/No., obtains the order attributes set with number.
It should be noted that the number information that O/No. generates when needing to consider single under user, has uniqueness.And It is necessary to meet following condition for the generation of O/No.: safety cannot use extensive random code, prevent concurrent and control bit Number.
For it cannot use extensive random code, if there are many quantity on order, 10,000 times or 100,000 times are reached, often Secondary generation order must compare 10,000 or 100,000 historical datas when encoding, and waste the computing resource of system.Therefore, on a small scale Random code can be used, such as 2~3, this random code is typically all and the combined uses such as serial number main function Be carried out to hide the truthful data of serial number using.For controlling digit, general normal use scene should When being that order goes out different shape or returns goods, order number is offered customer service by user, is inquired by customer service.So generally controlling At 10 to 15.
205, the order attributes set that the band is numbered is serialized, the order information after formation sequence.
Server serializes the order attributes set that the band is numbered, the order information after formation sequence.Sequence The rule of change can be by: in the way of date Hour Minute Second+User ID (it is also to be noted that not use serial number when name User ID, Region ID+ random code+serial number+random code mode can be used).The characteristics of which is: 1, uniqueness: the time is unidirectional , it is ensured that uniqueness.2, safety: ensure User ID safety.3, random code is not involved in judgement, because data are true before It protects without repetition.4, with 1 second, same user will not generate 2 order codings, it is possible to anti-concurrent.5, digit can Energy can be within 20, and digit is relatively more.The rule of serializing can be according to: date Hour Minute Second microsecond+random code (2)+stream Water number+random code (3).The characteristics of which is: 1, uniqueness: the time is unidirectional, it is ensured that uniqueness.2, safety: ensure Serial number not will recognise that.3, the digit of random code and front and back are all secrecy, so if not knowing this point, It is the digit for being difficult to judge serial number.Because there are many quantity on order generated simultaneously, coding does not have Linear Comparison function. Even if being aware of serial number, assignment can be carried out in initialization.4, with 1 second, same user is will not to generate 2 orders Coding, it is possible to anti-concurrent.5, digit may be within 20, and digit is relatively more.
206, the order information after serializing is distributed to being stored and monitored in the distributed storage of order subregion.
Server distributes the order information after serializing to being stored and monitored in the distributed storage of order subregion. Specifically, server determines the corresponding order subregion of the order information after each serializing;Server will be after each serializing Order information is distributed to the distributed memory system of corresponding order subregion;Server presses the O/No. in the order information Time sequencing imports the single-ended queue of distributed memory system, which is first in first out strategy;Server judges the list Whether the length of end queue reaches threshold value;If the length is more than the threshold value, all subsequent order instructions of server refusal.
It should be noted that when length is less than the threshold value, again to single-ended queue after the preset time period of server interval Length judged, repeat above-mentioned deterministic process, specific details are not described herein again.
207, calculating, base are allocated to multiple target orders in distributed memory system according to preset time algorithm The successive allocation order of multiple target orders is calculated in preset time algorithm.
Server is allocated calculating to multiple target orders in distributed memory system according to preset time algorithm, The successive allocation order of multiple target orders is calculated based on preset time algorithm.
Specifically, server successively takes out multiple unique O/No.s from the single-ended queue of distributed memory system;Clothes Business device takes out the order information after corresponding multiple serializings by multiple unique O/No.s;Server will be after multiple serializings Order information carry out unserializing, obtain multiple target orders;Server is the corresponding article of multiple target Order splittings, and The target information of corresponding article is associated with one by one with corresponding target order, is calculated based on preset time algorithm The successive allocation order of multiple target orders.Wherein, preset time algorithm can be timing-optimal control algorithm, can also be Other algorithms, specific size is with no restrictions.
208, it is allocated according to successive allocation order to by multiple target orders.
Server is allocated according to successive allocation order to by multiple target orders.Server is according to the sequence distributed By multiple target Order splittings to corresponding terminal.It should be noted that terminal here is either one or more, For example, different users assigns different request instructions by the same terminal, either, different users passes through different ends Respective request instruction is assigned respectively in end.
The embodiment of the present invention, solve high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more The problem of, improve Order splitting efficiency.
The order allocation method in the embodiment of the present invention based on distributed memory system is described above, below it is right Order splitting device in the embodiment of the present invention based on distributed memory system is described, referring to Fig. 3, the embodiment of the present invention In one embodiment of the Order splitting device based on distributed memory system include:
Acquiring unit 301, for obtaining multiple request instructions of terminal transmission, the multiple request instruction is used to indicate more Single demand under the difference of a user;
Generation unit 302, for generating corresponding multiple target orders according to the multiple request instruction;
Assigned sequence unit 303 for being indicated the multiple target orders generated with attribute set, and distributes only It is serialized after one O/No.;
Monitoring unit 304 is stored, for distributing the order information after serializing to the distributed storage of order subregion It is stored and is monitored;
Computing unit 305, for being ordered according to preset time algorithm to multiple targets in the distributed memory system It is singly allocated calculating, calculates the successive allocation order of the multiple target order;
Allocation unit 306, for being allocated according to the successive allocation order to by the multiple target order.
The embodiment of the present invention, solve high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more The problem of, improve Order splitting efficiency.
Referring to Fig. 4, another implementation of the Order splitting device in the embodiment of the present invention based on distributed memory system Example include:
Acquiring unit 301, for obtaining multiple request instructions of terminal transmission, the multiple request instruction is used to indicate more Single demand under the difference of a user;
Generation unit 302, for generating corresponding multiple target orders according to the multiple request instruction;
Assigned sequence unit 303 for being indicated the multiple target orders generated with attribute set, and distributes only It is serialized after one O/No.;
Monitoring unit 304 is stored, for distributing the order information after serializing to the distributed storage of order subregion It is stored and is monitored;
Computing unit 305, for being ordered according to preset time algorithm to multiple targets in the distributed memory system It is singly allocated calculating, calculates the successive allocation order of the multiple target order;
Allocation unit 306, for being allocated according to the successive allocation order to by the multiple target order.
Optionally, assigned sequence unit 303 includes:
Representation module 3031 obtains multiple for the multiple target order generated to be indicated with attribute set Order attributes set;
First distribution module 3032 obtains band number for distributing unique O/No. for each order attributes set Order attributes set;
Serialization module 3033, the order attributes set for numbering the band serializes, after formation sequence Order information.
Optionally, storage monitoring unit 304 includes:
Determining module 3041, for determining the corresponding order subregion of order information after each serializing;
Second distribution module 3042, for distributing the order information after each serializing to point of corresponding order subregion Cloth storage system;
Import modul 3043, for the O/No. in the order information to be imported distributed storage system in chronological order The single-ended queue of system, the single-ended queue are first in first out strategy;
Judgment module 3044, for judging whether the length of the single-ended queue reaches threshold value;
Refuse module 3045, if the length is more than the threshold value, for refusing all subsequent order instructions.
Optionally, computing unit 305 is specifically used for:
Multiple unique O/No.s are successively taken out from the single-ended queue of the distributed memory system;
The order information after corresponding multiple serializings is taken out by the multiple unique O/No.;
Order information after the multiple serializing is subjected to unserializing, obtains multiple target orders;
For the corresponding article of the multiple target Order splitting, and by the target information of the corresponding article with it is corresponding Target order is associated with one by one, and the successive allocation order of multiple target orders is calculated based on preset time algorithm.
The embodiment of the present invention, solve high concurrent causes ordering system inefficiency, Order splitting inaccuracy, an object to be sold more The problem of, improve Order splitting efficiency.
Angle of the above figure 3 to Fig. 4 from modular functionality entity in the embodiment of the present invention based on distributed storage system The Order splitting device of system is described in detail, and is deposited below from the angle of hardware handles in the embodiment of the present invention based on distribution The Order splitting device of storage system is described in detail.
Fig. 5 is a kind of structural representation of Order splitting device based on distributed memory system provided in an embodiment of the present invention Figure is somebody's turn to do the Order splitting device 500 based on distributed memory system including memory 501, processor 502 and is stored in described deposit On reservoir and the computer program that can run on the processor, the processor is realized when executing the computer program appoints The order allocation method based on distributed memory system in one embodiment.Order splitting device based on distributed memory system 500 can also include communication interface 503.
When loading on computers and executing the computer program instructions, entirely or partly generate according to of the invention real Apply process described in example or function.The computer can be general purpose computer, special purpose computer, computer network or its His programmable device.The computer instruction may be stored in a computer readable storage medium, or can from a computer Read storage medium transmitted to another computer readable storage medium, for example, the computer instruction can from a web-site, Computer, server or data center pass through wired (such as coaxial cable, optical fiber, twisted pair) or wireless (such as infrared, nothing Line, microwave etc.) mode transmitted to another web-site, computer, server or data center.It is described computer-readable Storage medium can be any usable medium that computer can store or include that one or more usable mediums are integrated The data storage devices such as server, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, magnetic Band), optical medium (for example, CD) or semiconductor medium (such as solid state hard disk (solid state disk, SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiments of the present invention can integrate in one processing unit, it is also possible to each A unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit was both It can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of order allocation method based on distributed memory system characterized by comprising
Multiple request instructions that terminal is sent are obtained, the difference that the multiple request instruction is used to indicate multiple users, which places an order, to be needed It asks;
Corresponding multiple target orders are generated according to the multiple request instruction;
Multiple target orders of generation are indicated with attribute set, and are serialized after distributing unique O/No.;
Order information after serializing is distributed to being stored and monitored in the distributed storage of order subregion;
Calculating is allocated to multiple target orders in the distributed memory system according to preset time algorithm, is calculated The successive allocation order of the multiple target order;
It is allocated according to the successive allocation order to by the multiple target order.
2. the order allocation method according to claim 1 based on distributed memory system, which is characterized in that described to give birth to At multiple target orders be indicated with attribute set, and distribute after unique O/No. and carry out serializing and include:
The multiple target order of generation is indicated with attribute set, obtains multiple order attributes set;
Unique O/No. is distributed for each order attributes set, obtains the order attributes set with number;
The order attributes set that the band is numbered is serialized, the order information after formation sequence.
3. the order allocation method according to claim 1 based on distributed memory system, which is characterized in that described by sequence Order information after columnization is distributed to carrying out storage in the distributed storage of order subregion and monitoring includes:
The corresponding order subregion of order information after determining each serializing;
Order information after each serializing is distributed to the distributed memory system of corresponding order subregion;
O/No. in the order information is imported to the single-ended queue of distributed memory system in chronological order, it is described single-ended Queue is first in first out strategy;
Judge whether the length of the single-ended queue reaches threshold value;
If the length is more than the threshold value, refuse all subsequent order instructions.
4. the order allocation method according to claim 3 based on distributed memory system, which is characterized in that the basis Preset time algorithm is allocated calculating to multiple target orders in the distributed memory system, calculates the multiple The successive allocation order of target order includes:
Multiple unique O/No.s are successively taken out from the single-ended queue of the distributed memory system;
The order information after corresponding multiple serializings is taken out by the multiple unique O/No.;
Order information after the multiple serializing is subjected to unserializing, obtains multiple target orders;
For the corresponding article of the multiple target Order splitting, and by the target information of the corresponding article and corresponding target Order is associated with one by one, and the successive allocation order of multiple target orders is calculated based on preset time algorithm.
5. a kind of Order splitting device based on distributed memory system characterized by comprising
Acquiring unit, for obtaining multiple request instructions of terminal transmission, the multiple request instruction is used to indicate multiple users Difference under single demand;
Generation unit, for generating corresponding multiple target orders according to the multiple request instruction;
Assigned sequence unit for being indicated the multiple target orders generated with attribute set, and distributes unique order It is serialized after number;
Monitoring unit is stored, for distributing the order information after serializing to storing in the distributed storage of order subregion And monitoring;
Computing unit, for being divided according to preset time algorithm multiple target orders in the distributed memory system With calculating, the successive allocation order of the multiple target order is calculated;
Allocation unit, for being allocated according to the successive allocation order to by the multiple target order.
6. the Order splitting device according to claim 5 based on distributed memory system, which is characterized in that the distribution Serialization unit includes:
Representation module obtains multiple order attributes for the multiple target order generated to be indicated with attribute set Set;
First distribution module obtains the order category with number for distributing unique O/No. for each order attributes set Property set;
Serialization module, the order attributes set for numbering the band serialize, the order letter after formation sequence Breath.
7. the Order splitting device according to claim 5 based on distributed memory system, which is characterized in that the storage Monitoring unit includes:
Determining module, for determining the corresponding order subregion of order information after each serializing;
Second distribution module, for distributing the order information after each serializing to the distributed storage of corresponding order subregion System;
Import modul, for the O/No. in the order information to be imported the single-ended of distributed memory system in chronological order Queue, the single-ended queue are first in first out strategy;
Judgment module, for judging whether the length of the single-ended queue reaches threshold value;
Refuse module, if the length is more than the threshold value, for refusing all subsequent order instructions.
8. the Order splitting device according to claim 7 based on distributed memory system, which is characterized in that the calculating Unit is specifically used for:
Multiple unique O/No.s are successively taken out from the single-ended queue of the distributed memory system;
The order information after corresponding multiple serializings is taken out by the multiple unique O/No.;
Order information after the multiple serializing is subjected to unserializing, obtains multiple target orders;
For the corresponding article of the multiple target Order splitting, and by the target information of the corresponding article and corresponding target Order is associated with one by one, and the successive allocation order of multiple target orders is calculated based on preset time algorithm.
9. a kind of Order splitting device based on distributed memory system, which is characterized in that including memory, processor and storage On the memory and the computer program that can run on the processor, the processor execute the computer program Order allocation method based on distributed memory system of the Shi Shixian as described in any one of claim 1-4.
10. a kind of computer readable storage medium, which is characterized in that including instruction, when described instruction is run on computers, So that computer executes the order allocation method based on distributed memory system as described in any one of claim 1-4.
CN201910561314.1A 2019-06-26 2019-06-26 Order allocation method, device and storage medium based on distributed memory system Pending CN110502474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910561314.1A CN110502474A (en) 2019-06-26 2019-06-26 Order allocation method, device and storage medium based on distributed memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910561314.1A CN110502474A (en) 2019-06-26 2019-06-26 Order allocation method, device and storage medium based on distributed memory system

Publications (1)

Publication Number Publication Date
CN110502474A true CN110502474A (en) 2019-11-26

Family

ID=68585765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910561314.1A Pending CN110502474A (en) 2019-06-26 2019-06-26 Order allocation method, device and storage medium based on distributed memory system

Country Status (1)

Country Link
CN (1) CN110502474A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286976A (en) * 2020-09-25 2021-01-29 长沙市到家悠享网络科技有限公司 Order processing method, device, equipment and storage medium
CN112598447A (en) * 2020-12-28 2021-04-02 加和(北京)信息科技有限公司 Order information processing method and device, electronic equipment and processor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030070A1 (en) * 2010-08-02 2012-02-02 Keller Mark J Managing an inventory comprising serialized products
US20140108188A1 (en) * 2012-10-09 2014-04-17 Reischling Press, Inc. Universal Ordering for Manufacturing Customized Print Products
CN106504076A (en) * 2016-11-23 2017-03-15 杭州先手科技有限公司 distributed order processing method, device and order processing system
CN107369055A (en) * 2016-05-11 2017-11-21 北京京东尚科信息技术有限公司 The picking distribution method and device of order messages
CN107967284A (en) * 2016-10-20 2018-04-27 北京京东尚科信息技术有限公司 Method and apparatus for storing, inquiring about sequence information
CN108416657A (en) * 2018-03-15 2018-08-17 中融科创信息技术河北有限公司 A kind of order generation method and equipment based on counseling services
CN109615159A (en) * 2018-10-17 2019-04-12 北京趣拿软件科技有限公司 Request processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030070A1 (en) * 2010-08-02 2012-02-02 Keller Mark J Managing an inventory comprising serialized products
US20140108188A1 (en) * 2012-10-09 2014-04-17 Reischling Press, Inc. Universal Ordering for Manufacturing Customized Print Products
CN107369055A (en) * 2016-05-11 2017-11-21 北京京东尚科信息技术有限公司 The picking distribution method and device of order messages
CN107967284A (en) * 2016-10-20 2018-04-27 北京京东尚科信息技术有限公司 Method and apparatus for storing, inquiring about sequence information
CN106504076A (en) * 2016-11-23 2017-03-15 杭州先手科技有限公司 distributed order processing method, device and order processing system
CN108416657A (en) * 2018-03-15 2018-08-17 中融科创信息技术河北有限公司 A kind of order generation method and equipment based on counseling services
CN109615159A (en) * 2018-10-17 2019-04-12 北京趣拿软件科技有限公司 Request processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286976A (en) * 2020-09-25 2021-01-29 长沙市到家悠享网络科技有限公司 Order processing method, device, equipment and storage medium
CN112598447A (en) * 2020-12-28 2021-04-02 加和(北京)信息科技有限公司 Order information processing method and device, electronic equipment and processor
CN112598447B (en) * 2020-12-28 2023-10-10 加和(北京)信息科技有限公司 Order information processing method and device, electronic equipment and processor

Similar Documents

Publication Publication Date Title
CN107832901B (en) Task allocation method and device, terminal equipment and storage medium
CN107730196A (en) Project scheduling management method and terminal device
CN105450705B (en) Business data processing method and equipment
CN109902901A (en) Method for allocating tasks, device, storage medium and computer equipment
CN108874640A (en) A kind of appraisal procedure and device of clustering performance
CN103761146B (en) A kind of method that MapReduce dynamically sets slots quantity
CN108763389A (en) The integration method and device of data, storage medium, terminal
CN110162388A (en) A kind of method for scheduling task, system and terminal device
CN107203424A (en) A kind of method and apparatus that deep learning operation is dispatched in distributed type assemblies
CN109472568A (en) A kind of block chain method of commerce, device, management system, equipment and storage medium
CN108681963A (en) Multi-tiling chain integral traffic control method, system, electronic device and storage medium
CN107291928A (en) A kind of daily record storage system and method
CN103077070B (en) Cloud computing management system and management method for cloud computing systems
CN110502474A (en) Order allocation method, device and storage medium based on distributed memory system
CN110058940A (en) Data processing method and device under a kind of multi-thread environment
CN110535679A (en) Management method, framework, network slice sales platform and the management system of slice
CN108563697A (en) A kind of data processing method, device and storage medium
CN106131244A (en) A kind of message transmitting method and device
CN106790529A (en) The dispatching method of computing resource, control centre and scheduling system
CN104956340B (en) Expansible Data duplication is deleted
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN103713852B (en) A kind of information processing method, service platform and electronic equipment
CN115310906A (en) Method, device and equipment for establishing picking task and computer readable storage medium
US10482268B1 (en) Systems and methods for access management
CN109218385A (en) The method and apparatus for handling data

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