CN112068961A - Information resource allocation method, device, electronic device and storage medium - Google Patents

Information resource allocation method, device, electronic device and storage medium Download PDF

Info

Publication number
CN112068961A
CN112068961A CN202010951694.2A CN202010951694A CN112068961A CN 112068961 A CN112068961 A CN 112068961A CN 202010951694 A CN202010951694 A CN 202010951694A CN 112068961 A CN112068961 A CN 112068961A
Authority
CN
China
Prior art keywords
information
resource
node
information resource
resource allocation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010951694.2A
Other languages
Chinese (zh)
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 Chehang 168 Information Technology Co ltd
Original Assignee
Beijing Chehang 168 Information 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 Chehang 168 Information Technology Co ltd filed Critical Beijing Chehang 168 Information Technology Co ltd
Priority to CN202010951694.2A priority Critical patent/CN112068961A/en
Publication of CN112068961A publication Critical patent/CN112068961A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The application relates to an information resource allocation method, an information resource allocation device, an electronic device and a storage medium. Wherein, the method comprises the following steps: receiving an information resource allocation request reported by a node; adding the information resource allocation request into an information resource allocation queue corresponding to the type information; under the condition that the information resource distribution queue is not empty, an information resource collector is established, and information resources corresponding to the type information are collected through the information resource collector; and acquiring an information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information. By the method and the device, the problem that similar services such as Baidu popularization do not support a plurality of suppliers to use one popularization service together and thread information is distributed according to shares in the related technology is solved, and the aggregation popularization of the services of the plurality of suppliers and the differential distribution of information resources are realized.

Description

Information resource allocation method, device, electronic device and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a system, an electronic apparatus, and a storage medium for allocating information resources.
Background
Baidu popularization is an advertisement popularization platform, and advertisements are accurately put to target users by means of flow inlets of Baidu search engines. The hundred-degree promotion pays according to the actual effect, namely, the user charges once per browsing or clicking promotion connection. In some cases, after clicking the promotion connection, clue information is generated and provided to the merchant, so that the merchant can promote the service or product to the target user according to the clue information.
At present, similar promotion platforms such as Baidu promotion and the like all use brand merchants as main customer groups. The advertisements served are often also brand-differentiated. Taking the field of vehicle transaction as an example, each vehicle dealer may sell more than one vehicle brand; more than one vehicle dealer selling vehicles of the same brand and model in the same region; if the car dealer is used as the main content of the advertisement delivery, rather than the information of the vehicle, the effect of the advertisement delivery is often poor, because the buyer is often interested in only the brand and model of the vehicle which is interested in the buyer in the initial stage of the car purchase, and is not interested in who the car dealer of the vehicle is. However, if the brand and model of the vehicle are used as the main content of the advertisement, other vehicle owners in the same region can also benefit from the advertisement after the advertisement is placed, and the promotion cost of the advertisement is borne by one vehicle owner, which is not economical.
The method is characterized in that a plurality of car dealers share one hundred-degree promotion service, and clue information obtained by the hundred-degree promotion is distributed according to corresponding shares, so that the solution for solving the vehicle brand promotion is provided, however, similar services such as the hundred-degree promotion of the related technology do not support a plurality of suppliers to share one promotion service, and the clue information is distributed according to the shares.
Disclosure of Invention
The embodiment of the application provides an information resource allocation method, an information resource allocation device, an electronic device and a storage medium, so as to solve at least the problem that similar services such as Baidu popularization do not support a plurality of suppliers to use one popularization service together and clue information is allocated according to shares in the related technology.
In a first aspect, an embodiment of the present application provides an information resource allocation method, including: receiving an information resource allocation request reported by a node, wherein the information resource allocation request carries resource quantity information of information resources requested by the node and type information of the information resources requested by the node; adding the information resource allocation request into an information resource allocation queue corresponding to the type information; under the condition that the information resource distribution queue is not empty, an information resource collector is established, and information resources corresponding to the type information are collected through the information resource collector; and acquiring the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information.
In some of these embodiments, the resource amount information includes: resource quantity information of the information resources requested by the node and/or gathering time period information of the information resources requested by the node.
In some of these embodiments, the resource amount information includes: the identification information of the node, wherein a corresponding relationship exists between the identification information of the node and the resource quantity information of the information resource requested by the node, and/or a corresponding relationship exists between the identification information of the node and the collection time period information of the information resource requested by the node.
In some embodiments, the information resource allocation queue corresponding to the type information includes a plurality of information resource allocation queues, a node that reports an information resource allocation request is divided into a plurality of priority levels, and each information resource allocation queue corresponds to one priority level of the node; wherein adding the information resource allocation request to an information resource allocation queue corresponding to the type information comprises: adding the information resource allocation request into an information resource allocation queue corresponding to the priority level of the node; acquiring the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information includes: and acquiring the information resource allocation request from the information resource allocation queue corresponding to the priority level of the node, selecting the information resource corresponding to the priority level of the node from the collected information resources according to the resource amount information, and allocating the selected information resource to the node.
In some of these embodiments, the resource amount information includes: the resource quantity of the information resource requested by the node; allocating information resources corresponding to the type information to the node according to the resource amount information includes: allocating a first amount of information resources corresponding to the type information to the node, and updating the resource amount of the information resources requested by the node according to the first amount; judging whether the resource quantity of the updated information resource requested by the node is zero or not; and under the condition that the updated resource quantity of the information resource requested by the node is zero, discarding the information resource allocation request.
In some of these embodiments, the method further comprises: and under the condition that the resource quantity of the updated information resource requested by the node is not zero, adding an information resource allocation request carrying the resource quantity of the updated information resource requested by the node into an information resource allocation queue corresponding to the type information.
In some embodiments, creating a collector of information resources and collecting information resources corresponding to the type information by the collector of information resources comprises: using the type information, calling an interface for creating the information resource collector; after the information resource collector is created, calling an interface for acquiring the information resources collected by the information resource collector to acquire the information resources corresponding to the type information.
In a second aspect, an apparatus for allocating information resources is provided in an embodiment of the present application, including: a receiving module, configured to receive an information resource allocation request reported by a node, where the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node; the adding module is used for adding the information resource allocation request into an information resource allocation queue corresponding to the type information; the acquisition module is used for creating an information resource collector under the condition that the information resource distribution queue is not empty, and collecting information resources corresponding to the type information through the information resource collector; and the allocation module is used for acquiring the information resource allocation request from the information resource allocation queue and allocating the information resources corresponding to the type information to the nodes according to the resource amount information.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor, when executing the computer program, implements the method for allocating information resources according to the first aspect.
In a fourth aspect, the present application provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for allocating information resources according to the first aspect is implemented.
Compared with the related art, the information resource allocation method, the information resource allocation device, the electronic device and the storage medium provided in the embodiment of the application solve the problems that similar services such as Baidu popularization do not support a common use of one popularization service by a plurality of suppliers and clue information is allocated according to shares in the related art, and realize the aggregation popularization of the services of the plurality of suppliers and the differentiated allocation of the information resources.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic hardware configuration diagram of a server according to an embodiment of the present application;
FIG. 2 is a flow chart of an allocation method of information resources according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for allocating information resources according to a preferred embodiment of the present application;
fig. 4 is a block diagram of an apparatus for allocating information resources according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of explanation and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any creative effort belong to the protection scope of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference throughout this application to the terms "first," "second," "third," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the present embodiment may be executed in a terminal, a server, or a similar computing device. Taking an example of the server running on the server, fig. 1 is a hardware configuration block diagram of the server of the information resource allocation method according to the embodiment of the present invention. As shown in fig. 1, the server may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and is not intended to limit the structure of the server. For example, the server may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the information resource allocation method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Fig. 2 is a flowchart of an information resource allocation method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, an information resource allocation request reported by a node is received, where the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node.
The above-mentioned nodes may be nodes divided according to functional logic. For example, a node may typically be one communication endpoint having a unique identity, and/or multiple communication endpoints divided by identity but having the same identity. For example, each carrier is treated as a node according to the carrier identity, and the node may include a plurality of terminal devices or operate on a plurality of terminal devices. The plurality of terminal devices include, but are not limited to: mobile terminals, personal computers, servers, etc.
The information resource allocation request can be a control message or a service message for requesting allocation of information resources; the format of the message is not limited in this embodiment, and a message header or an effective data portion of the message generally carries identification information of a node, for example, source IP address information carried in the message header or node identification information carried in the effective data portion of the message. The source node of the information resource allocation request can be distinguished according to the identification information of the node, so that the source node is used as an allocation object of the information resource.
The information resource allocation request also carries resource amount information of the information resource requested by the node and type information of the information resource requested by the node. Wherein, the resource amount information or the type information can be explicit or implicit information. Taking the implicit information as an example, for example, if no indication information capable of indicating the resource amount of the information resource requested by the node is added in the information resource allocation request, the resource amount information of the information resource requested by the node, which is carried in the information resource allocation request, is considered as the default resource amount. The explicit information is added with corresponding indication information in the information resource allocation request to indicate the resource amount information of the information resource requested by the node and the type information of the information resource requested by the node.
The resource amount information of the information resource requested by the node may be associated with a status indication information, where the status indication information is used to indicate whether the resource amount information is valid, and if not, the resource amount indicated by the resource amount information is set to zero, or the information resource allocation request is directly discarded without performing subsequent process processing. The resource amount indicated by the resource amount information being zero indicates that the resource amount of the information resource requested by the node is zero, and the information resource will not be allocated to the node.
The status indication information may be generated by a payment system, a security system, or other node management system. Taking the payment system as an example, when the payment state associated with the node is not successful in payment, or the financial account information associated with the node indicates that the node is owing or has no deducible balance, state indication information indicating that the resource amount information is invalid is generated. The state refers to that the information associates the allocation of the information resources with a payment system, a security system or other node management and control systems, so that the management and control of the nodes participating in the allocation of the information resources are realized, and the flexibility of the allocation of the information resources is improved.
The type information of the information resource described above is information for indicating a category or detailed content to which the information resource belongs. Taking the information resources of the car-businessman cable as an example, the type information includes but is not limited to at least one of the following: the source of the information resource, the vehicle model information. Other information, such as a page identifier for a promotion service or a product, or a picture identifier, may also be carried in the type information. The page, picture or time for promoting the service or product can be a plurality of pages or pictures which are preset and distinguished by using the identification, and the node selects one or more pages or pictures to indicate the collection form of the information resource by carrying the corresponding identification in the type information.
The resource amount information may include information on a collection time period of the information resource requested by the node, in addition to the information on the amount of the information resource requested by the node. Or the resource quantity information carries the resource quantity information and the collection time period information at the same time. The collection time period information may indicate a date range for collecting information resources and/or time of day time period information for collecting information. For example, the gathering time period information may indicate that information resources are gathered between 18:00 and 24:00 per workday of the month of august.
In some of these embodiments, the resource amount information further includes: and the identification information of the node, wherein a corresponding relation exists between the identification information of the node and the resource quantity information of the information resource requested by the node, and/or a corresponding relation exists between the identification information of the node and the collection time period information of the information resource requested by the node.
Step S202, adding the information resource allocation request into an information resource allocation queue corresponding to the type information.
In the present embodiment, one information resource allocation queue may be generated for each type of information, or the approximate type of information may be allocated to one same information allocation queue. The information resource allocation requests sent by the nodes are added into the corresponding resource allocation queues according to the type information.
Step S203, under the condition that the information resource distribution queue is not empty, an information resource collector is created, and information resources corresponding to the type information are collected through the information resource collector.
In this embodiment, the information resource aggregator is maintained as a queue. And when the information resource distribution queue is not empty, creating an information resource collector, and collecting the information resources corresponding to the type information through the information resource collector. The information resource collector may be an information collection service provided by an external service, such as a Baidu promotion service, or a crawler service, etc.
In some of the embodiments, it is also possible to set the shortest queue length at which the information resource aggregators can be created, and when the length of the information resource allocation queue is shorter than the shortest queue length, the information resource aggregators will not be created temporarily, and when the length of the information resource allocation queue is greater than or equal to the shortest queue length, the information resource aggregators will be created, thereby reducing the number of created information resource aggregators.
In some of these embodiments, after creating the information resource aggregators, each time the length of the information resource allocation queue is shorter than the shortest length of the queue, or the length of the information resource allocation queue is zero, the corresponding information resource aggregators may be deleted to reduce the number of information resource aggregators created.
Step S204, obtaining the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information.
After information resources are collected by the information resource collector, the information resources are distributed to the nodes according to the resource amount information in the information resource distribution request, and the queues are also adopted for maintenance when the information resources are distributed, so that the first request and the first distribution of the information resources are realized, and the condition that a certain node does not distribute information resources for a long time is avoided.
Aiming at the problems that similar services such as hundredth popularization and the like in the related technology do not support a popularization service commonly used by a plurality of suppliers and thread information is distributed according to shares, through the steps S201 to S204, information resource distribution requests of a plurality of nodes representing the plurality of suppliers are added into a queue, an information resource collector is established according to the queue, information resources are collected from services such as hundredth popularization, crawlers and the like through the information resource collector, information resource distribution is carried out in a queue mode according to the information resource quantity requested by the nodes, the problems that similar services such as hundredth popularization and the like in the related technology do not support a popularization service commonly used by a plurality of suppliers and thread information is distributed according to shares are solved, and the aggregation popularization of the services of the plurality of suppliers and the differential distribution of the information resources are realized.
Fig. 3 is a flowchart of an information resource allocation method according to a preferred embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
step S301, receiving an information resource allocation request reported by a node, wherein the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node.
Step S302, adding the information resource allocation request into an information resource allocation queue corresponding to the priority level of the node; the information resource allocation queue corresponding to the type information comprises a plurality of information resource allocation queues, nodes reporting the information resource allocation requests are divided into a plurality of priority levels, and each information resource allocation queue corresponds to one priority level of each node.
Step S303, under the condition that the information resource distribution queue is not empty, an information resource collector is created, and information resources corresponding to the type information are collected through the information resource collector.
Step S304, obtaining the information resource allocation request from the information resource allocation queue corresponding to the priority level of the node, selecting the information resource corresponding to the priority level of the node from the collected information resources according to the resource amount information, and allocating the selected information resource to the node.
Through the steps, the nodes and the information resource distribution queue are set with corresponding priorities, so that differentiated information collection and distribution strategies are provided for the nodes with different priorities, and differentiated requirements of the nodes with different priorities are met.
The priority of the nodes may be determined according to the credibility of the nodes. The information resources that can be allocated by the information resource allocation queue also have the same priority as the information resource allocation queue, and the priority of the information resources can also be determined according to the credibility of the information resource source.
In the case where the resource amount information includes the resource amount of the information resource requested by the node, step S204 or step S304 includes the steps of:
step 1, allocating a first amount of information resources corresponding to the type information to the node, and updating the resource amount of the information resources requested by the node according to the first amount. The first number may be a preset number, a random number, or a number determined according to the resource number of the information resource requested by the node. When the first number is a preset number, the preset number may be one, or more. When the first number is a random number, the first number may be a random number between zero and the number of resources of the information resource requested by the node. When the first number is a number determined from the number of resources of the information resource requested by the node, the number may be a total number of the number of resources of the information resource for which the node locks clear, or a proportion of the total number, such as 1/2, 1/3, or other proportion of the total number.
And 2, judging whether the resource quantity of the information resources requested by the updated nodes is zero or not.
And 3, under the condition that the resource quantity of the information resource requested by the updated node is zero, discarding the information resource allocation request.
And 4, under the condition that the resource quantity of the information resource requested by the updated node is not zero, adding the information resource allocation request carrying the resource quantity of the information resource requested by the updated node into the information resource allocation queue corresponding to the type information.
By discarding the information resource allocation request with the resource quantity of the information resource requested by the updated node being zero, and adding the information resource allocation request with the resource quantity of the information resource requested by the updated node being zero into the queue again, the updating of the information resource allocation request in the queue and the adjustment of the queue sequence are realized, so that the nodes corresponding to the information resource allocation requests in the same queue have equal opportunities to allocate the information resources.
The above-mentioned information resource collector may be generated by an external service. Such as an information aggregator generated by a Baidu promotional service. Taking a Baidu popularization service as an example, an interface for creating an information resource collector, namely a popularization service generation interface, is provided in the Baidu popularization service, and the popularization service generation interface is called by using type information, so that a popularization service corresponding to the type information can be generated, and the popularization service is also an expression form of the information resource collector. The promotional service can be formed as a promotional page and promotional keywords associated with the promotional page. Whenever the user searches the search engine for one or more of these promotional keywords, the promotional page will be displayed to a search results page that is more easily discovered by the user. Details of the service or product to be promoted may be included in the promotion page, and an input box for collecting clue information submitted by the user may be included.
The information resources may be generated by: when the promotion page is clicked by a user, the hundred-degree promotion service acquires information of the user, for example, the hundred-degree promotion service acquires user information associated with a hundred-degree account which the user currently logs in, the user information includes but is not limited to a mobile phone number, a place of residence and the like, and the user information is a piece of collected information resource. Or the user is prompted to fill in information such as a mobile phone number, a residence, interested products or service models and the like through an input box added into the promotion page, and when the user submits clue information, the login position information of the user can be collected. The information input by the user and the login position information are a piece of collected information resource.
The currently logged-in hundredth account is a trusted account, or the information resource related to the user, which is subjected to source reliability check (for example, short message verification code check) before the clue information is submitted, may be marked as a high-priority information resource and allocated to a node corresponding to the high-priority information resource allocation queue.
And an interface for acquiring the information resources collected by the information resource collector is also provided in the Baidu popularization service, and the information resources corresponding to the type information can be acquired by using the identifier of the information resource collector.
By adopting the technical scheme provided by the application, a plurality of car dealers can be aggregated and popularized according to the same popularization plan, and the popularization cost is saved for each car dealer; the promotion page does not show the information of the car dealers, and purchasing clues and promotion cost are distributed according to the proportion. For buyers, the promotion pages of the same vehicle type obtained in the process of searching information are uniform, the promotion pages of different vehicles, merchants and the same vehicle type are prevented from being searched at the same time, and the search experience is improved.
The embodiment also provides an information resource allocation device. Fig. 4 is a block diagram of a configuration of an information resource allocation apparatus according to an embodiment of the present application, and as shown in fig. 4, the information resource allocation apparatus includes:
the receiving module 41 is configured to receive an information resource allocation request reported by a node, where the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node.
And an adding module 42, coupled to the receiving module 41 and the information resource allocation queue 51, for adding the information resource allocation request to the information resource allocation queue corresponding to the type information.
And an obtaining module 43, coupled to the information resource allocation queue 51, for creating an information resource aggregator if the information resource allocation queue is not empty, and gathering an information resource corresponding to the type information by the information resource aggregator.
And an allocating module 44, coupled to the obtaining module 43 and the information resource allocation queue 51, configured to obtain the information resource allocation request from the information resource allocation queue, and allocate the information resource corresponding to the type information to the node according to the resource amount information.
In some of these embodiments, the resource amount information includes: resource quantity information of the information resources requested by the node and/or gathering time period information of the information resources requested by the node.
In some of these embodiments, the resource amount information includes: and the identification information of the node, wherein a corresponding relation exists between the identification information of the node and the resource quantity information of the information resource requested by the node, and/or a corresponding relation exists between the identification information of the node and the collection time period information of the information resource requested by the node.
In some embodiments, the information resource allocation queue corresponding to the type information includes a plurality of information resource allocation queues, a node that reports the information resource allocation request is divided into a plurality of priority levels, and each information resource allocation queue corresponds to one priority level of the node; wherein the content of the first and second substances,
and the adding module 42 is configured to add the information resource allocation request to the information resource allocation queue corresponding to the priority level of the node.
The allocating module 44 is configured to obtain an information resource allocation request from an information resource allocation queue corresponding to the priority level of the node, select an information resource corresponding to the priority level of the node from the collected information resources according to the resource amount information, and allocate the selected information resource to the node.
In some of these embodiments, the resource amount information includes: the resource quantity of the information resource requested by the node; an allocating module 44, configured to allocate a first number of information resources corresponding to the type information to the node, and update the resource number of the information resources requested by the node according to the first number; judging whether the resource quantity of the information resources requested by the updated nodes is zero or not; and under the condition that the resource quantity of the information resource requested by the updated node is zero, discarding the information resource allocation request.
In some embodiments, the allocating module 44 is further configured to, when the resource quantity of the information resource requested by the updated node is not zero, add the information resource allocation request carrying the resource quantity of the information resource requested by the updated node to the information resource allocation queue corresponding to the type information.
In some embodiments, the obtaining module 43 is configured to call, using the type information, an interface for creating an information resource aggregator; after the information resource collector is created, an interface for acquiring the information resources collected by the information resource collector is called to acquire the information resources corresponding to the type information.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving an information resource allocation request reported by a node, where the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node.
S2, adding the information resource allocation request to the information resource allocation queue corresponding to the type information.
And S3, under the condition that the information resource distribution queue is not empty, creating an information resource collector, and collecting the information resources corresponding to the type information through the information resource collector.
And S4, acquiring the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and details are not described here again.
In addition, in combination with the method for allocating information resources in the foregoing embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements the method for allocating information resources of any of the above embodiments.
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather are to be construed as falling within the scope of the present disclosure unless there is any inconsistency between such combinations of features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for allocating information resources, comprising:
receiving an information resource allocation request reported by a node, wherein the information resource allocation request carries resource quantity information of information resources requested by the node and type information of the information resources requested by the node;
adding the information resource allocation request into an information resource allocation queue corresponding to the type information;
under the condition that the information resource distribution queue is not empty, an information resource collector is established, and information resources corresponding to the type information are collected through the information resource collector;
and acquiring the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information.
2. The method according to claim 1, wherein the resource amount information includes: resource quantity information of the information resources requested by the node and/or gathering time period information of the information resources requested by the node.
3. The method according to claim 1, wherein the resource amount information includes: the identification information of the node, wherein a corresponding relationship exists between the identification information of the node and the resource quantity information of the information resource requested by the node, and/or a corresponding relationship exists between the identification information of the node and the collection time period information of the information resource requested by the node.
4. The method according to claim 1, wherein the information resource allocation queue corresponding to the type information comprises a plurality of information resource allocation queues, the node reporting the information resource allocation request is divided into a plurality of priority levels, and each information resource allocation queue corresponds to a priority level of the node; wherein the content of the first and second substances,
adding the information resource allocation request into an information resource allocation queue corresponding to the type information comprises: adding the information resource allocation request into an information resource allocation queue corresponding to the priority level of the node;
acquiring the information resource allocation request from the information resource allocation queue, and allocating the information resource corresponding to the type information to the node according to the resource amount information includes: and acquiring the information resource allocation request from the information resource allocation queue corresponding to the priority level of the node, selecting the information resource corresponding to the priority level of the node from the collected information resources according to the resource amount information, and allocating the selected information resource to the node.
5. The method according to claim 1, wherein the resource amount information includes: the resource quantity of the information resource requested by the node; allocating information resources corresponding to the type information to the node according to the resource amount information includes:
allocating a first amount of information resources corresponding to the type information to the node, and updating the resource amount of the information resources requested by the node according to the first amount;
judging whether the resource quantity of the updated information resource requested by the node is zero or not;
and under the condition that the updated resource quantity of the information resource requested by the node is zero, discarding the information resource allocation request.
6. The method for allocating information resources according to claim 5, wherein the method further comprises:
and under the condition that the resource quantity of the updated information resource requested by the node is not zero, adding an information resource allocation request carrying the resource quantity of the updated information resource requested by the node into an information resource allocation queue corresponding to the type information.
7. The method according to any one of claims 1 to 6, wherein creating an information resource aggregator, and aggregating information resources corresponding to the type information by the information resource aggregator comprises:
using the type information, calling an interface for creating the information resource collector;
after the information resource collector is created, calling an interface for acquiring the information resources collected by the information resource collector to acquire the information resources corresponding to the type information.
8. An apparatus for allocating information resources, comprising:
a receiving module, configured to receive an information resource allocation request reported by a node, where the information resource allocation request carries resource amount information of an information resource requested by the node and type information of the information resource requested by the node;
the adding module is used for adding the information resource allocation request into an information resource allocation queue corresponding to the type information;
the acquisition module is used for creating an information resource collector under the condition that the information resource distribution queue is not empty, and collecting information resources corresponding to the type information through the information resource collector;
and the allocation module is used for acquiring the information resource allocation request from the information resource allocation queue and allocating the information resources corresponding to the type information to the nodes according to the resource amount information.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of allocating information resources of any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program, wherein the computer program is arranged to execute the method of allocating information resources of any one of claims 1 to 7 when running.
CN202010951694.2A 2020-09-11 2020-09-11 Information resource allocation method, device, electronic device and storage medium Pending CN112068961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010951694.2A CN112068961A (en) 2020-09-11 2020-09-11 Information resource allocation method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010951694.2A CN112068961A (en) 2020-09-11 2020-09-11 Information resource allocation method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN112068961A true CN112068961A (en) 2020-12-11

Family

ID=73696172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010951694.2A Pending CN112068961A (en) 2020-09-11 2020-09-11 Information resource allocation method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112068961A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114841648A (en) * 2022-05-19 2022-08-02 北京百度网讯科技有限公司 Material distribution method, device, electronic equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212545B1 (en) * 1997-10-31 2001-04-03 Fujitsu Limited Distributed searching system and searching apparatus for use in the distributed searching system
CN107111820A (en) * 2014-10-13 2017-08-29 三星电子株式会社 Method and apparatus for providing ad content
CN107689968A (en) * 2016-08-03 2018-02-13 阿里巴巴集团控股有限公司 Processing system, the method and device of task
CN108074137A (en) * 2018-01-04 2018-05-25 北京奇虎科技有限公司 Mobile terminal and advertisement placement method and its control method, device
CN109710402A (en) * 2018-12-17 2019-05-03 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of process resource acquisition request
CN110134857A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Promote the determination method and device of the resource numerical value of resource
CN110210922A (en) * 2018-11-02 2019-09-06 腾讯科技(深圳)有限公司 Information showing resource distribution method, device, computer equipment and storage medium
CN111080342A (en) * 2019-11-27 2020-04-28 京东数字科技控股有限公司 Resource allocation method and device, storage medium and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212545B1 (en) * 1997-10-31 2001-04-03 Fujitsu Limited Distributed searching system and searching apparatus for use in the distributed searching system
CN107111820A (en) * 2014-10-13 2017-08-29 三星电子株式会社 Method and apparatus for providing ad content
CN107689968A (en) * 2016-08-03 2018-02-13 阿里巴巴集团控股有限公司 Processing system, the method and device of task
CN108074137A (en) * 2018-01-04 2018-05-25 北京奇虎科技有限公司 Mobile terminal and advertisement placement method and its control method, device
CN110134857A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Promote the determination method and device of the resource numerical value of resource
CN110210922A (en) * 2018-11-02 2019-09-06 腾讯科技(深圳)有限公司 Information showing resource distribution method, device, computer equipment and storage medium
CN109710402A (en) * 2018-12-17 2019-05-03 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of process resource acquisition request
CN111080342A (en) * 2019-11-27 2020-04-28 京东数字科技控股有限公司 Resource allocation method and device, storage medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114841648A (en) * 2022-05-19 2022-08-02 北京百度网讯科技有限公司 Material distribution method, device, electronic equipment and medium
CN114841648B (en) * 2022-05-19 2023-05-09 北京百度网讯科技有限公司 Material distribution method, device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US7945470B1 (en) Facilitating performance of submitted tasks by mobile task performers
US10296952B2 (en) Fulfillment of cloud service using marketplace system
US20090055435A1 (en) Analyzer, a system and a method for defining a preferred group of users
CN107578287B (en) Frequency control method and device for advertisement putting
CN108492188B (en) Client recommendation method, device, equipment and storage medium
US20150371284A1 (en) Method for promoting platform based on user behavior analysis
CN103620585A (en) Virtual identity manager
CN110688215A (en) Virtual resource allocation method, server, and computer-readable storage medium
WO2021027478A1 (en) Sim card resource allocation method and system, terminal device, and storage medium
CN111641702A (en) Heartbeat message management method and device
CN112068961A (en) Information resource allocation method, device, electronic device and storage medium
CN112862544A (en) Object information acquisition method and device and storage medium
CN110753323B (en) Card resource allocation method and server
CN109544207A (en) A kind of information processing method, storage medium and server
CN110557661B (en) Method, device, equipment and medium for determining delivery grade
CN108874805A (en) The treating method and apparatus of data
CN111709857A (en) House resource sharing method and device and electronic equipment
CN111210256A (en) Resource allocation method and device, server and storage medium
CN110262892A (en) A kind of ticketing service dissemination method based on distributed storage data-link, device and data-link node
CN110795237B (en) Resource processing method, device, electronic equipment and medium
CN111786801B (en) Method and device for charging based on data flow
JP2006330984A (en) Advertisement information link management system and method therefor
CN112035760A (en) Task allocation method and computer equipment
CN109033343B (en) Method and apparatus for generating information
US11049135B2 (en) Offers system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination