CN107545489A - A kind of time method of commerce - Google Patents
A kind of time method of commerce Download PDFInfo
- Publication number
- CN107545489A CN107545489A CN201710712947.9A CN201710712947A CN107545489A CN 107545489 A CN107545489 A CN 107545489A CN 201710712947 A CN201710712947 A CN 201710712947A CN 107545489 A CN107545489 A CN 107545489A
- Authority
- CN
- China
- Prior art keywords
- message
- queue
- commerce
- time method
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 241000283973 Oryctolagus cuniculus Species 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
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
Abstract
The present invention discloses a kind of time method of commerce, by the way of message queue, receives transaction message, and handle transaction message, it is characterised in that comprise the following steps:1)Initiate to access by user terminal, be routed to after queue, return in time;2)Asked according to the difference of user, be routed to dealing queue or wallet queue respectively;3)Different queue consumers correspond to different queue, Distributed Parallel Computing;4)All data are finally aggregated into a master library, for being uniformly processed from the background;The time method of commerce is by the way of message queue, receive transaction message, and handle transaction message, mechanism, rather than distribution mechanisms are got because message uses so that message is in extension, only need to increase information consumption end, without handling the allocation algorithm of message, the extension of message is greatly easy, and the disposal ability and stability to the consumption terminal of each message are also without too high requirement.
Description
Technical field
The invention belongs to more particularly to a kind of time method of commerce.
Background technology
Time transaction is a kind of new time pricing strategy, by the way of transaction, using the algorithmic approach of non-obstruction,
In theory, it is rear to calculate because data first preserve as long as coming of can entering of data, can complete to merchandise so that data always can be by
Dispose, due to by the way of Distributed Calculation, as long as increase machine, it is possible to improve the speed of calculating, exchanged for space
Time, cheap mysql databases can be used, you can complete to calculate.
The content of the invention
It is an object of the invention to provide a kind of possibility for reducing and ging wrong, equilibrium reduces fault rate so that whole system
The time method of commerce of the stability significant increase of system.
In order to solve the above-mentioned technical problem, the technical scheme is that:
A kind of time method of commerce, by the way of message queue, transaction message is received, and handle transaction message, including it is following
Step:
1)Initiate to access by user terminal, be routed to after queue, return in time;
2)Asked according to the difference of user, be routed to dealing queue or wallet queue respectively;
3)Different queue consumers correspond to different queue, Distributed Parallel Computing;
4)All data are finally aggregated into a master library, for being uniformly processed from the background.
Preferably, user terminal is acted on behalf of via web interface and Ha, into Rabbit queues.
Preferably, the depth of first Ka Gou is deeper than the second Ka Gou.
Preferably, increase the master library slave for the access shunting for master library.
The technology of the present invention effect major embodiment is in the following areas:Only need to provide enough consumption terminal servers, transaction is total
It is that can be disposed by a certain charge machine, if the probability that two client computer break down is respectively 5% and 1%, then a friendship
The probability that can not be easily processed is then 5/10000ths, and after more machine parallel connections, the probability that message can not be processed is almost in 0.Increase
The client for adding processing to merchandise, without especially customized, a original client of copy, due to the control server of message
Only doing message and get middleware, business sheet one is simple, reduces the possibility to go wrong, then the balanced reduction fault rate of loading,
So that the stability significant increase of whole system.In efficiency, due to the general plan using space for time, as long as increasing client,
The processing load of machine can be shunted, is the processing side that typical heart space exchanges the time for so as to reduce the processing time of message
Formula.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of time method of commerce of the present invention;
Fig. 2 is a kind of theory diagram of time method of commerce of the present invention;
Fig. 3 is a kind of bridge rectifier figure of time method of commerce of the present invention;
Fig. 4 is D1, D3 conducting figure in a kind of bridge rectifier of time method of commerce of the present invention;
Fig. 5 is D2, D4 conducting figure in a kind of bridge rectifier of time method of commerce of the present invention.
Embodiment
In the present embodiment, it is to be understood that term " centre ", " on ", " under ", " top ", " right side ", " left end ",
" top ", " back side ", " middle part ", etc. instruction orientation or position relationship be based on orientation shown in the drawings or position relationship, only
It is must have specific orientation, Yi Te for the ease of the description present invention, rather than the device or element of instruction or hint meaning
Fixed azimuth configuration and operation, therefore be not considered as limiting the invention.
In addition, the connection between part or fixed form if not otherwise specified in this embodiment, it is connected or solid
It can be to be fixed by bolt commonly used in the prior art or pin is fixed to determine mode, or the mode such as bearing pin connection, therefore, at this
No longer it is described in detail in embodiment.
Embodiment 1
As shown in figs. 1-2, a kind of time method of commerce, by the way of message queue, transaction message is received, and handle transaction
Message, comprise the following steps:
1)Initiate to access by user terminal, be routed to after queue, return in time;
2)Asked according to the difference of user, be routed to dealing queue or wallet queue respectively;
3)Different queue consumers correspond to different queue, Distributed Parallel Computing;
4)All data are finally aggregated into a master library, for being uniformly processed from the background.
Preferably, user terminal is acted on behalf of via web interface and Ha, into Rabbit queues.
Preferably, the depth of first Ka Gou is deeper than the second Ka Gou.
Preferably, increase the master library slave for the access shunting for master library.
The process of real trade is as follows:
1. user initiates to access first, wallet queue is write;
2. wallet queue carries out first round checking and processing, after completion, publisher's queue message is sent;
3. publisher's queue message is connected to task, finishing service processing, including brings calculating etc. together;
4. if bring together successfully, it is necessary to retransmit the wallet of the user actually brought together to different queue;
5. foreground caching is updated simultaneously, for accelerating the operating experience of app end subscribers.
Server uses bridge rectifier, as shown in figure 3, being bridge rectifier.By power transformer, four rectifications
Diode D1 ~ 4 and load resistance RL compositions.
The operation principle of bridge rectifier
As shown in figure 4, in u2 positive half cycle, D1, D3 conducting, D2, D4 cut-off, electric current is by TR level upper end through D1 → RL → D3
TR level lower end is returned to, a half wave rectified voltage is obtained on load RL;
As shown in figure 5, in u2 negative half period, D1, D3 cut-off, D2, D4 conducting, electric current by the lower end of Tr level through D2 → RL →
D4 returns to Tr level upper end, and another half wave rectified voltage is obtained on load RL.
One and full-wave rectification identical voltage waveform thus are obtained on load RL, the calculating of its electric current and all-wave are whole
Flow it is identical, i.e.,:
UL = 0.9U2
IL=0.9U2/RL
The average current for flowing through each diode is:
The U2/RL of ID=IL/2=0.45
By the way of message queue, transaction message is received, and handles transaction message, mechanism is got because message uses, rather than
Distribution mechanisms so that message is in extension, it is only necessary to increase information consumption end, without handling the allocation algorithm of message, message
Extension it is greatly easy, disposal ability and stability to the consumption terminal of each message are also without too high requirement.
The technology of the present invention effect major embodiment is in the following areas:Only need to provide enough consumption terminal servers, transaction is total
It is that can be disposed by a certain charge machine, if the probability that two client computer break down is respectively 5% and 1%, then a friendship
The probability that can not be easily processed is then 5/10000ths, and after more machine parallel connections, the probability that message can not be processed is almost in 0.Increase
The client for adding processing to merchandise, without especially customized, a original client of copy, due to the control server of message
Only doing message and get middleware, business sheet one is simple, reduces the possibility to go wrong, then the balanced reduction fault rate of loading,
So that the stability significant increase of whole system.In efficiency, due to the general plan using space for time, as long as increasing client,
The processing load of machine can be shunted, is the processing side that typical heart space exchanges the time for so as to reduce the processing time of message
Formula.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
The change or replacement expected without creative work, it should all be included within the scope of the present invention.
Claims (4)
1. a kind of time method of commerce, by the way of message queue, receiving transaction message, and transaction message is handled, its feature
It is, comprises the following steps:
1)Initiate to access by user terminal, be routed to after queue, return in time;
2)Asked according to the difference of user, be routed to dealing queue or wallet queue respectively;
3)Different queue consumers correspond to different queue, Distributed Parallel Computing;
4)All data are finally aggregated into a master library, for being uniformly processed from the background.
2. time method of commerce according to claim 1, it is characterised in that:User terminal is acted on behalf of via web interface and Ha, is entered
Enter Rabbit queues.
3. time method of commerce according to claim 2, it is characterised in that:The depth of first Ka Gou is deeper than the second card
Ditch.
4. time method of commerce according to claim 3, it is characterised in that:Increase the master for the access shunting for master library
Storehouse slave.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710712947.9A CN107545489A (en) | 2017-08-18 | 2017-08-18 | A kind of time method of commerce |
PCT/CN2017/000574 WO2019033225A1 (en) | 2017-08-18 | 2017-09-08 | Time transaction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710712947.9A CN107545489A (en) | 2017-08-18 | 2017-08-18 | A kind of time method of commerce |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107545489A true CN107545489A (en) | 2018-01-05 |
Family
ID=60958320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710712947.9A Pending CN107545489A (en) | 2017-08-18 | 2017-08-18 | A kind of time method of commerce |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107545489A (en) |
WO (1) | WO2019033225A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111445331A (en) * | 2020-03-24 | 2020-07-24 | 中国工商银行股份有限公司 | Transaction matching method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1483162A (en) * | 2000-07-27 | 2004-03-17 | BEAϵͳ��˾ | System and method for request assembling and load sharing |
CN102457442A (en) * | 2010-10-29 | 2012-05-16 | 金蝶软件(中国)有限公司 | Message sending and reading methods and devices as well as middleware system |
CN103379021A (en) * | 2012-04-24 | 2013-10-30 | 中兴通讯股份有限公司 | Method and system for achieving distributed message queue |
CN103677844A (en) * | 2013-12-20 | 2014-03-26 | 国云科技股份有限公司 | Lightweight class data processing frame based on message chain |
CN104714783A (en) * | 2011-12-27 | 2015-06-17 | 北京奇虎科技有限公司 | Task processing method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325046A (en) * | 2012-03-19 | 2013-09-25 | 上海博路信息技术有限公司 | Real-time car-sharing system based on HTML5 |
CN103546515A (en) * | 2012-07-16 | 2014-01-29 | 上海博讯信息技术有限公司 | Real-time car-sharing system |
CN103684874B (en) * | 2013-12-31 | 2017-01-25 | 成都金铠甲科技有限公司 | Method and device for automatically distributing online customer service executives to conduct customer service |
CN106296331A (en) * | 2015-06-11 | 2017-01-04 | 全民互联科技(天津)有限公司 | Personal time transaction processing method based on the Internet and system |
CN106097071A (en) * | 2016-06-16 | 2016-11-09 | 陈磊 | A kind of Timebox time transaction platform |
-
2017
- 2017-08-18 CN CN201710712947.9A patent/CN107545489A/en active Pending
- 2017-09-08 WO PCT/CN2017/000574 patent/WO2019033225A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1483162A (en) * | 2000-07-27 | 2004-03-17 | BEAϵͳ��˾ | System and method for request assembling and load sharing |
CN102457442A (en) * | 2010-10-29 | 2012-05-16 | 金蝶软件(中国)有限公司 | Message sending and reading methods and devices as well as middleware system |
CN104714783A (en) * | 2011-12-27 | 2015-06-17 | 北京奇虎科技有限公司 | Task processing method and device |
CN103379021A (en) * | 2012-04-24 | 2013-10-30 | 中兴通讯股份有限公司 | Method and system for achieving distributed message queue |
CN103677844A (en) * | 2013-12-20 | 2014-03-26 | 国云科技股份有限公司 | Lightweight class data processing frame based on message chain |
Non-Patent Citations (2)
Title |
---|
查伟: "《数据存储技术与实践》", 30 September 2016, 清华大学出版社 * |
陈璞: "基于RabbitMQ的电子商务系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
WO2019033225A1 (en) | 2019-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3764302A1 (en) | Blockchain- and cloud power-based microgrid ecosystem | |
WO2017020740A1 (en) | Inventory data reconciliation method and device | |
CN102915600B (en) | Fore-POS (point of sale) system and method convenient for function extension | |
TW201211749A (en) | System and method for providing energy efficient cloud computing | |
CN103413241A (en) | Bank reception and payment system | |
CN103581336B (en) | Service flow scheduling method and system based on cloud computing platform | |
CN109902075A (en) | A kind of distributed cloud storage management platform system based on IPFS and block chain | |
CN109711986A (en) | A kind of token application and award method based on cloud storage plateform system | |
CN105049485A (en) | Real-time video processing oriented load-aware cloud calculation system | |
CN107545489A (en) | A kind of time method of commerce | |
CN207489167U (en) | A kind of self-service circle deposit system for client electronic wallet | |
CN105068635A (en) | Dual power supply type data server | |
CN205281495U (en) | Information retrieval system based on cloud calculates | |
CN105825332A (en) | Cloud computing based electric energy metering monitoring platform and method thereof | |
CN108629448A (en) | A kind of data center's heat abstractor optimal control method and system based on Lyapunov optimizations | |
CN202524426U (en) | Enterprise cloud computing service application system | |
CN107122960A (en) | power business expansion processing method and device | |
WO2021227373A1 (en) | Node selection method and system under inter-province transaction agent mode, and storage medium | |
CN112712274A (en) | Big data based energy management system and equipment | |
CN105068631A (en) | Project management system with reserved power supply | |
CN111507524A (en) | Power distribution network electric power big data transaction management system based on artificial intelligence and block chain | |
CN104933557A (en) | Method and system for preventing POS machine from being transacted in different regions | |
CN204463216U (en) | A kind of portable electronic business transaction mechanism | |
CN202870895U (en) | Processing apparatus suitable for prepositive platform of financial system | |
CN203909840U (en) | Automatic network sale system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180105 |