CN109377279A - A kind of charging method, device, system and computer readable storage medium - Google Patents
A kind of charging method, device, system and computer readable storage medium Download PDFInfo
- Publication number
- CN109377279A CN109377279A CN201811256588.1A CN201811256588A CN109377279A CN 109377279 A CN109377279 A CN 109377279A CN 201811256588 A CN201811256588 A CN 201811256588A CN 109377279 A CN109377279 A CN 109377279A
- Authority
- CN
- China
- Prior art keywords
- request message
- service
- deducting fees
- message
- fees
- 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 69
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000004891 communication Methods 0.000 claims abstract description 7
- 238000004590 computer program Methods 0.000 claims description 26
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000003032 molecular docking Methods 0.000 description 3
- 239000000872 buffer Substances 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 238000011109 contamination Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000000153 supplemental effect Effects 0.000 description 1
- 230000036642 wellbeing Effects 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/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0277—Online advertisement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- 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/0241—Advertisements
- G06Q30/0273—Determination of fees for advertising
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of charging method, device, system and computer readable storage mediums, belong to communication technique field.The described method includes: the request message of deducting fees of message components service balancing received load service;By it is described deduct fees request message write-in message queue, so as to the node in service cluster of deducting fees pulled from the message queue it is untreated deduct fees request message and according to it is described deduct fees request message carry out business processing.Using the present invention, each node in service cluster of deducting fees can pull request message of deducting fees according to self-ability from message components service and carry out business processing, both ensured the stability for the service of deducting fees, and also ensured the real-time deducted fees, accuracy.
Description
Technical field
The present invention relates to communication technique field more particularly to a kind of charging method, device, system and computer-readable storages
Medium.
Background technique
With popularizing for Internet technology, the various applications of internet have been penetrated among daily life,
Under this premise, advertisers start to launch advertisement in internet to promote the popularity and exposure of itself commodity,
Specifically, advertiser (i.e. user) launches advertisement by advertising platform in internet, and advertising platform is by the quotient of advertiser
When product information is pushed to user, information can be broadcast according to prison and carries out corresponding fee deduction treatment.
Referring to Fig. 1, being a kind of advertising business system architecture in the prior art.Client is from advertisement SSP (Service
Switching Point, Service Switching Point) advertisement is got in service, and triggering is deducted fees prison after terminal carries out certain operations
It broadcasts, prison of deducting fees is broadcast after load balancing service (such as Nginx load balancing), is distributed to advertisement according to preconfigured forwarding strategy
Deduct fees service cluster some node on carry out actual payment operation processing (may also include advertisement off-frame treatment).Positive reason
Under condition, which can satisfy business demand, but special big under concurrently prison broadcasts scene of deducting fees, most probably will appear by
In advertisement deduct fees service cluster processing capacity is insufficient and the large area collapse for the service cluster that causes to deduct fees, and finally make advertisement
Failure of deducting fees fails with advertisement undercarriage, and the loss in income is caused to advertising platform itself.
In order to overcome the above problem, the system architecture of Fig. 1 is optimized in the prior art, referring to Fig. 2, equal in load
Weighing apparatus service forwarding deduct fees prison broadcast to advertisement deduct fees service cluster while, load balancing service can will deduct fees prison broadcasts the corresponding of carrying
Supplemental characteristic is written in log, is timed statistics (5 or 10 minutes are a timing cycle) for off-line data statistical fractals, and
And the newly-increased service of accounting of deducting fees can compare the data of deducting fees counted offline with the result for servicing real-time deduction of deducting fees
Verification, if then being carried out on the basis of off-line data because data of deducting fees caused by certain cause specifics (service delay machine etc.) are inconsistent
Data are restored.The operational program of the system architecture has ensured the economic well-being of workers and staff of advertising platform, but due to counting offline and implementing to detain
There are time intervals for the verification of expense, it is likely that will cause Day Sum Limited insufficient advertisement delay undercarriage (budget overruns) or advertiser
Remaining sum is fastened as situations such as negative.
Therefore, it is necessary to a kind of charging method, device, system and computer readable storage medium are provided, it is existing to solve
Technology cannot be concurrently prison be broadcast under scene of deducting fees greatly, it is ensured that advertising platform deduct fees service stability and the accuracy deducted fees
Problem.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of charging method, device, system and computer-readable storage mediums
Matter, with solve the prior art cannot greatly concurrently prison broadcast under scene of deducting fees, it is ensured that advertising platform deduct fees service stability and
The problem of accuracy deducted fees.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to the first aspect of the invention, a kind of charging method is provided, the described method comprises the following steps:
The request message of deducting fees of message components service balancing received load service;
By the request message write-in message queue of deducting fees, so that the node in service cluster of deducting fees is from the message queue
In pull it is untreated deduct fees request message and according to it is described deduct fees request message carry out business processing.
According to the second aspect of the invention, a kind of message components service is provided, the message components service includes: storage
Device, processor and it is stored in the computer program that can be run on the memory and on the processor, the computer
Program realizes method and step as described above when being executed by the processor.
According to the third aspect of the present invention, one kind is provided to load the system comprises load balancing service, with described
In the message components service of weighing apparatus communication for service connection and the service cluster of deducting fees being connect with the message components communication for service
Node, in which:
The message components service, including memory, processor and be stored on the memory and can be at the place
The computer program run on reason device realizes side as described in relation to the first aspect when the computer program is executed by the processor
Method step;
The load balancing service, including memory, processor and be stored on the memory and can be at the place
The computer program run on reason device, the computer program realize method step as described below when being executed by the processor
Rapid: reception prison, which broadcasts message and broadcasts message according to the prison, generates request message of deducting fees;
The node deducted fees in service cluster, including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, the computer program realizes method as described below when being executed by the processor
Step: pulling untreated request message of deducting fees in the message queue according to own load, is executed according to the request message of deducting fees
Related service processing.
According to the fourth aspect of the present invention, a kind of computer readable storage medium is provided, the computer-readable storage medium
It is stored with computer program in matter, the step of charging method as described in relation to the first aspect is realized when which is executed by processor
Suddenly.
Charging method, device, system and the computer readable storage medium of the embodiment of the present invention, connect in load balancing service
When receiving prison and broadcasting message, no longer it is that direct docking is deducted fees service cluster, but prison is first broadcast into message generation and is deducted fees request message hair
It gives in message components service write-in message queue, request message of deducting fees is buffered by message components service, is deducted fees in this way
Each node in service cluster can pull request message of deducting fees according to self-ability from message components service and carry out from business
Reason, had both ensured the stability for the service of deducting fees, and had also ensured the real-time deducted fees, accuracy.
Detailed description of the invention
Fig. 1 is a kind of advertising business system architecture in the prior art;
Fig. 2 is another advertising business system architecture in the prior art;
Fig. 3 is a kind of flow chart for charging method that the embodiment of the present invention one provides;
Fig. 4 is a kind of flow chart of advertisement charging method provided by Embodiment 2 of the present invention;
Fig. 5 is the flow chart that step S407 interior joint carries out atomicity business processing to request message of individually deducting fees in Fig. 4;
Fig. 6 is a kind of composition schematic diagram for system of deducting fees that the embodiment of the present invention three provides.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
The embodiment of the present invention one provides charging method.Including the charging method of the present embodiment is used to deduct fees including advertisement
Payment operation.The method of the present embodiment can be used system architecture shown in fig. 6 and realize.Referring to Fig. 3, method flow includes:
Step S301, the request message of deducting fees of message components service balancing received load service;
Step S302, by the request message write-in message queue of deducting fees, so that the node in service cluster of deducting fees disappears from this
Breath queue in pull it is untreated deduct fees request message and according to this deduct fees request message carry out business processing.
In a feasible scheme, this method further include:
Message components service marks the state of the request message of deducting fees according to the service condition of the request message of deducting fees
Note, to indicate whether it is processed.
Specifically, can the state as follows to the request message of deducting fees be marked:
It is unused that the status indication of the request message of deducting fees of the message queue, which will be written,;
By by the status indication for the request message of deducting fees that node pulls be used;
When knowing that some node is abnormal, which is pulled but is not completed the state of the request message of deducting fees of processing
Labeled as unused;
It is to be completed by the status indication of the request message of deducting fees when knowing that request message of deducting fees has been processed into;
Wherein, it is not used request message of deducting fees that current untreated request message of deducting fees, which includes status indication,.
In practical application, it can be set when the node in expense service cluster pulls request message of deducting fees from message queue
When, it is merely able to pull state and is marked as not used request message of deducting fees, can effectively prevent a request of deducting fees in this way
Message is repeated to pull and causes to repeat the case where deducting fees.
In addition, when knowing that some node is abnormal (such as message components service and the connection of the node disconnect), it will
The status indication of what the abnormal nodes pulled deduct fees request message be it is unused, request message of deducting fees relevant in this way can be by it
His node, which pulls, to be continued with, and is realized business rollback, can be effectively prevent data contamination, can also be to avoid because of node exception
Caused by handle delay.
In practical application, when request message of deducting fees is pulled by the node, message components service can also be somebody's turn to do by locking
The mode request message that avoids deducting fees of request message of deducting fees is repeated and pulls, then with the node when linking abnormal disconnect,
The request message of deducting fees is unlocked, realizes business rollback.
It, can be by reporting performance to know that request message of deducting fees has had been processed by node in practical application.
In a feasible scheme, this method further include:
Message components service periodically deletes state in the message queue and is marked as completed request message of deducting fees.
In a feasible scheme, this method further include:
Load balancing service, which receives to supervise to broadcast message and broadcast message according to the prison, generates request message of deducting fees.
In a feasible scheme, this method further include:
Node in the service cluster of deducting fees reads untreated request of deducting fees in the message queue according to own load and disappears
Breath;
Related service processing is executed according to the request message of deducting fees.
The charging method of the present embodiment is no longer that direct docking is deducted fees when load balancing service receives prison and broadcasts message
Service cluster, but first by prison broadcast message generation deduct fees request message be sent to message components service write-in message queue in, by
Message components service buffers request message of deducting fees, and each node in service cluster of deducting fees in this way can be according to self-ability
Request message of deducting fees is pulled from message components service and carries out business processing, had both been ensured the stability for the service of deducting fees, and had been also ensured that
The real-time deducted fees, accuracy.
On the basis of previous embodiment, second embodiment of the invention provides a kind of method that advertisement is deducted fees, this implementation
In example, load balancing service can use Nginx load balancing service, and message components service can use Kafka message components
Service.Referring to Fig. 4, method flow includes:
Step S401, the prison that triggering is deducted fees when client obtains advertisement into advertisement SSP service broadcasts message.
In practical application, client can be can terminal in a variety of manners implement to obtain advertisement.For example, mobile phone,
Tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), just
Prompt formula media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The fixed terminals such as equal mobile terminals, and number TV, desktop computer.
In practical application, launching Commdity advertisement on advertising platform can be divided mainly into following several types: expose by thousand times
The display advertising that meter takes, by the information flow advertisement of click volume charging, by the application series advertisements for downloading successfully number charging, by sharp
Successful game series advertisements living.Advertiser is according to the budget of itself and the expense standard of different type advertisement, in advertising platform
On supplement with money, create advertisement, the single advertisement daily consumption limit (Day Sum Limited) of setting, and finally successfully launch, displaying is in vast interconnection
In the terminal electronic device of network users.
Advertising platform can broadcast information according to prison and be deducted fees accordingly when the merchandise news of advertiser is pushed to user
Handle (and off-frame treatment), and supervise that broadcast information then different according to the difference of advertisement type, such as show prison broadcast, click supervise broadcast,
Downloading prison is broadcast, prison is activated to broadcast.
Step S402, Nginx load balancing service broadcasts message according to the prison received and generates solicited message of deducting fees.
In practical application, the relevant parameter of deducting fees supervised and broadcast in message is carried in the request message of deducting fees.
Step S403, the Nginx load balancing service request message that will deduct fees is sent to Kafka message components service.
Step S404, Kafka message components service receives request message of deducting fees, and is written into message queue.
Step S405, it deducts fees message of the node according to own load ability from Kafka message components service of service cluster
At least one is pulled in queue to deduct fees request message, and executes step S407.
In practical application, each node can be as much as possible from Kafka message components service according to own load ability
It is pulled in message queue and deducts fees solicited message and carry out atomicity business processing.
Step S406, the request message of deducting fees that Kafka message components service lock is pulled.
Step S407, each node broadcasts the triggered time of message along successively to each button according to the corresponding prison of request message of respectively deducting fees
Expense request message carries out atomicity business processing (including deduct fees and undercarriage).
When a node can pull it is a plurality of deduct fees solicited message when, can be drawn from message queue according to queue sequence
It takes.When handling a plurality of solicited message of deducting fees pulled, then it can broadcast and disappear according to the corresponding prison of request message of respectively deducting fees
The triggered time of breath is along successively to request message progress atomicity business processing of respectively deducting fees.
Specifically, step S407 carries out the process of atomicity business processing referring to Fig. 5, packet to request message of individually deducting fees
It includes:
Step S501, this advertising expenditure is deducted according to request message of deducting fees, and it is cumulative to carry out expense.
The expense of this step is cumulative to refer to that the advertising expenditure for deducting this is added in the expense of advertiser.
Step S502, calculating and determine whether the remaining sum of advertiser is sufficient, if so, executing step S503, otherwise execute step
Rapid S505;
Step S503, judge whether advertisement volume limit reaches the upper limit, if so, step S504 is executed, it is no to then follow the steps
S506;
Step S504, it determines the undercarriage advertisement and notifies that advertisement is deducted fees bundle of services, execute step S506.
Step S505, the undercarriage advertiser all advertisements under one's name are determined and notify that advertisement is deducted fees bundle of services, and step is executed
S506。
Step S506, the business processing that notice Kafka message components service the request message of deducting fees is completed.
During carrying out fee deduction treatment, if executing failure, business rollback (Kafka message groups at this time in certain link
Part service will unlock the request message of deducting fees), and corresponding request message of deducting fees will not be deleted in the service of Kafka message components
It removes, but other nodes can be transferred to continue with, it is last to delete Kafka message if whole service logic smoothly runs succeeded
Prison of deducting fees in Component service is broadcast, and is prevented repetition and is deducted fees.
After node, which pulls, deducts fees request message, request of deducting fees that the service of Kafka message components pulls latch node
Message, and be to be used by its status indication.When Kafka message components service knows that some node is abnormal, by this
The status indication that node pulled but do not completed the request message of deducting fees of processing is unused, to realize business rollback;Work as Kafka
It is complete by the status indication of the request message of deducting fees when message components service knows that request message of deducting fees has been processed into
At.
The charging method of the present embodiment, by releasing high concurrent in the preposition Kafka message components service of service cluster of deducting fees
Prison of deducting fees broadcasts the impact to the service of deducting fees, and combines the atom model for undercarriage business of deducting fees, and realizes the accuracy that advertisement is deducted fees
With the timeliness of advertisement undercarriage;On the basis of ensureing that advertiser rationally effectively uses budget, the mesh of advertising platform profit is realized
Mark.
On the basis of previous embodiment, the embodiment of the present invention three provides one kind and deducts fees system, referring to Fig. 6, this is
System includes load balancing service 601, the message components service 602 connecting with load balancing service communication 601 and disappears with this
Cease the node of the service cluster 603 of deducting fees of Component service communication connection.
Load balancing service 601 includes: memory, processor and is stored on the memory and can be on the processor
The computer program of operation, the computer program realize method and step as described below when being executed by the processor:
It receives to supervise to broadcast message and broadcast message according to the prison and generates request message of deducting fees.
Message components service 602 includes: memory, processor and is stored on the memory and can be on the processor
The computer program of operation, the computer program realize method and step as described below when being executed by the processor:
The request message of deducting fees of message components service balancing received load service;
By the request message write-in message queue of deducting fees, so that the node in service cluster of deducting fees is drawn from the message queue
Take it is untreated deduct fees request message and according to this deduct fees request message carry out business processing.
In a feasible scheme, which also realizes that method as described below walks when being executed by the processor
It is rapid:
Message components service according to respectively deduct fees request message service condition respectively deduct fees to this request message state carry out
Label, to indicate whether it is processed.
In a feasible scheme, message components service is being executed according to the service condition for request message of respectively deducting fees to this
Respectively deduct fees request message state be marked step when, the computer program by the processor execute when also realize following institute
State method and step:
It is unused that the status indication of the request message of deducting fees of the message queue, which will be written,;
By by the status indication for the request message of deducting fees that node pulls be used;
When knowing that some node is abnormal, which is pulled but is not completed the state of the request message of deducting fees of processing
Labeled as unused;
It is to be completed by the status indication of the request message of deducting fees when knowing that request message of deducting fees has been processed into;
Wherein, it is not used request message of deducting fees that current untreated request message of deducting fees, which includes status indication,.
In a feasible scheme, which also realizes that method as described below walks when being executed by the processor
It is rapid:
When the request message of deducting fees is pulled by the node, the request message of deducting fees is locked;
After the request message of deducting fees is pulled by the node, with the node when linking abnormal disconnect, unlocks this and deduct fees and ask
Seek message.
In a feasible scheme, which also realizes that method as described below walks when being executed by the processor
It is rapid:
It periodically deletes state in the message queue and is marked as completed request message of deducting fees.
It deducts fees the node of service cluster 603, comprising: memory, processor and be stored on the memory and can be at this
The computer program run on processor, the computer program realize method and step as described below when being executed by the processor:
Untreated request message of deducting fees in the message queue is pulled according to own load;
Related service processing is executed according to the request message of deducting fees.
In a feasible scheme, when the charging method is applied in advertisement payment operation, in the execution service of deducting fees
When node in cluster executes related service processing according to request message of deducting fees, when which is executed by the processor also
Realize method and step as described below:
It deducts this advertising expenditure and carries out expense and add up;
Judge whether the remaining sum of advertiser is sufficient;
If remaining sum is sufficient, judge whether the limit of advertisement corresponding with the expense reaches the upper limit, and true when reaching the upper limit
Fix the frame advertisement;
If Sorry, your ticket has not enough value, it is determined that all advertisements of the undercarriage advertiser under one's name.
The system of deducting fees of the present embodiment is no longer that direct docking is deducted fees when load balancing service receives prison and broadcasts message
Service cluster, but first by prison broadcast message generation deduct fees request message be sent to message components service write-in message queue in, by
Message components service buffers request message of deducting fees, and each node in service cluster of deducting fees in this way can be according to self-ability
Request message of deducting fees is pulled from message components service and carries out business processing, has not only ensured that advertisement was deducted fees the stability of service, but also
Ensure real-time, accuracy that advertisement is deducted fees.
On the basis of previous embodiment, the embodiment of the present invention four provides computer readable storage medium, the computer
It is stored with computer program on readable storage medium storing program for executing, such as embodiment one is realized when which is executed by processor or implements
The step of charging method described in example two.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, the computer software product be stored in one it is computer-readable
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, calculate
Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of charging method, the described method comprises the following steps:
The request message of deducting fees of message components service balancing received load service;
By the request message write-in message queue of deducting fees, so that the node in service cluster of deducting fees is drawn from the message queue
Take it is untreated deduct fees request message and according to it is described deduct fees request message carry out business processing.
2. charging method as described in claim 1, which is characterized in that the method also includes:
Message components service marks the state for respectively deducting fees request message according to the service condition for request message of respectively deducting fees
Note, to indicate whether it is processed.
3. charging method as claimed in claim 2, which is characterized in that the message components service is according to request message of respectively deducting fees
Service condition the state for respectively deducting fees request message is marked, comprising:
It is unused that the status indication of the request message of deducting fees of the message queue, which will be written,;
By by the status indication for the request message of deducting fees that node pulls be used;
When knowing that some node is abnormal, the node is pulled but is not completed the state mark of the request message of deducting fees of processing
It is denoted as unused;
It is to be completed by the status indication of the request message of deducting fees when knowing that request message of deducting fees has been processed into;
Wherein, it is not used request message of deducting fees that current untreated request message of deducting fees, which includes status indication,.
4. charging method as claimed in claim 3, which is characterized in that when the method also includes:
When the request message of deducting fees is pulled by the node, request message of deducting fees described in locking;
After the request message of deducting fees is pulled by the node, when linking abnormal disconnect, the button is unlocked with the node
Take request message.
5. charging method as described in claim 1, which is characterized in that the method also includes:
The load balancing service, which receives to supervise to broadcast message and broadcast message according to the prison, generates request message of deducting fees.
6. charging method as described in claim 1, which is characterized in that the method also includes:
Node in the service cluster of deducting fees pulls untreated request of deducting fees in the message queue according to own load and disappears
Breath;
Related service processing is executed according to the request message of deducting fees.
7. charging method as claimed in claim 6, which is characterized in that when the charging method is applied in advertisement payment operation
When, the node in the service cluster of deducting fees executes related service processing according to request message of deducting fees, comprising:
It deducts this advertising expenditure and carries out expense and add up;
Judge whether the remaining sum of advertiser is sufficient;
If remaining sum is sufficient, judge whether the limit of advertisement corresponding with the expense reaches the upper limit, and when reaching the upper limit under determination
Advertisement described in frame;
If Sorry, your ticket has not enough value, it is determined that all advertisements of advertiser described in undercarriage under one's name.
8. a kind of message components service, which is characterized in that the message components service includes: memory, processor and storage
On the memory and the computer program that can run on the processor, the computer program are held by the processor
Such as Claims 1-4 described in any item method and steps are realized when row.
The system 9. one kind is deducted fees, which is characterized in that communicated the system comprises load balancing service, with the load balancing service
Node in the message components service of connection and the service cluster of deducting fees being connect with the message components communication for service, in which:
The message components service, including memory, processor and be stored on the memory and can be in the processor
The computer program of upper operation is realized when the computer program is executed by the processor such as any one of Claims 1-4 institute
The method and step stated;
The load balancing service, including memory, processor and be stored on the memory and can be in the processor
The computer program of upper operation, the computer program realize method as claimed in claim 5 when being executed by the processor
Step
The node deducted fees in service cluster, including memory, processor and be stored on the memory and can be at the place
The computer program run on reason device, is realized as claimed in claims 6 or 7 when the computer program is executed by the processor
Method and step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the step of the charging method as described in any one of claims 1 to 7 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256588.1A CN109377279A (en) | 2018-10-26 | 2018-10-26 | A kind of charging method, device, system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256588.1A CN109377279A (en) | 2018-10-26 | 2018-10-26 | A kind of charging method, device, system and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109377279A true CN109377279A (en) | 2019-02-22 |
Family
ID=65389922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811256588.1A Pending CN109377279A (en) | 2018-10-26 | 2018-10-26 | A kind of charging method, device, system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109377279A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152393A (en) * | 2013-02-05 | 2013-06-12 | 北京邮电大学 | Charging method and charging system for cloud computing |
US20150082321A1 (en) * | 2013-09-13 | 2015-03-19 | Linkedln Corporation | Cross document communication |
CN105812478A (en) * | 2016-04-18 | 2016-07-27 | 宁波轩悦行电动汽车服务有限公司 | Mobile phone APP communication system and load balancing method and car renting method |
US20160267447A1 (en) * | 2015-03-11 | 2016-09-15 | Facebook, Inc. | Facilitating sending, receiving, and updating of payments using message and payment queues |
CN108134830A (en) * | 2017-12-20 | 2018-06-08 | 马上消费金融股份有限公司 | Load-balancing method, system, device and storage medium based on message queue |
-
2018
- 2018-10-26 CN CN201811256588.1A patent/CN109377279A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152393A (en) * | 2013-02-05 | 2013-06-12 | 北京邮电大学 | Charging method and charging system for cloud computing |
US20150082321A1 (en) * | 2013-09-13 | 2015-03-19 | Linkedln Corporation | Cross document communication |
US20160267447A1 (en) * | 2015-03-11 | 2016-09-15 | Facebook, Inc. | Facilitating sending, receiving, and updating of payments using message and payment queues |
CN105812478A (en) * | 2016-04-18 | 2016-07-27 | 宁波轩悦行电动汽车服务有限公司 | Mobile phone APP communication system and load balancing method and car renting method |
CN108134830A (en) * | 2017-12-20 | 2018-06-08 | 马上消费金融股份有限公司 | Load-balancing method, system, device and storage medium based on message queue |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104168177B (en) | Method and device for presenting and browsing group messages in instant communication program | |
Jiang et al. | A generalized Norton–Bass model for multigeneration diffusion | |
CN105378696B (en) | Message count is not seen across the offer of each equipment | |
ES2909530T3 (en) | Secure mobile information system | |
CN108984325A (en) | Message queue consuming method and device | |
CN106899457B (en) | The method and server of online hours are applied in a kind of monitoring | |
CN106204136A (en) | A kind of advertisement delivery system and advertisement placement method | |
WO2022012658A1 (en) | Information display method and apparatus, and electronic device | |
CN111985914B (en) | Settlement method, settlement device, settlement node and readable storage medium | |
CN110175871A (en) | A kind of ad content monitoring method and device based on map interactive interface | |
CN107809530A (en) | A kind of method and terminal for generating prompting message | |
CN109829592A (en) | A kind of attrition prediction method, apparatus, equipment and the storage medium of express delivery cabinet user | |
CN109377279A (en) | A kind of charging method, device, system and computer readable storage medium | |
CN112948068B (en) | Task scheduling method and device and electronic equipment | |
CN107632834A (en) | Self-defined application dispositions method, device, equipment and computer-readable recording medium | |
CN107257358A (en) | A kind of information-pushing method, terminal and server | |
CN112261085B (en) | Task distribution method and system based on session, electronic equipment and storage medium | |
CN115048140A (en) | Version control method and device, electronic equipment and storage medium | |
CN107743085A (en) | Invite code management method and invitation code managing device | |
JP2007226650A (en) | Ticket management device, ticket management method, and ticket management program | |
CN111178846A (en) | Workflow file generation method, device, equipment and storage medium | |
CN115376239B (en) | Method, device, system, computer equipment and storage medium for registering and shaking numbers | |
CN104699691B (en) | A kind of interaction with media methods, devices and systems | |
CN111611123A (en) | Data processing method, data processing system and equipment | |
CN109167719A (en) | A kind of super large community implementation method with content intelligence isolation features |
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 |
Application publication date: 20190222 |
|
RJ01 | Rejection of invention patent application after publication |