CN103426072B - The order processing system of a kind of high concurrent competition stock and disposal route thereof - Google Patents
The order processing system of a kind of high concurrent competition stock and disposal route thereof Download PDFInfo
- Publication number
- CN103426072B CN103426072B CN201310301455.2A CN201310301455A CN103426072B CN 103426072 B CN103426072 B CN 103426072B CN 201310301455 A CN201310301455 A CN 201310301455A CN 103426072 B CN103426072 B CN 103426072B
- Authority
- CN
- China
- Prior art keywords
- virtual
- inventory
- stock
- order
- storehouse
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Abstract
The invention discloses order processing system and the disposal route thereof of a kind of high concurrent competition stock, comprise virtual inventory backstage parameter setting module, database layer storing process functional module, application server cluster, indent queue monitoring and dynamic virtual stock divide storehouse module, virtual inventory Back Administration Module and virtual inventory monitoring module, the order judging in order processing transaction queues is reduced reserved warehouse and is deposited or reduce virtual varehouse and deposit, if virtual varehouse is deposited enough, selection is reduced virtual varehouse and is deposited, be the virtual storehouse of each Order splitting by virtual storehouse gated counter in repeating query mode, order carries out stock according to the virtual storehouse distributed and reduces operation, after reducing stock's success, delete the related data of this order in order processing transaction queues simultaneously, this order creation successful information is returned to user, dynamic conditioning of the present invention virtual storehouse quantity and each virtual varehouse are deposited, under existing software and hardware resources condition, significantly improve concurrent order processing ability, order processing efficiency when improve high concurrent competition stock.
Description
Technical field
The present invention relates to a kind of order processing system, particularly the order processing system of a kind of high concurrent competition stock, also relates to the disposal route of the above order disposal system.
Background technology
Along with internet develop rapidly, internet becomes important component part in people's life gradually, and people life style also quietly there occurs change, shopping online, booking tickets on net, online game, Internet video, network social intercourse etc., has infiltrated through among daily life.Therefore, Internet user exponentially as rapidly increase, this brings infinite commercial opportunities to electric business platform operation person, can acid test be brought also to network operators simultaneously, owing to occurring rapidly increasing high concurrent transaction process request, traditional application architecture starts to become inadaptable, and even have many large-scale application owing to cannot support high concurrent transaction capabilities, system is directly collapsed.
Occur bottleneck has appearred in the response speed that the key reason of the problems referred to above is issued transaction, in the order processing system of particularly high concurrent competition stock, this phenomenon is particularly outstanding.When stock processing competed by the order of multiple purchase like products simultaneously, in order to ensure the consistance of issued transaction, need to carry out lock stock processing (row lock), make multiple orders can only serial processing, because order processing is serial, when needing the order competing stock processing to get more and more, the waiting list of order processing is just more and more longer, along with the sustainable growth of concurrent quantity on order, the order processing performance bottleneck of the concurrent competition stock of this height just reveals gradually.Illustrate, Fig. 1 is existing order processing pattern diagram, the order that 3 products are detailed identical is carved with when supposing a certain, the time of a system process order is 10MS (millisecond), in order to ensure db transaction uniformity for the treatment of, stock's exclusive lock mechanism (row lock) must be adopted when inventory operations is reduced in the competition of multiple orders, owing to have employed the operation of stock's exclusive lock, order transaction process just can only serial processing, and the time of obvious system process 3 orders just equals 30MS (millisecond).Fig. 2 is general order processing sequential chart, the time which show affects concurrent establishment order is the T4+T5+T6+T7+T8 queue waiting time of single order (namely in indent queue), because order transaction processing latency is relevant with the exclusive lock mechanism of competition inventory transaction process, therefore, if there is a kind of way can reduce the conflict of lock stock, we just can the processing power of the significantly concurrent establishment order of elevator system.
At present, in the industry for the universal solution mainly express network+high-performance computer cluster+memory database of the order processing system of the concurrent competition stock of height.Adopt this scheme, system has remarkable lifting in performance, but the integrated cost of this scheme is also very high, and may not necessarily guarantee that system there will not be bottleneck, because system hardware performance inherently exists bottleneck.
Summary of the invention
First object of the present invention is to provide the order processing system that a kind of cost is low, significantly can promote the concurrent competition stock of height of high concurrent order competition stock processing efficiency under existing software and hardware resources condition.
Above-mentioned purpose of the present invention is realized by following technical measures: the order processing system of a kind of high concurrent competition stock, it is characterized in that comprising virtual inventory backstage parameter setting module, database layer storing process functional module, application server cluster, indent queue monitoring and dynamic virtual stock point storehouse module, virtual inventory Back Administration Module and virtual inventory monitoring module, wherein
Described virtual inventory backstage parameter setting module is for arranging the correlation parameter of virtual inventory;
Described database layer storing process functional module for realizing comprising virtual inventory initialization, virtual inventory point storehouse, virtual inventory timing routine inspection, virtual inventory dynamically allot and the storing process reclaimed;
The order request that described application server cluster creates for receiving user, then carries out pre-service to order and order is added order processing transaction queues;
Described indent queue monitoring and dynamic virtual stock point storehouse module are for monitoring the Inventory Performance of the current disposition of each order processing transaction queues and current virtual storehouse;
Described virtual inventory Back Administration Module is used for realizing virtual inventory back-stage management, comprises virtual inventory initialization, the process of special outbound warehouse-in, virtual inventory replenish process, virtual inventory recycles, virtual inventory routine inspection and virtual inventory point storehouse planning management etc.;
Described virtual inventory monitoring module for monitoring the current disposition of each order processing transaction queues, virtual inventory success ratio is reduced in the inquiry Inventory Performance in each virtual storehouse of current system, order processing, virtual inventory is alloted and inquire about and analysis etc. with the frequent degree reclaimed and abnormal log;
With the interaction of upper module with coordinate, constitute the order processing system of a kind of high concurrent competition stock, that is: virtual inventory system, enable the operating process of virtual inventory scheme and order dealing process as follows:
Virtual inventory backstage parameter setting module arranges virtual inventory correlation parameter, and virtual inventory Back Administration Module carries out initialization to virtual inventory, completes virtual inventory point storehouse and virtual storehouse, reserves storehouse inventory allocation, load equalizer in application server cluster receives after user creates order request, order request is forwarded to certain application server in application server cluster, after application server receives and creates order request, pre-service is carried out to order, such as sales promotion calculate, to order detail sort (order detail sequence object be solve locking order capable time there is Deadlock) etc., this order is added order processing transaction queues, if indent queue monitoring and dynamic virtual stock point storehouse module judge to need to adjust the quantity in virtual storehouse according to monitored results, then the associated storage process implementation of calling data storehouse layer storing process functional module is to the adjustment of virtual storehouse quantity, if virtual storehouse does not need adjustment, then continue to carry out order transaction process to the order in indent queue, whether whether order processing affairs enable virtual inventory scheme containing product in short supply and currently used system according in order detail, determine that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit, if virtual varehouse is deposited enough, selection is reduced virtual varehouse and is deposited, be the virtual storehouse of each Order splitting by application layer virtual storehouse gated counter in repeating query mode, order transaction process is carried out stock according to the virtual storehouse distributed and is reduced operation, after reducing stock's success, delete the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, if reserved stock is enough, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if reserved stock is inadequate, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing transaction queues simultaneously.
A freight house inventory data is divided into a reserved storehouse and multiple virtual storehouse according to inventory allocation strategy by the present invention, realize that multiple order transaction is concurrent reduces stock, the concurrent order processing ability of significantly elevator system under existing software and hardware resources condition, solve the problem of high concurrent order competition stock processing bottleneck, significantly improve the efficiency of high concurrent order stock processing; And of the present invention to realize cost lower.
Correlation parameter set by the parameter setting module of virtual inventory backstage of the present invention be that safety inventory is arranged, the relative parameters setting of the relative parameters setting of virtual inventory point storehouse strategy, virtual inventory operating strategy, task scheduling are stopped using with enable, scheduling time inter arranges.After virtual inventory backstage optimum configurations is good, virtual inventory system just can be intended to manage and control virtual inventory system according to supvr.
Database layer storing process functional module of the present invention comprises virtual inventory initialization module, virtual inventory point storehouse module, virtual inventory timing routine inspection module and virtual inventory and dynamically allots and recycling module, wherein,
When described virtual inventory initialization module is enabled for system, perform virtual inventory in advance and divide storehouse to operate;
Described virtual inventory point storehouse module divides storehouse for dynamic virtual stock point storehouse and manual virtual inventory, virtual inventory point storehouse realizes an original freight house (RDC) to split into a reserved storehouse and several virtual storehouse, again by virtual inventory system according to the actual store data of backstage parameter and original freight house (RDC) according to inventory allocation strategy, by the inventory allocation of original freight house (RDC) to reserved storehouse and virtual storehouse;
The distribution principle of stock of the present invention (also referred to as virtual inventory) allocation strategy is: first original freight house inventory data is divided into two parts (concrete ratio freely can be arranged according to service needed) according to a certain percentage, first part of stock's number distributes to reserved stock, and second part of inventory data is averagely allocated to each virtual library storage.
Described virtual inventory timing routine inspection module is used for the state of each module of timing routine inspection virtual inventory system, make virtual inventory system realize dynamic conditioning according to the change of various state to self each module, thus ensure that each module of virtual inventory system remains optimal operational condition;
Described virtual inventory is dynamically alloted and is comprised virtual inventory with recycling module and dynamically allot module and the dynamic recycling module of virtual inventory,
Virtual inventory is dynamically alloted module and is alloted rule according to virtual inventory, check that each virtual varehouse is deposited, if meet adjustment requirement, system Auto-writing allots request slip, then virtual varehouse is deposited into row to redistribute, when singly carrying out adjustment process according to virtual inventory adjustment: first process is adjusted and reduced to inventory data, reducing after process completes and again tune increasing process being carried out to inventory data, guarantee to reduce process and adjust to increase process not in same affairs, to avoid issued transaction conflict;
The dynamic recycling module of virtual inventory reclaims rule according to virtual inventory, checks each virtual inventory, merges requirement if met, and system Auto-writing merges request slip, then performs virtual inventory reclaimer operation, is deposited by virtual varehouse and be merged into virtual reserved storehouse.
A dynamic virtual stock point storehouse of the present invention refers to without the need to manual intervention, by the length of system by monitoring application layer each application server order processing transaction queues, carry out judgement current system in conjunction with backstage configuration parameter and be in peak traffic phase or low peak period, then automatically produce virtual inventory point storehouse adjust increasing or adjust and reduce plan, and perform this plan.
A manual virtual inventory point storehouse of the present invention refers to by manual intervention virtual inventory point storehouse, decision maker is according to the service development strategy of company and related data, as: Company predicted data, there is promotion plan in company certain period, or new product release, judges whether this time period exists order peak period, work out virtual inventory in advance and divide storehouse to plan, and before this order peak period, automatically implement this plan by system, to guarantee that system is steady, fast processing order business.
Virtual inventory Back Administration Module of the present invention comprises virtual inventory and allots with retrieval management module, virtual inventory point storehouse planning management module, specially goes out to put in storage processing module and virtual inventory initialization module, wherein,
Described virtual inventory to be alloted with retrieval management module for single inquiry, establishment, amendment, the deletion of requisition slip/recovery and is performed stock allotment/reclaimer operation etc.;
Described virtual inventory point storehouse planning management module mainly comprises inquiry, establishment, amendment, the deletion of virtual inventory point storehouse plan for virtual inventory point storehouse planning management and performs the operations such as virtual inventory point storehouse plan;
Describedly specially go out to put in storage processing module reduces stock process in non-order processing mode, namely refer to that dump warehouse-in and outbound, special stock move, product rejection, the process such as to deliver from godown especially;
Described virtual inventory initialization module realizes the actual store data of RDC according to inventory allocation strategy, by RDC inventory allocation to reserved storehouse and virtual storehouse.
Second object of the present invention is the disposal route of the order processing system providing the concurrent competition stock of a kind of above-mentioned height.
Above-mentioned purpose of the present invention is realized by following technical measures: the disposal route of the order processing system of the concurrent competition stock of a kind of above-mentioned height, is characterized in that comprising the following steps:
(1) user initiates to create order request;
(2) order request that user creates to be forwarded to certain application server in application server cluster by application server cluster by load equalizer, realizes the load balancing of the concurrent order processing of application server floor height; Application server carries out pre-service to order and this order is added order processing transaction queues after receiving and creating order request;
(3) indent queue monitoring and a dynamic virtual stock point storehouse module judge whether whether enable virtual inventory scheme containing product in short supply and currently used system in this order detail, determine that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit
If i. contain product in short supply in this order detail or do not enable virtual inventory scheme, then reduce reserved warehouse and deposit, proceed to step (4);
If ii. do not contain product in short supply in this order detail and enable virtual inventory scheme, then reduce virtual varehouse and deposit, proceed to step (5);
(4) meet reduce reserved stock's condition, then reduce reserved warehouse and deposit; First the processing transactions of order inquires about and to lock reserved inventory record capable, carries out availability inspection to reserved stock storehouse data;
If the reserved warehouse of I is deposited enough, then reduce reserved warehouse and deposit, after reducing stock's success, delete the related data of this order in order processing waiting list simultaneously, then this order creation successful information is returned to user, proceed to step (6);
If reserved stock is inadequate for II, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing waiting list simultaneously, proceeds to step (6);
(5) meet and reduce virtual varehouse and deposit condition, then reduce virtual varehouse and deposit; Virtual storehouse counter is reduced in the repeating query that order processing program reads application server record, handling procedure selects corresponding virtual storehouse according to register, then first the processing transactions of this order is inquired about and is locked this virtual varehouse and deposit record row, carries out availability inspection to these virtual storehouse data;
If i. virtual varehouse is deposited enough, order carries out stock according to the virtual storehouse distributed and reduces operation, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, proceed to step (6);
If ii. virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, proceed to step (4);
(6) whole order processing flow process is completed.
Compared with prior art, the present invention has following significant effect:
A freight house inventory data is divided into a reserved storehouse and multiple virtual storehouse according to inventory allocation strategy by the present invention, compared with existing order processing system, decrease lock stock conflict, realize that multiple order transaction is concurrent reduces stock, the concurrent order processing ability of system is significantly improved under existing software and hardware resources condition, solve the problem of high concurrent order competition stock processing bottleneck, significantly improve the efficiency of high concurrent order stock processing; It is lower that the present invention realizes cost, can be widely used in electronic commercial affairs and the field such as railway, airline reservation system.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Fig. 1 is existing order processing scene schematic diagram;
Fig. 2 is existing order processing sequence diagram;
Fig. 3 is present system composition schematic diagram;
Fig. 4 is virtual inventory warehouse structure figure of the present invention;
Fig. 5 is order processing scene schematic diagram of the present invention;
Fig. 6 is virtual inventory of the present invention point storehouse process flow diagram;
Fig. 7 is that virtual inventory of the present invention is dynamically alloted and recovery process figure;
Fig. 8 is order processing process flow diagram of the present invention.
Embodiment
One, virtual inventory overall implementation
A kind of high concurrent competition stock orders disposal system of the present invention realizes based on the exploitation of J2EE framework, database adopts the ORACLE11G based on RAC cluster, as shown in Figure 3, comprise virtual inventory backstage parameter setting module, database layer storing process functional module, application server cluster, indent queue monitoring and dynamic virtual stock point storehouse module, virtual inventory Back Administration Module and virtual inventory monitoring module six functions module, wherein
Virtual inventory backstage parameter setting module 300, for arranging the correlation parameter of virtual inventory;
Database layer storing process functional module 301, achieve the storing process entity of virtual inventory relevant issues process, mainly comprise virtual inventory initialization, virtual inventory point storehouse, virtual inventory timing routine inspection, virtual inventory dynamically allot and the storing process entity such as to reclaim;
Application server cluster 302, for receiving the order request that user creates, then carrying out pre-service to order and order is added order processing transaction queues;
Indent queue monitoring and dynamic virtual stock sub-module 303, for monitoring the Inventory Performance of the current disposition of each order processing transaction queues and current virtual storehouse;
Virtual inventory Back Administration Module 304: for realizing virtual inventory back-stage management, comprise virtual inventory initialization, special go out warehouse-in process, virtual inventory replenishes process, virtual inventory recycles, and virtual inventory routine inspection and virtual inventory divide storehouse planning management etc.;
Virtual inventory monitoring module 305: for monitoring the current disposition of each application server instance pending order processing queue, virtual inventory success ratio is reduced in the inquiry Inventory Performance in each virtual storehouse of current system, order processing, virtual inventory is alloted and inquire about and analysis etc. with the frequent degree reclaimed and abnormal log;
The interaction of above six large modules with coordinate, constitute the order processing system of a kind of high concurrent competition stock, that is: virtual inventory system.Below enable the operating process of virtual inventory scheme and order dealing process: enable the operating process of virtual inventory scheme and comprise following two steps:
(1) virtual inventory correlation parameter is set by virtual inventory system module 300, as safety inventory optimum configurations, virtual inventory divide storehouse policing parameter setting, task scheduling optimum configurations etc.;
(2) carry out initialization by virtual inventory Back Administration Module 304 pairs of virtual inventories, complete virtual inventory point storehouse and the operation such as virtual storehouse, reserved storehouse inventory allocation;
After enabling virtual inventory scheme, order processing flow process is as follows:
F5 load equalizer in application server cluster module 302 receives after user creates order request, order request is forwarded to certain application server, after application server receives and creates order request, pre-service is carried out to order, such as sales promotion calculate, to order detail sort (order detail sequence object be solve locking order capable time there is Deadlock) etc., this order is added order processing transaction queues, if indent queue monitoring and dynamic virtual stock sub-module 303 judge to need to adjust the quantity in virtual storehouse according to monitored results, then the associated storage process implementation of calling data storehouse layer storing process functional module 301 is to the adjustment of virtual storehouse quantity, if virtual storehouse does not need adjustment, then continue to carry out order transaction process to the order in indent queue, whether whether order processing affairs enable virtual inventory scheme containing product in short supply and currently used system according in order detail, determine that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit, if virtual varehouse is deposited enough, selection is reduced virtual varehouse and is deposited, be the virtual storehouse of each Order splitting by application layer virtual storehouse gated counter in repeating query mode, order transaction process is carried out stock according to the virtual storehouse distributed and is reduced operation, after reducing stock's success, delete the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, if reserved stock is enough, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if reserved stock is inadequate, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing transaction queues simultaneously.
Two, each module concrete function and implementation
1, virtual inventory backstage parameter setting module
This module is mainly used in arranging the correlation parameter supporting virtual inventory solution, and optimum configurations mainly comprises: safety inventory is arranged, the relative parameters setting of the relative parameters setting of virtual inventory point storehouse strategy, virtual inventory operating strategy, task scheduling are stopped using and enable and scheduling time inter is arranged.After virtual inventory backstage sets, virtual inventory system just can be intended to manage and control virtual inventory system according to supvr.
2, database layer storing process functional module
This module achieves the process of virtual inventory relevant issues, mainly comprises virtual inventory initialization, virtual inventory point storehouse, virtual inventory timing routine inspection, virtual inventory dynamically allot and reclaim supervisor module.
2.1, virtual inventory initialization: when this function enables virtual inventory solution for system, performs virtual inventory in advance and divides storehouse to operate.
2.2, virtual inventory point storehouse: virtual inventory point storehouse realizes original freight house (RDC) to split into a reserved storehouse and multiple virtual storehouse (warehouse structure is as Fig. 4), again by virtual inventory system according to the actual store data of backstage parameter and RDC according to virtual inventory allocation strategy, by RDC inventory allocation to reserved storehouse and virtual storehouse, virtual inventory timing routine inspection: this program block function is used for S0 for reserved storehouse, mainly for the treatment of emergency event, such as virtual varehouse deposits inadequate or large order (referring to the order that size of order is very large); S1, S2 ... SN is virtual storehouse, is mainly used in high concurrent order competition stock processing affairs.
As shown in Figure 6, a virtual inventory point storehouse is divided into dynamic virtual stock point storehouse and manual virtual inventory point storehouse to virtual point of storehouse flow process;
2.2.1, dynamic virtual stock divides storehouse
Dynamic virtual stock divides Zhi Fen storehouse, storehouse to operate without the need to manual intervention, by the length of system by monitoring application layer each application server order processing transaction queues, carry out judgement current system in conjunction with backstage configuration parameter and be in peak traffic phase or low peak period, then automatically produce virtual inventory point storehouse adjust increasing or adjust and reduce plan, and perform this plan immediately.
The implementation in dynamic virtual stock point storehouse is satisfying condition by timed task routine inspection dynamic virtual stock point storehouse, if any satisfied increase virtual library storage or the condition reducing virtual library storage, then virtual inventory system performs the operation increasing virtual library storage or reduce virtual library storage immediately.
Specific implementation step is as follows:
(1) timed task response, starts virtual inventory and divides storehouse to adjust check routine;
(2) the order processing waiting list counting of each apps server of real-time collecting;
(3) add up each application server order processing waiting list counting;
(4) perform a dynamic virtual stock point storehouse strategy to realize checking that virtual library storage and reserved stock warehouse water are put down, then according to the inventory level in current reserved storehouse and virtual storehouse, the virtual inventory arranged with a backstage point storehouse condition is mated;
If I meets the condition increasing virtual library storage, then generate increase virtual inventory and divide storehouse plan for adjustment, perform simultaneously and increase virtual inventory point storehouse plan for adjustment and virtual inventory system parameter is set, notify that each application server virtual inventory system parameter changes, complete virtual inventory point storehouse adjustment operation.
If II meets the condition reducing virtual library storage, then generate minimizing plan stock and divide storehouse plan for adjustment, perform simultaneously and reduce virtual inventory point storehouse plan for adjustment and virtual inventory system parameter is set, notify that each application server virtual inventory system parameter changes, complete virtual inventory point storehouse adjustment operation.
If III does not meet virtual inventory point storehouse condition, virtual inventory system then waits for the response of next timed task.
2.2.2, manual virtual inventory divides storehouse
A manual virtual inventory point storehouse refers to by manual intervention virtual inventory point storehouse, the service development strategy of decision maker company and related data, as: Company predicted data, there is promotion plan in company certain period, or new product release, judges whether this time period exists order peak period, work out virtual inventory in advance and divide storehouse to plan, and before this order peak period, automatically implement this plan by system, to guarantee that system is steady, fast processing order business.Manual virtual inventory divides the concrete steps in storehouse as follows:
(1) with reference to the relevant relevant information of selling predicted data and storehouse may be divided to adjust, as: Company predicted data, there is promotion plan in company certain period, or new product release etc.;
(2) manual creation, amendment or cancellation virtual inventory divide storehouse plan for adjustment, and set the execution time of this plan;
(3) whether timed task routine inspection has the virtual inventory point storehouse plan for adjustment needing to perform;
(4) if having current the virtual inventory point storehouse plan for adjustment needing to perform, then system performs this virtual inventory point storehouse plan for adjustment immediately;
(5) virtual inventory system parameter is set;
(6) notify that each application server virtual inventory system parameter changes, complete virtual inventory point storehouse adjustment operation.
2.3, virtual inventory timing routine inspection module: for the state of each module of timing routine inspection virtual inventory system, make virtual inventory system realize dynamic conditioning according to the change of various state to self each module, thus ensure that each module of virtual inventory system remains optimal operational condition.
2.4, virtual inventory is dynamically alloted and recovery:
2.4.1, virtual inventory is dynamically alloted:
It is allot rule according to virtual inventory that virtual inventory is dynamically alloted, check that each virtual varehouse is deposited, if meet adjustment requirement, system Auto-writing allots request slip, then virtual varehouse is deposited into row to redistribute, when singly to carry out adjustment according to virtual inventory adjustment and process: a kind of adjustable strategies of system, first process is adjusted and reduced to inventory data, reduce after process completes and again tune increasing process is carried out to inventory data, guarantee to reduce process and adjust to increase process not in same affairs, to avoid issued transaction conflict.
2.4.2, virtual inventory dynamically reclaims:
It is reclaim rule according to virtual inventory that virtual inventory dynamically reclaims, and check each virtual inventory, merge requirement if met, system Auto-writing merges request slip, then performs virtual inventory reclaimer operation, is deposited by virtual varehouse and be merged into virtual reserved storehouse.
Virtual inventory dynamically allot with recovery process as shown in Figure 7, specific implementation step is as follows:
(1) virtual inventory system backstage checks the reserved storehouse of virtual inventory and the inventory level in virtual storehouse for every 5 minutes;
If (2) meet virtual inventory recovering condition, system then performs virtual inventory recycling, when recycling, in order to ensure that system data process has trackability, system is that this recycling creates merging request slip automatically, and then the inventory data in the virtual storehouse needing merging treatment is incorporated into reserved storehouse, delete this virtual storehouse simultaneously;
If (3) meet virtual inventory to replenish condition, system then performs virtual inventory and to replenish process, when carrying out replenishing process, in order to ensure that system data process has trackability, system allots request slip for this time process establishment that replenishes automatically, and then carries out virtual inventory and to replenish process;
If (4) meeting virtual library storage transfers to reserved stock warehouse condition, system then performs virtual inventory and transfers to reserved stock processing, when carrying out virtual inventory and transferring to reserved stock processing, in order to ensure that system data process has trackability, system is automatically alloted process establishment for this time and is alloted request slip, and then carries out virtual inventory and transfer to reserved stock processing;
If (5) meeting reserved stock storehouse transfers to virtual library storage condition, system then performs reserved stock storehouse and transfers to the process of virtual library storage, when carrying out reserved stock storehouse and transferring to the process of virtual library storage, in order to ensure that system data process has trackability, system is automatically alloted process establishment for this time and is alloted request slip, and then carries out reserved stock storehouse and transfer to the process of virtual library storage.
3, application server cluster
The major function of application server cluster is: load equalizer every platform application server in application server cluster forwards the order request that user creates, to realize the load balancing of application-server layer large-scale concurrent order processing.Application server cluster carries out pre-service to order and order is added order processing transaction queues after receiving the order request of user's establishment, a corresponding virtual storehouse gated counter of order processing transaction queues; In the present embodiment, apps server adopts JBOSS4.3 enterprise version, and server OS adopts REDHATLINUX5.6 enterprise version.
4, indent queue monitoring and dynamic virtual stock divide storehouse module
Indent queue monitoring module is for monitoring the processing procedure of each order, concrete real step is as follows: in order processing application server cluster, we have multiple stage for the application server instance of order processing, in each application example, devise an order processing transaction queues and a virtual storehouse gated counter, when user initiates to create order request, F5 by this request forward to certain application server instance, after application server instance receives and creates order request, first pre-service is carried out to order and this order is added to order processing queue, then judge that this order is buckled reserved warehouse and deposited or buckle virtual varehouse and deposit, if button virtual varehouse is deposited, because each freight house exists multiple virtual storehouse, we need by virtual storehouse gated counter is the virtual storehouse of each Order splitting in the mode of repeating query, order carries out stock according to the virtual storehouse distributed and reduces operation, after reducing stock's success, delete the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if when virtual varehouse is deposited inadequate, more reserved storehouse is selected to reduce stock, if reserved stock is inadequate, then this order creation is unsuccessful, and return the information such as the shortage of stock to user, delete the related data of this order in order processing transaction queues simultaneously, complete whole order processing flow process.
Order processing flow process as shown in Figure 8, performs step as follows in detail:
(1) user initiates to create order request;
(2) order request that user creates to be forwarded to certain application server in application server cluster by application server cluster by F5 (load equalizer), realizes the load balancing of the concurrent order processing of application server floor height; Application server carries out pre-service to order and this order is added order processing transaction queues after receiving and creating order request;
(3) indent queue monitoring module to judge in this order detail whether whether enable virtual inventory scheme containing product in short supply and currently used system, determines that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit.
If i. contain product in short supply in this order detail or do not enable virtual inventory scheme, then reduce reserved warehouse and deposit, proceed to step (4);
If ii. do not contain product in short supply in this order detail and enable virtual inventory scheme, then reduce virtual varehouse and deposit, proceed to step (5);
(4) meet reduce reserved stock's condition, then reduce reserved warehouse and deposit;
Reduce the method for operating of depositing in reserved warehouse as follows:
First the processing transactions of order inquires about and to lock reserved inventory record capable, carries out availability inspection to reserved stock storehouse data; If reserved warehouse is deposited enough, then reduce reserved warehouse and deposit, after reducing stock's success, delete the related data of this order in order processing waiting list simultaneously, then this order creation successful information is returned to user, proceed to step (6).If reserved stock is inadequate, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing waiting list simultaneously, proceeds to step (6).(5) meet and reduce virtual varehouse and deposit condition, then reduce virtual varehouse and deposit;
Reduce the method for operating that virtual varehouse deposits as follows:
Virtual storehouse counter is reduced in the repeating query that order processing program reads application server record, handling procedure selects corresponding virtual storehouse according to register, then first the processing transactions of this order is inquired about and is locked this virtual varehouse and deposit record row, carries out availability inspection to these virtual storehouse data;
If i. virtual varehouse is deposited enough, order carries out stock according to the virtual storehouse distributed and reduces operation, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, proceed to step (6);
If ii. virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, proceed to step (4);
(6) whole order processing flow process is completed.
5, virtual inventory Back Administration Module
Virtual inventory Back Administration Module mainly comprises following function.
5.1, virtual inventory is alloted and retrieval management
Virtual inventory is alloted and is mainly comprised with retrieval management: inquiry, establishment, amendment, deletion that requisition slip/recovery is single and perform stock allotment/reclaimer operation etc.
5.2, virtual inventory divides storehouse planning management
Virtual inventory point storehouse planning management mainly comprises inquiry, establishment, amendment, the deletion of virtual inventory point storehouse plan and performs the operations such as virtual inventory point storehouse plan.
5.3, special go out warehouse-in process
Special go out warehouse-in process mainly finger non-order processing mode reduce the process of stock, this function is mainly used in as dump warehouse-in and outbound, and special stock moves, and product rejection, the process such as to deliver from godown especially.
5.4, virtual inventory initialization
Virtual inventory initialization: realize, the actual store data of RDC according to virtual inventory allocation strategy, RDC stock being reassigned to reserved storehouse and virtual storehouse.
6, virtual inventory monitoring module
Virtual inventory monitoring module is for monitoring the content of the following aspects:
6.1, the current disposition of each application server instance pending order processing queue is monitored;
6.2, the Inventory Performance in each virtual storehouse of current system is inquired about;
6.3, virtual inventory success ratio is reduced in order processing;
6.4, virtual inventory is alloted and the frequent degree reclaimed;
6.5, abnormal log inquiry and analysis;
Three, virtual inventory distributes and operating strategy
Virtual inventory distribute and operating strategy as follows
1, various parameter describes
represent average inventory every day;
S
rDC: represent current freight house stock total quantity;
RDC: represent a certain freight house;
be expressed as the number of days sold of average inventory every day.Be generally now 22 days.
T
q: represent virtual inventory one-level safety line Q
1can the number of days of supports sales.Generally be set to 2 days now.λ
r(λ
r> 1): when being expressed as initialization every day, the ratio in virtual reservation stock and single virtual stock storehouse.Usual λ
rcan 1.5 be set to.
λ
q: represent virtual inventory one-level safety line Q
1with average inventory every day
ratio.
be generally 10%.
N: represent virtual inventory reservoir area quantity.
R%: represent that virtual inventory library initialization accounts for routine R%:R% and n, λ
rrelevant, must meet
Q
1: represent virtual inventory one-level safety line, can be understood as minimum warning line.
work as T
qwhen=2, represent using the daily sales of 2 days as minimum safe line.
Q
2: represent virtual inventory secondary safety line.
work as T
qwhen=2, represent that the maintenance daily sales of 4 days is as virtual inventory secondary safety line.
2, virtual inventory divides the setting of storehouse quantity n
According to inventory level and the business development planning of freight house, following derivation is done to the setting of virtual inventory point storehouse quantity n: if increase constraint condition, when actual store is average inventory, each virtual inventory all meets the requirement of virtual inventory one-level safety line.
Namely when
Time,
So
Obtain:
According to actual conditions, n maximal value is 8.
Generally, the span of n is 0,2,3,4,5,6,7,8.
As n=0, represent regardless of virtual inventory.
3, reserved storehouse and virtual varehouse deposit allocation strategy
Be re-assigned in n+1 (n>=0) individual virtual inventory according to the actual store of RDC, the setting of n+1 virtual library is followed successively by S
0, S
1, S
2s
n.S
0for virtual reserved stock, for the treatment of emergency event, S
1, S
2s
nfor virtual service process stock.
Inventory allocation principle is as follows:
A) actual store S all for current RDC
rDCallocate;
B) virtual reserved stock S
0with the summation of virtual service process stock
distribute by a certain percentage, be distributed equally in virtual service process stock.
If i. R% (0<R<100) accounting that is virtual inventory, then allocation proportion is:
Ii. owing to dividing equally in virtual service process stock, then
Iii. time due to initialization, virtual reserved stock S
0s can not be less than
iif the ratio of virtual reserved stock and arbitrary virtual service process stock is λ
r, then can be expressed as:
S
0> λ
rs
i(wherein λ
r> 1)
Can obtain thus:
C) reclaim rule according to virtual inventory to check, merge rule if met, virtual service process stock is merged into virtual reserved stock.
Even S
i=0 (n>=1), S
0=S
rDC.
4, virtual inventory dynamic adaptation process
All virtual inventory adjustment (every day initialization process except), all carry out according to [virtual inventory adjusts singly].[virtual inventory adjustment is single] is similar to the stock allotment list of RDC.
The strategy of stock's adjustment: (performing in order)
1) virtual inventory reclaims rule:
If a) the virtual reserved stock S of a certain product
0be less than virtual library one-level safety line Q
1, i.e. S
0< Q
1, all virtual inventories of this product are incorporated to S
0.// merge and reclaim.
If b) current each virtual service process stock of a certain product is not (containing S
0) summation be less than virtual inventory one-level safety line Q
1, namely
all virtual inventories of this product are incorporated to S
0.// merge and reclaim.
2) virtual inventory allots rule:
If a) current each virtual inventory of a certain product is not (containing S
0) summation be less than virtual inventory secondary safety line Q
2, and S
0currency be greater than 3 times of virtual inventory secondary safety line Q
2, to each virtual inventory replenish to
namely when
And S
0> 3Q
2if,
Then by S
0to S
ireplenish
// replenish.
If b) current each virtual inventory of a certain product is not (containing S
0) summation be greater than virtual inventory secondary safety line Q
2, and the ratio of maximum stock's number and minimum inventories number exceedes a certain warning value, to current each virtual inventory (not containing S
0) carry out dividing equally allotment, it is as follows to allot principle: // inernal transference.
If i.
then S
0from virtual reservoir area S
iresource recovery, alloting yield is
If ii.
then S
0to virtual reservoir area S
iresources allocation, alloting sendout is
Usually, virtual inventory one-level safety line Q
1relevant to average inventory every day.If
for per day stock,
for the number of days sold of per day stock, namely the sold stock of every day is
Can establish thus
t
qfor when stock be Q
1time can the number of days of supports sales, λ
qfor virtual inventory one-level safety line Q
1with the accounting of average inventory every day.
Usually, virtual inventory secondary safety line Q
2with virtual inventory one-level safety line Q
1for fixed proportion, this fixed proportion can be set to 2, namely
5, the relevant restriction of virtual inventory process
When single stock is less than 50, do not need a point virtual storehouse; If virtual inventory is after 0, before day knot, perform Replenishment Policy never again; (if starting except the special flow process that replenishes).
Four, virtual inventory configuration parameter
VRDC0 is virtual reserved storehouse; VRDC1 ... VRDCn is each virtual storehouse.
Five, whole implementation effect compares with traditional order processing system
1, traditional order processing system order processing scene
Fig. 1 is general order processing scene, and be carved with the order that 3 products are detailed identical when supposing a certain, the time of a system process order is 10MS (millisecond); In order to ensure db transaction uniformity for the treatment of, stock's exclusive lock mechanism (row lock) must be adopted when inventory operations is reduced in the competition of multiple orders, owing to have employed the operation of stock's exclusive lock, order transaction process just can only serial processing, and the time of obvious system process 3 orders just equals 30MS (millisecond).
2, the order processing scene of virtual inventory system
After adopting virtual inventory solution of the present invention, whole implementation effect compared with traditional order processing system as shown in Figure 5, same hypothesis is carved with 3 products detailed identical order time a certain, the time of a form ordering system process of the present invention order is 10MS (millisecond); System specifies virtual storehouse to reduce stock for often opening order at random, achieves the ability of parallel processing order.Therefore, although process the time of 3 orders and be greater than 10MS (millisecond), close to 10MS (millisecond); Therefore, compared with the speed 30MS (millisecond) processing order with traditional order processing system (see Fig. 1) under the same conditions, native system order processing speed promotes 2 to 3 times.The virtual storehouse of database layer is got more in theory, and the efficiency of system process order is higher, but system specifically divides how many virtual storehouses proper, needs to carry out choosing comprehensively according to the plan of operation of application system and current inventory level.
This order processing system is verified in the stable operation of the world business back-up system of unlimited pole (China) company limited, significantly can promote the efficiency of high concurrent order competition stock processing, solve the performance bottleneck of high concurrent order competition stock processing.
Embodiments of the present invention are not limited thereto, and according to foregoing of the present invention, according to ordinary technical knowledge and the customary means of this area, the present invention can also make the amendment of other various ways, replacement or change, all drops within rights protection scope of the present invention.
Claims (8)
1. the order processing system of one kind high concurrent competition stock, it is characterized in that: comprise virtual inventory backstage parameter setting module, database layer storing process functional module, application server cluster, indent queue monitoring and dynamic virtual stock point storehouse module, virtual inventory Back Administration Module and virtual inventory monitoring module, wherein
Described virtual inventory backstage parameter setting module for arranging the correlation parameter of virtual inventory, the correlation parameter set by the parameter setting module of described virtual inventory backstage be that safety inventory is arranged, the relative parameters setting of the relative parameters setting of virtual inventory point storehouse strategy, virtual inventory operating strategy, task scheduling are stopped using with enable, scheduling time inter arranges;
Described database layer storing process functional module for realizing comprising virtual inventory initialization, virtual inventory point storehouse, virtual inventory timing routine inspection, virtual inventory dynamically allot and the storing process reclaimed;
The order request that described application server cluster creates for receiving user, then carries out pre-service to order and order is added order processing transaction queues;
Described indent queue monitoring and dynamic virtual stock point storehouse module are for monitoring the Inventory Performance of the current disposition of each order processing transaction queues and current virtual storehouse;
Described virtual inventory Back Administration Module is used for realizing virtual inventory back-stage management, comprises virtual inventory initialization, the process of special outbound warehouse-in, virtual inventory replenish process, virtual inventory recycles, virtual inventory routine inspection and virtual inventory point storehouse planning management;
Described virtual inventory monitoring module for monitoring the current disposition of each order processing transaction queues, virtual inventory success ratio is reduced in the inquiry Inventory Performance in each virtual storehouse of current system, order processing, virtual inventory is alloted and inquire about and analysis with the frequent degree reclaimed and abnormal log;
Virtual inventory backstage parameter setting module arranges virtual inventory correlation parameter, and virtual inventory Back Administration Module carries out initialization to virtual inventory, completes virtual inventory point storehouse and virtual storehouse, reserves storehouse inventory allocation, load equalizer in application server cluster receives after user creates order request, order request is forwarded to certain application server in application server cluster, application server carries out pre-service to order, this order is added order processing transaction queues after receiving and creating order request, if indent queue monitoring and dynamic virtual stock point storehouse module judge to need to adjust the quantity in virtual storehouse according to monitored results, then the associated storage process implementation of calling data storehouse layer storing process functional module is to the adjustment of virtual storehouse quantity, if virtual storehouse does not need adjustment, then continue to carry out order transaction process to the order in indent queue, whether whether order processing affairs enable virtual inventory scheme containing product in short supply and currently used system according in order detail, determine that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit, if virtual varehouse is deposited enough, selection is reduced virtual varehouse and is deposited, be the virtual storehouse of each Order splitting by application layer virtual storehouse gated counter in repeating query mode, order transaction process is carried out stock according to the virtual storehouse distributed and is reduced operation, after reducing stock's success, delete the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, if reserved stock is enough, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, if reserved stock is inadequate, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing transaction queues simultaneously.
2. the order processing system of the concurrent competition stock of height according to claim 1, it is characterized in that: described database layer storing process functional module comprises virtual inventory initialization module, virtual inventory point storehouse module, virtual inventory timing routine inspection module and virtual inventory and dynamically allots and recycling module, wherein
When described virtual inventory initialization module is enabled for system, perform virtual inventory in advance and divide storehouse to operate;
Described virtual inventory point storehouse module divides storehouse for dynamic virtual stock point storehouse and manual virtual inventory, virtual inventory point storehouse realizes original freight house to split into a reserved storehouse and several virtual storehouse, again by virtual inventory system according to the actual store data of backstage parameter and original freight house according to inventory allocation strategy, by the inventory allocation of original freight house to reserved storehouse and virtual storehouse;
Described virtual inventory timing routine inspection module is used for the state of each module of timing routine inspection virtual inventory system, makes virtual inventory system realize dynamic conditioning according to the change of various state to self each module;
Described virtual inventory is dynamically alloted and is comprised virtual inventory with recycling module and dynamically allot module and the dynamic recycling module of virtual inventory, virtual inventory is dynamically alloted module and is alloted rule according to virtual inventory, check that each virtual varehouse is deposited, if meet adjustment requirement, system Auto-writing allots request slip, then virtual varehouse is deposited into row to redistribute, when singly carrying out adjustment process according to virtual inventory adjustment, first process is adjusted and reduced to inventory data, reduce after process completes and again tune increasing process is carried out to inventory data;
The dynamic recycling module of virtual inventory reclaims rule according to virtual inventory, checks each virtual inventory, merges requirement if met, and system Auto-writing merges request slip, then performs virtual inventory reclaimer operation, is deposited by virtual varehouse and be merged into virtual reserved storehouse.
3. the order processing system of the concurrent competition stock of the height described in 2 is wanted according to right, it is characterized in that: a described dynamic virtual stock point storehouse refers to without the need to manual intervention, by the length of system by monitoring application layer each application server order processing transaction queues, carry out judgement current system in conjunction with backstage configuration parameter and be in peak traffic phase or low peak period, then automatically produce virtual inventory point storehouse adjust increasing or adjust and reduce plan, and perform this plan.
4. the order processing system of the concurrent competition stock of height according to claim 1, it is characterized in that: described virtual inventory Back Administration Module comprises virtual inventory and allots with retrieval management module, virtual inventory point storehouse planning management module, specially goes out to put in storage processing module and virtual inventory initialization module, wherein
Described virtual inventory to be alloted with retrieval management module for single inquiry, establishment, amendment, the deletion of requisition slip/recovery and is performed stock allotment/reclaimer operation;
Described virtual inventory point storehouse planning management module for the plan of virtual inventory point storehouse inquiry, establishment, amendment, deletion and perform virtual inventory and divide storehouse planning management operation;
Describedly specially go out to put in storage processing module reduces stock process in non-order processing mode, namely non-order processing mode refers to that dump warehouse-in and outbound, special stock move, product rejection, deliver from godown and process especially;
Original freight house stock according to inventory allocation strategy, is reassigned to reserved storehouse and virtual storehouse the actual store data of original freight house by described virtual inventory initialization module realization.
5. a disposal route for the order processing system of high concurrent competition stock described in claim 1, is characterized in that comprising the following steps:
(1) user initiates to create order request;
(2) order request that user creates to be forwarded to certain application server in application server cluster by application server cluster by load equalizer, realizes the load balancing of the concurrent order processing of application server floor height; Application server carries out pre-service to order and this order is added order processing transaction queues after receiving and creating order request;
(3) indent queue monitoring and a dynamic virtual stock point storehouse module judge whether whether enable virtual inventory scheme containing product in short supply and currently used system in this order detail, determine that current order process is reduced warehouse, reserved storehouse and deposited or reduce virtual varehouse and deposit
If i. contain product in short supply in this order detail or do not enable virtual inventory scheme, then reduce reserved warehouse and deposit, proceed to step (4);
If ii. do not contain product in short supply in this order detail and enable virtual inventory scheme, then reduce virtual varehouse and deposit, proceed to step (5);
(4) meet reduce reserved stock's condition, then reduce reserved warehouse and deposit; First the processing transactions of order inquires about and to lock reserved inventory record capable, carries out availability inspection to reserved stock storehouse data;
If the reserved warehouse of I is deposited enough, then reduce reserved warehouse and deposit, after reducing stock's success, delete the related data of this order in order processing waiting list simultaneously, then this order creation successful information is returned to user, proceed to step (6);
If reserved stock is inadequate for II, this order creation is unsuccessful, and returns shortage of stock information to user, deletes the related data of this order in order processing waiting list simultaneously, proceeds to step (6);
(5) meet and reduce virtual varehouse and deposit condition, then reduce virtual varehouse and deposit; Virtual storehouse counter is reduced in the repeating query that order processing program reads application server record, handling procedure selects corresponding virtual storehouse according to register, then first the processing transactions of this order is inquired about and is locked this virtual varehouse and deposit record row, carries out availability inspection to these virtual storehouse data;
If i. virtual varehouse is deposited enough, order carries out stock according to the virtual storehouse distributed and reduces operation, after reducing stock's success, deletes the related data of this order in order processing transaction queues simultaneously, then this order creation successful information is returned to user, proceed to step (6);
If ii. virtual varehouse is deposited not, select to reduce reserved warehouse and deposit, proceed to step (4);
(6) whole order processing flow process is completed.
6. the disposal route of the order processing system of the concurrent competition stock of height according to claim 5, is characterized in that: following allocation step is drawn together in described reserved storehouse and virtual varehouse bag deposit:
(1), according to inventory level and the business development planning of freight house, following derivation is done to the setting of virtual inventory point storehouse quantity n: if increase constraint condition, when actual store is average inventory, each virtual inventory all meets the requirement of virtual inventory one-level safety line;
Namely when
Time,
So
Obtain:
(2) be re-assigned in n+1 (n>=0) individual virtual inventory according to the actual store of RDC, the setting of n+1 virtual library is followed successively by S
0, S
1, S
2s
n; S
0for virtual reserved stock, for the treatment of emergency event, S
1, S
2s
nfor virtual service process stock;
A) actual store S all for current RDC
rDCallocate;
B) virtual reserved stock S
0with the summation of virtual service process stock
distribute by a certain percentage, be distributed equally in virtual service process stock;
If i. R% (0<R<100) accounting that is virtual inventory, then allocation proportion is:
Ii. owing to dividing equally in virtual service process stock, then
Iii. time due to initialization, virtual reserved stock S
0s can not be less than
iif the ratio of virtual reserved stock and arbitrary virtual service process stock is λ
r, then can be expressed as:
S
0> λ
rs
i(wherein λ
r> 1)
Can obtain thus:
C) reclaim rule according to virtual inventory to check, merge rule if met, virtual service process stock is merged into virtual reserved stock;
Even S
i=0 (n>=1), S
0=S
rDC;
represent average inventory every day;
S
rDC: represent current freight house stock total quantity;
RDC: represent a certain freight house;
be expressed as the number of days sold of average inventory every day;
T
q: represent virtual inventory one-level safety line Q
1can the number of days of supports sales;
λ
r(λ
r> 1): when being expressed as initialization every day, the ratio in virtual reservation stock and single virtual stock storehouse;
λ
q: represent virtual inventory one-level safety line Q
1with average inventory every day
ratio,
N: represent virtual inventory reservoir area quantity;
R%: represent that virtual inventory library initialization accounts for routine R%:R% and n, λ
rrelevant, must meet
Q
1: represent virtual inventory one-level safety line,
Q
2: represent virtual inventory secondary safety line,
7. the disposal route of the order processing system of the concurrent competition stock of height according to claim 6, is characterized in that: described virtual inventory reclaims and comprises the following steps:
If a) the virtual reserved stock S of a certain product
0be less than virtual library one-level safety line Q
1, i.e. S
0< Q
1, all virtual inventories of this product are incorporated to S
0;
If b) summation of current each virtual service process stock of a certain product is less than virtual inventory one-level safety line Q
1, current each virtual service process stock is not containing S
0, namely
all virtual inventories of this product are incorporated to S
0.
8. the disposal route of the order processing system of the concurrent competition stock of height according to claim 7, is characterized in that: described virtual inventory is alloted and comprised the following steps:
If a) summation of current each virtual inventory of a certain product is less than virtual inventory secondary safety line Q
2, current each virtual inventory is not containing S
0, and S
0currency be greater than 3 times of virtual inventory secondary safety line Q
2, to each virtual inventory replenish to
namely when
and S
0> 3Q
2if,
then by S
0to S
ireplenish
If b) summation of current each virtual inventory of a certain product is greater than virtual inventory secondary safety line Q
2, current each virtual inventory is not containing S
0, and the ratio of maximum stock's number and minimum inventories number exceedes a certain warning value, to current
Each virtual inventory carries out dividing equally allotment:
If i.
then S
0from virtual reservoir area S
iresource recovery, alloting yield is
If ii.
then S
0to virtual reservoir area S
iresources allocation, alloting sendout is
If
for per day stock,
for the number of days sold of per day stock, namely the sold stock of every day is
Can establish thus
t
qfor when stock be Q
1time can the number of days of supports sales, λ
qfor virtual inventory one-level safety line Q
1with the accounting of average inventory every day;
Virtual inventory secondary safety line Q
2with virtual inventory one-level safety line Q
1for fixed proportion, this fixed proportion is set to 2, namely
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310301455.2A CN103426072B (en) | 2013-07-16 | 2013-07-16 | The order processing system of a kind of high concurrent competition stock and disposal route thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310301455.2A CN103426072B (en) | 2013-07-16 | 2013-07-16 | The order processing system of a kind of high concurrent competition stock and disposal route thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103426072A CN103426072A (en) | 2013-12-04 |
CN103426072B true CN103426072B (en) | 2016-02-17 |
Family
ID=49650774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310301455.2A Active CN103426072B (en) | 2013-07-16 | 2013-07-16 | The order processing system of a kind of high concurrent competition stock and disposal route thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103426072B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108133399A (en) * | 2016-11-30 | 2018-06-08 | 北京京东尚科信息技术有限公司 | The second of high concurrent fast-response kills the method, apparatus and system that inventory precisely reduces |
Families Citing this family (59)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105096065B (en) * | 2014-04-16 | 2019-08-20 | 阿里巴巴集团控股有限公司 | A kind of inventory reduces method and apparatus |
CN105096015B (en) * | 2014-04-23 | 2021-01-08 | 菜鸟智能物流控股有限公司 | Commodity object information processing method and system |
CN105447736B (en) * | 2014-08-19 | 2022-02-11 | 菜鸟智能物流控股有限公司 | Transaction processing and logistics solution method and device in commodity transaction |
CN105590178A (en) * | 2014-10-21 | 2016-05-18 | 阿里巴巴集团控股有限公司 | Resource processing method and resource processing device |
CN104408561A (en) * | 2014-11-25 | 2015-03-11 | 同程网络科技股份有限公司 | Job-station based order distributing method |
CN105719108A (en) * | 2014-12-04 | 2016-06-29 | 金蝶软件(中国)有限公司 | Stock reserving method and device |
CN104408605A (en) * | 2014-12-15 | 2015-03-11 | 北京京东尚科信息技术有限公司 | Order splitting method and system |
CN104599088A (en) * | 2015-02-13 | 2015-05-06 | 北京嘀嘀无限科技发展有限公司 | Dispatching method and dispatching system based on orders |
CN106203894A (en) * | 2015-04-30 | 2016-12-07 | 阿里巴巴集团控股有限公司 | The processing method of the inventory information of merchandise items and system |
CN106296064A (en) * | 2015-06-25 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The method and system that data process |
CN106327276A (en) * | 2015-06-25 | 2017-01-11 | 阿里巴巴集团控股有限公司 | Form processing method and device |
CN105046466A (en) * | 2015-06-29 | 2015-11-11 | 上海瀚之友信息技术服务有限公司 | Inventory data concurrency control system and inventory data concurrency control method |
CN106709774B (en) * | 2015-11-12 | 2020-12-01 | 菜鸟智能物流控股有限公司 | Commodity object transaction information processing method and device |
CN105468690B (en) * | 2015-11-17 | 2018-11-30 | 中国建设银行股份有限公司 | A kind of inventory data treating method and apparatus |
CN106779897B (en) | 2015-11-23 | 2020-10-27 | 菜鸟智能物流控股有限公司 | Method and device for processing transaction information of combined commodity object |
CN107291769A (en) * | 2016-04-11 | 2017-10-24 | 北京京东尚科信息技术有限公司 | The method and apparatus for handling concurrent order |
CN107341624B (en) * | 2016-04-29 | 2021-03-02 | 南京苏宁软件技术有限公司 | Service data processing method and device |
CN105931003B (en) * | 2016-06-03 | 2020-06-30 | 北京京东尚科信息技术有限公司 | Order processing method, system and device |
CN107527171A (en) * | 2016-06-22 | 2017-12-29 | 阿里巴巴集团控股有限公司 | Realize system, method and the dispatch server and processing server of order management and control |
CN107767092B (en) * | 2016-08-23 | 2021-08-24 | 菜鸟智能物流控股有限公司 | Processing method, display method and device of commodity object information |
CN106372994A (en) * | 2016-08-31 | 2017-02-01 | 北京炎黄新星网络科技有限公司 | Method and system for processing orders |
CN108122145A (en) * | 2016-11-28 | 2018-06-05 | 阿里巴巴集团控股有限公司 | A kind of production method of cloud computing commodity and device, electronic equipment |
CN108154322B (en) * | 2016-12-02 | 2021-11-19 | 苏宁易购集团股份有限公司 | Inventory real-time management method and inventory system |
CN106709039A (en) * | 2016-12-29 | 2017-05-24 | 武汉达梦数据库有限公司 | Multi-user high-concurrent query method in high-concurrent operation environment |
CN108268474A (en) * | 2016-12-30 | 2018-07-10 | 苏宁云商集团股份有限公司 | A kind of method and device of stock control |
CN108460507A (en) * | 2017-02-22 | 2018-08-28 | 阿里巴巴集团控股有限公司 | order processing method, transaction system and server |
CN107330625A (en) * | 2017-07-04 | 2017-11-07 | 郑州云海信息技术有限公司 | A kind of method and apparatus and computer-readable recording medium for managing order |
CN107392801B (en) * | 2017-07-21 | 2021-11-23 | 上海携程商务有限公司 | Method and device for controlling order disorder, storage medium and electronic equipment |
CN110019330B (en) * | 2017-09-07 | 2021-07-06 | 北京京东尚科信息技术有限公司 | Information output method and device |
CN108229875A (en) * | 2017-11-27 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of Service Parts method under server module BOM frameworks |
CN108182617B (en) * | 2017-11-29 | 2021-06-25 | 商派软件有限公司 | Small-size high-concurrency inventory-reduction order placing method |
CN109902847B (en) * | 2017-12-11 | 2022-04-12 | 北京京东尚科信息技术有限公司 | Method and device for predicting amount of orders in branch warehouse |
CN109961247B (en) * | 2017-12-25 | 2021-11-30 | 北京京东尚科信息技术有限公司 | Method and device for generating article storage information |
CN108960955A (en) * | 2018-03-08 | 2018-12-07 | 成都美美臣科技有限公司 | A kind of virtual inventory automatic replenishing method and device based on shopping at network seller |
CN110276469B (en) * | 2018-03-15 | 2023-10-03 | 阿里巴巴(中国)网络技术有限公司 | Order placing control method, order placing control device and computer system |
CN110298717A (en) * | 2018-03-23 | 2019-10-01 | 优信数享(北京)信息技术有限公司 | A kind of multisystem Centralizing inspection method and system |
CN109241053B (en) * | 2018-07-27 | 2022-08-23 | 创新先进技术有限公司 | Identification code allocation method, device and server |
CN109191233B (en) * | 2018-07-31 | 2022-09-02 | 上海幻电信息科技有限公司 | Second order-killing request processing method and device and storage medium |
CN110858332B (en) * | 2018-08-22 | 2023-09-26 | 北京京东振世信息技术有限公司 | Order production method and device |
CN108876262B (en) * | 2018-08-24 | 2022-09-23 | 联想(北京)有限公司 | Product distribution method, electronic equipment and computer storage medium |
CN109064105B (en) * | 2018-09-28 | 2021-11-30 | 创新先进技术有限公司 | Resource transfer request processing method and device and electronic equipment |
CN109308653B (en) * | 2018-10-16 | 2022-04-22 | 牡丹国际商品交易中心有限公司 | Method, terminal and storage medium for avoiding congestion of client access server |
CN109544072A (en) * | 2018-11-21 | 2019-03-29 | 北京京东尚科信息技术有限公司 | Method, system, equipment and medium are reduced in hot spot inventory localization |
CN109697591A (en) * | 2018-12-17 | 2019-04-30 | 北京三快在线科技有限公司 | Method for inventory control, device, storage medium and server |
CN110120150B (en) * | 2019-04-16 | 2021-05-11 | 东南大学 | Configuration method of obstacle removing mechanical equipment of expressway network |
CN110310060B (en) * | 2019-05-27 | 2023-10-24 | 创新先进技术有限公司 | Inventory management method and device based on fragments |
CN110902246A (en) * | 2019-10-17 | 2020-03-24 | 广州达宝文机电设备有限公司 | Virtual stereo storage system and method |
CN111401752A (en) * | 2020-03-18 | 2020-07-10 | 北京泓慧国际能源技术发展有限公司 | Flywheel energy storage frequency modulation sharing processing method, device and system and electronic equipment |
CN111461834B (en) * | 2020-03-31 | 2023-06-20 | 时时同云科技(成都)有限责任公司 | Order processing method and device and order display method and device |
CN113538081B (en) * | 2020-04-21 | 2024-03-22 | 中移(上海)信息通信科技有限公司 | Mall order system and processing method for realizing resource self-adaptive scheduling |
CN111915259A (en) * | 2020-08-07 | 2020-11-10 | 上海百胜软件股份有限公司 | Inventory quantity management method and system for e-commerce |
CN112003920B (en) * | 2020-08-18 | 2021-05-25 | 天津四立科技有限责任公司 | Information sharing system |
CN113762865A (en) * | 2021-01-06 | 2021-12-07 | 北京京东乾石科技有限公司 | Inventory information processing method and device |
CN113095769A (en) * | 2021-05-08 | 2021-07-09 | 上海微盟企业发展有限公司 | Service inventory management method, device, equipment and readable storage medium |
CN113361996A (en) * | 2021-06-04 | 2021-09-07 | 北京京东振世信息技术有限公司 | Method and device for processing order data of group products |
CN113554400A (en) * | 2021-08-03 | 2021-10-26 | 杭州拼便宜网络科技有限公司 | Inventory data updating method, device, equipment and storage medium |
CN113362066B (en) * | 2021-08-09 | 2021-10-29 | 环球数科集团有限公司 | Order account book system based on cross-channel data linkage updating |
CN113869827A (en) * | 2021-10-08 | 2021-12-31 | 必要鸿源(北京)科技有限公司 | Inventory management method, device, equipment and storage medium |
CN116503000A (en) * | 2023-06-27 | 2023-07-28 | 广州晨安网络科技有限公司 | Manufacturing order inventory ERP management method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122975A (en) * | 2006-08-07 | 2008-02-13 | 侯星桥 | Inventory management method |
CN101216908A (en) * | 2008-01-16 | 2008-07-09 | 乐清市维信应用软件开发有限公司 | An ERP contract review management based on process management |
CN101276439A (en) * | 2007-03-30 | 2008-10-01 | 上海宝信软件股份有限公司 | Bulk material resource centralized overall planning balance optimizing emulation method and system |
CN101493911A (en) * | 2009-01-09 | 2009-07-29 | 上海海事大学 | Virtual inventory management system for harbor equipment manufacturing enterprise |
CN101996351A (en) * | 2009-08-11 | 2011-03-30 | 深圳市鹏海运电子数据交换有限公司 | System and method for automatically generating storage material inventory electronic ledger |
CN102043998A (en) * | 2009-10-15 | 2011-05-04 | 上海虹迪物流配送有限公司 | Inventory data control method |
CN103049840A (en) * | 2013-01-02 | 2013-04-17 | 长春宝钢钢材贸易有限公司 | Three-dimensional virtual warehouse management system and implementation method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070055584A1 (en) * | 2005-08-08 | 2007-03-08 | Hans Chelniak | Systems and methods for tracking goods |
-
2013
- 2013-07-16 CN CN201310301455.2A patent/CN103426072B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122975A (en) * | 2006-08-07 | 2008-02-13 | 侯星桥 | Inventory management method |
CN101276439A (en) * | 2007-03-30 | 2008-10-01 | 上海宝信软件股份有限公司 | Bulk material resource centralized overall planning balance optimizing emulation method and system |
CN101216908A (en) * | 2008-01-16 | 2008-07-09 | 乐清市维信应用软件开发有限公司 | An ERP contract review management based on process management |
CN101493911A (en) * | 2009-01-09 | 2009-07-29 | 上海海事大学 | Virtual inventory management system for harbor equipment manufacturing enterprise |
CN101996351A (en) * | 2009-08-11 | 2011-03-30 | 深圳市鹏海运电子数据交换有限公司 | System and method for automatically generating storage material inventory electronic ledger |
CN102043998A (en) * | 2009-10-15 | 2011-05-04 | 上海虹迪物流配送有限公司 | Inventory data control method |
CN103049840A (en) * | 2013-01-02 | 2013-04-17 | 长春宝钢钢材贸易有限公司 | Three-dimensional virtual warehouse management system and implementation method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108133399A (en) * | 2016-11-30 | 2018-06-08 | 北京京东尚科信息技术有限公司 | The second of high concurrent fast-response kills the method, apparatus and system that inventory precisely reduces |
CN108133399B (en) * | 2016-11-30 | 2021-01-26 | 北京京东尚科信息技术有限公司 | High-concurrency quick-response method, device and system for accurately deducting second-killing inventory |
Also Published As
Publication number | Publication date |
---|---|
CN103426072A (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103426072B (en) | The order processing system of a kind of high concurrent competition stock and disposal route thereof | |
CN103036946B (en) | A kind of method and system processing file backup task for cloud platform | |
CN101458634B (en) | Load equilibration scheduling method and device | |
CN103838621B (en) | Method and system for scheduling routine work and scheduling nodes | |
CN102197395B (en) | Storage-side storage request management | |
CN104301404B (en) | A kind of method and device of the adjustment operation system resource based on virtual machine | |
CN107066319A (en) | A kind of multidimensional towards heterogeneous resource dispatches system | |
CN104040486A (en) | Decoupling PAAS resources, jobs, and scheduling | |
CN106201722A (en) | The load regulation method of server and system | |
CN101441580A (en) | Distributed paralleling calculation platform system and calculation task allocating method thereof | |
CN101373474A (en) | Magnanimity data real time processing structure and real time processing platform following with necessaries for the same | |
CN105892996A (en) | Assembly line work method and apparatus for batch data processing | |
CN104081353A (en) | Dynamic load balancing in a scalable environment | |
CN103634330A (en) | Automatic resource distribution method in cloud calculation environment | |
CN103080903A (en) | Scheduler, multi-core processor system, and scheduling method | |
CN109902975B (en) | Scheduling method, system, apparatus and computer readable storage medium | |
CN109408229A (en) | A kind of dispatching method and device | |
CN107864211B (en) | Cluster resource dispatching method and system | |
Zhu et al. | SLA based dynamic virtualized resources provisioning for shared cloud data centers | |
CN106095531B (en) | A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform | |
CN104023042B (en) | Cloud platform resource scheduling method | |
CN102508872A (en) | Data processing method and system of online processing system based on memory | |
CN101963969B (en) | Method and database server for realizing load balancing in Oracle RAC (Real Application Cluster) system | |
CN108900626A (en) | Date storage method, apparatus and system under a kind of cloud environment | |
CN106529917A (en) | Workflow processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |