Embodiment
In the embodiment of the present application, it is first determined need to use each user of resource, and then according to each user
Shared resource pond is set up, subsequently for each user, when receiving the resource allocation request for the user,
Just it can be distributed according to the resource allocation of the user set in advance rule from the shared resource pond for the user
Resource.It can be seen that method described herein, without individually setting up resource pool for each user, but sets up one
The individual shared resource pond for each user resource allocation so that when each user needs consumption resource, from this
Be each user resource allocation in shared resource pond, it is to avoid user's No Assets are available or resource pool in resource it is not busy
The phenomenon put, it is to avoid the wasting of resources, improves resource utilization.
It is specifically real below in conjunction with the application to make the purpose, technical scheme and advantage of the application clearer
Apply example and technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than whole embodiments.Based on the implementation in the application
Example, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of the application protection.
The resource allocation process that Fig. 1 provides for the embodiment of the present application, specifically includes following steps:
S101:It is determined that to use each user of resource.
In the embodiment of the present application, described resource allocation process is related to resource provider and resource user
(that is, user), and the resource provider before resource is provided for each user, it is necessary to first determine needs make
With each user of resource, i.e. first determine each user for having use demand to resource.Specifically, the resource is carried
Supplier can be by the server for resource allocation, it is determined that needing to use each user of resource.
In addition, when it is determined that this will use each user of resource, for each user, the server can be with
The resource submitted according to the user determines that the user is the user of resource to be used, or the service using request
Device can be according to the history resource usage record of each user, it is determined that to use each user of resource, or the clothes
Be engaged in device can each user user property, user classification, it is determined that to use each user (that is, clothes of resource
Device be engaged in by qualified user, is defined as each user of resource to be used, e.g., VIP user is defined as
Use each user of resource).That is, the server can determine to use in several ways
Each user of resource, and which kind of mode is above-mentioned three kinds of modes is not limited to using, specifically can be by the resource
Provider is voluntarily selected, set, and the application is not limited this.
Further, resource allocation process described in this application can be periodic or once
Property (e.g., the daystart first resource assigning process of each calendar month, or when the resource of each user
Usage amount starts first resource assigning process when reaching threshold value).That is, the server is that periodic determination will
Each user of resource is used using each user of resource, or irregular determination.And the specific resource
When assigning process starts, and when terminates, and how to start, and how to terminate, can be by the resource provider root
According to flexibly determination is needed, the application is simultaneously not specifically limited.
For example, the network hard disc storage platform of a storage service operator offer (hereinafter referred to as, put down by Dropbox
Platform), the memory space (that is, is considered as one by the server A of the Dropbox platform for the distribution of memory space
Kind of resource), and the Dropbox platform only provides network storage service to the user for having paid monthly fee, then the clothes
It is engaged in the zero points of first day of the device A in each calendar month, is paid the fees situation according to the current monthly fee of each user, it is determined that
Use memory space user (that is, in first day zero point of each calendar month, will pay this naturally with
The user of corresponding monthly fee is defined as the user of memory space to be used).It is assumed that in zero point on January 1,
The server A determines that user a, user b, user c have paid the monthly fee in January, it is determined that the user
A, user b, user c will use memory space.
It should be noted that the server for being used for resource allocation can be a single equipment or
The system being made up of multiple equipment.Also, the resource of user described in this application is using request, to want
Using each user of resource, the resource sent to the resource provider is using asking, wherein pre- comprising each user
The own resource usage amount estimated.Certainly, the resource is existed using the selection of the visual resource provider of request
Or be not present.
S102:According to each user of determination, shared resource pond is set up.
In the embodiment of the present application, after each user of resource to be used is determined, the server just can basis
Each user determined, sets up shared resource pond, so as to subsequently when to each user resource allocation, can be from this
It is the user resource allocation in resource-sharing pond.
Specifically, the server can be directed to each user first, the resource usage amount of the user is estimated.Wherein,
For each user, the server can estimate the user's according to the history resource usage record of the user
Resource usage amount from now on, as the resource usage amount of the user estimated, or the server can basis
The resource of user is using the resource usage amount included in request, as this resource usage amount estimated, again
Or the server can be to the user history resource usage record and the resource request for utilization of the user
In after the resource usage amount that includes is weighted respectively, the resource of estimating for determining the user by weighted calculation makes
Consumption.Certainly, the resource usage amount that how the application estimates user for the service implement body is not limited.
Secondly, the server can determine that resource is used total according to the resource usage amount estimated for each user
Amount.Specifically, due in this application, no longer setting up resource pool respectively for each user, but need
Shared resource pond is set up, so after the resource usage amount estimated for each user is determined, the server
Also need to determine that resource uses total amount, then the server can be by the resource estimated for each user of determination
Usage amount sum uses total amount as resource, i.e. the resource can be considered as the server using total amount and estimate
Resource use total amount.
Finally, the server just can use total amount according to the resource, set up shared resource pond.Wherein, due to
The shared resource pond needs to provide resource for each user, and now the server can only use total amount according to resource
Come substantially judge each user in actual use the need for resource use total amount, so the shared resource pond
The amount of middle resource can use total amount no less than the resource, to allow the stock number in the shared resource pond to expire
Each user of foot resource required in actual use uses total amount.Certainly, the resource in the shared resource pond
Amount can also be adjusted according to actual conditions, e.g., be used when the server can not be provided no less than the resource
During the resource of total amount, the stock number that the server can be adjusted in the resource pool in the range of default stock number is few
Total amount is used in the resource, then now, due to each with resource is obtained from the resource pool per family, so still may be used
The situation of the wasting of resources is avoided the occurrence of to a certain extent.It should be noted that the default stock number scope is
For the size of a resource numerical quantity, and the stock number scope can be determined by the server or by it is artificial really
Determine, can predefine or determine in real time.
Continue to use the example above, it is assumed that the server A is directed to user a, user b, user c, according to the use
The monthly fee in January that family a, user b, user c are paid, estimates the user a, user b, user c 1
The memory space usage amount in month is 1GB, then can determine that memory space usage amount in January is 3GB, then
The server A can set up shared memory space pond, and the size in the shared memory space pond is 4GB.
And it should be noted that, although the memory space in the shared memory space pond be the user a, user b,
User c is used in conjunction with, but the server A can by the user a, user b, user c account
Family is identified, and distinguishes the user a, user b, user c so that each user can't when using memory space
Conflict, i.e. it for service A is shared that the shared memory space pond, which is only, for each user
Workable memory space is independent.
S103:For each user, when receiving the resource allocation request for the user, according to advance
The resource allocation rule set for the user, is the user resource allocation from the shared resource pond.
In the embodiment of the present application, just can be from the shared money after the server establishes shared resource pond
It is each user resource allocation in the pond of source.Also, in order to avoid the wasting of resources, so the server can be according to reality
Border service condition is each user resource allocation, i.e. be each user again when each user is actually needed using resource
Distribute corresponding resource, it is to avoid the server occur and be assigned with resource for user, but user does not use and is somebody's turn to do
The situation of resource.
Specifically, the server is directed to each user, when receiving the resource allocation request for the user,
According to the resource allocation rule that the user sets is directed in advance, money is distributed for the user from the shared resource pond
Source.Wherein, the resource allocation rule set in advance for the user, is to receive the money for the user
After the distribution request of source, the server determines to need how many resource distributed for the user from the shared resource pond
Rule, i.e. the server is regular according to the resource allocation of the user, it is determined that for the resource allocation of the user
Corresponding stock number is asked, and the user is given by the resource allocation of the stock number from the shared resource pond.
In addition, in this application, the resource of correspondence user can be distributed in the resource allocation request comprising needs
Amount, i.e. the stock number that the user needs to use, so that the server determines that the user is currently needed for what is used
Stock number, so that according to the resource allocation rule set for the user, is performed follow-up from the shared resource
The step of Chi Zhongwei user resource allocations.
Further, the resource allocation rule set in advance for the user can be the server in step
In S101 when " it is determined that to use each user of resource ", set for each user, or the service
When device " according to each user of determination, sets up shared resource pond " in step s 102, for each user
Setting, or even the server can be in newly-built user just to money of the newly-built user's setting for the user
Source allocation rule (that is, the server sets the resource point for the user to the user of each new registration
With rule).That is, the server only needs to set each user couple before allocating resources for each user
The resource allocation rule answered, does not limit when the server is providing for each user setting in this application
Source allocation rule.
Further, the server is the resource allocation rule that each user sets, and can be identical, also may be used
To differ.(e.g., the history resource usage record when the resource service condition of each user is relatively unified
Resource usage amount that is close, estimating is close), the server can set same resource allocation for each user
Rule, it is possible to reduce the operating pressure of the server, while being also avoided that the situation of the wasting of resources occurs.And
When the resource service condition difference of each user is larger, (e.g., history resource usage record is far from each other, receive
To the stock number that is used using the application in request of resource it is also mutually far short of what is expected), the server can be according to each
The difference of user, regular (e.g., the going through by user of resource allocation that the user sets is defined as by calculating
The record that history resource is used, it is found that the user often in multiple city login accounts and uses resource, may relate to
And many people share same account, then the resource allocation rule set for the user can be:Only receiving
By it is conventional log in the resource allocation request for being directed to the user that place is sent when, be just user distribution money
Source, and ignore the resource allocation request for the user sent by abnormal login place), so as to the clothes
Business device subsequently can more accurately distribute resource, it is to avoid the situation of the wasting of resources occurs.Certainly, resource point
Diversified forms are can also be with rule, e.g., according to the stock number that distribution is asked in resource allocation request, are pressed
The stock number that ratio-dependent is distributed from the shared resource pond for the user, and for example, according to current shared resource
Remaining stock number in pond, is in proportion the user resource allocation, specifically how to determine resource allocation rule,
The application is not limited.
Continue to use the example above, it is assumed that January 1, the user a wants to back up a 300MB by Dropbox
The video file of size, and this is that the user a carries out data backup by the Dropbox for the first time in January,
Then the server A can receive the resource allocation request α for the user a, and the resource allocation request
Resource usage amount, i.e. 300MB are included in α.It is further assumed that for the user a server A
Resource allocation rule i has been set, and resource allocation rule i is:When user's a memory spaces are used
After amount is more than 1GB, the user a can only back up the file less than 10MB, if in a calendar month
Last 5 days, space in the shared memory space pond can use this to be total to still greater than 1GB, then the user a
Enjoy remaining space in memory space pond and carry out data backup, and no longer limit user's a backup files
Size.Then, after the server A receives resource allocation request α, according to resource allocation rule,
Determine that the user a can be uploaded and be backed up the video file of the 300MB sizes, and it is empty from the shared storage
Between in pond distribution 300MB space give the user a.
Continue it is assumed that cut-off zero point on January 27, the server A is the user a, user b, user c
1GB, 1MB, 500MB memory space are assigned with respectively, then now in the shared memory space pond
Remaining space is 3GB+499MB=3571MB, then, according to resource allocation rule i, now the user a
The Dropbox backup file can be continuing with, and the file of 3571MB sizes can be backed up altogether.And if,
In ensuing 5 days, the user a has backed up the file that size is 3G again, then the server A is set up
The memory space in shared memory space pond be used up substantially complete, reduce the wasting of resources.
By the resource allocation methods shown in Fig. 1, the resource provider (the hreinafter referred to as server),
First determine to use the user of resource, and according to each user of determination, estimate the resource usage amount of each user,
Further according to the resource usage amount of each user estimated, shared resource pond is set up, so that the server is being received
For some user resource allocation request when, the server can according in advance be directed to the user set resource
Allocation rule, is each user resource allocation by the shared resource pond.Relative to existing method, in the application
In the method for offer, it is seen that each with resource is obtained from the shared resource pond per family, without being that each is used again
Corresponding resource pool is set up at family so that even if the resource usage amount and the reality of the user estimated for some user
Border resource usage amount is not inconsistent, and does not result in the waste of resource yet, or causes user's No Assets can use.It can be seen that,
Due to estimating for the resource usage amount relative to individual user, it is determined that the user that use resource it is overall
Estimating for resource usage amount be relatively large number, even if so the resource usage amount for individual user is estimated not
Accurately, the substantial amounts of wasting of resources is not resulted in yet, and due to not resulting in the substantial amounts of wasting of resources, so
Just improve resource utilization.
In addition, when the server sets up shared resource pond, due to the stock number corresponding to the resource usage amount
May very big (resource that e.g., Dropbox server is determined may be up to hundreds of or thousands of PB using total amount),
And single resource provider possibly can not meet demand, so in order to meet the possible needs of the demand server
Multiple resource providers.But, the server is from the shared resource when for each user resource allocation
Pond distribution resource, so the server also needs to provider in the middle of one, as connecting each user and multiple
The intermediary of resource provider.
Specifically, the server first can use total amount according to the resource, some resource providers are determined, afterwards
The middle provider of the authority with the resource for calling each resource provider to be provided is resettled, shared money is used as
Source pond.Also, the stock number sum that some resource providers can be provided uses total amount no less than the resource.
Then, each use can obtain the server-assignment by shared resource pond (that is, middle provider) per family and give the use
The resource at family, and the server can also provide resource by multiple resource providers.
Also, because the server indeed through middle provider provides resource for each user, so
The server can also flexibly be changed, added, deleting some resource providers, without influenceing to use each
The resource allocation at family.Such as, when finding the resource usage amount of each user far fewer than the resource in the shared resource pond
During amount, the server can reduce the quantity of resource provider so that the resource provider can be other clothes
Business device provides resource, simultaneously as the resource usage amount of each user is all seldom, so can't influence to be each
User resource allocation.
Then, further, " server is being each use from the shared resource pond in step s 103
Resource is distributed at family ", then it can call what each resource provider was provided by the middle provider for the server
Resource, and give the user by the resource allocation called.
Further, for each user, the server is that the resource allocation rule that the user sets also may be used
To be adjusted according to actual conditions.For example, it is assumed that by the resource provider that the server is determined can be carried
The resource of confession is less (that is, the resource that the middle provider is provided to each user is less), so the service
Device is that the resource allocation rule that each user sets relatively strictly (e.g., only provides the resource point for each user
With request requested resource amount ten/mono-), but in the actual use resource of each user, it is assumed that should
Server determines some resource providers that can provide ample resources again, and (that is, the middle provider can provide
Resource to each user is more), then the server can adjust the resource allocation rule set to each user
(such as there is provided 9/10ths of the resource allocation request requested resource amount for each user), makes each use
Family can be assigned to more resources by the middle provider.Certainly, the resource set for each user
How allocation rule specifically adjusts, and can be determined by the resource provider, the application is particularly limited to not to this.
Based on the resource allocation process shown in Fig. 1, it is to sell that the embodiment of the present application, which is additionally provided corresponding to operator,
A kind of resource allocation process that family user is subsidized, as shown in Figure 2.
A kind of resource allocation process that Fig. 2 provides for the embodiment of the present application, specifically includes following steps:
S201:It is determined that to use each seller user of the subsidy amount of money.
In embodiment itself, the electric business operation platform of described resource allocation process, as electric business is at this
Carried on the work on platform activity seller carry out fund subsidy process.Due to, in real life, electric business
In order to promote consumer to be consumed on the electric business operation platform of the electric business, all kinds of preferential beat may be released
Folding activity, still, for each seller user, might not wish synchronous with the electric business operation platform
Carry out preferential activity or might not wish to use the same margin of preference, institute with the electric business operation platform
With the electric business operation platform in order to which preferential activity can be smoothed out, then need to be mended for each seller user
Patch.
Then, in the electric business operation platform, it is responsible for seller user and carries out the server of amount of money subsidy (below
Abbreviation server), it can first determine to need to use each seller user of the subsidy amount of money, so as to subsequently to each seller
User is subsidized.Specifically, the server then can according to the electric business operation platform need hold it is movable
Content, to determine each seller user that use the subsidy amount of money.Certainly, the server can also be by other
Condition determines to use each seller user of the subsidy amount of money (e.g., sales volume to be met to desired each seller user
It is defined as using each seller user of the subsidy amount of money), specifically how to determine to need to use each of the subsidy amount of money
Seller user, the application is not limited.
For example, certain electric business operation platform, will hold the activity of the folding of household appliances 8, then the electric business operation platform
In be used for the server B subsidized to each seller user, according to the activity programming of the electric business operation platform,
Each seller user for determining household appliances is to use each seller user of the subsidy amount of money, it is assumed that the now server
B determines seller user d, seller user e, seller user f, to use each seller user of subsidy turpitude.
S202:According to each seller user of determination, shared amount of money pond is set up.
In the embodiment of the present application, after each seller user of resource to be used is determined, the server just may be used
According to each seller user of determination, shared amount of money pond is set up.
Specifically, the server can be sold according to the activity description of the electric business operation platform for each first
Family user, according to the historical sales volume of the seller user, estimates the consumption sum of the seller user, and according to
(e.g., the folding of the whole audience 8 activity, then this sells the subsidy amount of money usage amount for the seller user that the activity description is estimated
The subsidy amount of money usage amount of family user for the consumption sum of the seller user 20%).Also, the server
Each seller can also be further estimated according to historical consumer for all kinds of movable consumption growth patterns
The sales volume of user, more accurately to determine subsidy amount of money usage amount (e.g., the history of the seller user
On for the folding of the whole audience 8 activity, consumer consumption increase by 200%, then the consumption sum of each seller user can
With expected increase by 200%, then 200%) the subsidy amount of money usage amount of each seller user can also increase accordingly.
Secondly, the server can be according to the subsidy amount of money usage amount estimated for each seller user, it is determined that mending
The volume of gilding uses total amount.
Finally, the server just can use total amount according to the subsidy amount of money, set up shared fund pool.Also,
Subsidy amount of value in the shared amount of money pond uses total amount for the subsidy amount of money.Certainly, as in step S102
Described, the subsidy amount of money in the shared amount of money pond also can use total amount more or less than the subsidy amount of money, such as
The electric business operation platform has only prepared 2,000,000 yuan of the subsidy amount of money for the activity, and subsidizes the amount of money and use total amount
Estimated as 3,000,000 yuan, then the server can determine that the subsidy amount of money in the shared fund pool is 200
Wan Yuan.
Continue to use the example above, it is assumed that the server B is directed to seller user d, seller user e, seller user
F, according to the seller user d, seller user e, seller user f historical sales volume, estimate this and sell family expenses
Family d, seller user e, sales volumes of the seller user f during the activity be 200,000 yuan, 220,000 yuan and
300000 yuan.And the server B is found by historical record, consumer is for the activity of the folding of the household electrical appliances whole audience 8
With very high enthusiasm, average sale can increase by 100%.So the server B can be further pre-
Estimate the seller user d, seller user e, sales volumes of the seller user f during the activity for 400,000 yuan,
440000 yuan and 600,000 yuan, then for make a call to 8 foldings activity, the server can determine the seller user d,
The subsidy amount of money that seller user e, seller user f are needed to use is 80,000 yuan, 8.8 ten thousand yuan and 120,000 yuan.
Then, the server B can determine that the subsidy amount of money is 28.8 ten thousand yuan using total amount.It is further assumed that should
Electric business operation platform is the subsidy amount of money that this activity has prepared 300,000 yuan, then the server B can be set up
Subsidize the shared fund pool that the amount of money is 300,000 yuan.
S203:For each seller user, when receiving the subsidy request for the seller user, according to
The subsidy amount of money allocation rule set in advance for the seller user, is the user from the shared amount of money pond
The distribution subsidy amount of money.
In the embodiment of the present application, after the server establishes shared fund pool, when the electric business operation is flat
After the activity of platform starts, the server just can be directed to each seller user, and the seller user is directed to when receiving
Subsidy request when, according to the subsidy amount of money allocation rule that the seller user sets is directed in advance, from described common
Enjoy in amount of money pond as the user distribution subsidy amount of money.
Specifically, because general electric business operator is when releasing preferential movable, the preferential activity is by electronics
The form of reward voucher carries out that preferential (that is, consumer uses by getting electronic coupons, and in consumption
The electric reward voucher, reaches and obtains preferential purpose in clearing), so selling for the server and respectively family expenses
For family, for each seller user, when the electronic ticket that the server receives the seller user is corresponding
During usage record, then it can determine that the server receives the subsidy request for the seller user.That is,
The corresponding usage record of electronic ticket of each seller user received is sold family expenses by the server as this
The subsidy request at family, then the server just can subsequently be asked according to the subsidy, distributed the seller user and mended
Gild volume.
Further, if in this application the electronic ticket for can the whole audience it is general, i.e. consumer can be directed to
Different seller users uses identical electronic ticket, then because the electronic ticket is that consumer sells family expenses variant
What is used when commodity or consumption bought in family, so when consumer uses the electronic ticket, the electronic ticket will
The mark of the seller user is obtained, so that the server can be determined corresponding to sell family expenses by the electronic ticket
Family, and it is used as the corresponding usage record of electronic ticket of the seller user.If the electronic ticket is each in this application
Seller user is special, i.e. consumer needs to use different electronic tickets in different seller's customer consumptions,
The mark of each seller user then should be carried in the electronic ticket, the server can equally determine corresponding
Seller user, is used as the corresponding usage record of the electronic ticket of the seller user.
Further, the general electric business operation platform is when doing activity, and in the activity, the electric business is runed in
Platform for consumer provide it is preferential can't be by the electric business operation platform alone bear, but by respectively selling family expenses
Family and the electric business operation platform shared.Disappear for example, being supplied in certain activity of certain electric business operation platform
One 20 yuan of expense person are of use volume, when this 20 yuan be of use certificate it is for consumer use after, this is of use volume institute
The amount of money that is of use for 10 yuan in 20 yuan being of use needs to be undertaken by some seller user, and remaining 10 yuan
It is of use the amount of money then to be undertaken by the electric business operation platform, then the electric business operation platform is also needed to as seller user point
With 10 yuan of the subsidy amount of money.
Then in this application, for each seller user, when the server receives the electricity of the seller user
During the corresponding usage record of sub- certificate, the subsidy that the server can first determine to receive for the seller user please
Ask, the server can determine the corresponding preferential rule of the electronic ticket included in the usage record again afterwards, and
According to the preferential rule, the corresponding preferential amount of money of the electronic ticket is determined, then the server can be according to advance pin afterwards
The subsidy amount of money allocation rule set to the seller user, determines to need in the preferential amount of money to be given to this and sells
The partial amount of family user, as the subsidy amount of money, finally the server can be according to the subsidy amount of money, by this
Intermediate account transfers the fund corresponding with the subsidy amount of money that each fund account is provided, and sells family expenses to this
The fund that family distribution is transferred.
Wherein, the preferential rule is:For the usage record of the electronic ticket, when consumer uses the electronic ticket
When, it is necessary to give the preferential amount of money of the preferential person.Such as, the same preferential electronic ticket of 8 foldings, when consumer disappears
Take 10000 yuan in use, the corresponding preferential amount of money of the electronic ticket is 2000 yuan, when 10 yuan of consumer spending
When, the corresponding preferential amount of money of the electronic ticket is 2 yuan.Specifically, the preferential rule can be put down by the electric business operation
Platform determines that the application is not limited.
In application itself, the subsidy amount of money allocation rule is:For the corresponding amount of money of each electronic ticket, really
That part is that the seller user needs oneself to undertake in the fixed amount of money, and that part is that the electric business operation is put down
Platform needs what is undertaken.Also, because the sales situation of each seller user may be different, so the preferential rule
Can also be different.Such as, preferential, the seller user e of 8.8 foldings can be undertaken for seller user d
The preferential of 9.5 foldings can only be undertaken, then the electric business operation platform is in order that the whole audience all realizes that 8 foldings are preferential, then
Subsidy dynamics for the seller user d and seller user e also can be different, i.e. preferential rule is different, that
For the seller user d, the electric business operation platform needs to subsidize the preferential amount of money of 0.2 folding, for the seller
The user e electric business operation platforms need to subsidize the preferential amount of money of 1.5 foldings.
Also, the server " can determine some resource providers, resettle has afterwards as mentioned before
The middle provider of the authority for the resource that each resource provider provided is called, shared resource pond is used as ", together
Fund in reason, the shared fund pool may also be what is provided by multiple fund accounts, i.e., the server is being set up
During shared fund pool, total amount is used according to the subsidy amount of money, some fund accounts that the subsidy amount of money is provided are determined,
The intermediate account of the authority with the fund for calling each fund account to be provided is set up, as shared amount of money pond,
Wherein, the fund sum that some fund accounts are provided uses total amount no less than the subsidy amount of money.Then finally should
Server, can transfer the money corresponding with the subsidy amount of money that each fund account is provided by the intermediate account
Gold, and the fund transferred is distributed to the seller user, namely complete the subsidy to the seller user.
It can be seen that, because the server is, by the shared fund pool, subsidy, institute to be provided to each seller user
Even if the subsidy amount of money needed with certain several seller user is less than being expected, due to the benefit of other seller users needs
The volume of gilding is equally likely to or more than expection, thus be not in it is of the prior art due to fund pool fund not
Foot cause activity terminate in advance, due in fund pool fund residue cause animation effect not reach expected feelings
Condition.That is, by Fig. 2 resource allocation methods, the wasting of resources can be effectively prevented from, resource is improved and uses effect
Rate.
Based on the document transmission process shown in Fig. 1, the embodiment of the present application also provides a kind of resource allocation device,
As shown in Figure 3.
Fig. 3 is that the embodiment of the present application provides a kind of structural representation of file transfer means, is specifically included:
Determining module 301, for determining to use each user of resource;
Module 302 is set up, for each user according to determination, shared resource pond is set up;
Distribute module 303, for for each user, when receiving the resource allocation request for the user
When, it is the user from shared resource pond clock according to the resource allocation rule that the user sets is directed in advance
Distribute resource.
It is described set up module 302 specifically for, for each user, estimate the resource usage amount of the user,
According to the resource usage amount estimated for each user, determine that resource uses total amount, used according to the resource
Total amount, sets up shared resource pond, wherein, the stock number in the shared resource pond uses total for the resource
Amount.
The module 302 of setting up is specifically for using total amount according to the resource, determining that some resources are provided
Side, wherein, the stock number sum that some resource providers are provided uses total amount no less than the resource,
The middle provider for setting up the authority with the resource for calling each resource provider to be provided, is used as shared resource
Pond.
The distribute module 303 by the middle provider specifically for calling each resource provider to be carried
The resource of confession, and give the user by the resource allocation called.
Specifically, above-mentioned resource allocation device as shown in Figure 3 can be located in server, the server can
With the system for being a single equipment or being made up of multiple equipment.
Based on the resource allocation process shown in Fig. 2, the embodiment of the present application also provides a kind of resource allocation device,
As shown in Figure 4.
Fig. 4 is that the embodiment of the present application provides a kind of structural representation of the resource allocation device based on Fig. 2, tool
Body includes:
Determining module 401, for determining to use each seller user of the subsidy amount of money;
Module 402 is set up, for each seller user according to determination, shared amount of money pond is set up;
Distribute module 403, for for each seller user, when receiving the subsidy for the seller user
During request, according to the subsidy amount of money allocation rule that the seller user sets is directed in advance, from the shared amount of money
The Chi Zhongwei user distribution subsidy amount of money.
The module 402 of setting up is specifically for for each seller user, estimating the subsidy of the seller user
Amount of money usage amount, according to the subsidy amount of money usage amount estimated for each seller user, it is determined that the subsidy amount of money makes
With total amount, total amount is used according to the subsidy amount of money, shared amount of money pond is set up, wherein, the shared amount of money
Subsidy amount of value in pond uses total amount for the subsidy amount of money.
The module 402 of setting up is specifically for using total amount according to the subsidy amount of money, determining some offers
The fund account of the amount of money is subsidized, wherein, the fund sum that some fund accounts are provided is mended no less than described
The volume of gilding uses total amount, sets up the intermediate account of the authority with the fund for calling each fund account to be provided,
It is used as shared amount of money pond.
The distribute module 403 when the electronic ticket for receiving the seller user is corresponding specifically for using note
During record, it is determined that receiving the subsidy request for the seller user.
The distribute module 403 is specifically for determining the electronic ticket correspondence included in the usage record
Preferential rule, according to the preferential rule, the corresponding preferential amount of money of the electronic ticket is determined, according to advance
The subsidy amount of money allocation rule set for the seller user, determines to need subsidy in the preferential amount of money
To the partial amount of the seller user, as the subsidy amount of money, according to the subsidy amount of money, pass through the centre
Account transfers the fund corresponding with the subsidy amount of money that each fund account is provided, and sells family expenses to described
The fund that family distribution is transferred.
Specifically, above-mentioned resource allocation device as shown in Figure 4 can be located at the clothes for being used for distributing the subsidy amount of money
It is engaged in device, the server can be a single equipment or the system being made up of multiple equipment.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes that information is stored.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
Random access memory (RAM), read-only storage (ROM), the electrically erasable of his type are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be calculated available for storage
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
The data-signal and carrier wave of body (transitory media), such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, commodity or equipment including a series of key elements not only include
Those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the application can be used wherein includes calculating one or more
Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on the form of computer program product implemented.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., should be included within the scope of claims hereof.