CN106504076A - distributed order processing method, device and order processing system - Google Patents
distributed order processing method, device and order processing system Download PDFInfo
- Publication number
- CN106504076A CN106504076A CN201611043308.XA CN201611043308A CN106504076A CN 106504076 A CN106504076 A CN 106504076A CN 201611043308 A CN201611043308 A CN 201611043308A CN 106504076 A CN106504076 A CN 106504076A
- Authority
- CN
- China
- Prior art keywords
- server
- sequence information
- sent
- servers
- information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0208—Trade or exchange of goods or services in exchange for incentives or rewards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0222—During e-commerce, i.e. online transactions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0607—Regulated
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A kind of distributed order processing method provided in an embodiment of the present invention, device and order processing system, belong to field of computer technology.The method includes:The first server obtains sequence information;The sequence information is sent to any one of second server in multiple second servers by the first server, so that the second server processes the sequence information.The method obtains the sequence information that client sends by first server, any one second server sequence information being sent in multiple second servers, so that the quantity of the sequence information handled by second server is located in the treatable scope of second server institute, and then cause order dealing process more friendly, quick and safety.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of distributed order processing method, device and orders
Uniprocesser system.
Background technology
Ecommerce in recent years flourishes in China, and people increasingly get used to shopping online.To this each businessman's difference
Online trade platform is proposed, however as the increase of order transaction amount, server resource is progressively critical, order processing response speed
Degree is increasingly slower, even more during various advertising campaigns, abnormal numerous, so dramatically have impact on transaction sales volume and while
Also band gives client the misgivings to system safety problem.But in order to preferably provide service, businessman has to order volume
Increase step up server resource configuration, when single server reaches bottleneck, most businessmans can be then considered using load
Weighing apparatus, tackles the situation of high concurrent.But, it is in refer to that the simple mode by increase server configuration not only makes server resource cost
Number increases, and faces resource bottleneck at last, and the load balancing scheme of website needs the place for facing data safety with concurrently locking
Reason problem.And for complicated design or imprudence design surplus, not only technical threshold is higher, maintenance cost is high, and
Operation planning to platform is all produced side effect by the development and maintenance cycle.
Content of the invention
The present invention provides a kind of distributed order processing method, device and order processing system, it is intended to improve the problems referred to above.
In a first aspect, a kind of distributed order processing method that the present invention is provided, is applied to order processing system, the system
System includes that first server and multiple second servers, methods described include:The first server obtains sequence information;Described
The sequence information is sent to any one of second server in multiple second servers by first server, with
The second server is made to process the sequence information.
Second aspect, a kind of distributed order processing device that the present invention is provided, described device are applied to order processing system
System, the system include that first server and multiple second servers, described device include:Data acquisition module, for first
Server obtains sequence information;The sequence information is sent to multiple institutes for the first server by data processing module
Any one of second server in second server is stated, so that the second server processes the sequence information.
The third aspect, a kind of order processing system that the present invention is provided are including first server and second server, described
First server is coupled with the second server, and the first server is used for obtaining sequence information, the first server
It is additionally operable to for the sequence information to be sent to any one of second server in multiple second servers, described
Two servers are used for processing the sequence information.
A kind of distributed order processing method, device and order processing system that the invention described above is provided, the method pass through
First server obtains the sequence information that client sends, and the sequence information is sent to any in multiple second servers
One second server, so that the quantity of the sequence information handled by second server can be located positioned at the second server
In the range of reason, and then cause order dealing process more friendly, quick and safety.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this
A little accompanying drawings obtain other related accompanying drawings.
A kind of structured flowchart of order processing system that Fig. 1 is provided for first embodiment of the invention;
The structured flowchart of the first server in order processing system shown in Fig. 2 Fig. 1;
The flow chart of a kind of distributed order processing method that Fig. 3 is provided for second embodiment of the invention;
The flow chart of a kind of distributed order processing method that Fig. 4 is provided for third embodiment of the invention;
The sequential chart of a kind of distributed order processing method that Fig. 5 is provided for fourth embodiment of the invention;
The structured flowchart of a kind of distributed order processing device that Fig. 6 is provided for fifth embodiment of the invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention is clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.Embodiment in based on the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Therefore,
The model of claimed invention is not intended to limit to the detailed description of the embodiments of the invention for providing in the accompanying drawings below
Enclose, but be merely representative of the selected embodiment of the present invention.Embodiment in based on the present invention, those of ordinary skill in the art are not having
There is the every other embodiment obtained under the premise of making creative work, belong to the scope of protection of the invention.
Fig. 1 is refer to, is a kind of structured flowchart of order processing system that first embodiment of the invention is provided.The system
600 include first server 602, multiple second servers 601 and user terminal 603.The first server 602 and each institute
State second server 601 to couple.User terminal 603 and first server 602 are coupled.User terminal 603 can be multiple.With
Client is installed in family terminal 603, user is sent to the first server 602 by the client in user terminal 603
Sequence information.
In the present embodiment, the first server 602 is used for obtaining sequence information and distributes the sequence information
Give multiple second servers 601.Specifically, the first server 602 is used for the order letter for obtaining the transmission of user terminal 603
Breath.
In the present embodiment, the second server 601 is used for processing the sequence information, specifically, when the order
When information entrained by information is mated with presupposed information, the second server 601 is by the process status maintenance of the sequence information
Be changed to untreated, and by sequence information storage to the first database, send order preliminary treatment and information is completed to client;
When the product quantity entrained by the sequence information is less than or equal to pre-set product stock, the second server 601 is by institute
State sequence information to store to the second database;Believed based on the order when the second server 601 receives the client
After the payment information of breath feedback, the second server 601 is changed the reason sequence information and is stored in first database
Process state;Order processing completion message is sent to the client.
Wherein, the sequence information includes the order amount of money and consignee's cell-phone number, when the order amount of money and default first
During information matches and consignee's cell-phone number with default second information matches when, the second server 601 is ordered described
The status modifier of single information is for untreated, and the sequence information is stored to the first database, when sequence information storage is completed
Afterwards, second server 601 sends order preliminary treatment and completes information to client.
Wherein, the default first information refers to the price and postage that each commodity pre-sets, described when order gold
Volume is mated with the default first information and refers to that the summation by the order amount of money with the commodity price and postage that pre-set is compared, and is sentenced
Whether the commodity price for pre-setting surely and the summation of postage are equal to the order amount of money, when the commodity price and postal that pre-set
When the summation that takes is equal to the order amount of money, represents that the order amount of money is mated with the default first information, otherwise mismatch.
Default second information judges whether consignee's cell-phone number is legal.Consignee's cell-phone number and default second letter
Breath coupling refers to whether the consignee's cell-phone number judged in sequence information is 13, if it is, being normal handset number, i.e. consignee
Cell-phone number is legal.
In the present embodiment, when the product quantity entrained by the sequence information is less than or equal to pre-set product stock,
Sequence information storage is referred to side of the second server 601 based on repeating query to the second database by the second server 601
Formula obtains the sequence information from first database, and the process state of the sequence information is untreated;Second service
Product quantity entrained by the sequence information is compared by device 601 with pre-set product stock, when the product quantity is less than
Or when being equal to the pre-set product stock, sequence information storage is arrived second database by the second server.Its
In, the repeating query refers to each second server 601 by the sequence information in the first database of rotation visit, until by first
Sequence information in database has been obtained.
In the present embodiment, the transmission order processing completion message specifically refers to the second service to the client
Device 601 obtains the process state for being stored in sequence information described in first database, when the process state is to have processed
During into state, the sequence information is deleted and order processing completion message is sent to client.
In the present embodiment, fed back based on the sequence information when the second server 601 receives the client
Payment information after, the second server 601 change described reason sequence information be stored in the process in first database
The process status modifier is processed or has completed to process by state, and the product carried according to the sequence information
Point information is taken off to the integration of the user corresponding to the sequence information or is to increase.For example, when user is using integration
When carrying out purchase article, the integration that user has is deducted, when user normally buys article, gives user and buy the thing
The correspondingly integration of product, i.e., increase the integration of user on the original integration of user, according to the VIP of how many setting users of integration
(Very Important People, honored guest) grade.When the article of user's purchase reaches the article of predetermined quantity or purchase
Price when reach reserve quota, update the reward voucher state of user or add present etc..
As shown in Fig. 2 the structured flowchart of the first server 602 in order processing system shown in Fig. 1.Described first
Server 602 includes distributed order processing device 500, memory 301, storage control 302, processor 303, Peripheral Interface
304 and input-output unit 305.
The memory 301, storage control 302, processor 303, Peripheral Interface 304, each yuan of input-output unit 305
Part is directly or indirectly electrically connected with each other, to realize the transmission or interaction of data.For example, these elements each other may be used
Realize being electrically connected with by one or more communication bus or holding wire.The distributed order processing device 500 is included at least
One can be stored in the memory 301 in the form of software or firmware (firmware) or be solidificated in the first server
Software function module in 602 operating system (operating system, OS).The processor 303 is used for executing storage
The executable module stored in device 301, software function module or calculating that for example described distributed order processing device 500 includes
Machine program.
Wherein, memory 301 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-
Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory,
EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory,
EEPROM) etc..Wherein, memory 301 is used for storage program, and the processor 303 is executed described after execute instruction is received
Program, the method performed by the first server 602 of the stream process definition that aforementioned embodiment of the present invention any embodiment is disclosed can
To be applied in processor 303, or realized by processor 303.
A kind of possibly IC chip of processor 303, the disposal ability with signal.Above-mentioned processor 303 can
To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), special IC (ASIC),
Ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hard
Part component.Can realize or execute disclosed each method in the embodiment of the present invention, step and logic diagram.General processor
Can be microprocessor or the processor can also be any conventional processor etc..
The Peripheral Interface 304 is by various input/output devices coupled to processor 303 and memory 301.At some
In embodiment, Peripheral Interface 304, processor 303 and storage control 302 can be realized in one single chip.Other one
In a little examples, they can be realized by independent chip respectively.
Input-output unit 305 is used for being supplied to the friendship that user input data realizes user and the first server 602
Mutually.The input-output unit 305 may be, but not limited to, mouse and keyboard etc..
Fig. 3 is referred to, is the flow chart of a kind of distributed order processing method that second embodiment of the invention is provided.Below
Idiographic flow shown in Fig. 3 will be described in detail.
Step S401, the first server obtain sequence information.
Wherein, the first server receives the sequence information that client sends.The sequence information is a plurality of.The visitor
Family end is by the application program installed in user terminal.Wherein, the sequence information includes product information, the order amount of money, receives
People's information and postage.
As a kind of embodiment, after user is placed an order by client, the order of user is believed by the client
Breath is sent to the first server.For example, user Lee has bought small item in client, the small item entitled little
Little, the price of the small item is 20 yuan, and ship-to is global village A group B, and consignee's cell-phone number is 13288888888, and this is little
Commodity bundle postal, the sequence information of Li Si is:Slight one, the order amount of money be 20, consignee's information for Li Si ship-to with
Cell-phone number, postage are 0 yuan.The sequence information of the Li Si of generation is sent to first server by client.
The sequence information is sent to any in multiple second servers by step S402, the first server
One second server, so that the second server processes the sequence information.
Wherein it is possible to be distributed according to preset order, specifically, in the present embodiment, the first server is pressed
A sequence information is sent successively to second server each described according to preset order;When the first server is to described in each
In the case that second server have sent a sequence information and the sequence information has not also been distributed, the first server
Distribute a sequence information again according to preset order to second server each described, until all of sequence information sends
Complete.
The preset order to refer to and arrange a sequencing for each second server in multiple second servers,
One server can send sequence information according to the sequencing of each second server for each second server.
As first embodiment, one sequencing is set for each second server in advance, for example, by numbering
Mode is numbered for each second server, is ranked up according to ascending according to the size of the number that is numbered.Work as institute
State first server to each described second server send sequence information when, can be according to the numbering of each second server
Order is sent successively, when the first server have sent a sequence information and institute to second server each described
State in the case that sequence information also do not distributed, the first server again according to numbering order to the second clothes each described
A sequence information distributed by business device, until all of sequence information has sent.Now, each second server is treatable orders
The number of single information is identical.
For example, current second server is 4, is that each second server is numbered, by the volume of 4 second servers
Number it is set to 1,2,3,4.I.e. numbering is in 14 second servers of representative, and by that analogy, numbering is 4 representative
A second server in 4 second servers, is ranked up according to numbering size is ascending, now 4 second services
Device all same, i.e. each second server treatable sequence information quantity identical.Current first server is received
Sequence information is 100, and first server is distributed sequence information according to the order of the numbering of second server, presses for the first time
Number order according to second server sends a sequence information to each second server, after having distributed first time, first
Sequence information in server there remains 96, continue to send an order letter according to the order of numbering for each second server
Breath, until 100 sequence informations are sent completely.
In the present embodiment, can also be and be distributed according to the size of pre-set threshold value.Specifically, obtain each described
Two servers can process the pre-set threshold value of the sequence information;When the pre-set threshold value of each second server is all higher than
Or equal to sequence information total quantity when, any one institute sequence information being sent in multiple second servers
State second server;When the total quantity of sequence information is more than wherein in the corresponding pre-set threshold value of multiple second servers
During individual pre-set threshold value, the sequence information is sent a sequence information to second server each described successively, when any one
The quantity of the sequence information that the individual second server is received is equal to the pre-set threshold value corresponding to the second server
When, stop second clothes that the pre-set threshold value corresponding to the second server is equal to the quantity for receiving the sequence information
Business device sends sequence information.
Wherein, the pre-set threshold value refers to the quantity of the sequence information that each second server can be processed.According to not
With second server different pre-set threshold values are set, i.e., described pre-set threshold value is referred to and can be processed according to second server
The different pre-set threshold value of the different set of the quantity of sequence information.
As second embodiment, the maximum quantity that each second server can process the sequence information is obtained,
The threshold values that the maximum quantity is set to each second server.Will according to the threshold values first server of each second server
Sequence information is sent to each second server so that the quantity of sequence information that receives of each second server less than this
The threshold values of two servers.
For example, currently have 6 second servers, the threshold values of wherein each second server is followed successively by 10000,20000,
30000th, 40000,45000 and 60000.The sequence information that current first server is received is 1,000,000, according to each the
The threshold values of two servers is transmitted sequence information, and as threshold values is 9999 sequence informations of transmission of 10000 second servers
Or any number of sequence information less than threshold values, it is that the second server that threshold values is 20000 sends 19999 order letters
Breath or any number of sequence information less than threshold values, by that analogy, are that the second server that threshold values is 60000 sends
59999 sequence informations or any number of sequence information less than threshold values.When first server is to each second service
After device has all sent sequence information, after first server receives the state that second server processes sequence information, i.e., first
Server receives the quantity of the currently processed complete sequence information of the second server that second server is returned, and first server is pressed
After the completion of handled by each second server, the quantity of the also treatable maximum sequence information of each second server is by residue
Sequence information be transmitted again according to the threshold values of each second server, when any one in 6 second servers
When the quantity of the sequence information that individual second server is received is equal to the pre-set threshold value corresponding to the second server, stop
The second server of the pre-set threshold value second server corresponding to is only equal to the quantity for receiving the sequence information
Send sequence information.For example, when the sequence information that the second server that threshold value is 10000 is received is 10000, the first clothes
Business device stops sending sequence information to the second server that threshold value is 10000, until the second server that threshold value is 10000 can
When receiving again the sequence information that first server sends, first server is sent out to the second server that threshold value is 10000 again
Send sequence information, and no more than the treatable scope of second server institute, for example, threshold value is 10000 second server the
10000 sequence informations of first server transmission are received once after, after having processed 9000, there remains 1000, second
Server returns a threshold value to first server, and first server sends corresponding according to the new threshold value that second server is returned
Ground sequence information is to second server.
For example, currently have 6 second servers, the threshold values of wherein each second server is followed successively by 10000,20000,
30000th, 40000,45000 and 60000.The sequence information that current first server is received is 5000, the sequence information
Sum less than the threshold values of any one second server in 6 second servers, the sequence information is sent to 6 institutes
State any one of second server in second server.
As the 3rd embodiment, can be each second clothes according to the ability of the process order of each second server
Business device arranges weighted value, and first server sends different number of order letter according to the difference of the weighted value of each second server
Cease each second server.Wherein, the number for being sent to the sequence information of each second server is equal to second server
The product of the number of the sequence information that weighted value is received with first server.The weighted value of all of second server is added
It is equal to 100%.
For example, the weight for currently having 3 second servers, each second server is respectively 20%, 30% and 50%.Institute
The number for stating the sequence information that first server is received is 100000, according to the weighted value of each second server, first
Server is followed successively by the sequence information that each second server sends correspondingly number, is that the second server that weight is 20% is sent out
100000*20%=20000 bar sequence informations are sent, is that the second server that weight is 30% sends 100000*30%=
30000 sequence informations, are that the second server that weight is 50% sends 100000*50%=50000 bar sequence informations.
As the 4th embodiment, order can be sent to each second server according to the domain name of each second server
Information.Specifically, the domain name of each second server is obtained, and according to the sensing of domain name, sequence information is sent by first server
To the second server with the domain name for getting correspondingly.
Fig. 4 is referred to, is the flow chart of a kind of distributed order processing method that third embodiment of the invention is provided.Below
Idiographic flow shown in Fig. 4 will be described in detail.
Step S501, the first server obtain sequence information.
Wherein, the first server receives the sequence information that client sends.
The sequence information is sent to any in multiple second servers by step S502, the first server
One second server.
Step S503, when the information entrained by the sequence information is mated with presupposed information, the second server will
The process status modifier of the sequence information is for untreated, and sequence information storage is sent order to the first database
Preliminary treatment completes information to client.
Step S504, when the product quantity entrained by the sequence information is less than or equal to pre-set product stock, described
Second server stores the sequence information to the second database.
Step S505, when the second server receives the disbursement letter that the client is fed back based on the sequence information
After breath, the second server is changed the sequence information and is stored in the process state in first database.
Step S506, sends order processing completion message to the client.
Wherein, after the completion of second service is by order processing, transmission processe completion notice information is to client.
Fig. 5, the sequential chart of a kind of distributed order processing method that Fig. 5 is provided is refer to for fourth embodiment of the invention.
First server obtains the sequence information that client sends, and the client is installed on the subscriber terminal, and first server will be obtained
The sequence information that gets is sent to multiple second servers, after second server receives sequence information, sequence information is carried out
Process, specifically, such as step S503, when the information entrained by the sequence information is mated with presupposed information, second clothes
The process status modifier of the sequence information for untreated, and the sequence information is stored to the first database by business device, and
Preliminary processing results are sent to user terminal by first server, when the information entrained by the sequence information and presupposed information
During mismatch, the second server sends preliminary processing results and is sent to user terminal by first server.Second service
Device is processed to the sequence information after order preliminary processing results are returned, and specifically, such as step S504, is ordered when described
When product quantity entrained by single information is less than or equal to pre-set product stock, the sequence information is deposited by the second server
Store up the second database.Such as step S505, when the second server, to receive the client anti-based on the sequence information
After the payment information of feedback, the second server is changed the sequence information and is stored in the process shape in first database
State.When user terminal obtains order processing result, that is, obtain order processing final result when, first server is by user's end
The order processing result request that end sends is sent to second server, and second server is receiving the request of order processing result
When, the state of the sequence information according to handled by second server returns order processing state to user terminal.
Fig. 5 is referred to, is that fifth embodiment of the invention provides a kind of structured flowchart of distributed order processing device.Described
Device 500 includes data acquisition module 510 and data processing module 520.
Data acquisition module 510, obtains sequence information for first server.
The sequence information is sent to multiple second clothes for the first server by data processing module 520
Any one of second server in business device, so that the second server processes the sequence information.
Wherein, the data processing module 520 also includes data processing submodule 521.Data processing submodule 521, uses
The sequence information is sent to based on distribution algorithms in the first server any one in multiple second servers
The individual second server.
In the present embodiment, the sequence information is a plurality of.Wherein, the data processing submodule 521 is specifically for institute
State first server a sequence information is sent to second server each described successively according to preset order;When the described first clothes
Business device have sent a sequence information and in the case that the sequence information has not also been distributed to second server each described,
The first server distributes a sequence information again according to preset order to second server each described, until all of
Sequence information has sent.
In the present embodiment, the sequence information is a plurality of.The data processing submodule 521 is additionally operable to obtain each institute
State the pre-set threshold value of the held interior sequence information of second server;When the pre-set threshold value of each second server is all higher than
Or equal to sequence information total quantity when, any one institute sequence information being sent in multiple second servers
State second server;When the total quantity of sequence information is more than wherein in the corresponding pre-set threshold value of multiple second servers
During individual pre-set threshold value, the sequence information is sent a sequence information to second server each described successively, when any one
The quantity of the sequence information that the individual second server is received is equal to the pre-set threshold value corresponding to the second server
When, stop second clothes that the pre-set threshold value corresponding to the second server is equal to the quantity for receiving the sequence information
Business device sends sequence information.
In sum, the present invention provides a kind of distributed order processing method, device and order processing system, and the method is led to
Cross first server and obtain the sequence information that client sends, the sequence information is sent to appointing in multiple second servers
One second server of meaning, so that the quantity of the sequence information handled by second server is located at the second server institute energy
In the range of process, and then cause order dealing process more friendly, quick and safety.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematically, for example flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of module, program segment or a code
Part, a part the holding comprising one or more logic functions for realization regulation of the module, program segment or code
Row instruction.It should also be noted that in some are as the implementations that replaces, the function that marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be executed substantially in parallel, and they are sometimes
Can execute in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
Individual square frame and the combination of block diagram and/or the square frame in flow chart, can use the special base for executing the function or action of regulation
Realize in the system of hardware, or can combine to realize with specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is realized using in the form of software function module and as independent production marketing or when using, can be with
It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words
The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need
It is noted that herein, such as first and second or the like relational terms are used merely to an entity or operation
Make a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating any this
Actual relation or order.And, term " including ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that a series of process, method, article or equipment including key elements not only includes those key elements, but also wrapping
Other key elements being not expressly set out are included, or also includes intrinsic for this process, method, article or equipment wanting
Element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including described wanting
Also there is other identical element in the process of element, method, article or equipment.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exist
Similar terms is represented in figure below, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing
Which is further defined and be explained.
Claims (10)
1. a kind of distributed order processing method, it is characterised in that be applied to order processing system, the system includes the first clothes
Business device and multiple second servers, methods described include:
The first server obtains sequence information;
The sequence information is sent to the first server any one of second in multiple second servers
Server, so that the second server processes the sequence information.
2. method according to claim 1, it is characterised in that the sequence information is a plurality of, described first clothes
The a plurality of sequence information is sent to business device the step of any one of second server in multiple second servers
Suddenly include:
The first server sends a sequence information to second server each described successively according to preset order;
When the first server have sent a sequence information and the sequence information also to second server each described
In the case of not distributed, the first server is distributed one again according to preset order to second server each described and is ordered
Single information, until all of sequence information has sent.
3. method according to claim 1, it is characterised in that the sequence information is a plurality of, described first clothes
The a plurality of sequence information is sent to business device the step of any one of second server in multiple second servers
Suddenly include:
Obtain the pre-set threshold value that each described second server can process the sequence information;
When the pre-set threshold value of each second server be all higher than or equal to sequence information total quantity when, by the order believe
Breath is sent to any one of second server in multiple second servers;
When the total quantity of sequence information is more than one of them the default valve in the corresponding pre-set threshold value of multiple second servers
During value, the sequence information is sent a sequence information to second server each described successively, when any one of the
The quantity of the sequence information that two servers are received be equal to the second server corresponding to pre-set threshold value when, stop to
The quantity for receiving the sequence information is equal to the second server transmission of the pre-set threshold value corresponding to the second server
Sequence information.
4. method according to claim 1, it is characterised in that the sequence information is a plurality of, described first clothes
The a plurality of sequence information is sent to business device the step of any one of second server in multiple second servers
Suddenly include:
Obtain the default weighted value of each second server;
The first server is according to the corresponding default weighted value of second server each described to second server each described
Send the sequence information.
5. a kind of distributed order processing device, it is characterised in that described device is applied to order processing system, the system bag
First server and multiple second servers is included, described device includes:
Data acquisition module, obtains sequence information for first server;
Data processing module, is sent to the sequence information in multiple second servers for the first server
Any one of second server, so that the second server processes the sequence information.
6. device according to claim 5, it is characterised in that the data processing module specifically for:
The first server sends a sequence information to second server each described successively according to preset order;
When the first server have sent a sequence information and the sequence information also to second server each described
In the case of not distributed, the first server is distributed one again according to preset order to second server each described and is ordered
Single information, until all of sequence information has sent.
7. device according to claim 6, it is characterised in that the sequence information is a plurality of, the data processing module
Specifically for:
Obtain the pre-set threshold value that each described second server can process the sequence information;
When the pre-set threshold value of each second server be all higher than or equal to sequence information total quantity when, by the order believe
Breath is sent to any one of second server in multiple second servers;
When the total quantity of sequence information is more than one of them the default valve in the corresponding pre-set threshold value of multiple second servers
During value, the sequence information is sent a sequence information to second server each described successively, when any one of the
The quantity of the sequence information that two servers are received be equal to the second server corresponding to pre-set threshold value when, stop to
The quantity for receiving the sequence information is equal to the second server transmission of the pre-set threshold value corresponding to the second server
Sequence information.
8. device according to claim 6, it is characterised in that the sequence information is a plurality of, the data processing module
Specifically for:
Obtain the default weighted value of each second server;
The first server is according to the corresponding default weighted value of second server each described to second server each described
Send the sequence information.
9. a kind of order processing system, it is characterised in that including first server and second server, the first server with
The second server coupling, the first server are used for obtaining sequence information, and the first server is additionally operable to will be described
Sequence information is sent to any one of second server in multiple second servers, and the second server is used for
Process the sequence information.
10. system according to claim 9, it is characterised in that the second server specifically for:
When the information entrained by the sequence information is mated with presupposed information, the second server is by the sequence information
Status modifier is processed for untreated, and by sequence information storage to the first database, is sent order preliminary treatment and is completed letter
Cease to client;
When the product quantity entrained by the sequence information is less than or equal to pre-set product stock, the second server is by institute
State sequence information to store to the second database;
After the second server receives the payment information that the client is fed back based on the sequence information, described second
Server is changed the sequence information and is stored in the process state in first database;
Order processing completion message is sent to the client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611043308.XA CN106504076A (en) | 2016-11-23 | 2016-11-23 | distributed order processing method, device and order processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611043308.XA CN106504076A (en) | 2016-11-23 | 2016-11-23 | distributed order processing method, device and order processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106504076A true CN106504076A (en) | 2017-03-15 |
Family
ID=58328031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611043308.XA Pending CN106504076A (en) | 2016-11-23 | 2016-11-23 | distributed order processing method, device and order processing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106504076A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239548A (en) * | 2017-06-05 | 2017-10-10 | 携程旅游网络技术(上海)有限公司 | Report processing method based on SQL Server and HIVE |
CN107767236A (en) * | 2017-11-14 | 2018-03-06 | 北京小度信息科技有限公司 | A kind of order method for pushing, device, server and computer-readable recording medium |
CN108390924A (en) * | 2018-02-07 | 2018-08-10 | 善林(上海)金融信息服务有限公司 | Order fulfillment method and device |
CN109240824A (en) * | 2018-08-13 | 2019-01-18 | 中国联合网络通信集团有限公司 | Distributed order processing method, apparatus, equipment and readable storage medium storing program for executing |
CN109308653A (en) * | 2018-10-16 | 2019-02-05 | 翟红鹰 | Avoid method, terminal and the storage medium of client access server congestion |
CN110502474A (en) * | 2019-06-26 | 2019-11-26 | 中电万维信息技术有限责任公司 | Order allocation method, device and storage medium based on distributed memory system |
CN110716981A (en) * | 2019-04-24 | 2020-01-21 | 中国科学院地理科学与资源研究所 | Method and device for realizing data order synchronization |
CN111340463A (en) * | 2020-03-23 | 2020-06-26 | 中国邮政储蓄银行股份有限公司 | Data processing system and data processing method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277317A (en) * | 2008-04-29 | 2008-10-01 | 北京锐安科技有限公司 | Method for equalization and distribution of distributed processing system data |
CN103246946A (en) * | 2012-02-08 | 2013-08-14 | 北京磊友信息科技有限公司 | Method for performing order management operation among multiple terminals |
CN105159782A (en) * | 2015-08-28 | 2015-12-16 | 北京百度网讯科技有限公司 | Cloud host based method and apparatus for allocating resources to orders |
-
2016
- 2016-11-23 CN CN201611043308.XA patent/CN106504076A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277317A (en) * | 2008-04-29 | 2008-10-01 | 北京锐安科技有限公司 | Method for equalization and distribution of distributed processing system data |
CN103246946A (en) * | 2012-02-08 | 2013-08-14 | 北京磊友信息科技有限公司 | Method for performing order management operation among multiple terminals |
CN105159782A (en) * | 2015-08-28 | 2015-12-16 | 北京百度网讯科技有限公司 | Cloud host based method and apparatus for allocating resources to orders |
Non-Patent Citations (2)
Title |
---|
李静梅: "《现代计算机体系结构》", 31 May 2009, 清华大学出版社 * |
邓会敏: "Web集群中基于服务等级容错调度算法研究", 《广东农工商职业技术学院学报》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239548A (en) * | 2017-06-05 | 2017-10-10 | 携程旅游网络技术(上海)有限公司 | Report processing method based on SQL Server and HIVE |
CN107767236A (en) * | 2017-11-14 | 2018-03-06 | 北京小度信息科技有限公司 | A kind of order method for pushing, device, server and computer-readable recording medium |
CN108390924A (en) * | 2018-02-07 | 2018-08-10 | 善林(上海)金融信息服务有限公司 | Order fulfillment method and device |
CN109240824A (en) * | 2018-08-13 | 2019-01-18 | 中国联合网络通信集团有限公司 | Distributed order processing method, apparatus, equipment and readable storage medium storing program for executing |
CN109240824B (en) * | 2018-08-13 | 2020-11-17 | 中国联合网络通信集团有限公司 | Distributed order processing method, device, equipment and readable storage medium |
CN109308653A (en) * | 2018-10-16 | 2019-02-05 | 翟红鹰 | Avoid method, terminal and the storage medium of client access server congestion |
CN109308653B (en) * | 2018-10-16 | 2022-04-22 | 牡丹国际商品交易中心有限公司 | Method, terminal and storage medium for avoiding congestion of client access server |
CN110716981A (en) * | 2019-04-24 | 2020-01-21 | 中国科学院地理科学与资源研究所 | Method and device for realizing data order synchronization |
CN110502474A (en) * | 2019-06-26 | 2019-11-26 | 中电万维信息技术有限责任公司 | Order allocation method, device and storage medium based on distributed memory system |
CN111340463A (en) * | 2020-03-23 | 2020-06-26 | 中国邮政储蓄银行股份有限公司 | Data processing system and data processing method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106504076A (en) | distributed order processing method, device and order processing system | |
US11587116B2 (en) | Predictive recommendation system | |
CN102812457B (en) | Systems And Methods For Identifying Suspicious Orders | |
CN108197851A (en) | A kind of e-commerce mostly single flow distribution method with address | |
CN103366283A (en) | Method and system for networked transaction variable capital division | |
CN106503975A (en) | The method of processing information, device and terminal device | |
CN110111179A (en) | Recommended method, device and the computer readable storage medium of drug combination | |
CN106251178A (en) | Data digging method and device | |
CN101183454A (en) | Method and system for managing commodity price on electronic commerce exchange platform | |
US9619823B2 (en) | Graph-based compression of data records | |
CN111222952A (en) | Marketing customer group recommendation method and device | |
TW201727551A (en) | Rebating mechanism management system, method, and computer readable storage medium of the same | |
Nurhayaty et al. | Determinants of consumer decisions in shopping for food through online applications. | |
CN107133843A (en) | A kind of Method of Commodity Recommendation based on collaborative filtering | |
TWI705396B (en) | Order integration system and integration method thereof | |
CN106408300A (en) | Membership service charging method, membership service charging device and membership service charging system | |
KR101699013B1 (en) | Method of paying marketing incentive and server performing the same | |
CN112288402A (en) | Data processing method, device, equipment and storage medium | |
KR101765088B1 (en) | Marketing system and method by separation of product group | |
CN107545479A (en) | A full Industry chain management Network Distribution mall system | |
CN110163402B (en) | Method and device for determining stock quantity units in order | |
CN103038791A (en) | Affiliate management device, affiliate management method, affiliate management program, and computer readable recording medium storing the program | |
TWM529227U (en) | Sales system with multi-level consumption cashback | |
CN109726201B (en) | Chip research and development transaction data storage method and system based on intelligent contract | |
CN105894366A (en) | Seckilling type transaction processing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190114 Address after: 310000 Room 3602-2, 3 Wanxiang City, Jianggan District, Hangzhou City, Zhejiang Province Applicant after: Hangzhou Xiaojian Technology Co., Ltd. Address before: Room 402, Building A14, No. 9 Jiusheng Road, Jianggan District, Hangzhou City, Zhejiang 310000 Applicant before: Hangzhou first science and Technology Co Ltd |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |