CN112764676A - Resource allocation system and method - Google Patents

Resource allocation system and method Download PDF

Info

Publication number
CN112764676A
CN112764676A CN202011631682.8A CN202011631682A CN112764676A CN 112764676 A CN112764676 A CN 112764676A CN 202011631682 A CN202011631682 A CN 202011631682A CN 112764676 A CN112764676 A CN 112764676A
Authority
CN
China
Prior art keywords
platform
resource
terminal
information
associated account
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.)
Granted
Application number
CN202011631682.8A
Other languages
Chinese (zh)
Other versions
CN112764676B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011631682.8A priority Critical patent/CN112764676B/en
Publication of CN112764676A publication Critical patent/CN112764676A/en
Application granted granted Critical
Publication of CN112764676B publication Critical patent/CN112764676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present specification discloses a resource allocation system and method, wherein after receiving a service response request sent by a terminal, a first platform can determine whether the terminal registers an associated account on a second platform according to the service response request. If the first platform determines that the terminal registers the associated account, the information of the target resource pool associated with the associated account is returned to the terminal, the terminal displays the information of the target resource pool and the information of other resource pools, and when the terminal monitors that the first resource required by the first platform is consumed by the target resource pool to perform service execution, a resource allocation request for allocating the second resource provided by the second platform to the associated account is sent to the second platform, so that the second platform allocates the second resource to the associated account and returns an allocation confirmation message to the first platform. If receiving the allocation confirmation message returned by the second platform, the first platform can return the resource information of the second resource to the terminal, thereby improving the service processing efficiency.

Description

Resource allocation system and method
Technical Field
The present disclosure relates to the field of computers, and in particular, to a resource allocation system and method.
Background
With the wide application of the internet technology, people can perform data processing on line through a data processing platform, so that data required by people can be obtained.
Currently, when a user performs data processing in a data processing platform through a terminal (e.g., a mobile phone or a computer), in addition to consuming computing resources of the data processing platform, the user may need resources provided by other platforms in some scenarios, however, in such scenarios, the user needs to actively apply for resources from other platforms to complete the data processing service.
Disclosure of Invention
The specification provides a resource allocation system and a resource allocation method, which are used for allocating a second resource to an associated account of a terminal.
The technical scheme adopted by the specification is as follows:
the present specification provides a resource allocation system, including a terminal, a first platform, and a second platform:
the first platform receives a service response request sent by a terminal, judges whether the terminal registers an associated account on the second platform according to the service response request, wherein the associated account is a platform account of the second platform registered on the first platform by the terminal, returns information of a target resource pool associated with the associated account to the terminal if the terminal is determined to register the associated account, so that the terminal displays the information of the target resource pool and information of other resource pools, sends a resource allocation request for allocating a second resource provided by the second platform to the associated account to the second platform when monitoring that the terminal consumes a first resource required by the first platform through the target resource pool to perform service execution, and receives an allocation confirmation message returned by the second platform, returning the resource information of the second resource to the terminal;
the second platform receives the resource allocation request sent by the first platform, allocates the second resource to an associated account of the terminal on the second platform according to the resource allocation request, and returns the allocation confirmation message to the first platform;
the terminal sends a service response request to the first platform, receives the information of the target resource pool which is associated with the associated account and is returned by the first platform, displays the information of the target resource pool and the information of other resource pools, consumes the first resource required by the first platform through the target resource pool to execute service, and receives the resource information of the second resource returned by the first platform.
Optionally, if it is determined that the terminal is not registered with the associated account, the first platform does not send the resource allocation request to the second platform when it is monitored that the terminal consumes the first resource required by the first platform to perform service execution.
Optionally, the first platform comprises: a terminal information subsystem and a resource allocation subsystem;
the terminal information subsystem determines a platform account of the terminal on the first platform as a target account, judges whether the terminal registers an associated account on the second platform according to the target account, and returns the associated account to the terminal if the terminal is determined to register the associated account;
the terminal, if determining that the first resource consumed on the first platform through the target resource pool completes service execution, sends a resource request message carrying the associated account to the resource allocation subsystem;
and the resource allocation subsystem receives the resource request message and sends the resource allocation request for allocating the second resource to the associated account to the second platform according to the associated account carried in the resource request message.
Optionally, the first platform determines a resource pool selected by the terminal for consuming a first resource as a target resource pool, and if it is determined that the target resource pool is associated with an associated account registered by the terminal on the second platform, sends the resource allocation request to the second platform when it is monitored that the terminal consumes a first resource required by the first platform through the target resource pool to perform service execution.
Optionally, the first platform returns the resource information of the second resource to the terminal through an information channel provided by the second platform.
Optionally, the first resource includes: the amount of money consumed by the terminal on the first platform, and the second resource comprises: and the second platform provides the call duration to the terminal.
The present specification provides a resource allocation method, including:
a first platform receives a service response request sent by a terminal;
judging whether the terminal registers an associated account on a second platform according to the service response request, wherein the associated account is a platform account of the second platform registered on the first platform by the terminal;
if the terminal is determined to be registered with the associated account, returning the information of the target resource pool associated with the associated account to the terminal so that the terminal can display the information of the target resource pool and the information of other resource pools;
when it is monitored that the terminal consumes a first resource required by the first platform through the target resource pool to perform service execution, sending a resource allocation request for allocating a second resource provided by the second platform to the associated account to enable the second platform to allocate the second resource to the associated account of the terminal on the second platform, and returning an allocation confirmation message to the first platform;
and if receiving the allocation confirmation message returned by the second platform, returning the resource information of the second resource to the terminal.
Optionally, the method further comprises:
and if the terminal is determined not to be registered with the associated account, the resource allocation request is not sent to the second platform when the terminal is monitored to consume the first resource required by the first platform for service execution.
Optionally, returning the resource information of the second resource to the terminal specifically includes:
and returning the resource information of the second resource to the terminal through the information channel provided by the second platform.
The present specification provides an apparatus for resource allocation, comprising:
the receiving module is used for receiving a service response request sent by the terminal;
a judging module, configured to judge, according to the service response request, whether the terminal registers an associated account on a second platform, where the associated account is a platform account of the second platform registered by the terminal on the device;
the sending module is used for returning the information of the target resource pool associated with the associated account to the terminal if the terminal is determined to be registered with the associated account, so that the terminal can display the information of the target resource pool and the information of other resource pools;
a monitoring module, configured to send, to the second platform, a resource allocation request for allocating a second resource provided by the second platform to the associated account when it is monitored that the terminal consumes a first resource required by the device through the target resource pool to perform service execution, so that the second platform allocates the second resource to the associated account of the terminal on the second platform, and returns an allocation confirmation message to the device;
and the return module is used for returning the resource information of the second resource to the terminal if receiving the allocation confirmation message returned by the second platform.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described resource allocation method.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above resource allocation method when executing the program.
The technical scheme adopted by the specification can achieve the following beneficial effects:
in the resource allocation system and method provided in this specification, after receiving a service response request sent by a terminal, a first platform may determine, according to the service response request, whether the terminal registers an associated account on a second platform, where the associated account mentioned here is a platform account of the second platform registered by the terminal on the first platform. If the first platform determines that the terminal registers the associated account, the information of the target resource pool associated with the associated account is returned to the terminal, so that the terminal displays the information of the target resource pool and the information of other resource pools, when the terminal is monitored to consume a first resource required by the first platform through the target resource pool to perform service execution, a resource allocation request for allocating a second resource provided by the second platform to the associated account is sent to the second platform, and after the second platform receives the resource allocation request, the second resource can be allocated to the associated account and an allocation confirmation message can be returned to the first platform. And if receiving the allocation confirmation message returned by the second platform, the first platform can return the resource information of the second resource to the terminal.
It can be seen from the above system and method that the first platform can directly notify the second platform to allocate the resource required by the terminal to the terminal when the terminal performs the service execution, and then the second platform can allocate the resource to the account of the terminal in the second platform.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
FIG. 1 is a schematic diagram of a resource allocation system according to the present disclosure;
fig. 2 is a schematic diagram of a resource allocation system formed by a service platform and a communication operator platform in this specification;
FIG. 3 is a schematic diagram of a payment interface on a terminal provided herein;
FIG. 4 is a schematic diagram of an apparatus for resource allocation provided herein;
fig. 5 is a schematic diagram of an electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
In the prior art, a user often obtains some data to be stored after performing data processing on a data processing platform through a terminal, and if the remaining storage space in the terminal of the user is insufficient and the data cannot be stored, the possibility of service error reporting may occur. To avoid this, the user usually needs to actively apply for the network disk resource from a certain network disk platform (i.e. other platform) to store the data through the network disk resource. However, the user needs to actively apply for the data, and if the user cannot apply for the network disk resource in time, the service error may be encountered, so that the efficiency of data processing performed by the user is greatly reduced, and inconvenience is brought to the user.
In order to effectively solve the above problem, the present specification provides a resource allocation system and method, when a terminal of a user performs service execution on a first platform, if the terminal of the user registers an associated account on a second platform and the user selects to perform service execution through a target resource pool associated with the associated account, the first platform may apply to the second platform for allocating resources required by the user to the associated account, so that the user may use the terminal to directly perform service processing through resources allocated by the second platform without actively applying for resources to the second platform.
In this specification, the first platform may be a data processing platform, the second platform may be a network disk platform, the user obtains data to be stored after performing data processing on the data processing platform through the terminal, and if the user registers an associated account on the network disk platform through the terminal (the associated account may be a platform account of the network disk platform registered by the user on the data processing platform through the terminal), and the user performs data processing through a target resource pool associated with the associated account, the data processing platform may directly apply to the network disk platform for allocating a network disk space to the associated account, and then, when the network disk platform allocates the network disk space to the associated account, the user may store the obtained data in the network disk space.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a resource allocation system in this specification, which specifically includes the following steps:
s101: and the terminal sends the service response request and consumes the first resource required by the first platform to execute the service.
S102: and the first platform judges whether the terminal registers an associated account on the second platform according to the service response request.
In practical application, a user may perform service processing on a first platform through a terminal, where the first platform is a platform on which the user needs to consume a certain resource through the terminal to perform service processing. The terminal mentioned here may refer to an electronic device such as a smart phone, a tablet computer, a desktop computer, and a notebook computer that a user holds.
In this specification, a user may send a service response request to a first platform through a terminal, and consume a first resource required by the first platform to perform service execution. If the first platform is the data processing platform, the service response request may refer to a request for the data processing from the terminal to the data processing platform, or may refer to a login request sent by the terminal to the data processing platform, the first resource may refer to a computing resource of the data processing platform, and performing service execution refers to the terminal consuming the computing resource to perform data processing.
After receiving the service response request, the first platform may determine whether the terminal registers an associated account on the second platform according to the service response request. The associated account mentioned here may refer to a platform account of the second platform registered by the terminal on the first platform. As can be seen from the specific form of the service response request, the first platform may determine, after receiving a login request of the terminal, whether a user corresponding to the terminal has an associated account on the second platform, or may determine, after receiving a data processing request sent by the terminal, whether a user corresponding to the terminal has an associated account on the second platform.
If the first platform is a data processing platform and the second platform is a network disk platform, the associated account may be a platform account associated with the data processing platform on the network disk platform after the network disk platform cooperates with the data processing platform, and the user may register the associated account on the network disk platform on the data processing platform. If the network disk platform allocates the network disk space to the associated account, the user can log in the associated account through the terminal and use the network disk space for data storage.
S103: and if the first platform determines that the terminal is registered with the associated account, returning the information of the target resource pool associated with the associated account to the terminal.
S104: and the terminal receives the information of the target resource pool which is associated with the associated account and returned by the first platform, and displays the information of the target resource pool and the information of other resource pools.
S105: when monitoring that the terminal consumes the first resource required by the first platform through the target resource pool to perform service execution, the first platform sends a resource allocation request for allocating the second resource provided by the second platform to the associated account to the second platform.
S106: and the second platform allocates the second resource to an associated account of the terminal in the second platform according to the resource allocation request.
If the first platform determines that the user registers the associated account through the terminal, the information of the target resource pool associated with the associated account can be returned to the terminal, and the terminal can display the target resource pool and other resource pools to the user after receiving the information. Wherein the target resource pool is associated with the associated account of the second platform, and the other resource pools may not be associated with the associated account of the second platform. The first platform may send a resource allocation request to the second platform when it is monitored that the terminal consumes the first resource required by the first platform through the target resource pool to perform service execution, and the second platform may allocate the second resource to the associated account according to the resource allocation request after receiving the resource allocation request. The second resource mentioned here refers to a resource provided by the second platform for the user to use. It can be seen that the resource allocation request is a request for the terminal to apply for resources from the second platform by the first platform.
Taking the first platform as an example of a data processing platform, in the data processing platform, the resource pool a is associated with an associated account of the user on the network disk platform, the resource pool a is a target resource pool, data obtained by consuming computing resources of the resource pool a can be stored in a network disk space of the network disk platform, and other resource pools, such as the resource pool B and the resource pool C, are not associated with associated accounts of the terminal on the network disk platform, and data obtained by consuming computing resources of the resource pools cannot be stored in the network disk space of the network disk platform.
When the first platform determines that the associated account is registered, the information of the resource pool A can be returned to the terminal, the terminal can display the information of the resource pool A, the information of the resource pool B and the information of the resource pool C, the information of the resource pool can comprise the name of the resource pool, whether the resource pool is associated with the associated account or not and the like, after the first platform monitors that the user selects and consumes the computing resources in the resource pool A through the terminal to perform service processing, a resource allocation request can be sent to the network disk platform, and the network disk platform can allocate the network disk space with the set size to the associated account of the terminal. The set size can be set according to actual requirements, or can be determined according to the size of data obtained after data processing is performed on the data processing platform by the terminal. Of course, if the first platform determines that the terminal does not register the associated account, when it is monitored that the terminal consumes the first resource required by the first platform to perform service execution, it is not necessary to send a resource allocation request to the second platform.
It should be noted that each subsystem may be included in the first platform, and the service execution of the first platform may be realized through the cooperation of these subsystems. Specifically, the first platform may include a terminal information subsystem and a resource allocation subsystem, where the terminal information subsystem may be configured to store and query information related to a service executed by a user in the first platform through a terminal, for example, information such as a platform account registered by the user on the first platform through the terminal, a telephone number of the user, and the like. The resource allocation subsystem is for the first platform to request from the second platform allocation of the second resource to the associated account of the user.
Based on this, querying whether the terminal registers an associated account and requesting resource allocation to the terminal from the second platform may be performed by the terminal information subsystem and the resource allocation subsystem in cooperation with each other. The terminal information subsystem can determine a platform account of the terminal on the first platform as a target account, and query whether the terminal registers an associated account on the second platform according to the target account. If it is determined that the terminal registers the associated account, the associated account can be returned to the terminal, after receiving the associated account, if it is determined that the first resource is consumed in the first platform through the target resource pool to complete the service execution, the terminal can send a resource request message carrying the associated account to the resource allocation subsystem, and after receiving the resource request message, the resource allocation subsystem can send a resource allocation request for allocating the second resource to the associated account to the second platform according to the associated account carried in the resource request message, so that the second platform allocates the second resource to the associated account of the terminal.
S107: the second platform returns the allocation acknowledgement message to the first platform.
S108: and the first platform returns the resource information of the second resource to the terminal.
After the second platform allocates the second resource to the associated account, an allocation confirmation message may be returned to the first platform to indicate that the task of allocating the second resource to the associated account is completed. After receiving the allocation acknowledgement message, the first platform may return resource information of the second resource to the terminal. After receiving the resource information, the terminal may display the resource information to the user, so that the user performs service processing using the second resource provided by the second platform. For example, the user may store data obtained by data processing performed on the data processing platform through the network disk space allocated to the associated account.
The first platform may also return the resource information of the second resource to the terminal through an information channel provided by the second platform. That is, the second platform may send the resource information of the second resource to the terminal, so that the terminal presents the resource information of the second resource to the user. The user can perform service processing through the second resource. There are various ways for the second platform to send the resource information to the terminal through the information channel. For example, the network disk platform (i.e., the second platform) may notify the resource information of the network disk space to the user in a short message manner, where the information transmission is performed in a short message manner, that is, the information transmission is performed through the information channel; for another example, the network disk platform may also send the resource information to a client of the user under the network disk platform, and the client displays the resource information to the user, where the sending of the information in the form of the client is referred to as sending the information through an information channel.
It can be seen from the above system and method that the first platform can directly notify the second platform to allocate the second resource required by the terminal to the terminal when the terminal performs the service execution, and accordingly, the terminal can directly use the second resource provided by the second platform after the first platform completes the service execution. Therefore, the user does not need to actively apply for resources to the second platform to a certain extent, and the user can be ensured to smoothly complete service execution, so that the service processing efficiency is effectively improved.
It should be noted that the resource allocation system and method provided in this specification may be applicable to other service scenarios as well as the scenario in which the data processing platform and the network disk platform perform resource allocation. For example, the first platform may be a service platform for a user to execute a service, the second platform may be a communication operator platform, the target resource pool may be a target bank card associated with the associated account (for example, the target resource pool may be a bank card with a reserved number being a telephone number of an associated telephone card of the user), and if the user registers the associated account on the communication operator platform and pays an amount (a first resource) to be paid for executing the service by using the target bank card on the service platform through the terminal, the service platform may send a resource allocation request for allocating a call duration (a second resource) to the associated account of the user to the communication operator platform, as shown in fig. 2.
Fig. 2 is a schematic diagram of a resource allocation system formed by a service platform and a communication operator platform in this specification.
After receiving a service response request sent by the terminal, the service platform can judge whether the user registers an associated account on the communication operator platform through the terminal. The service response request mentioned here may refer to a login request sent to the service platform when the terminal logs in the service platform, and the service platform may directly determine whether the user registers an associated account after receiving the login request. The service response request may also refer to a service request sent to the service platform by the user when the terminal needs to perform service execution, and the service platform may also determine whether the terminal registers an associated account after receiving the service request. The associated account referred to herein may refer to a phone number of a joint calling card where the service platform cooperates with the communications carrier platform. Because the service platform cooperates with the communication operator platform, the user can register the associated account of the communication operator platform and the service platform through the service platform, namely, apply for the telephone number of the joint calling card of the communication operator platform on the service platform.
Based on this, the service platform can inquire out the telephone number of the user and determine whether the telephone number of the user is the telephone number of the associated telephone card, if so, the user can be determined to register the associated account, and the information of the target bank card (such as the card number of the bank card, the bank to which the bank card belongs and the like) is returned to the terminal, and the terminal can display the information of the target bank card and the information of other bank cards. If the service platform monitors that the user consumes the amount of money required by the service platform through the terminal to execute the service, the service platform can send a resource allocation request for recharging (namely allocating) the call duration with the set duration to the associated account to the communication operator platform. The set time period may be a fixed time period set according to actual requirements. Of course, the service platform may also determine the set duration according to the amount of money consumed by the user through the terminal, and the more the amount of money consumed, the longer the set duration.
Then, the communication operator platform may allocate the call duration to the associated account, and return an allocation confirmation message to the service platform, so that the service platform determines that the call duration has been allocated to the associated account by the communication operator platform. After receiving the allocation confirmation message, the service platform can send the duration information of the call duration to the terminal of the user and display the duration information to the user, so that the user can use the call duration to perform service processing. Of course, if the user does not register an associated account, the service platform does not need to send a resource allocation request to the communication operator platform when monitoring that the user consumes money through the terminal to perform service execution.
In this specification, the service platform may also include subsystems, and the subsystems cooperate with each other to execute services in the service platform. Specifically, the service platform may include a terminal information subsystem and a resource allocation subsystem, where the terminal information subsystem is used to store and query information of each user in the service platform, such as a user ID and a user phone number. The resource allocation subsystem is used for sending a resource allocation request for allocating the call duration to the associated account of the user to the communication operator platform.
When the user needs to be inquired whether the associated account on the communication operator platform is registered through the terminal, the terminal information subsystem can inquire the telephone number of the user according to the platform account of the user on the service platform, and further judge whether the user registers the associated account on the communication operator platform. If it is determined that the user has registered an associated account (i.e., the phone number of the associated calling card) on the second platform, the associated account may be returned to the terminal. If the terminal determines that the amount of money required by the service platform is consumed through the target bank card to complete service execution, the terminal can send the resource request message carrying the associated account to the resource allocation subsystem.
After receiving the resource request message, the resource allocation subsystem can send a resource allocation request for recharging the call duration resource with the set duration to the associated account to the communication operator platform, so that the communication operator platform recharges the call duration with the set duration to the call duration of the phone number corresponding to the user joint phone card according to the resource allocation request. Because the communication operator platform and the service platform are two different platforms, the resource allocation request sent by the resource allocation subsystem needs to first reach the gateway system under the service platform, and then the gateway system sends the resource allocation request to the communication operator platform.
It should be noted that, in this specification, after the terminal completes the service execution (for example, after the user pays through the terminal), the service platform may query whether the phone number of the user is the phone number of the joint phone card again. Specifically, after the terminal completes service execution, the terminal information subsystem in the service platform can query the telephone number bound by the user according to the user ID, and determine whether the telephone number is the telephone number of the joint calling card. If the terminal information subsystem determines that the telephone number is the telephone number of the joint name telephone card, the terminal information subsystem can send a resource request message to the resource allocation subsystem so that the resource allocation subsystem sends a resource allocation request to the communication operator platform.
After the call duration is allocated to the associated account, the service platform may return the duration information of the call duration allocated to the user to the terminal through an information channel provided by the communication operator platform, where the information channel provided by the communication operator platform may be a short message channel, a voice call channel, or the like. That is, the communication operator platform may notify the user of the duration information of the call duration charged to the user by means of a short message, a voice call, and the like.
This service scenario is described below by taking an interface for a user to pay on a terminal as an example, as shown in fig. 3.
Fig. 3 is a schematic diagram of a payment interface on a terminal provided in the present specification.
As can be seen from fig. 3, before the user makes a payment, the information of the call duration to be charged to the user is already displayed in the interface displayed by the terminal, the bank savings card a and the bank credit card B are both target bank cards, the bank credit card C and the bank credit card D are not target bank cards, if the user selects the bank savings card a or the bank credit card B to make a payment, after the payment is completed, the call duration is charged to the associated account (i.e., the phone number corresponding to the joint call phone card) of the user under the platform of the communication operator for 20 minutes. Because, if a bank card is a target bank card, the reserved number of the bank card is the telephone number of the joint calling card, that is, the bank card is associated with the associated account, and if the user selects to perform service execution by consuming the first resource through the bank card, the service platform may determine that the call duration needs to be charged into the associated account of the user under the communication operator platform (that is, the joint calling card of the user). Therefore, when displaying, the service platform can only display the information of the call duration to the user when the user uses the bank card to pay. It can be seen from the figure that after the user selects bank savings card a to complete payment, the information of "get 20 minutes call duration" is displayed to the user in the interface of successful payment, and at this time, the 20 minutes call duration is obtained in the associated account of the user.
It can be seen from the above method that the service platform can request the communication operator to recharge the call duration for the user after the user completes the service execution (e.g. after the user completes the order payment), and the user can conveniently use the resource of the call duration provided by the service platform, thereby improving the service experience of the user in executing the service on the service platform.
Based on the same idea, the present specification further provides a corresponding resource allocation apparatus, as shown in fig. 4, for the resource allocation system and the resource allocation method provided in one or more embodiments of the present specification.
Fig. 4 is a schematic diagram of an apparatus for resource allocation provided in this specification, which specifically includes:
a receiving module 401, configured to receive a service response request sent by a terminal;
a determining module 402, configured to determine, according to the service response request, whether the terminal registers an associated account on a second platform, where the associated account is a platform account of the second platform registered on the device by the terminal;
a sending module 403, configured to, if it is determined that the terminal registers the associated account, return information of a target resource pool associated with the associated account to the terminal, so that the terminal displays information of the target resource pool and information of other resource pools;
a monitoring module 404, configured to send, to the second platform, a resource allocation request for allocating a second resource provided by the second platform to the associated account when it is monitored that the terminal consumes a first resource required by the device through the target resource pool for performing service execution, so that the second platform allocates the second resource to the associated account of the terminal on the second platform, and returns an allocation confirmation message to the device;
a returning module 405, configured to return the resource information of the second resource to the terminal if the allocation acknowledgement message returned by the second platform is received.
Optionally, the determining module 402 is specifically configured to, if it is determined that the terminal is not registered with the associated account, not send the resource allocation request to the second platform when it is monitored that the terminal consumes the first resource required by the device to perform service execution.
Optionally, the returning module 405 is specifically configured to return the resource information of the second resource to the terminal through an information channel provided by the second platform.
Optionally, the first resource includes: the amount of money consumed by the terminal at the device, the second resource comprising: the call duration provided by the second platform.
The present specification also provides a computer-readable storage medium storing a computer program operable to execute the resource allocation method provided in fig. 1 above.
This specification also provides a schematic block diagram of the electronic device shown in fig. 5. As shown in fig. 5, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs the computer program to implement the resource allocation method described in fig. 1 above. Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (11)

1. A resource allocation system, comprising a terminal, a first platform, and a second platform:
the first platform receives a service response request sent by a terminal, judges whether the terminal registers an associated account on the second platform according to the service response request, wherein the associated account is a platform account of the second platform registered on the first platform by the terminal, returns information of a target resource pool associated with the associated account to the terminal if the terminal is determined to register the associated account, so that the terminal displays the information of the target resource pool and information of other resource pools, sends a resource allocation request for allocating a second resource provided by the second platform to the associated account to the second platform when monitoring that the terminal consumes a first resource required by the first platform through the target resource pool to perform service execution, and receives an allocation confirmation message returned by the second platform, returning the resource information of the second resource to the terminal;
the second platform receives the resource allocation request sent by the first platform, allocates the second resource to an associated account of the terminal on the second platform according to the resource allocation request, and returns the allocation confirmation message to the first platform;
the terminal sends a service response request to the first platform, receives the information of the target resource pool which is associated with the associated account and is returned by the first platform, displays the information of the target resource pool and the information of other resource pools, consumes the first resource required by the first platform through the target resource pool to execute service, and receives the resource information of the second resource returned by the first platform.
2. The system of claim 1, wherein the first platform does not send the resource allocation request to the second platform when it is monitored that the terminal consumes the first resource required by the first platform for service execution if it is determined that the terminal is not registered with the associated account.
3. The system of claim 1, wherein the first platform comprises: a terminal information subsystem and a resource allocation subsystem;
the terminal information subsystem determines a platform account of the terminal on the first platform as a target account, judges whether the terminal registers an associated account on the second platform according to the target account, and returns the associated account to the terminal if the terminal is determined to register the associated account;
the terminal, if determining that the first resource consumed on the first platform through the target resource pool completes service execution, sends a resource request message carrying the associated account to the resource allocation subsystem;
and the resource allocation subsystem receives the resource request message and sends the resource allocation request for allocating the second resource to the associated account to the second platform according to the associated account carried in the resource request message.
4. The system of claim 1, wherein the first platform returns resource information for the second resource to the terminal via an information channel provided by the second platform.
5. The system of any of claims 1-4, wherein the first resource comprises: the amount of money consumed by the terminal on the first platform, and the second resource comprises: the call duration provided by the second platform.
6. A method for resource allocation, comprising:
a first platform receives a service response request sent by a terminal;
judging whether the terminal registers an associated account on a second platform according to the service response request, wherein the associated account is a platform account of the second platform registered on the first platform by the terminal;
if the terminal is determined to be registered with the associated account, returning the information of the target resource pool associated with the associated account to the terminal so that the terminal can display the information of the target resource pool and the information of other resource pools;
when it is monitored that the terminal consumes a first resource required by the first platform through the target resource pool to perform service execution, sending a resource allocation request for allocating a second resource provided by the second platform to the associated account to enable the second platform to allocate the second resource to the associated account of the terminal on the second platform, and returning an allocation confirmation message to the first platform;
and if receiving the allocation confirmation message returned by the second platform, returning the resource information of the second resource to the terminal.
7. The method of claim 6, wherein the method further comprises:
and if the terminal is determined not to be registered with the associated account, the resource allocation request is not sent to the second platform when the terminal is monitored to consume the first resource required by the first platform for service execution.
8. The method of claim 6, wherein the returning the resource information of the second resource to the terminal specifically includes:
and returning the resource information of the second resource to the terminal through the information channel provided by the second platform.
9. An apparatus for resource allocation, comprising:
the receiving module is used for receiving a service response request sent by the terminal;
a judging module, configured to judge, according to the service response request, whether the terminal registers an associated account on a second platform, where the associated account is a platform account of the second platform registered by the terminal on the device;
the sending module is used for returning the information of the target resource pool associated with the associated account to the terminal if the terminal is determined to be registered with the associated account, so that the terminal can display the information of the target resource pool and the information of other resource pools;
a monitoring module, configured to send, to the second platform, a resource allocation request for allocating a second resource provided by the second platform to the associated account when it is monitored that the terminal consumes a first resource required by the device through the target resource pool to perform service execution, so that the second platform allocates the second resource to the associated account of the terminal on the second platform, and returns an allocation confirmation message to the device;
and the return module is used for returning the resource information of the second resource to the terminal if receiving the allocation confirmation message returned by the second platform.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 6 to 8.
11. An electronic 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 any of claims 6 to 8 when executing the program.
CN202011631682.8A 2020-12-31 2020-12-31 Resource allocation system and method Active CN112764676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011631682.8A CN112764676B (en) 2020-12-31 2020-12-31 Resource allocation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011631682.8A CN112764676B (en) 2020-12-31 2020-12-31 Resource allocation system and method

Publications (2)

Publication Number Publication Date
CN112764676A true CN112764676A (en) 2021-05-07
CN112764676B CN112764676B (en) 2022-11-04

Family

ID=75699658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011631682.8A Active CN112764676B (en) 2020-12-31 2020-12-31 Resource allocation system and method

Country Status (1)

Country Link
CN (1) CN112764676B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743776A (en) * 2021-09-02 2021-12-03 苏州达家迎信息技术有限公司 Relevance determining method and device, storage medium and electronic equipment
CN114490805A (en) * 2021-12-27 2022-05-13 苏州达家迎信息技术有限公司 Account resource allocation method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501347A (en) * 2013-10-14 2014-01-08 中国联合网络通信集团有限公司 Resource distribution method and device
CN104751361A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method, server and system for reallocating account resources
US20190272530A1 (en) * 2016-12-12 2019-09-05 Alibaba Group Holding Limited Resource allocation method and device, and electronic payment method
CN110211705A (en) * 2019-05-30 2019-09-06 东软医疗系统股份有限公司 Distribute the method, device and equipment of account resource
CN111367667A (en) * 2020-02-28 2020-07-03 网联清算有限公司 Scheduling device, resource allocation method executed by scheduling device, and distributed processing system
CN111538596A (en) * 2020-04-23 2020-08-14 北京字节跳动网络技术有限公司 Resource processing method and device, computer equipment and storage medium
CN111553699A (en) * 2020-05-06 2020-08-18 支付宝(杭州)信息技术有限公司 Resource scheduling method and device
CN111639931A (en) * 2020-05-19 2020-09-08 北京三快在线科技有限公司 Service processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501347A (en) * 2013-10-14 2014-01-08 中国联合网络通信集团有限公司 Resource distribution method and device
CN104751361A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method, server and system for reallocating account resources
WO2015101301A1 (en) * 2013-12-30 2015-07-09 腾讯科技(深圳)有限公司 Resource reallocation method and server
US20190272530A1 (en) * 2016-12-12 2019-09-05 Alibaba Group Holding Limited Resource allocation method and device, and electronic payment method
CN110211705A (en) * 2019-05-30 2019-09-06 东软医疗系统股份有限公司 Distribute the method, device and equipment of account resource
CN111367667A (en) * 2020-02-28 2020-07-03 网联清算有限公司 Scheduling device, resource allocation method executed by scheduling device, and distributed processing system
CN111538596A (en) * 2020-04-23 2020-08-14 北京字节跳动网络技术有限公司 Resource processing method and device, computer equipment and storage medium
CN111553699A (en) * 2020-05-06 2020-08-18 支付宝(杭州)信息技术有限公司 Resource scheduling method and device
CN111639931A (en) * 2020-05-19 2020-09-08 北京三快在线科技有限公司 Service processing method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
N.KAMI ET AL.: "Scalable and reliable platform for service-oriented networking and computing systems", 《IEEE XPLORE》 *
田国华等: "一种统一账号业务的实现机制", 《天津大学学报(自然科学与工程技术版)》 *
秦小寒: "优化性能的分布式存储子系统的设计与实现", 《万方数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743776A (en) * 2021-09-02 2021-12-03 苏州达家迎信息技术有限公司 Relevance determining method and device, storage medium and electronic equipment
CN113743776B (en) * 2021-09-02 2024-05-10 苏州达家迎信息技术有限公司 Relevance determining method and device, storage medium and electronic equipment
CN114490805A (en) * 2021-12-27 2022-05-13 苏州达家迎信息技术有限公司 Account resource allocation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112764676B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN106899666B (en) Data processing method and device for service identification
CN109214632B (en) Risk control method and equipment
CN111552945B (en) Resource processing method, device and equipment
CN112764676B (en) Resource allocation system and method
CN112862293A (en) Resource allocation method, device, storage medium and electronic equipment
CN111553699B (en) Resource scheduling method and device
CN111523886A (en) Service processing method and device
CN107562496B (en) Method and device for page configuration and page display
CN111709733B (en) Resource transfer method, device and equipment
CN111639931A (en) Service processing method and device
CN111861454B (en) Method and device for displaying unique identifier of digital object
CN110874679A (en) Service fulfillment method and device
CN110675162A (en) Contract processing method, device and equipment
CN112579292A (en) Resource allocation method and device
CN110022351B (en) Service request processing method and device
CN112308560A (en) Service processing system and method
CN108769152B (en) Service refresh policy registration method, service refresh request method, device and equipment
CN113435889B (en) Transaction processing method and device based on credit
CN115983564A (en) Task execution method, device, equipment and storage medium
CN113807888B (en) Marketing processing method and device
WO2021208755A1 (en) Data processing and payment
CN106548331B (en) Method and device for determining release sequence
CN108280645A (en) The acquisition of payment code, payment request response method, device and equipment
CN112583733A (en) Interface traffic shaping method and device, storage medium and electronic equipment
WO2020224256A1 (en) Identity confirmation

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
GR01 Patent grant
GR01 Patent grant