CN112819490A - Device and method for pre-notifying second-killing advertisement - Google Patents
Device and method for pre-notifying second-killing advertisement Download PDFInfo
- Publication number
- CN112819490A CN112819490A CN201911120255.0A CN201911120255A CN112819490A CN 112819490 A CN112819490 A CN 112819490A CN 201911120255 A CN201911120255 A CN 201911120255A CN 112819490 A CN112819490 A CN 112819490A
- Authority
- CN
- China
- Prior art keywords
- killing
- information
- advertisements
- data
- advertisement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000002147 killing effect Effects 0.000 claims abstract description 135
- 238000004590 computer program Methods 0.000 claims description 9
- 230000001360 synchronised effect Effects 0.000 claims description 9
- 238000012163 sequencing technique Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000007246 mechanism Effects 0.000 abstract description 11
- 230000006399 behavior Effects 0.000 description 28
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
Landscapes
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a device and a method for advertising in advance by second-killing, and relates to the technical field of computers. One specific implementation mode of the device comprises an advertisement playing unit and a second killing and forenotice unit; the advertisement playing unit is used for determining a plurality of advertisements matched with the received user behavior information, generating a killing-by-second information retrieval request based on the advertisements and sending the killing-by-second information retrieval request to the killing-by-second forecasting unit; the second killing forecasting unit is used for determining whether the plurality of advertisements are second killing advertisements according to the second killing information stored in the local cache and feeding back the determined second killing advertisements to the advertisement playing unit, wherein the second killing information is stored in the local cache in a double-cache mode. According to the implementation method, the second killing advertisements can be efficiently added into the advertisement queue of the advertisement playing unit in real time, and the second killing information in the local cache of the second killing advance notice unit is stored by using a double-cache mechanism, so that data lock-free updating under the multithreading condition can be realized, and the operation efficiency is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a device and a method for advertising in advance by second-time advertisement killing.
Background
At present, each electronic commerce platform can hold second killing activities, the selling price of commodities participating in second killing is much lower than that of normal commodities, and a user has a great purchase intention on the low-price second killing commodities. In the internet era, computational advertisements can be used for pushing interested advertisement commodities to users in a multi-dimensional manner, and the advertisement commodities are pushed after interest orientation processing is carried out through each large advertisement playing system. In order to improve the advertising income, the advertising playing system can recommend commodities participating in second killing activities in a near-term time period to a user in an advertising mode, the user can know the states of the commodities in advance and click and add shopping carts and other activities in advance, and therefore the advertising income and GMV (Gross transaction Volume) in a certain time period are improved.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: due to the real-time variability of the second-killing commodities, the commodities requested by the advertisement playing system from the advertisement library each time are not determined to be second-killing commodities, and the commodities information library is required to be requested again to determine whether the second-killing commodities are second-killing commodities; at present, the time field for the forecast of the second killer is directly written in the codes, if the time interval of the second killer needs to be adjusted and the field needing to be forecasted needs to be finished by modifying the codes, and the flexibility is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a device and a method for forecasting second-killing advertisements, which can add the second-killing advertisements to an advertisement queue of an advertisement playing unit in a real-time and efficient manner, and store second-killing information in a local cache of the second-killing forecasting unit by using a double-cache mechanism, so as to implement data lock-free update under the condition of multiple threads, and improve the operation efficiency.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided an apparatus for previewing a second-kill advertisement, the apparatus including an advertisement playing unit and a second-kill preview unit;
the advertisement playing unit is used for determining a plurality of advertisements matched with the user behavior information according to the received user behavior information, generating a killing-second information retrieval request based on the advertisements, and sending the killing-second information retrieval request to the advertisement playing unit;
and the second killing forenotice unit is used for receiving the second killing information retrieval request, determining whether the plurality of advertisements are second killing advertisements according to the second killing information stored in the local cache, and feeding back the determined second killing advertisements to the advertisement playing unit, wherein the second killing information is stored in the local cache in a double-cache manner.
In an optional embodiment, the double caching of the acquired killing-by-second information in the local cache by the killing-by-second forecasting unit includes:
and storing the killing-by-second information as two data in a local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
In an optional embodiment, the advertisement playing unit is further configured to: and scoring the received second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
In an optional embodiment, the device further comprises a killing-by-second information base for storing killing-by-second information of the second-killing commodity;
the second killing forenotice unit is also used for: and accessing the second killing information base at regular time to acquire second killing information of second killing commodities.
In an optional embodiment, the second-killing advance informing unit accesses the second-killing information base at regular time, and the obtaining of the second-killing information of the second-killing commodity includes: determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities; carrying out double caching on the acquired killing-by-seconds information in a local cache; calculating the time for next updating of the killing-second information according to the current time and a preset updating period; and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation.
To achieve the above object, according to another aspect of embodiments of the present invention, there is provided a method of advertising a barker second advertisement, the method including:
determining a plurality of advertisements matched with the user behavior information according to the received user behavior information;
acquiring the killing-by-second information of the killing-by-second commodities, and performing double caching on the acquired killing-by-second information in a local cache;
determining whether a plurality of advertisements matched with the user behavior information are second killing advertisements or not based on second killing information in the local cache;
and if so, playing the determined second killing advertisement.
In an optional embodiment, double caching the acquired killing-by-second information in a local cache includes:
and storing the acquired killing-by-second information into two data in the local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
In an optional embodiment, the method further comprises: and scoring the determined second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
In an optional embodiment, the method further comprises:
storing the killing-by-second information of the killing-by-second commodities into a killing-by-second information base;
the second killing information for obtaining the second killing commodity comprises the following steps: and accessing the second killing information base at regular time to acquire second killing information of second killing commodities.
In an optional embodiment, the accessing the killing-by-second information base at regular time, and the obtaining of the killing-by-second information of the killing-by-second commodity comprises: determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities; carrying out double caching on the acquired killing-by-seconds information in a local cache; calculating the time for next updating of the killing-second information according to the current time and a preset updating period; and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method for advertising by using the preview second advertisement.
To achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method of advertising by a trailer second killer of the embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits: the second killing information stored in the local cache of the second killing advance notice unit is used for determining whether the advertisement matched with the user behavior information is the second killing advertisement or not, so that the second killing advertisement can be efficiently added to the advertisement queue of the advertisement playing unit in real time, and the second killing information in the local cache of the second killing advance notice unit is stored by using a double-cache mechanism, so that data lock-free updating under the condition of multithreading can be realized, and the operating efficiency is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main modules of an apparatus for advertising a preview second advertisement according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the main modules of an apparatus for advertising a second-year advertisement according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a main flow of data update by the second killer forecast unit according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of the main flow of a method of advertising by a second-party advertisement forecast according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a device 100 for previewing a second advertisement according to an embodiment of the present invention, and as shown in fig. 1, the device 100 for previewing a second advertisement includes an advertisement playing unit 101 and a second advertisement previewing unit 102.
The advertisement playing unit 101 is configured to determine, according to the received user behavior information, a plurality of advertisements matching the user behavior information, generate a killing-by-second information retrieval request based on the plurality of advertisements, and send the killing-by-second information retrieval request to the killing-by-second forecasting unit 102.
In this embodiment, the advertisement playing unit 101 is used for receiving the traffic of the external system requesting the advertisement, so as to obtain the advertisement matching with the request information. Analyzing the received advertisement request can obtain user behavior information, user pin (user personal identification number), device type and id information, location, ip, time and the like, wherein the user behavior information comprises browsing information, purchasing information and the like of the user. The user behavior information is a basic trigger type information, and in the embodiment, the advertisement matched with the user behavior information can be determined by means of an article-based collaborative filtering algorithm, and the main process of the algorithm comprises the following steps: and calculating the similarity between the commodities, calculating the scores of the commodities browsed or purchased by the user, and recommending the commodities similar to the commodities with higher scores to the user.
The purpose of the advertisement playing unit 101 sending the killing-by-second information retrieval request to the killing-by-second forecasting unit 102 is to determine whether the obtained plurality of advertisements matching the user behavior information are killing-by-second advertisements.
In an alternative embodiment, the advertisement playing unit 101 is also used for playing online advertisements.
The second killing forecasting unit 102 is configured to receive the second killing information retrieval request, determine whether the plurality of advertisements are second killing advertisements according to the second killing information stored in the local cache, and feed back the determined second killing advertisements to the advertisement playing unit, where the second killing information is stored in the local cache in a double-cache manner.
The second killing information can comprise sku information of second killing commodities such as second killing field, second killing starting time and ending time, second killing amount and the like. The sku (stock keeping unit) is a short name for a unified product number, and each product corresponds to a unique sku number. A commodity is called a single commodity when any one of its attributes, such as brand, model, configuration, grade, flower color, packaging capacity, unit, production date, expiration date, usage, price, and place of production, is different from that of other commodities.
In this step, the double caching of the killing information in the local cache by the killing-by-second predicting unit 102 may include:
and storing the acquired killing-by-second information into two data in the local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
More specifically, the killing-by-second information in the local cache is stored in the form of a key-value pair (key-value). The key may be a unique identifier (e.g., sku-id) of the second-killing item, and the value may be a hash value of the unique identifier of the item, where the hash value is used to calculate a storage location of second-killing information of the second-killing item. That is, the second killing prediction unit 102 according to the embodiment of the present invention implements a double-cache unordered _ map, implements efficient retrieval by using hash table characteristics, and uses a double-cache update mechanism to ensure lock-free update data. Where unordered _ map is an associative container storing < key, value > key-value pairs, which allows quick indexing by key to its corresponding value. The implementation of efficient retrieval based on hash table characteristics is based on hash buckets. The whole idea is to use space to exchange time and maintain the retrieval efficiency of O (1). For each element a hash value is calculated, from which the storage location of the element is directly calculated.
The second killer forecasting unit 102 may determine whether the plurality of advertisements matching the user behavior information are second killer advertisements based on the second killer information in the local cache, including:
inquiring the killing-per-second information in the local cache, and determining whether the commodities in the advertisements matched with the user behavior information are killing-per-second commodities;
if yes, the advertisement is determined to be a second killing advertisement.
The device for forecasting the second killing advertisement of the embodiment of the invention determines whether the advertisement matched with the user behavior information is the means of second killing advertisement or not by using the second killing information stored in the local cache of the second killing forecasting unit, can add the second killing advertisement to the advertisement queue of the advertisement playing unit in real time and high efficiently, and stores the second killing information in the local cache of the second killing forecasting unit by using a double-cache mechanism, thereby realizing data lock-free updating under the condition of multithreading and improving the operating efficiency.
In an optional embodiment, the advertisement playing unit 101 is further configured to:
and scoring the determined second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
As a specific example, pGmv (Click-Through-Rate, estimated Click Rate), pCtr (Gross merchandisc Volume, estimated turn Rate), and pCvr (Conversion Rate) of a product in the second advertisement are obtained, and the score of the second advertisement is calculated by the parameters, more specifically, the parameters are multiplied by different weights and then added, and the sum obtained by adding is the score of the second advertisement.
In an alternative embodiment, the second advertisement before playing the sequence may be N second advertisements before playing (N is an integer greater than or equal to 1), or M% second advertisements before playing (M is an integer greater than or equal to 1).
Fig. 2 is a device 200 for forecasting second-minute advertisement in accordance with another embodiment of the present invention, and as shown in fig. 2, the device 200 for forecasting second-minute advertisement includes an advertisement playing unit 201, a second-minute advertisement forecasting unit 202, and a second-minute advertisement information base 203.
The advertisement playing unit 201 is mainly responsible for playing online advertisements, receives an advertisement request sent by a front end, analyzes the advertisement request to obtain user behavior information, and requests an advertisement library to recall advertisements according to the user behavior information.
The second killer forecast unit 202 is provided as a high-performance service to the advertisement playing unit, and can provide a real-time second killer information inquiry service.
The killing-by-second information base is used for storing the current killing-by-second information and updating in real time. The killing-by-second information may include: the sku information of various second-killing commodities such as second-killing field, second-killing starting time, second-killing ending time, second-killing amount and the like.
The advertisement playing unit 201 is further configured to determine whether the recalled advertisement is a second killing advertisement according to the real-time second killing information query service provided by the second killing advance notice unit, then score and sort the determined second killing advertisements, and finally return the advertisement sorted in the front to a series of advertisement units at the front end.
As shown in fig. 2, the second killer unit 202 includes a data communication module 2021, a second killer information synchronization module 2022, and an information retrieval module 2023.
The data communication module 2021 is configured to provide the advertisement playing unit 201 with a second-killing real-time query interface. As an example, the data communication module 2021 may be implemented using RPC (Remote Procedure Call).
The killing-by-second information synchronization module 2022 is configured to access the killing-by-second information base at regular time, acquire killing-by-second information of the killing-by-second commodity, and perform double caching on the acquired killing-by-second information in a local cache.
The information retrieval module 2023: the method comprises the steps of storing information acquired from a killing-by-second information base, realizing a double-cache unordered _ map inside, realizing efficient retrieval by utilizing the characteristics of a hash table, and ensuring lock-free updating data by using a double-cache updating mechanism. The double-cache mechanism is to store two data in the system at the same time, and store a currently used data index to represent which data is currently used. When data writing operation exists, modification operation is carried out on the data of the version which is not currently used, and after the modification is finished, the index is switched to use the modified data and the data of the original version is synchronized to be the latest. By the method, data updating without lock under the condition of multithreading is realized, and the operation efficiency is improved.
The internal implementation of the information retrieval module mainly comprises two members: 1. two hash maps (the contents stored by the maps, i.e. the key value pairs above) are provided with a garbage collection function (the garbage collection function is delayed collection) for hot updating system information. 2. An index value (the index value is an atomic variable, hereinafter referred to as index _ no) indicating which data the contents of the exposed data of the current service are. For the outside world, the external service caller does not know which piece of data to use. For the pair, only the information retrieval module can update the value of index _ no.
The second-killing information synchronization module 2022 of this embodiment is configured to pull the second-killing information in the second-killing information base at a thread timing (e.g., 2 hours).
For example, assuming that the current index _ no is 0, the data used by the current information retrieval module is the 0 th data. At this time, the advertisement playing unit has 3 threads to access the second killing forenotice unit, and the data read by the three threads is the 0 th data. If the data update happens to be caught up at the moment, the killing-by-second information synchronization module accesses the killing-by-second information base and writes the new killing-by-second information into the 1 st data. After all the killing-by-seconds information is synchronized, the index _ no is updated to 1, and the subsequent information retrieval module uses the 1 st data for retrieval. In the data updating process, the information retrieval module utilizes the 0 th data to retrieve. Since the 0 th data is not cleared, the apparatus 200 for advertising in advance of the second advertisement can operate normally. After the retrieval is finished, the 0 th data is synchronized by the 1 st data.
Notably, the use of a double cache update mechanism is not suitable for systems that update quickly and frequently. When the time for using the data exceeds the interval of data update, the system hangs up. As an example, the maximum time-consuming threshold of the request for accessing the second-killing noticing unit is 10ms, and the time interval of the second-killing information updating is 2h, so the device 200 for noticing the second-killing advertisement according to the embodiment of the present invention does not have the problem of rewriting after the data updating.
Fig. 3 is a schematic flow chart of updating data by the second killer forecast unit according to the embodiment of the present invention, and as shown in fig. 3, the flow chart includes:
step S301: determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities;
step S302: updating the acquired killing-by-second information to a local cache, and performing double caching on the acquired killing-by-second information in the local cache;
step S303: calculating the time for next updating of the killing-second information according to the current time and a preset updating period;
step S304: and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation.
The data updating process configures the time interval of the killing-by-second information synchronization through a configuration file, and the updating is performed once in two hours by default. And reading the current time and calculating the next updating time when the program is initialized, and accessing the one-time second killing information base to obtain the current second killing commodity information. And traversing to obtain the current second killing commodity information, and adding the second killing commodity information into a local cache of a second killing forecasting system for an advertisement playing end to inquire in real time. And after the program initialization is finished, starting a data updating thread, accessing the killing-by-second information base at regular time according to the previously calculated time interval, and updating the obtained result into a local cache. The local cache updating uses a double-cache updating mechanism to realize multithreading safe lock-free updating.
In the device for forecasting second-killing advertisements in the embodiment of the invention, after the advertisement playing unit acquires the advertisement request sent by the front end, the advertisement playing unit accesses the advertisement library and recalls the advertisements matched with the user behavior information according to the user behavior information (such as browsing and purchasing information) in the advertisement request to generate the advertisement set. Then, the advertisement playing unit accesses the second killing forenotice unit and judges whether the commodities in the advertisement set are second killing commodities, namely whether the advertisements in the advertisement set are second killing advertisements. If yes, the advertisement is marked as a second killing advertisement, and corresponding second killing information is added. And then, scoring and sequencing the second killing advertisements, and finally returning the second killing advertisements which are sequenced in the front to the front end.
Fig. 4 is a schematic diagram of a main flow of a method for advertising by a second advertisement, according to an embodiment of the present invention, as shown in fig. 4, the method includes:
step S401: determining a plurality of advertisements matched with the user behavior information according to the received user behavior information;
step S402: acquiring the killing-by-second information of the killing-by-second commodities, and performing double caching on the acquired killing-by-second information in a local cache;
step S403: determining whether a plurality of advertisements matched with the user behavior information are second killing advertisements or not based on second killing information in the local cache;
step S404: and if so, playing the determined second killing advertisement.
Optionally, double caching the acquired killing-by-second information in a local cache includes:
and storing the acquired killing-by-second information into two data in the local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
Optionally, the method further comprises: and scoring the determined second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
Optionally, the method further comprises: storing the killing-by-second information of the killing-by-second commodities into a killing-by-second information base; and accessing the second killing information base at regular time to acquire second killing information of second killing commodities.
Optionally, the second killing information base is accessed at regular time, and the obtaining of the second killing information of the second killing commodity comprises:
determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities;
carrying out double caching on the acquired killing-by-seconds information in a local cache;
calculating the time for next updating of the killing-second information according to the current time and a preset updating period;
and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation. The method has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The method for forecasting the second killing advertisement of the embodiment of the invention determines whether the advertisement matched with the user behavior information is the means of second killing advertisement or not by using the second killing information stored in the local cache of the second killing forecasting unit, can add the second killing advertisement to the advertisement queue of the advertisement playing unit in real time and high efficiently, and stores the second killing information in the local cache of the second killing forecasting unit by using a double-cache mechanism, thereby realizing data lock-free updating under the condition of multithreading and improving the operating efficiency.
Fig. 5 illustrates an exemplary system architecture 500 to which the method of, or apparatus for, barker-second killing of advertisements of embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be noted that the method for advertising by second-turn advertisement forecasting provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the apparatus for advertising by second-turn advertisement forecasting is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases constitute a limitation on the unit itself, and for example, the sending module may also be described as a "module that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
determining a plurality of advertisements matched with the user behavior information according to the received user behavior information;
acquiring the killing-by-second information of the killing-by-second commodities, and performing double caching on the acquired killing-by-second information in a local cache;
determining whether a plurality of advertisements matched with the user behavior information are second killing advertisements or not based on second killing information in the local cache;
and if so, playing the determined second killing advertisement.
According to the technical scheme of the embodiment of the invention, the second killing information stored in the local cache of the second killing advance notice unit is utilized to determine whether the advertisement matched with the user behavior information is the second killing advertisement or not, so that the second killing advertisement can be efficiently added to the advertisement queue of the advertisement playing unit in real time, and the second killing information in the local cache of the second killing advance notice unit is stored by using a double-cache mechanism, so that data lock-free updating under the condition of multithreading can be realized, and the operation efficiency is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. The device for forecasting the second-killing advertisement is characterized by comprising an advertisement playing unit and a second-killing forecasting unit;
the advertisement playing unit is used for determining a plurality of advertisements matched with the user behavior information according to the received user behavior information, generating a killing-by-second information retrieval request based on the advertisements, and sending the killing-by-second information retrieval request to the killing-by-second forecasting unit;
the second killing forenotice unit is used for receiving the second killing information retrieval request, determining whether the plurality of advertisements are second killing advertisements according to the second killing information stored in the local cache, and feeding back the determined second killing advertisements to the advertisement playing unit, wherein the second killing information is stored in the local cache in a double-cache mode.
2. The apparatus of claim 1, wherein the storing of the killing-by-seconds information in the local cache in a double cache comprises:
and storing the killing-by-second information as two data in a local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
3. The apparatus of claim 1, wherein the advertisement playing unit is further configured to:
and scoring the received second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
4. The device of claim 1, further comprising a killing-by-second information base for storing killing-by-second information of the commodities;
the second killing forenotice unit is also used for:
and accessing the killing-by-second information base at regular time, acquiring the killing-by-second information of the killing-by-second commodities, and performing double caching on the acquired killing-by-second information in a local cache.
5. The apparatus of claim 3, wherein the second-killing forecasting unit regularly accesses the second-killing information base, and the obtaining of the second-killing information of the second-killing commodity comprises:
determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities;
carrying out double caching on the acquired killing-by-seconds information in a local cache;
calculating the time for next updating of the killing-second information according to the current time and a preset updating period;
and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation.
6. A method of advertising a second-to-last advertisement, the method comprising:
determining a plurality of advertisements matched with the user behavior information according to the received user behavior information;
acquiring the killing-by-second information of the killing-by-second commodities, and performing double caching on the acquired killing-by-second information in a local cache;
determining whether a plurality of advertisements matched with the user behavior information are second killing advertisements or not based on second killing information in the local cache;
and if so, playing the determined second killing advertisement.
7. The method of claim 6, wherein double caching the acquired killing-by-seconds information in a local cache comprises:
and storing the acquired killing-by-second information into two data in the local cache, recording the two data as a first data and a second data, wherein the second data is used for data updating under the condition that the killing-by-second prediction unit determines whether the advertisements are killing-by-second advertisements or not based on the first data, and after the second data is updated, the first data is synchronized based on the updated second data.
8. The method of claim 6, further comprising:
and scoring the determined second killing advertisements, sequencing the second killing advertisements according to the sequence of scores from large to small, and playing the second killing advertisements sequenced in the front.
9. The method of claim 6, further comprising:
storing the killing-by-second information of the killing-by-second commodities into a killing-by-second information base;
the second killing information for obtaining the second killing commodity comprises the following steps: and accessing the second killing information base at regular time to acquire second killing information of second killing commodities.
10. The apparatus of claim 3, wherein the timed access to the SEC information base and the obtaining of the SEC information of the SEC merchandise comprises:
determining the current time, accessing a killing-by-second information base at the current time, and acquiring killing-by-second information of the killing-by-second commodities;
carrying out double caching on the acquired killing-by-seconds information in a local cache;
calculating the time for next updating of the killing-second information according to the current time and a preset updating period;
and starting a data updating thread, and accessing the killing-by-second information base according to the time for updating the killing-by-second information next time obtained by calculation.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 6-10.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911120255.0A CN112819490A (en) | 2019-11-15 | 2019-11-15 | Device and method for pre-notifying second-killing advertisement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911120255.0A CN112819490A (en) | 2019-11-15 | 2019-11-15 | Device and method for pre-notifying second-killing advertisement |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112819490A true CN112819490A (en) | 2021-05-18 |
Family
ID=75851923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911120255.0A Pending CN112819490A (en) | 2019-11-15 | 2019-11-15 | Device and method for pre-notifying second-killing advertisement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112819490A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116567281A (en) * | 2023-04-19 | 2023-08-08 | 上海百秋智尚网络服务有限公司 | Live interaction method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161541A1 (en) * | 2005-01-19 | 2006-07-20 | Microsoft Corporation | System and method for prefetching and caching query results |
CN101980275A (en) * | 2010-11-01 | 2011-02-23 | 深圳市同洲电子股份有限公司 | System, digital television terminal, device and method for realizing commodity order |
CN105160572A (en) * | 2015-09-30 | 2015-12-16 | 努比亚技术有限公司 | Device and method for controlling order to generate, and seckilling system |
CN105321077A (en) * | 2014-06-30 | 2016-02-10 | 惠州市水木网络科技有限公司 | TV shopping navigation portal recommendation method and system |
CN107833087A (en) * | 2017-10-13 | 2018-03-23 | 中国银行股份有限公司 | The online method for selling and equipment of a kind of killing property of second product |
-
2019
- 2019-11-15 CN CN201911120255.0A patent/CN112819490A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161541A1 (en) * | 2005-01-19 | 2006-07-20 | Microsoft Corporation | System and method for prefetching and caching query results |
CN101980275A (en) * | 2010-11-01 | 2011-02-23 | 深圳市同洲电子股份有限公司 | System, digital television terminal, device and method for realizing commodity order |
CN105321077A (en) * | 2014-06-30 | 2016-02-10 | 惠州市水木网络科技有限公司 | TV shopping navigation portal recommendation method and system |
CN105160572A (en) * | 2015-09-30 | 2015-12-16 | 努比亚技术有限公司 | Device and method for controlling order to generate, and seckilling system |
CN107833087A (en) * | 2017-10-13 | 2018-03-23 | 中国银行股份有限公司 | The online method for selling and equipment of a kind of killing property of second product |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116567281A (en) * | 2023-04-19 | 2023-08-08 | 上海百秋智尚网络服务有限公司 | Live interaction method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10853847B2 (en) | Methods and systems for near real-time lookalike audience expansion in ads targeting | |
US20200250732A1 (en) | Method and apparatus for use in determining tags of interest to user | |
WO2017035970A1 (en) | Information pushing method and apparatus | |
US8977561B2 (en) | Caching item information in a cloud-based point of sale system | |
CN108287925B (en) | Method and device for displaying page elements | |
CN108984553B (en) | Caching method and device | |
US9465881B2 (en) | User displays using N-way paginated merge of information from diverse sources | |
CN107291779B (en) | Cache data management method and device | |
US20130254014A1 (en) | Automatic Information Placement | |
CN110866040B (en) | User portrait generation method, device and system | |
CN112884405A (en) | Inquiry system and scheduling method thereof | |
CN110738436A (en) | method and device for determining available stock | |
CN111699487A (en) | System for fast and secure content provision | |
CN104424325B (en) | Data query method and apparatus | |
CN111258988B (en) | Asset management method, device, electronic equipment and medium | |
CN112825178A (en) | Method and device for predicting user gender portrait | |
CN114493750A (en) | Method, device, equipment and computer readable medium for sending recommended article information | |
CN114357280A (en) | Information pushing method and device, electronic equipment and computer readable medium | |
US20130339136A1 (en) | Detection of events from bursts of activity indicators | |
CN108985805B (en) | Method and device for selectively executing push task | |
CN112819490A (en) | Device and method for pre-notifying second-killing advertisement | |
RU2714583C1 (en) | Method and system for selecting multidimensional data blocks in electronic information system | |
CN110838019A (en) | Method and device for determining trial supply distribution crowd | |
CN113971245A (en) | Information pushing method, device and system | |
CN113535740B (en) | Inventory management method and device |
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 |