CN109903023B - Resource allocation method and system - Google Patents

Resource allocation method and system Download PDF

Info

Publication number
CN109903023B
CN109903023B CN201811398778.7A CN201811398778A CN109903023B CN 109903023 B CN109903023 B CN 109903023B CN 201811398778 A CN201811398778 A CN 201811398778A CN 109903023 B CN109903023 B CN 109903023B
Authority
CN
China
Prior art keywords
resource
resource allocation
allocation
platform
detail
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811398778.7A
Other languages
Chinese (zh)
Other versions
CN109903023A (en
Inventor
赵路平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811398778.7A priority Critical patent/CN109903023B/en
Publication of CN109903023A publication Critical patent/CN109903023A/en
Application granted granted Critical
Publication of CN109903023B publication Critical patent/CN109903023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A resource allocation method and system are disclosed. The resource allocation method is applied to a resource allocation system, the system comprises an allocation platform and a resource platform, the allocation platform and the resource platform agree on resource allocation time in advance, and the method comprises the following steps: in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity; before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform; the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment; and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.

Description

Resource allocation method and system
Technical Field
The embodiment of the specification relates to the technical field of Internet, in particular to a resource allocation method and system.
Background
In the case of allocating a resource to a plurality of resource receivers, it is required to allocate the resource to the plurality of resource receivers at a certain timing due to the allocation-existence time requirement of the resource. For example, taking resources as red packets, for some enterprises, for example, at a certain moment in spring festival, an enterprise will perform an activity of allocating red packets, and the number of red packets allocated each time is in the billion level, and a subsequent resource receiving party (here, a user) receives the red packets.
In this way, since a large number of resources need to be allocated at a certain moment, the allocation platform needs to calculate the number of resource allocations of each resource receiver at the moment, that is, determine the resource allocation details, and call the corresponding resources from the resource platform according to the resource allocation details, so as to allocate the corresponding number of resources for each resource receiver. However, in the actual situation, the time when the resource receiver actually receives the resource is inconsistent with the time when the resource is allocated, and there is a time delay. How to reduce the time delay, so that the time when the resource receiver actually receives the resource is close to the time when the resource is allocated, is a current urgent problem to be solved.
Disclosure of Invention
Aiming at the technical problems, the embodiment of the specification provides a resource allocation method and a resource allocation system, wherein the technical scheme is as follows:
the resource allocation method is applied to a resource allocation system, the system comprises an allocation platform and a resource platform, the allocation platform and the resource platform agree on resource allocation time in advance, and the method comprises the following steps:
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform;
the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
A resource allocation method applied to an allocation platform, the method comprising:
determining a resource allocation detail in a preset time period before a resource allocation moment, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation time, the resource allocation detail is sent to a resource platform, so that the resource platform receives the resource allocation detail, the resource allocation detail is stored locally, the current time is monitored, and when the current time is consistent with the resource allocation time, a corresponding number of resources are allocated to each resource receiver according to the resource allocation detail.
A resource allocation method applied to a resource platform, the method comprising:
receiving a resource allocation detail, wherein in a preset time period before a resource allocation moment, the allocation platform determines the resource allocation detail and sends the resource allocation detail to the resource platform before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
storing the resource allocation details locally;
monitoring the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
A resource allocation system, the system comprising: the system comprises a distribution platform and a resource platform, wherein the distribution platform and the resource platform are both pre-agreed with resource distribution time;
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform;
the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
A resource allocation apparatus for use with an allocation platform, the apparatus comprising:
the system comprises a detail determining module, a resource allocation module and a resource allocation module, wherein the detail determining module is used for determining the resource allocation detail in a preset time period before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
and the detail sending module is used for sending the resource allocation detail to the resource platform before the resource allocation moment so that the resource platform receives the resource allocation detail, locally storing the resource allocation detail, monitoring the current moment, and allocating a corresponding number of resources for each resource receiver according to the resource allocation detail when the current moment is consistent with the resource allocation moment.
A resource allocation apparatus for use with a resource platform, the apparatus comprising:
the system comprises a detail receiving module, a resource allocation detail processing module and a resource allocation control module, wherein the resource allocation detail is determined by an allocation platform in a preset time period before a resource allocation moment, and is sent to the resource platform before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
the detail storage module is used for locally storing the resource allocation detail;
the time monitoring module is used for monitoring the current time;
and the resource allocation module is used for allocating corresponding quantity of resources to each resource receiver according to the resource allocation detail when the current moment is consistent with the resource allocation moment.
According to the technical scheme provided by the embodiment of the specification, in a preset time period before the resource allocation time, the allocation platform determines the resource allocation details and sends the resource allocation details to the resource platform before the resource allocation time, the resource platform receives the resource allocation details, monitors the current time, and allocates corresponding quantity of resources for each resource receiver according to the resource allocation details when the current time is consistent with the resource allocation time. Therefore, the resource allocation details are synchronized in advance, and the resource call is not involved any more, so that the resource allocation is only carried out in the resource platform, the time delay is greatly shortened, and the time when the resource receiver actually receives the resource is approximate to the time when the resource is allocated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the disclosure.
Further, not all of the effects described above need be achieved in any of the embodiments of the present specification.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present description, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of an interaction flow between a distribution platform and a resource platform in a prior art solution;
FIG. 2 is a schematic diagram of an interaction flow between a distribution platform and a resource platform according to an embodiment of the present disclosure;
FIG. 3 is a schematic view of a resource allocation apparatus applied to an allocation platform according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a resource allocation device applied to a resource platform according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an apparatus for configuring the device of the embodiment of the present specification.
Detailed Description
In the case of allocating a resource to a plurality of resource receivers, it is required to allocate the resource to the plurality of resource receivers at a certain timing due to the allocation-existence time requirement of the resource. For example, for some enterprises and institutions, at a certain moment in spring festival, an enterprise will perform an activity of distributing red packets, and the number of red packets distributed each time is mostly in the billion level, and subsequent resource receivers (here, users) receive the red packets. In this way, since a large number of resources need to be allocated at a certain moment, the allocation platform needs to calculate the number of resource allocations of each resource receiver at the moment, that is, determine the resource allocation details, and call the corresponding resources from the resource platform according to the resource allocation details, so as to allocate the corresponding number of resources to each resource receiver, and the interaction flow diagram is shown in fig. 1.
However, in actual situations, the time when the resource receiver actually receives the resource is inconsistent with the time when the resource is allocated, for example, the time when the resource receiver actually receives the resource is 10:00, and the time when the resource receiver actually receives the resource is 10:01, and there is a time delay, which is ideal, the time when the resource receiver actually receives the resource is consistent with the time when the resource is allocated, however, the above effect cannot be achieved due to various reasons such as network delay, and only the time when the resource receiver actually receives the resource can be made to approach to the time when the resource is allocated.
Aiming at the problems, the embodiment of the specification provides a technical scheme, which synchronizes the resource allocation details in advance, does not involve resource calling any more, and only performs resource allocation in a resource platform, so that the time delay is greatly shortened, and the time when a resource receiver actually receives the resource is approximate to the time of resource allocation.
Specifically, the technical scheme provided in the embodiment of the present specification is as follows:
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity; before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform; the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment; and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
In this specification, a resource refers to a resource that has a requirement on time consistency (the time when a resource receiving party receives the resource coincides with the time when the resource is allocated, which may be points, red packets, limit coupons, tasks to be processed, memories, bandwidths, etc., and a corresponding resource receiving party may be a user, a server, a certain process, etc., and it should be noted that the embodiment of this specification only just exemplifies a few examples, and is not limited to the concrete representation of the resource and the resource receiving party. The allocation platform and the resource platform may be regarded as two subsystems, which respectively correspond to a specific server or a server cluster, and may implement communication connection through various types of networks, which is not limited in this specification.
In order for those skilled in the art to better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification shall fall within the scope of protection.
The following describes the resource allocation method in detail, referring to the interactive flow diagram shown in fig. 2, the method may include the following steps:
s201, in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
in the present specification, both the allocation platform and the resource platform agree on a resource allocation time in advance, for example, the resource allocation time agreed in advance by both the allocation platform and the resource platform is 10:00. In a preset time period before the resource allocation moment, the allocation platform determines the resource allocation detail, which means that the allocation platform calculates the resource allocation quantity corresponding to all resource receivers in advance, and the specific allocation platform determines the resource allocation detail by the following modes:
in a preset time period before the resource allocation moment, the allocation platform determines the number of resource receivers, allocates the corresponding resource allocation number for each resource receiver according to a preset resource allocation algorithm, so that the corresponding resource allocation number of each resource receiver can be obtained, at least the identifier of each resource receiver and the corresponding resource allocation number form a resource invention detail, so that the resource allocation detail can be determined, and the resource allocation detail at least comprises: the identity of the resource receiver and the corresponding number of resource allocations. The resource allocation algorithm may be an average allocation algorithm, or may be a random allocation algorithm, or a method for determining that a plurality of groups of different resource allocation amounts are randomly allocated to the resource receiver, and specific resource allocation algorithms are various, which are not described in detail herein, and may be selected according to actual needs.
The identification of the resource recipient, e.g., the resource recipient is a user, may be the recipient's name, nickname, personal account, etc., e.g., the resource recipient is a server, may be the recipient's number, IP address, etc., e.g., the resource recipient is a process, may be the recipient's name, i.e., any information that may be used to uniquely identify the recipient, to name a few examples, the present description embodiment is illustrative.
For example, taking the case that the resource allocation is red packet allocation, in 1 day before the resource allocation time 10:00, the allocation platform determines that the number of resource receivers is ten millions, determines that 100 groups of red packet allocation amount is 888, 100 groups of red packet allocation amount is 666, randomly selects 200 resource receivers from the ten millions of resource receivers, randomly allocates the 200 groups of red packet allocation amount to the 200 resource receivers, and randomly allocates red packet allocation amounts of the rest resource receivers to 0-2, so that red packet allocation amounts corresponding to each resource receiver can be obtained, and the red packet allocation details are formed by the identification of each resource receiver and the corresponding red packet allocation amount.
In addition, the total number of resource allocation is pre-agreed by the two parties of the allocation platform and the resource platform, and the total number of the resource allocation is consistent with the total number of the resource allocation pre-agreed by the two parties. For example, if the total number of resource allocations pre-agreed by both parties is one hundred million, the total number of participating resource allocations should also be one hundred million.
S202, before the resource allocation moment, the allocation platform sends the resource allocation details to the resource platform;
for the resource allocation details obtained in S201, the allocation platform needs to send them to the resource platform before the resource allocation time, that is, needs to synchronize them to the resource platform. For example, the resource allocation time is 10:00, and before 10:00, the resource allocation details can be synchronized to the resource platform at 09:59.
It is noted that the resource allocation time is any time between the determination of the resource detail and the resource allocation time. Preferably, the time for synchronizing the resource allocation details of the allocation platform can be specifically set according to actual needs because the time for ensuring that the resource platform receives the completed resource details is also before the resource allocation time.
S203, the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
the allocation platform sends the resource allocation details to the resource platform before the resource allocation moment, the resource platform receives the resource allocation details, and preferably, the moment when the resource platform receives the resource allocation details is finished should be before the resource allocation moment.
The received resource allocation details are stored, where they may be stored in a local database or in a local disk, and the embodiments of the present disclosure are not limited in this regard.
Preferably, before the locally storing the resource allocation details, the method may further include: and calculating the total number of the resource allocation corresponding to the resource allocation list according to the resource allocation list, judging whether the total number of the resource allocation corresponding to the resource allocation list is consistent with the total number of the resource allocation pre-agreed by the two parties, if so, storing the resource allocation list locally, and if not, informing the allocation platform to resynchronize the resource allocation list.
For example, prior to locally storing the resource allocation details, the resource allocation details are shown in Table 1 below:
Figure BDA0001875834610000071
Figure BDA0001875834610000081
TABLE 1
The total number of resource allocations (for example, one hundred million) corresponding to the resource allocation list can be calculated from the resource allocation list, and the total number of resource allocations agreed in advance by both parties is one hundred million.
On the other hand, the resource platform needs to monitor the current time besides receiving and storing the resource allocation details, wherein the current time can be monitored in real time, whether the current time is consistent with the resource allocation time pre-agreed by both parties or not is judged, and corresponding operation is executed according to the judgment result.
And S204, when the current time is consistent with the resource allocation time, allocating corresponding quantity of resources for each resource receiver according to the resource allocation detail.
When the current time is consistent with the resource allocation time pre-agreed by both parties, namely, the resource allocation time is determined to come, the resource platform allocates the corresponding number of resources for each resource receiver according to the stored resource allocation detail, namely, allocates the corresponding number of resources to the resource receiver.
In addition, the resource allocation quantity corresponding to the resource receiver can be displayed according to the resource allocation detail, so that the resource receiver knows the obtained resource allocation quantity. For example, the resource receiver a may know that the number of resource allocations obtained by itself is 888 credits, and the resource receiver B may know that the number of resource allocations obtained by itself is 666 credits.
The resource allocation number display and the resource change operation may be performed simultaneously or sequentially, which is not limited in this specification.
For the detailed description of the scheme provided in the embodiment of the present specification, taking the application scenario of red packet distribution as an example, the distribution platform determines that the number of red packet receivers is ten millions within 1 day before the red packet distribution time of 10:00, determines that 100 groups of red packet distribution amounts are 888, 100 groups of red packet distribution amounts are 666, randomly selects 200 red packet receivers from the ten millions of red packet receivers, randomly distributes the 200 groups of red packet distribution amounts to the 200 red packet receivers, and randomly distributes the remaining red packet receivers with red packet distribution amounts between 0 and 2, so as to obtain the red packet distribution amount corresponding to each red packet receiver, and the red packet invention details are formed by the identification of each red packet receiver and the corresponding red packet distribution amount. In addition, the total amount of the red packet distribution agreed by both parties in advance is one hundred million, and the total amount of the red packet distribution participating should be one hundred million.
Before the red packet distribution time is 10:00, the distribution platform synchronizes the red packet distribution details to the resource platform, the resource platform receives the red packet distribution details, calculates one hundred million of red packet distribution total amount corresponding to the red packet distribution details according to the red packet distribution details, judges that the red packet distribution total amount is consistent with the red packet distribution total amount agreed by both sides in advance, locally stores the red packet distribution details, monitors the current time, and when the red packet distribution time is temporary, namely, the current time is consistent with the red packet distribution time, the resource platform distributes red packets with corresponding amount for each red packet receiver according to the stored red packet distribution details, namely, carries out resource change on personal accounts corresponding to each red packet receiver, and transfers the corresponding red packet distribution amount to the personal account corresponding to the red packet receiver. Meanwhile, according to the red packet distribution details, the red packet distribution amount corresponding to the red packet receiver is displayed, so that the red packet receiver knows the obtained red packet distribution amount.
Through the description of the technical scheme provided by the embodiment of the present specification, in a preset time period before the resource allocation time, the allocation platform determines the resource allocation details, and sends the resource allocation details to the resource platform before the resource allocation time, the resource platform receives and stores the resource allocation details, monitors the current time, and when the current time is consistent with the resource allocation time, allocates a corresponding number of resources for each resource receiver according to the resource allocation details. Therefore, the resource allocation details are synchronized in advance, and the resource call is not involved any more, so that the resource allocation is only carried out in the resource platform, the time delay is greatly shortened, and the time when the resource receiver actually receives the resource is approximate to the time when the resource is allocated.
In order to more clearly describe the solution of the embodiments of the present specification, the following describes the method to be executed from the single-sided point of view:
for the distribution platform, the tasks to be performed are mainly as follows:
a, determining a resource allocation detail in a preset time period before a resource allocation moment, wherein the resource allocation detail at least comprises the following steps: identification of the resource receiver and corresponding resource allocation quantity;
b, before the resource allocation moment, sending the resource allocation details to a resource platform;
for a resource platform, the tasks to be performed are mainly as follows:
a, receiving the resource allocation details, locally storing the resource allocation details, and monitoring the current moment;
b, when the current time is consistent with the resource allocation time, allocating corresponding quantity of resources for each resource receiver according to the resource allocation detail.
For details of the resource platform and the single-side execution method of the resource platform, reference may be made to the description of the foregoing embodiments, which are not repeated here.
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a resource allocation device, applied to the allocation platform, as shown in fig. 3, where the device may include: a detail determining module 310 and a detail sending module 320.
A detail determining module 310, configured to determine a resource allocation detail in a preset period of time before a resource allocation moment, where the resource allocation detail at least includes: identification of the resource receiver and corresponding resource allocation quantity;
and the detail sending module 320 is configured to send the resource allocation detail to a resource platform before the resource allocation time, so that the resource platform receives the resource allocation detail, locally stores the resource allocation detail, monitors a current time, and allocates a corresponding number of resources to each resource receiver according to the resource allocation detail when the current time is consistent with the resource allocation time.
The embodiment of the present disclosure further provides a resource allocation device, which is applied to a resource platform, and as shown in fig. 4, the device may include: a detail receiving module 410, a detail storing module 420, a time monitoring module 430 and a resource allocation module 440.
A detail receiving module 410, configured to receive a resource allocation detail, where during a preset period of time before a resource allocation time, the allocation platform determines the resource allocation detail, and sends the resource allocation detail to the resource platform before the resource allocation time, where the resource allocation detail at least includes: identification of the resource receiver and corresponding resource allocation quantity;
a detail storage module 420, configured to store the resource allocation detail locally;
a time monitoring module 430, configured to monitor a current time;
and a resource allocation module 440, configured to allocate a corresponding number of resources to each resource receiver according to the resource allocation details when the current time is consistent with the resource allocation time.
The embodiment of the specification also provides a resource allocation system, which comprises: the system comprises a distribution platform and a resource platform, wherein the distribution platform and the resource platform are both pre-agreed with resource distribution time;
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform;
the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
Through the description of the technical scheme provided by the embodiment of the present specification, in a preset time period before the resource allocation time, the allocation platform determines the resource allocation details, and sends the resource allocation details to the resource platform before the resource allocation time, the resource platform receives and stores the resource allocation details, monitors the current time, and when the current time is consistent with the resource allocation time, allocates a corresponding number of resources for each resource receiver according to the resource allocation details. Therefore, the resource allocation details are synchronized in advance, and the resource call is not involved any more, so that the resource allocation is only carried out in the resource platform, the time delay is greatly shortened, and the time when the resource receiver actually receives the resource is approximate to the time when the resource is allocated.
Embodiments of the present disclosure also provide a computer device, as shown in fig. 5, which may include: processor 510, memory 520, input/output interface 530, communication interface 540, and bus 550. Wherein processor 510, memory 520, input/output interface 530, and communication interface 540 enable a communication connection within the device between each other via bus 550.
The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 520 may store an operating system and other application programs, and when the embodiments of the present disclosure are implemented in software or firmware, the associated program code is stored in memory 520 and executed by processor 510.
The input/output interface 530 is used for connecting with an input/output module to realize information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The communication interface 540 is used to connect with a communication module (not shown in the figure) to enable communication interaction between the present device and other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 550 includes a path to transfer information between elements of the device (e.g., processor 510, memory 520, input/output interface 530, and communication interface 540).
It should be noted that although the above device only shows the processor 510, the memory 520, the input/output interface 530, the communication interface 540, and the bus 550, in the implementation, the device may further include other components necessary for achieving normal operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned resource allocation method. The method at least comprises the following steps:
a resource allocation method applied to an allocation platform, the method comprising:
determining a resource allocation detail in a preset time period before a resource allocation moment, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation time, the resource allocation detail is sent to a resource platform, so that the resource platform receives the resource allocation detail, the resource allocation detail is stored locally, the current time is monitored, and when the current time is consistent with the resource allocation time, a corresponding number of resources are allocated to each resource receiver according to the resource allocation detail.
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned resource allocation method. The method at least comprises the following steps:
a resource allocation method applied to a resource platform, the method comprising:
receiving a resource allocation detail, wherein in a preset time period before a resource allocation moment, the allocation platform determines the resource allocation detail and sends the resource allocation detail to the resource platform before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
storing the resource allocation details locally;
monitoring the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
From the foregoing description of embodiments, it will be apparent to those skilled in the art that the present embodiments may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present specification.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the functions of the modules may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present disclosure. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely a specific implementation of the embodiments of this disclosure, and it should be noted that, for a person skilled in the art, several improvements and modifications may be made without departing from the principles of the embodiments of this disclosure, and these improvements and modifications should also be considered as protective scope of the embodiments of this disclosure.

Claims (14)

1. The resource allocation method is applied to a resource allocation system, the system comprises an allocation platform and a resource platform, the allocation platform and the resource platform agree on resource allocation time in advance, and the method comprises the following steps:
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform;
the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
2. The method of claim 1, wherein both the allocation platform and the resource platform pre-agree on a total number of resource allocations;
the resource platform receives the resource allocation details, locally stores the resource allocation details, and comprises:
the resource platform receives the resource allocation details and calculates the total number of resource allocation corresponding to the resource allocation details according to the resource allocation details;
judging whether the total number of the resource allocation corresponding to the resource allocation detail is consistent with the total number of the resource allocation pre-agreed by the two parties;
if yes, the resource allocation details are stored locally.
3. The method of claim 2, wherein the determining, by the allocation platform, the resource allocation details during the preset period of time before the resource allocation moment comprises:
in a preset time period before the resource allocation moment, the allocation platform determines the number of resource receivers;
and allocating a corresponding number of resources to each resource receiver according to a preset resource allocation algorithm, wherein a resource allocation list is formed by at least the identification of each resource receiver and the number of the resources allocated to each resource receiver, and the total number of the resources participating in the resource allocation is consistent with the total number of the resource allocation pre-agreed by the two parties.
4. A method according to any one of claims 1 to 3, further comprising:
the resource platform displays the resource allocation quantity corresponding to the resource receiver.
5. A resource allocation method applied to an allocation platform, the method comprising:
determining a resource allocation detail in a preset time period before a resource allocation moment, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation time, the resource allocation detail is sent to a resource platform, so that the resource platform receives the resource allocation detail, the resource allocation detail is stored locally, the current time is monitored, and when the current time is consistent with the resource allocation time, a corresponding number of resources are allocated to each resource receiver according to the resource allocation detail.
6. A resource allocation method applied to a resource platform, the method comprising:
receiving a resource allocation detail, wherein in a preset time period before a resource allocation moment, the allocation platform determines the resource allocation detail and sends the resource allocation detail to the resource platform before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
storing the resource allocation details locally;
monitoring the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
7. A resource allocation system, the system comprising: the system comprises a distribution platform and a resource platform, wherein the distribution platform and the resource platform are both pre-agreed with resource distribution time;
in a preset time period before the resource allocation moment, the allocation platform determines a resource allocation detail, wherein the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
before the resource allocation moment, the allocation platform sends the resource allocation details to a resource platform;
the resource platform receives the resource allocation details, locally stores the resource allocation details and monitors the current moment;
and when the current time is consistent with the resource allocation time, allocating a corresponding number of resources for each resource receiver according to the resource allocation detail.
8. The system of claim 7, wherein both the allocation platform and the resource platform pre-agree on a total number of resource allocations;
the resource platform locally stores the resource allocation details specifically by:
the resource platform receives the resource allocation details and calculates the total number of resource allocation corresponding to the resource allocation details according to the resource allocation details;
judging whether the total number of the resource allocation corresponding to the resource allocation detail is consistent with the total number of the resource allocation pre-agreed by the two parties;
if yes, the resource allocation details are stored locally.
9. The system of claim 8, the allocation platform determining the resource allocation details specifically by:
in a preset time period before the resource allocation moment, the allocation platform determines the number of resource receivers;
and allocating a corresponding number of resources to each resource receiver according to a preset resource allocation algorithm, wherein a resource allocation list is formed by at least the identification of each resource receiver and the number of the resources allocated to each resource receiver, and the total number of the resources participating in the resource allocation is consistent with the total number of the resource allocation pre-agreed by the two parties.
10. The system of any of claims 7 to 9, further comprising:
the resource platform displays the resource allocation quantity corresponding to the resource receiver.
11. A resource allocation apparatus for use with an allocation platform, the apparatus comprising:
the system comprises a detail determining module, a resource allocation module and a resource allocation module, wherein the detail determining module is used for determining the resource allocation detail in a preset time period before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
and the detail sending module is used for sending the resource allocation detail to the resource platform before the resource allocation moment so that the resource platform receives the resource allocation detail, locally storing the resource allocation detail, monitoring the current moment, and allocating a corresponding number of resources for each resource receiver according to the resource allocation detail when the current moment is consistent with the resource allocation moment.
12. A resource allocation apparatus for use with a resource platform, the apparatus comprising:
the system comprises a detail receiving module, a resource allocation detail processing module and a resource allocation control module, wherein the resource allocation detail is determined by an allocation platform in a preset time period before a resource allocation moment, and is sent to the resource platform before the resource allocation moment, and the resource allocation detail at least comprises: identification of the resource receiver and corresponding resource allocation quantity;
the detail storage module is used for locally storing the resource allocation detail;
the time monitoring module is used for monitoring the current time;
and the resource allocation module is used for allocating corresponding quantity of resources to each resource receiver according to the resource allocation detail when the current moment is consistent with the resource allocation moment.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of claim 5 when executing the program.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of claim 6 when executing the program.
CN201811398778.7A 2018-11-22 2018-11-22 Resource allocation method and system Active CN109903023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811398778.7A CN109903023B (en) 2018-11-22 2018-11-22 Resource allocation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811398778.7A CN109903023B (en) 2018-11-22 2018-11-22 Resource allocation method and system

Publications (2)

Publication Number Publication Date
CN109903023A CN109903023A (en) 2019-06-18
CN109903023B true CN109903023B (en) 2023-07-11

Family

ID=66943313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811398778.7A Active CN109903023B (en) 2018-11-22 2018-11-22 Resource allocation method and system

Country Status (1)

Country Link
CN (1) CN109903023B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468833B (en) * 2020-10-26 2022-11-11 北京达佳互联信息技术有限公司 Live broadcast interactive information processing method, device, terminal, server and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343951A (en) * 2000-09-11 2002-04-10 日本电气株式会社 Method of distributing idle time of CPU, and system of carrying out such method
CN101911755A (en) * 2008-01-07 2010-12-08 松下电器产业株式会社 Radio transmission device and retransmission control method
CN102346690A (en) * 2010-07-30 2012-02-08 国际商业机器公司 Resource allocation method and device
CN105701602A (en) * 2016-01-06 2016-06-22 北京京东尚科信息技术有限公司 Resource distribution method and device
EP3043527A1 (en) * 2015-01-12 2016-07-13 Palo Alto Research Center, Incorporated Resource allocation using ccn manifests
CN106211074A (en) * 2016-07-28 2016-12-07 深圳市八零年代网络科技有限公司 The distribution method of e-sourcing and distributor
CN106485419A (en) * 2016-10-18 2017-03-08 财付通支付科技有限公司 A kind of two level resource administration methods and device
CN107179949A (en) * 2016-12-16 2017-09-19 重庆大学 It is a kind of to be used for the quantization method that operating system memory in mobile device distributes fluency
JP2017211751A (en) * 2016-05-24 2017-11-30 日本電信電話株式会社 Resource allocation system, resource allocation method, and resource allocation program
CN107832901A (en) * 2017-07-28 2018-03-23 平安科技(深圳)有限公司 Method for allocating tasks, device, terminal device and storage medium
CN107885591A (en) * 2016-09-27 2018-04-06 华为技术有限公司 For the method and terminal of application distributing system resource

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060143617A1 (en) * 2004-12-29 2006-06-29 Knauerhase Robert C Method, apparatus and system for dynamic allocation of virtual platform resources
US20080244607A1 (en) * 2007-03-27 2008-10-02 Vladislav Rysin Economic allocation and management of resources via a virtual resource market
CN104301257B (en) * 2014-09-17 2018-01-02 华为技术有限公司 A kind of resource allocation methods, device and equipment
US9575804B2 (en) * 2015-03-27 2017-02-21 Commvault Systems, Inc. Job management and resource allocation
US9871857B2 (en) * 2015-04-29 2018-01-16 Microsoft Technology Licensing, Llc Optimal allocation of dynamic cloud computing platform resources
CN107222430A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of resource allocation methods and device
CN108462658B (en) * 2016-12-12 2022-01-11 阿里巴巴集团控股有限公司 Object allocation method and device
CN108629611A (en) * 2017-03-24 2018-10-09 北京京东尚科信息技术有限公司 Method and apparatus for distributing resource
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343951A (en) * 2000-09-11 2002-04-10 日本电气株式会社 Method of distributing idle time of CPU, and system of carrying out such method
CN101911755A (en) * 2008-01-07 2010-12-08 松下电器产业株式会社 Radio transmission device and retransmission control method
CN102346690A (en) * 2010-07-30 2012-02-08 国际商业机器公司 Resource allocation method and device
EP3043527A1 (en) * 2015-01-12 2016-07-13 Palo Alto Research Center, Incorporated Resource allocation using ccn manifests
CN105701602A (en) * 2016-01-06 2016-06-22 北京京东尚科信息技术有限公司 Resource distribution method and device
JP2017211751A (en) * 2016-05-24 2017-11-30 日本電信電話株式会社 Resource allocation system, resource allocation method, and resource allocation program
CN106211074A (en) * 2016-07-28 2016-12-07 深圳市八零年代网络科技有限公司 The distribution method of e-sourcing and distributor
CN107885591A (en) * 2016-09-27 2018-04-06 华为技术有限公司 For the method and terminal of application distributing system resource
CN106485419A (en) * 2016-10-18 2017-03-08 财付通支付科技有限公司 A kind of two level resource administration methods and device
CN107179949A (en) * 2016-12-16 2017-09-19 重庆大学 It is a kind of to be used for the quantization method that operating system memory in mobile device distributes fluency
CN107832901A (en) * 2017-07-28 2018-03-23 平安科技(深圳)有限公司 Method for allocating tasks, device, terminal device and storage medium

Also Published As

Publication number Publication date
CN109903023A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
US11146502B2 (en) Method and apparatus for allocating resource
US9519490B2 (en) Adaptive data synchronization
CN108600005A (en) A method of defence micro services avalanche effect
US10728050B2 (en) Method of terminal-based conference load-balancing, and device and system utilizing same
CN107579924B (en) Flow allocation method and device
CN112637287B (en) Load balancing method and equipment
CN110046901B (en) Credibility verification method, system, device and equipment of alliance chain
CN105468513B (en) Test method, device and system based on mobile terminal
CN110601868B (en) Distributed system and method for distributing configuration information in real time and electronic equipment
TWI716822B (en) Method and device for correcting transaction causality, and electronic equipment
CN110008050B (en) Method and device for processing information
CN110022260B (en) Cross-environment receipt message processing method and system
CN111934977A (en) Information processing method, terminal, server and storage medium
CN113553178A (en) Task processing method and device and electronic equipment
CN112379982A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN109903023B (en) Resource allocation method and system
CN110188975B (en) Resource acquisition method and device
WO2016173133A1 (en) Load sharing implementation method, interface machine, service processor and system
CN110581784B (en) Node health check method, device and equipment
CN109241704A (en) The gray scale dissemination method and device of new script
KR101719724B1 (en) Resource management system and method, and method for deciding resource price by the same system
CN109901925B (en) Task processing method and system
US10827079B1 (en) Methods and systems for reducing data traffic flow between a network and an online charging system
CN111427682A (en) Task allocation method, system, device and equipment
US20180167422A1 (en) Load distribution apparatus and load distribution method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant