CN117112886A - Popularization information processing method, device, computer equipment and storage medium - Google Patents

Popularization information processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117112886A
CN117112886A CN202310848982.9A CN202310848982A CN117112886A CN 117112886 A CN117112886 A CN 117112886A CN 202310848982 A CN202310848982 A CN 202310848982A CN 117112886 A CN117112886 A CN 117112886A
Authority
CN
China
Prior art keywords
promotion
user
information
database
request
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
CN202310848982.9A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310848982.9A priority Critical patent/CN117112886A/en
Publication of CN117112886A publication Critical patent/CN117112886A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application relates to a promotional information processing method, apparatus, computer device, storage medium, and computer program product. The method comprises the following steps: acquiring user history data of a user; determining popularization information of each user according to the user history data; writing the popularization information of the user into a popularization information database; and determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the received promotion from the promotion information database to the promotion information cache. According to the method, on one hand, users with different information receiving degrees are distinguished according to the promotion identification, the users are prevented from being bothered by excessive information, on the other hand, promotion information is synchronized to the information cache, and the calling pressure of a follow-up promotion information database is reduced.

Description

Popularization information processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for processing promotion information.
Background
With the development of internet technology, more and more people choose to acquire information on line, and usually actively acquire information on a mobile phone or other application terminals, because the information acquisition means of users are single, the users cannot acquire comprehensive information.
In the existing mode, the information of the user preference is predicted and pushed according to the historical data of the user, and the mode enables the information pushed to the user to be matched with the user, but the trouble that the user receives the information push is caused, and the effect of the information push is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a popularization information processing method, apparatus, computer device, computer-readable storage medium, and computer program product that can solve the foregoing technical problems.
In a first aspect, the present application provides a method for processing promotion information. The method comprises the following steps:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the promotion information of the user into a promotion information database;
and determining a promotion identifier of the user according to the user information, and synchronizing the promotion information of the user with the promotion identifier as the user receiving promotion from the promotion information database to a promotion information cache.
In one embodiment, the method comprises:
responding to an information acquisition request actively triggered by a user terminal to acquire user information;
Inquiring the promotion identification of the request user according to the request user information;
and if the promotion identification of the request user is promotion acceptance, inquiring promotion information of the request user in a promotion information cache.
In one embodiment, the method further comprises at least one of the following:
first kind:
if the promotion identification of the request user is refusal promotion, inquiring promotion information of the request user or preset default promotion information in a database;
second kind:
if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In one embodiment, the responding to the information acquisition request actively triggered by the user terminal, acquiring the request user information includes:
responding to the request data, and acquiring a request page;
if the request page is a page related to promotion information, adding a promotion button on the request page, and sending the promotion page to a user terminal;
and responding to an information acquisition request triggered by the user terminal to the promotion button, and acquiring the information of the user.
In one embodiment, the synchronizing the promotional information identifying the promotion as a user receiving the promotion from the promotional information database to a promotional information cache includes:
acquiring a preset synchronous frequency;
and synchronizing the promotion information of the user with the promotion identification as the user receiving the promotion from the promotion information database to a promotion information cache based on the preset synchronization frequency.
In one embodiment, the synchronizing the promotion information of the user who identifies the promotion as receiving the promotion to the promotion information cache includes:
if the promotion information database is abnormal, synchronizing promotion information of users with promotion identification as users receiving promotion from the promotion information database to a promotion information cache.
In a second aspect, the application further provides a popularization information processing device. The device comprises:
the acquisition module is used for acquiring user history data of a user;
the processing module is used for determining popularization information of each user according to the user history data;
the writing module is used for writing the popularization information of the user into a popularization information database;
and the synchronization module is used for determining the promotion identification of the user according to the user information and synchronizing the promotion information of the user with the promotion identification as the user receiving promotion from the promotion information database to the promotion information cache.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the promotion information of the user into a promotion information database;
and determining a promotion identifier of the user according to the user information, and synchronizing the promotion information of the user with the promotion identifier as the user receiving promotion from the promotion information database to a promotion information cache.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the promotion information of the user into a promotion information database;
and determining a promotion identifier of the user according to the user information, and synchronizing the promotion information of the user with the promotion identifier as the user receiving promotion from the promotion information database to a promotion information cache.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the promotion information of the user into a promotion information database;
and determining a promotion identifier of the user according to the user information, and synchronizing the promotion information of the user with the promotion identifier as the user receiving promotion from the promotion information database to a promotion information cache.
According to the promotion information processing method, device, computer equipment, storage medium and computer program product, user history data of users are obtained, promotion information of each user is determined according to the user history data, user promotion information is matched with the user, the promotion effect of subsequent information promotion is improved, promotion information of the user is written into a promotion information database, promotion identification of the user is determined according to the user information, promotion information of the user with promotion identification as a received promotion is synchronized to a promotion information cache, promotion information can be pushed to the user in a directed mode, the situation that the user suffers from excessive information is avoided, meanwhile, the promotion information is synchronized to the information cache, and the calling pressure of the subsequent promotion information database is reduced. According to the method, on one hand, users with different information receiving degrees are distinguished according to the promotion identification, the users are prevented from being bothered by excessive information, on the other hand, promotion information is synchronized to the information cache, and the calling pressure of a follow-up promotion information database is reduced.
Drawings
FIG. 1 is an application environment diagram of a promotional information process method in one embodiment;
FIG. 2 is a flow diagram of a method of promotional information processing in one embodiment;
FIG. 3 is a flow diagram of a method of querying promotional information in one embodiment;
FIG. 4 is a flowchart of a method for processing promotional information in another embodiment;
FIG. 5 is a schematic diagram of a system architecture for facilitating information processing in one embodiment;
FIG. 6 is a block diagram showing a structure of a promotion information processing apparatus in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
The popularization information processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the user terminal 102 communicates with the promotion server 104 via a network. The promotional information database and promotional information cache can store data that the promotional server 104 needs to process. The promotional information database and promotional information cache may be integrated on the promotional server 104, or may be located on the cloud or other network server.
The promotion server 104 obtains user history data of the user from the user terminal 102, the promotion server 104 determines promotion information of each user according to the user history data, the promotion server 104 writes promotion information of the user into a promotion information database, the promotion server 104 determines promotion identification of the user according to the user information, and the promotion information of the user whose promotion identification is received to the promotion information cache.
The user terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, etc. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The promotion server 104 may be implemented as a stand-alone server or as a cluster of servers.
In one embodiment, as shown in fig. 2, a promotion information processing method is provided, and an example of application of the method to the promotion server in fig. 1 is described, including:
s202, user history data of a user is acquired.
The user is a user of the user terminal, the user history data can be promotion data of the user history, and the promotion data can be promotion information such as information and notification received by the user.
The user history data can be directly obtained from the database, and the user history data can be incompletely stored, so that the user portrait analysis can be performed on the user, and the prediction can be performed according to the user portrait as the missing part of the history data. The user history data typically includes data of user preference information type, push period, push frequency, etc., and interests of the promoting merchant.
Specifically, user portrait analysis is performed on users to obtain user portraits of the users, including: the method comprises the steps of obtaining the age, occupation, preference information type, pushing period, pushing frequency, interest popularization merchants and the like of a user, and constructing a user image of the user according to the information and a database of user images. Further, the missing part of the history data is predicted based on the user representation, thereby obtaining the complete user history data.
S204, according to the user history data, the popularization information of each user is determined.
The promotion information of the user can be personalized information generated by promoting merchants according to interests in the user historical data, rough classification promotion information generated according to preference information types in the user historical data, pushing period information generated according to pushing periods in the user historical data and the like.
It should be noted that the promotion information may be information subjected to typesetting and editing, and the information may be directly sent to the user to complete pushing of the information. For users, information is typically pushed actively in response to user operations, and in a few cases, information is pushed to users at regular intervals.
Specifically, the promotion information of each user can be determined according to the historical data of the user and the template corresponding to the promotion information of the user. The template of the promotion information can be set according to the historical data of the user, for example, different promotion information templates can be set for the user preference information type, the pushing period, the pushing frequency and the interested promotion merchants respectively, and then the information template with the largest weight is selected from a plurality of different promotion information templates according to the weight of the target user for each parameter to be used as the target information template, and the promotion information of each user is determined according to the historical data of each user and the target information template.
The weight of the target user for each parameter refers to the importance degree of the user for parameters such as preference information type, pushing period, pushing frequency, interested popularization merchants and the like, and the larger the importance degree of the parameter is, the larger the weight is. For example, the user A prefers to receive information push when opening the bank APP, does not push information when idle, and correspondingly, the importance of the user A to the push period is greater than the average level of the importance of the user to the push period, and the weight of the user A to the push period is improved.
S206, the promotion information of the user is written into a promotion information database.
The promotion information database is used for storing promotion information, generally, when a user obtains information or obtains promotion information, two modes are included, and one mode is that a background interface is called each time, and information or promotion information is obtained through a database query mode. One is to directly store promotional information in the cache. The first way is that the unnecessary resource consumption is reduced by using and taking, but the database is directly queried or popularization information is read from the database, so that the efficiency is low, and the requirement of data query access under a high concurrency scene is difficult to meet. In the second way, the time for inquiring the user parameters is reduced, but the buffer memory is occupied to a certain extent, and the running speed of the user terminal is slowed down.
Therefore, before the promotion information is pushed to the user, the promotion information of the user is written into the promotion information database so as to synchronize promotion data in the promotion information database into the cache later, thereby realizing permanent cache of the promotion information, avoiding frequent access to the database when the user acquires information, and improving the system performance.
And S208, determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the received promotion from the promotion information database to the promotion information cache.
The user information may be format information preconfigured by the user at the user terminal, and the user information may be filled in according to a format preset by the user terminal to obtain the user information. The user information comprises promotion identification, the promotion identification comprises promotion acceptance and promotion rejection, specifically, promotion information of a background is accepted by a promotion representative user at will, active promotion of the background is rejected by the promotion representative user, but the mode that the user actively obtains information and receives the background promotion is not excluded.
Specifically, users can be classified according to promotion identifications, promotion information corresponding to users with promotion identifications as users receiving promotion is synchronized from a promotion information database to a promotion information cache, and promotion information corresponding to users with promotion identifications as users rejecting promotion is reserved in the promotion information database.
The promotion information corresponding to the user with the promotion identifier of refusing to receive promotion can be synchronized from the promotion information database to the promotion information cache, wherein the user can be classified according to the type of the promotion identifier, and the promotion information corresponding to the user with more data quantity of the promotion information is synchronized from the promotion information database to the promotion information cache. In this way, since it is difficult for the user to choose to actively trigger the prediction, from the perspective of data volume, the promotion information of the user type with more data volume is synchronized from the database to the cache, while the promotion information of the user type with less data volume is reserved in the database, so as to reduce the calling pressure of the data as much as possible.
The method for synchronizing the promotion information from the database to the promotion information cache comprises the following steps: timing synchronization, trigger synchronization, and the like.
Specifically, the timing synchronization may be to control the database to synchronize the promotion information into the promotion information cache according to a preset period. Triggering synchronization may be in response to a user's operation instruction (e.g., a user's click operation at a user terminal, the click operation being associated with promotional information), controlling the database to synchronize promotional information into a promotional information cache.
In the synchronization process, real-time synchronization of the transaction guarantee data can be adopted, specifically, distributed transactions are adopted to realize simultaneous writing of database data and cache data, and if one writing fails, the other is rolled back.
In the promotion information processing method, the user history data of the user is obtained, the promotion information of each user is determined according to the user history data, the user promotion information is matched with the user, the promotion effect of subsequent information promotion is improved, the promotion information of the user is written into the promotion information database, the promotion identification of the user is determined according to the user information, the promotion information of the user with the promotion identification being received is synchronized to the promotion information cache, the promotion information can be pushed to the user in a targeted manner, the trouble of excessive information on the user is avoided, meanwhile, the promotion information is synchronized to the information cache, and the calling pressure of the subsequent promotion information database is reduced. According to the method, on one hand, users with different information receiving degrees are distinguished according to the promotion identification, the users are prevented from being bothered by excessive information, on the other hand, promotion information is synchronized to the information cache, and the calling pressure of a follow-up promotion information database is reduced.
In one embodiment, the promotional information processing method comprises: as shown in fig. 3, the method for querying promotion information includes:
s302, acquiring the information of the user in response to the information acquisition request actively triggered by the user terminal.
The user terminal may be, but not limited to, various mobile terminals such as personal computers, notebook computers, smartphones, tablet computers, etc., specifically, taking the user terminal as an example of a smartphone, the information acquisition request actively triggered by the user terminal may be specific operations such as clicking, sliding, pressing, etc. performed by the user on the mobile phone APP. The specific operation performed by the user on the mobile phone APP is related to the promoted information.
Specifically, when the user uses the mobile phone APP, the user can click the detail page of the consultation by himself, and after the clicking action is completed, the information acquisition request actively triggered by the user terminal is responded to, and the information of the user is acquired. It should be noted that the method of active triggering by the user may be applicable to any user with a promotion identifier, that is, the user with a promotion identifier that receives a promotion or refuses a promotion may actively trigger the information acquisition request. In some cases, although the user sets the popularization rejection identifier, a scene that the user needs to acquire information at the terminal still exists, and at this time, if the user terminal actively triggers an information acquisition request, in order to ensure that the user acquires information in time, the information of the requesting user needs to be acquired.
The method for actively triggering and the user suitable for any popularization identifier comprises the following steps: the user who refuses to promote the identification, the passive triggering mode is generally suitable for the user who accepts promotion.
S304, inquiring the popularization identification of the request user according to the information of the request user.
The request user information may be identification information of the user, and specifically, the request user information may include identification information of the user, identification information of a user terminal corresponding to the user, and the like.
The method for inquiring the popularization identification of the requesting user according to the information of the requesting user specifically comprises the following steps: querying a promotion identifier of a user from a cache and querying a promotion identifier of the user from a database.
It is to be noted that the popularization identifier is set to be received by default, and the user can adjust the popularization identifier to reject popularization according to own needs.
S306, if the promotion identification of the requesting user is that promotion is accepted, inquiring promotion information of the requesting user in a promotion information cache.
Before inquiring the promotion information of the user, the promotion information related to the user with different promotion identifications is stored in a cache or a database, specifically, the promotion information with the promotion identification of receiving promotion and the user related information are stored in a promotion information cache, and the promotion information with the promotion identification of rejecting promotion and the user related information are stored in promotion information data.
If the promotion identification of the requesting user is the received promotion, inquiring promotion information of the requesting user in a promotion information cache.
In this embodiment, by responding to the information acquisition request actively triggered based on the user terminal, the information of the requesting user is acquired, and if the promotion identifier of the requesting user is that the requesting user accepts promotion, the promotion information of the requesting user is directly queried from the promotion information cache, so that the query to the promotion information database is reduced.
In one embodiment, the promotional information processing method further comprises at least one of the following:
first kind: if the popularization identification of the requesting user is refusal popularization, inquiring popularization information of the requesting user or preset default popularization information in a database;
in the existing method, for how to query the popularization information of the user, the cache is usually directly queried, the database is queried when the cache does not query the popularization information of the user, the data in the cache is directly queried under the condition that the popularization identifier is set to receive the popularization, the popularization identifier set by the user is generally refused to popularize, at this time, the popularization information is queried from the database, and for high-frequency transaction or high-concurrency scenes, the invoking pressure of the database may exceed a design threshold value, so that the problems of cache breakdown and the like are caused.
Specifically, according to the real-time calling condition of the database, the popularization information of the requesting user or the preset default popularization information can be queried in the database. For example, when the real-time calling resource of the database is larger than the threshold value, the database is queried for preset default popularization information.
The database resources called by the default promotion information are smaller than the database resources occupied by the promotion information of the query request user in the database.
Second kind: if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
If the promotion identifier of the requesting user is a promotion acceptance, the promotion information of the requesting user is queried in a promotion cache, and at this time, the promotion information of the requesting user may not be queried in the cache possibly due to problems such as network fluctuation or software and hardware faults. Specifically, if the promotion information of the requesting user is not queried in the promotion information cache, querying the promotion information of the requesting user or preset default promotion information in the database.
In this embodiment, on one hand, according to the promotion identifier of the requesting user, the promotion information of the user is queried in the database or the cache, so that information promotion to the user is facilitated, on the other hand, if the promotion information of the requesting user is not queried in the cache, the promotion information of the requesting user is queried in the database, or the preset default promotion information, and the promotion information can still be queried under abnormal conditions, so that the information query effect is improved.
In one embodiment, in response to an information acquisition request based on active triggering of a user terminal, acquiring the requested user information includes: responding to the request data, and acquiring a request page; if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal; and responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
The request data may be request data corresponding to a specific operation of the user terminal by the user. The request page may be an operation page generated from the request data for further confirmation by the user. The request page can also be a presentation page of the promotion information, specifically, a preview page is generated according to the promotion information, and the preview page is determined as the request page and presented to the user.
In general, the promotion identifier is a promotion rejection, and the promotion information server does not push promotion information to the user, but the user can still actively acquire promotion information, for example, specific operations (such as clicking an advertisement page, sliding a page to an information detail page, etc.) are performed at the user terminal, at this time, the user is considered to have a wish to acquire promotion information, a promotion button is added to a request page, and the promotion page is sent to the user terminal for confirmation by the user.
Wherein, promotion button can be correlated with promotion sign, if the user clicks promotion button, will promote the sign setting to receive simultaneously and promote.
According to the method, after the popularization requirement of the user is identified, the popularization button is added on the request page, so that the effect of pushing the popularization information to the user can be further improved.
It should be noted that if the information acquisition request triggered by the user terminal to the promotion button is not received within the preset period, the promotion button is hidden. By not receiving the triggering request within the preset time period, the popularization button is hidden, so that false touch of the user is avoided, user experience is improved, and meanwhile, the accuracy of the popularization identification of the user is guaranteed.
In this embodiment, by setting the promotion button in the request page, the promotion requirement of the user can be identified, and the information of the user is acquired in response to the information acquisition request triggered by the promotion button based on the user terminal, so that the effect of pushing the promotion information to the user can be further improved.
In one embodiment, synchronizing promotional information of a user identified as receiving a promotion from a promotional information database to a promotional information cache, comprising: acquiring a preset synchronous frequency; based on the preset synchronization frequency, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
The preset synchronization frequency represents the frequency of synchronizing the promotion information from the promotion information database to the promotion information cache.
Specifically, the preset synchronization frequency may be to synchronize with a fixed period, for example, synchronize promotion information from the promotion information database to the promotion information cache every five minutes. The preset synchronization frequency can also be that the synchronization is performed once after a preset time interval after the popularization information of the user is written in the popularization information database every time, and the accuracy and the perfection of the data are maintained.
In the embodiment, the promotion information is synchronized from the promotion information database to the promotion information cache at regular time, so that certain non-perceived abnormal data in the long-term production operation process can be corrected.
In one embodiment, synchronizing promotional information of a user identified as receiving a promotion to a promotional information cache includes: if the promotion information database is abnormal, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
Wherein, the abnormal situation of popularization information database includes: network fluctuation during synchronization, software and hardware faults, database and server downtime where the cache is located, and the like.
Specifically, if the above abnormal situation occurs, there may be a risk of data loss, and manual triggering is required to synchronize the data in the database to the cache, and delete the intermediate data. For example, for a marketing state table, when the target data is data with a client switch being off, the intermediate state data may be data with the client switch being on, and after the data with the client switch being on in the database is synchronized to the cache, the intermediate state data is deleted, and the target data is stored in the database and the cache, so that the simplicity of the data in the database is ensured. For the scene that some users set the designated parameters before and delete the parameters, the database records that the user sets the parameters as empty, and after the data is synchronized in the cache, the invalid intermediate data needs to be deleted.
If the promotion information database is abnormal, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database, and the promotion information corresponding to the promotion rejection identification set by the user is deleted. It should be noted that the promotion information corresponding to the promotion rejection identifier set by the user may be promotion information set according to a user history, and in general, the promotion information is identical to the promotion information in the database to cause data redundancy, so that the promotion information is preferentially deleted when the database is abnormal, and the promotion information of the user whose promotion identifier is used for receiving promotion is synchronized from the promotion information database to the promotion information cache.
In this embodiment, the promotion information of the user who receives the promotion is synchronized from the promotion database to the promotion cache by the promotion identifier, so that data loss is prevented, and the situation of data expansion is avoided.
In the existing manner, the user parameters are obtained by a database query manner in each time of invoking the background interface, and the database query efficiency is not high, so that the data access requirement under the high concurrency scene is difficult to meet in the manner.
A first portion, data synchronization, comprising:
wherein, the data synchronization represents synchronizing user parameters of a user from a database into a cache according to a certain rule.
S402, acquiring user history data of a user.
Wherein, the user history data of the user can be user parameters in the history state of the user. The user parameters may be personalized parameters actively set by the user. Specifically, as shown in fig. 5, the manner in which the user sets the user parameters includes: the user sets user parameters to the cache independently, and the user sets user parameters to the database independently, and the user sets parameters to the cache and the database simultaneously. Both the cache and the database can be built based on the Redis server.
S404, determining popularization information of each user according to the user history data.
S406, writing the promotion information of the user into a promotion information database.
And S408, determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the user receiving promotion from the promotion information database to a promotion information cache.
As shown in fig. 5, the timing synchronization includes: acquiring a preset synchronous frequency; and synchronizing the promotion information of the user with the promotion identification as the user receiving the promotion from the promotion information database to a promotion information cache based on the preset synchronization frequency.
As shown in fig. 5, the abnormal synchronization includes: if the promotion information database is abnormal, synchronizing promotion information of users with promotion identification as users receiving promotion from the promotion information database to a promotion information cache.
A second portion, a data query, comprising:
wherein the data query represents that the user can directly query the user parameters in the cache.
Wherein, as shown in fig. 5, the user may query the user parameters in the cache and accept the user parameters returned from the cache.
S410, responding to the request data, and acquiring a request page.
And S412, if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal.
And S414, responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
S416, inquiring the popularization identification of the request user according to the information of the request user.
S418, if the promotion identification of the request user is promotion acceptance, inquiring promotion information of the request user in a promotion information cache.
And S420, if the popularization identification of the request user is refusal popularization, inquiring the popularization information of the request user or preset default popularization information in a database.
S422, if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In this embodiment, user history data of users is obtained, promotion information of each user is determined according to the user history data, user promotion information is matched with the users, the effect of promoting subsequent information is improved, promotion information of the users is written into a promotion information database, promotion identification of the users is determined according to the user information, promotion information of the users with promotion identification as receiving promotion is synchronized to a promotion information cache, promotion information can be pushed to the users in a directed manner, the users are prevented from being bothered by excessive information, and meanwhile, the promotion information is synchronized to the information cache, so that the calling pressure of the subsequent promotion information database is reduced. According to the method, on one hand, users with different information receiving degrees are distinguished according to promotion identifications, the users are prevented from being bothered by excessive information, on the other hand, promotion information is synchronized to an information cache, the calling pressure of a follow-up promotion information database is reduced, on the other hand, data are stored in a permanent cache mode, the accuracy and the perfection of the data in the cache are guaranteed in a timing synchronization and abnormal synchronization mode, and user parameters are stored in a permanent cache mode, so that the data access performance is improved, two synchronization mechanisms of real time and batch are established, and the accuracy of the data is guaranteed. Can be used as a design and implementation specification of later-stage minor parameters (user parameters with fewer set people).
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a popularization information processing device for realizing the above related popularization information processing method. The implementation scheme of the solution to the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in one or more embodiments of the promotion information processing device provided below may refer to the limitation of the promotion information processing method hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 6, there is provided a promotion information processing apparatus including: an acquisition module 602, a processing module 604, a writing module 606, a synchronization module 608, wherein:
an acquisition module 602, configured to acquire user history data of a user;
a processing module 604, configured to determine popularization information of each user according to user history data;
a writing module 606, configured to write promotion information of the user into a promotion information database;
and the synchronizing module 608 is configured to determine a promotion identifier of the user according to the user information, and synchronize promotion information of the user whose promotion identifier is the user who receives the promotion from the promotion information database to the promotion information cache.
In one embodiment, the promotion information processing apparatus further includes: the query module is used for responding to an information acquisition request actively triggered based on the user terminal to acquire the information of the requesting user; inquiring the popularization identification of the request user according to the information of the request user; if the promotion identification of the requesting user is promotion acceptance, inquiring promotion information of the requesting user in a promotion information cache.
In one embodiment, the query module is further configured to query the database for popularization information of the requesting user or preset default popularization information if the popularization identifier of the requesting user is popularization refusal; if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In one embodiment, the query module is further configured to obtain a request page in response to the request data; if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal; and responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
In one embodiment, the synchronization module 608 is further configured to acquire a preset synchronization frequency;
based on the preset synchronization frequency, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, the synchronization module 608 is further configured to synchronize the promotion information of the user identified as receiving the promotion from the promotion information database to the promotion information cache if the promotion information database is abnormal.
The respective modules in the above-described promotion information processing apparatus may be realized in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing promotional information data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a promotional information processing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the popularization information of the user into a popularization information database;
and determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the received promotion from the promotion information database to the promotion information cache.
In one embodiment, the processor when executing the computer program further performs the steps of:
responding to an information acquisition request actively triggered by a user terminal to acquire user information;
inquiring the popularization identification of the request user according to the information of the request user;
If the promotion identification of the requesting user is promotion acceptance, inquiring promotion information of the requesting user in a promotion information cache.
In one embodiment, the processor when executing the computer program further performs the steps of:
the method further comprises at least one of the following: first kind: if the popularization identification of the requesting user is refusal popularization, inquiring popularization information of the requesting user or preset default popularization information in a database; second kind: if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In one embodiment, the processor when executing the computer program further performs the steps of:
responding to an information acquisition request actively triggered based on a user terminal, acquiring user information of the request comprises the following steps: responding to the request data, and acquiring a request page; if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal; and responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
In one embodiment, the processor when executing the computer program further performs the steps of:
Synchronizing promotion information of a user whose promotion is identified as receiving promotion from a promotion information database to a promotion information cache, including: acquiring a preset synchronous frequency; based on the preset synchronization frequency, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, the processor when executing the computer program further performs the steps of:
synchronizing promotion information of users with promotion identification as receiving promotion to a promotion information cache, including:
if the promotion information database is abnormal, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the popularization information of the user into a popularization information database;
and determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the received promotion from the promotion information database to the promotion information cache.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to an information acquisition request actively triggered by a user terminal to acquire user information;
inquiring the popularization identification of the request user according to the information of the request user;
if the promotion identification of the requesting user is promotion acceptance, inquiring promotion information of the requesting user in a promotion information cache.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the method further comprises at least one of the following: first kind: if the popularization identification of the requesting user is refusal popularization, inquiring popularization information of the requesting user or preset default popularization information in a database; second kind: if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to an information acquisition request actively triggered based on a user terminal, acquiring user information of the request comprises the following steps: responding to the request data, and acquiring a request page; if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal; and responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
synchronizing promotion information of a user whose promotion is identified as receiving promotion from a promotion information database to a promotion information cache, including: acquiring a preset synchronous frequency; based on the preset synchronization frequency, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
synchronizing promotion information of users with promotion identification as receiving promotion to a promotion information cache, including:
if the promotion information database is abnormal, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the popularization information of the user into a popularization information database;
and determining the promotion identification of the user according to the user information, and synchronizing the promotion information of the user with the promotion identification as the received promotion from the promotion information database to the promotion information cache.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to an information acquisition request actively triggered by a user terminal to acquire user information;
inquiring the popularization identification of the request user according to the information of the request user;
if the promotion identification of the requesting user is promotion acceptance, inquiring promotion information of the requesting user in a promotion information cache.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the method further comprises at least one of the following: first kind: if the popularization identification of the requesting user is refusal popularization, inquiring popularization information of the requesting user or preset default popularization information in a database; second kind: if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to an information acquisition request actively triggered based on a user terminal, acquiring user information of the request comprises the following steps: responding to the request data, and acquiring a request page; if the request page is a page related to the promotion information, adding a promotion button on the request page, and sending the promotion page to the user terminal; and responding to an information acquisition request triggered by the promotion button based on the user terminal, and acquiring the information of the user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
synchronizing promotion information of a user whose promotion is identified as receiving promotion from a promotion information database to a promotion information cache, including: acquiring a preset synchronous frequency; based on the preset synchronization frequency, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
synchronizing promotion information of users with promotion identification as receiving promotion to a promotion information cache, including:
if the promotion information database is abnormal, the promotion information of the user with the promotion identification as the received promotion is synchronized to the promotion information cache from the promotion information database.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A promotional information processing method, the method comprising:
acquiring user history data of a user;
determining popularization information of each user according to the user history data;
writing the promotion information of the user into a promotion information database;
and determining a promotion identifier of the user according to the user information, and synchronizing the promotion information of the user with the promotion identifier as the user receiving promotion from the promotion information database to a promotion information cache.
2. The method according to claim 1, characterized in that the method comprises:
responding to an information acquisition request actively triggered by a user terminal to acquire user information;
inquiring the promotion identification of the request user according to the request user information;
and if the promotion identification of the request user is promotion acceptance, inquiring promotion information of the request user in a promotion information cache.
3. The method of claim 2, further comprising at least one of:
first kind:
if the promotion identification of the request user is refusal promotion, inquiring promotion information of the request user or preset default promotion information in a database;
second kind:
if the promotion information of the request user is not queried in the promotion information cache, querying the promotion information of the request user or preset default promotion information in a database.
4. The method according to claim 2, wherein the acquiring the requested user information in response to the information acquisition request based on the active trigger of the user terminal comprises:
responding to the request data, and acquiring a request page;
If the request page is a page related to promotion information, adding a promotion button on the request page, and sending the promotion page to a user terminal;
and responding to an information acquisition request triggered by the user terminal to the promotion button, and acquiring the information of the user.
5. The method of claim 1, wherein synchronizing the promotional information identifying a promotion as a user receiving a promotion from the promotional information database to a promotional information cache comprises:
acquiring a preset synchronous frequency;
and synchronizing the promotion information of the user with the promotion identification as the user receiving the promotion from the promotion information database to a promotion information cache based on the preset synchronization frequency.
6. The method of claim 1, wherein synchronizing the promotional information identifying the promotional as a user receiving the promotional to a promotional information cache comprises:
if the promotion information database is abnormal, synchronizing promotion information of users with promotion identification as users receiving promotion from the promotion information database to a promotion information cache.
7. A promotional information processing apparatus, the apparatus comprising:
The acquisition module is used for acquiring user history data of a user;
the processing module is used for determining popularization information of each user according to the user history data;
the writing module is used for writing the popularization information of the user into a popularization information database;
and the synchronization module is used for determining the promotion identification of the user according to the user information and synchronizing the promotion information of the user with the promotion identification as the user receiving promotion from the promotion information database to the promotion information cache.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310848982.9A 2023-07-11 2023-07-11 Popularization information processing method, device, computer equipment and storage medium Pending CN117112886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310848982.9A CN117112886A (en) 2023-07-11 2023-07-11 Popularization information processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310848982.9A CN117112886A (en) 2023-07-11 2023-07-11 Popularization information processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117112886A true CN117112886A (en) 2023-11-24

Family

ID=88808101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310848982.9A Pending CN117112886A (en) 2023-07-11 2023-07-11 Popularization information processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117112886A (en)

Similar Documents

Publication Publication Date Title
US20230319130A1 (en) Systems and methods for selecting media items
CN107609198B (en) Recommendation method and device and computer readable storage medium
US9031953B2 (en) Method and system to curate media collections
WO2018188459A9 (en) Method and device for determining recommendation information and method and device for information recommendation
WO2020000656A1 (en) Method for managing buffered pictures, and terminal device
CN113392158A (en) Service data processing method and device and data center
EP3437015A1 (en) Image action based on automatic feature extraction
CN112507218A (en) Business object recommendation method and device, electronic equipment and storage medium
US20150134661A1 (en) Multi-Source Media Aggregation
AU2020203282B2 (en) Method and system for matching multi-dimensional data units in electronic information system
CN117112886A (en) Popularization information processing method, device, computer equipment and storage medium
CN111447267B (en) Information synchronization method, device, computer readable storage medium and equipment
CN113672640A (en) Data query method and device, computer equipment and storage medium
CN115730016B (en) Data synchronization method, system, device, computer equipment and storage medium
CN115002137B (en) Offline message processing method and device, computer equipment and storage medium
US11615133B2 (en) Sharing user generated content for media searches
WO2024087533A1 (en) Expression image sharing method and apparatus, computer device, and storage medium
US20210192464A1 (en) Electronic dynamic calendar system and operation method thereof
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN115599354A (en) Flow canvas generation method and device, electronic equipment and storage medium
CN115599940A (en) Data uploading method and device, electronic equipment and storage medium
CN118018545A (en) Data exchange method, device, computer equipment and storage medium
CN117033591A (en) Problem solving method, device, computer equipment and storage medium
CN117132348A (en) Resource interaction method, device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium

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