CN112100508A - Method and device for distributing questions to users - Google Patents

Method and device for distributing questions to users Download PDF

Info

Publication number
CN112100508A
CN112100508A CN202011275414.7A CN202011275414A CN112100508A CN 112100508 A CN112100508 A CN 112100508A CN 202011275414 A CN202011275414 A CN 202011275414A CN 112100508 A CN112100508 A CN 112100508A
Authority
CN
China
Prior art keywords
distributed
distribution
questions
question
distributing
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
CN202011275414.7A
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.)
Zhizhe Sihai Beijing Technology Co ltd
Original Assignee
Zhizhe Sihai Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhizhe Sihai Beijing Technology Co ltd filed Critical Zhizhe Sihai Beijing Technology Co ltd
Priority to CN202011275414.7A priority Critical patent/CN112100508A/en
Publication of CN112100508A publication Critical patent/CN112100508A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The present disclosure provides a method and an apparatus for distributing questions to users, including: acquiring a set comprising a plurality of problems to be distributed, wherein each problem to be distributed has a distribution frequency requirement and a distribution round number; generating a distribution request for each to-be-distributed question in a polling mode aiming at the plurality of to-be-distributed questions, wherein each distribution request comprises identification of the to-be-distributed question and distribution times, and the distribution times are determined at least partially based on the distribution time requirement and the distribution round number; and distributing the problem to be distributed to the user according to the distribution request. The method and the device for distributing the questions to the users can effectively solve the problem that the problem distribution method in the prior art cannot effectively distribute long-tail questions or has low question answer conversion rate.

Description

Method and device for distributing questions to users
Technical Field
The present disclosure relates to the field of computer internet technologies, and in particular, to a method and an apparatus for distributing a problem to a user, an electronic device, and a storage medium.
Background
The question-answer community is an important way for users to share knowledge and obtain answers, and an efficient and accurate matching mechanism needs to be established between questions and users with answering ability and willingness, so that the questions of the users can be answered quickly and excellently.
Most of the traditional problem distribution methods are based on the dimensionality of the user, and recommend interesting problems for the user according to the interest and personalized requirements of the user. However, this method of question distribution may prevent a large number of relatively cold or professional long-tailed questions from being adequately distributed and answered. On the other hand, the prior art also provides a distribution method starting from the question, which can search for a proper user to distribute according to the question, and although the method can make the long-tail question get enough exposure, the method can cause the problem that the question answering conversion rate is not high.
Therefore, a question distribution method capable of simultaneously considering the solution of the long-tailed question and the conversion rate of the question answer is required.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for distributing a question to a user, which can effectively solve a problem that a problem distribution method in the prior art cannot effectively distribute a long-tail question or has a low question answer conversion rate.
The following presents a simplified summary of the disclosure in order to provide a basic understanding of some aspects of the disclosure. It should be understood that this summary is not an exhaustive overview of the disclosure. It is not intended to identify key or critical elements of the disclosure or to delineate the scope of the disclosure. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is discussed later.
According to a first aspect of the present disclosure, there is provided a method of distributing questions to users, comprising:
acquiring a set comprising a plurality of problems to be distributed, wherein each problem to be distributed has a distribution frequency requirement and a distribution round number; generating a distribution request for each to-be-distributed question in a polling mode aiming at the plurality of to-be-distributed questions, wherein each distribution request comprises identification of the to-be-distributed question and distribution times, and the distribution times are determined at least partially based on the distribution time requirement and the distribution round number; and distributing the problem to be distributed to the user according to the distribution request.
In some embodiments, the distribution request further includes a distribution period for each problem to be distributed.
In some embodiments, the obtaining includes obtaining a set of a plurality of questions to be distributed, specifically including: acquiring a problem to be distributed meeting the distribution condition; and filtering and sequencing the problems to be distributed meeting the distribution conditions to form a problem set to be distributed.
Further, before the problem to be distributed meeting the distribution condition is obtained, the method further comprises the steps of receiving one or more sources of problems to be distributed to a kafka message queue, extracting the problems to be distributed from the kafka message queue and storing the problems to be distributed to a database.
Further, the distribution condition includes at least one of a problem type, a distribution period, and a distribution number requirement.
In some embodiments, before generating the distribution request for each problem to be distributed in a polling manner, the method further includes determining whether the problem to be distributed meets the distribution frequency requirement or exceeds the distribution period, and if the problem to be distributed meets the distribution frequency requirement or exceeds the distribution period, deleting the problem to be distributed from the set of problems to be distributed.
In some embodiments, the method further comprises sending the dispatch request to a cache for storage for recovery of the abort.
And further, judging whether abnormal interruption occurs or not, if so, extracting a distribution request which cannot be successfully distributed from the cache, and distributing the problem to be distributed to the user according to the distribution request.
In some embodiments, the distributing the to-be-distributed question to the user according to the distribution request specifically includes: acquiring an alternative user according to the distribution request; and calculating the answer probability of the alternative user, selecting the alternative user with the answer probability larger than a threshold value as an invited user, and sending the question to be distributed to the invited user.
According to a second aspect of the present disclosure, there is provided an apparatus for distributing questions to users, comprising:
the system comprises a to-be-distributed problem set acquisition unit, a to-be-distributed problem acquisition unit and a to-be-distributed problem acquisition unit, wherein the to-be-distributed problem set acquisition unit is used for acquiring a set comprising a plurality of to-be-distributed problems, and each to-be-distributed problem has a distribution frequency requirement and a distribution round number; a distribution request generation unit configured to generate a distribution request for each to-be-distributed question in a polling manner for the plurality of to-be-distributed questions, each distribution request including an identification of the to-be-distributed question and a distribution number, the distribution number being determined based at least in part on the distribution number requirement and the distribution round number; and the distribution unit is used for distributing the problems to be distributed to the users according to the distribution requests.
In some embodiments, the to-be-distributed problem set obtaining unit and the distribution request generating unit are disposed in a first container, the distribution unit is disposed in a second container, the first container has concurrent locks, and the second container can execute concurrently.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to the first aspect.
According to the method and the device for distributing the questions to the users, the distribution request of the questions to be distributed is generated in a polling mode, the questions are distributed to the users according to the distribution request, and the problems that the existing problem distribution method cannot effectively distribute the long-tail questions or the problem response conversion rate is low are effectively solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 is a flow chart of a method of distributing questions to users provided in accordance with an embodiment of the present disclosure.
Fig. 2 is a system block diagram of an apparatus for distributing questions to users provided in accordance with an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Exemplary embodiments of the present disclosure will be described below with reference to the accompanying drawings. In the interest of clarity and conciseness, not all features of an actual embodiment are described in the specification. It will of course be appreciated that in the development of any such actual embodiment, numerous implementation-specific decisions may be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which will vary from one implementation to another.
Here, it should be further noted that, in order to avoid obscuring the present disclosure with unnecessary details, only the device structure closely related to the scheme according to the present disclosure is shown in the drawings, and other details not so related to the present disclosure are omitted.
It is to be understood that the disclosure is not limited to the described embodiments, as described below with reference to the drawings. In this context, embodiments may be combined with each other, features may be replaced or borrowed between different embodiments, one or more features may be omitted in one embodiment, where feasible.
In the question-and-answer community, users usually have three requirements, namely, browsing the answer requirement, searching the question requirement and providing the question requirement which can be answered in time. For the requirement that the questions can be answered in time after being provided, the traditional question distribution method is to search for the questions through users, namely, to select proper questions from a question pool according to the characteristics of the users to distribute the questions, but as the users generally tend to pay attention to hot and common questions, the probability that the cold or professional long-tail questions are answered is too low.
In order to make the long tail problem get sufficient exposure, the prior art also proposes a method for finding users based on the problem to distribute the problem, for example, extracting the problems to be distributed from the hive table, sorting the problems to be distributed according to a certain rule, and then distributing each problem to be distributed to the users by using an RPC (Remote Procedure Call) algorithm. Although this kind of method can ensure that each question is effectively distributed, because the number of questions received by each user in the question-and-answer community is limited, the question that is preferentially distributed can be usually distributed to users with better quality, and the question that is distributed later can only be usually distributed to users with low answer probability because of the limitation of the number of questions received by the user, so that the overall conversion rate of question answers is not high, that is, the question answer probability is not high as a whole.
On the other hand, under the condition that the task fails, the method is low in remediation efficiency and difficult to timely remedy the problem distribution process. In addition, the problem of extracting from the hive table is low in efficiency and low in real-time performance, and when a demand side puts forward a new distribution demand, a new hive table query logic needs to be added, so that the code amount and the resource usage amount are increased at the very high speed, and the problems of difficult distribution and maintenance and high cost are caused.
In order to solve the above problem, the embodiments of the present disclosure provide a method and an apparatus for distributing a problem to a user, and first, a method for distributing a problem to a user according to the embodiments of the present disclosure is specifically described below.
Fig. 1 shows a flowchart of a method 100 for distributing a question to a user according to an embodiment of the present disclosure, where the method specifically includes:
step 110: the method comprises the steps of obtaining a set comprising a plurality of problems to be distributed, wherein each problem to be distributed has a distribution frequency requirement and a distribution round number.
In the embodiment of the present disclosure, the acquiring includes a plurality of sets of to-be-distributed questions, which may be,
the method comprises the steps of obtaining the problems to be distributed meeting distribution conditions from a database, wherein the distribution conditions comprise but are not limited to problem types, distribution periods and distribution time requirements. For example, a question of a specified question type may be selected from the database and distributed, a question of which the question distribution time does not exceed the distribution cycle may be selected from the database and distributed, or a question of which the actual distribution frequency does not exceed the distribution frequency requirement may be selected from the database and distributed.
In the embodiment of the present disclosure, the problem to be distributed that meets the distribution condition is obtained from a database, where the database may be a mySQL (relational database management system) database or another database, and the embodiment of the present disclosure does not limit this.
In some cases, before obtaining the to-be-distributed questions meeting the distribution conditions from the database, the method may further include receiving one or more sources of the to-be-distributed questions to a kafka message queue, extracting the to-be-distributed questions from the kafka message queue, and saving the to-be-distributed questions to the database. For example, the method can simultaneously plug questions to be distributed from different sources into the kafka message queue, then sequentially extract the questions to be distributed from the kafka message queue, and directly distribute the extracted questions to be distributed or store the extracted questions to be distributed in the database. In the embodiment of the disclosure, the problem to be distributed extracted from the kafka message queue can be selected to be kept in the mySQL database for subsequent distribution.
The method can simultaneously support the problem distribution requirements of a plurality of different demanders, the docking requirements are more flexible, and the code amount and the resource usage amount hardly change greatly when new service requirements are added, so that the operation efficiency can be ensured.
Further, after the to-be-distributed questions meeting the distribution conditions are obtained from the database, the to-be-distributed questions meeting the distribution conditions can be filtered and sorted to form a set of the to-be-distributed questions.
In the embodiment of the disclosure, the to-be-distributed questions meeting the distribution conditions are filtered, including but not limited to filtering based on question auditing, filtering based on distribution strategies, and the like, wherein the filtering based on question auditing can be filtering of questions related to political sensitivity, low customs and the like so as to prevent illegal violation content from being introduced into the question-and-answer community; the filtering based on the distribution policy may include some filtering methods set to meet the distribution policy of the problem distribution demander, for example, if the problem distribution demander requires that the problem with the attention degree lower than 100 is not distributed, the problem with the attention degree lower than 100 needs to be filtered.
It should be noted that the above filtering manner is only an example provided by the embodiment of the present disclosure, and a person skilled in the art may select other methods as needed to filter the problem to be distributed that meets the distribution condition, which is not limited by the present disclosure.
In the question-and-answer community, due to the limitation of the number of the questions received by the users, the questions arranged in the front often can obtain better user resources, and the users with higher answer probability can not distribute the questions to the questions after the number of the received questions reaches the upper limit, so that the questions arranged at the tail cannot obtain better user resources, and therefore the filtered questions to be distributed meeting the distribution conditions need to be sequenced. In the embodiment of the present disclosure, the filtered to-be-distributed problems meeting the distribution condition are sorted, and the problems may be sorted according to the quality degree and the urgency degree of the problems, and the higher quality or urgent problems are preceded to be distributed preferentially. In the embodiment of the present disclosure, determining whether the question is good may be based on a probability that the question is answered, and therefore, the good question may be determined as a question having a probability that the question is answered higher than a predetermined value.
In the embodiment of the present disclosure, each question to be distributed may have a distribution time requirement, for example, if a certain question to be distributed is required to be distributed to 100 users for answering, the question to be distributed needs to be distributed 100 times, where 100 is the distribution time requirement.
In the embodiment of the present disclosure, each problem to be distributed may further have a number of distribution rounds, which may be determined by a person skilled in the art according to actual needs, and the number of distribution rounds is not specifically limited in the embodiment of the present disclosure, for example, if three problems to be distributed are provided, the number of distribution times of each problem to be distributed is 100, and a common method in the prior art is to sequentially distribute the three problems to be distributed 100 times, but the method provided in the embodiment of the present disclosure may select to divide the three problems to be distributed into 10 rounds for distribution, where the 10 rounds are the number of selected distribution rounds.
Step 120: generating a distribution request for each to-be-distributed question in a polling mode aiming at the plurality of to-be-distributed questions, wherein each distribution request comprises identification of the to-be-distributed question and distribution times, and the distribution times are determined at least partially based on the distribution time requirement and the distribution wheel number.
The method for distributing questions to users provided by the embodiment of the present disclosure may generate a distribution request for each question to be distributed in a polling manner, specifically, may generate a distribution request for each question to be distributed in a polling manner based on the number of distribution rounds, where the distribution request for each question to be distributed may be a distribution request generated for each round of polling for each question to be distributed, and for example, in a case that three questions to be distributed are assumed to exist, and the number of distribution rounds is 10, in the embodiment of the present disclosure, a distribution request is generated for three questions to be distributed in a, b, and c in each round of polling. The distribution request includes an identification of the problem to be distributed, which may include, but is not limited to, an ID of the problem to be distributed, an originator of the problem to be distributed, and a type of the problem to be distributed. The distribution request may further include the distribution frequency of the problem to be distributed, where the distribution frequency of the problem to be distributed may specifically be the distribution frequency of the problem to be distributed in the current round, and in the embodiment of the present disclosure, the distribution frequency may be determined based at least in part on the distribution frequency requirement and the distribution round number, for example, if three problems to be distributed, including a, b, and c, are assumed, the distribution frequency requirement of each problem to be distributed is 100, and the distribution round number is 10 rounds, if other factors are not considered, and the three problems to be distributed, including a, b, and c, are uniformly distributed in each round, the distribution frequency of the three problems to be distributed in each round is 10; in addition, in another possible case, if the problem to be distributed is not uniformly distributed in each round, in the calculation of the distribution times, in addition to the distribution time requirement and the number of fractional rounds, the distribution density requirement of the problem to be distributed needs to be considered.
In this embodiment of the present disclosure, the problem to be distributed may also have a distribution cycle, for example, a certain number of days is required to be distributed to a certain problem to be distributed, and the number of days is the distribution cycle of the problem to be distributed. In the embodiment of the disclosure, the problem to be distributed is distributed on the day of creation, and the distribution of the problem to be distributed at other times except the first day in the distribution cycle is called complement distribution.
The distribution request may also include a distribution period for each issue to be distributed. It should be noted that, in the embodiment of the present disclosure, the distribution request may further include other information, for example, information such as an operation tag, which is not specifically limited by the present disclosure.
In the embodiment of the present disclosure, before generating a distribution request for each problem to be distributed in a polling manner, the method further includes determining whether the problem to be distributed meets a distribution frequency requirement or exceeds a distribution period, and if the problem to be distributed meets the distribution frequency requirement or exceeds the distribution period, deleting the problem to be distributed from a set of problems to be distributed. For example, when it is determined that the number of times of distribution of a certain problem to be distributed is required to be 100 and the distribution cycle is 7 days, and it is determined that the number of times of distribution of the problem to be distributed reaches 100 or the distribution cycle of the problem to be distributed exceeds 7 days, the problem to be distributed is deleted from the set of problems to be distributed, and polling for the problem to be distributed is not continued.
In the embodiment of the present disclosure, after generating the distribution request, sending the distribution request to a cache for storage, so as to perform recovery after an abort occurs. By the method, the tasks can be timely remedied under the condition of failure, so that the distribution efficiency is effectively improved.
Step 130: and distributing the problem to be distributed to the user according to the distribution request.
In this embodiment of the disclosure, the distributing the to-be-distributed question to the user according to the distribution request may specifically be: obtaining alternative users according to the distribution request, for example, determining alternative users of the problems to be distributed according to the problem identification, the distribution times and other information of the problems to be distributed in the distribution request; further, the answer probability of the alternative user is calculated, the alternative user with the answer probability larger than a threshold value is selected as the invited user, and the question to be distributed is sent to the invited user. In the embodiment of the present disclosure, a general algorithm model may be selected to calculate the answer probability of the alternative user, which is not specifically limited by the present disclosure. In the embodiment of the present disclosure, for example, in a case where the threshold value of the answer probability is set to 0.02, an alternative user with an answer probability greater than 0.02 is selected as an invited user, and the question to be distributed is sent to the invited user.
By the threshold truncation method, users with high answer probability are selected for carrying out question distribution, so that the problem can be prevented from being distributed to users with low answer willingness to the problem, the distributable user resources can be saved, and higher answer probability can exist in the distribution of other problems, and the overall probability of the problem to be distributed being answered is effectively improved.
In the embodiment of the present disclosure, a specific application of the distribution request stored in the cache may be that, when a problem is distributed to a user, it is first determined whether an abnormal interruption occurs in a previous task process, if an abnormal interruption occurs, a distribution request that is not successfully distributed is extracted from the cache, and the problem to be distributed is continuously distributed to the user according to the distribution request.
The method for distributing the questions to the users, provided by the embodiment of the disclosure, can send the questions to be distributed to the users in a polling manner, so that the problem of unbalanced user resource distribution in the conventional question distribution method is avoided, a plurality of questions to be distributed can be distributed to users with high quality at a high probability, and the answer probability of the questions to be distributed in the question-and-answer community is integrally improved.
Corresponding to the foregoing method for distributing a question to a user in the embodiment of the present disclosure, an apparatus for distributing a question to a user in the embodiment of the present disclosure is described below. Fig. 2 shows a system structure diagram of an apparatus 200 for distributing questions to users according to an embodiment of the present disclosure.
The apparatus 200 for distributing questions to users provided by the embodiment of the present disclosure includes: a problem set to be distributed acquiring unit 201, a distribution request generating unit 202, and a distribution unit 203.
The to-be-distributed problem set acquiring unit 201 is configured to acquire a set including a plurality of to-be-distributed problems, where each to-be-distributed problem has a distribution frequency requirement and a distribution round number.
A distribution request generating unit 202, configured to generate a distribution request for each to-be-distributed question in a polling manner for the plurality of to-be-distributed questions, where each distribution request includes an identification of the to-be-distributed question and a distribution number, and the distribution number is determined based at least in part on the distribution number requirement and the distribution round number.
The distributing unit 203 is configured to distribute the to-be-distributed question to the user according to the distribution request.
Further, in the embodiment of the present disclosure, the to-be-distributed problem set obtaining unit 201 and the distribution request generating unit 202 may be deployed in a first container, and a concurrence lock is set in the first container, so that only one first container can operate at any time, thereby avoiding that the same problem is distributed multiple times, and ensuring the robustness of a task. In the embodiment of the present disclosure, the distribution unit 203 may be disposed in a second container, and the second container can be executed concurrently, so as to effectively improve the distribution efficiency.
According to the device for distributing the problems to the users, provided by the embodiment of the disclosure, each unit is independently responsible for respective operation, so that the problems can be quickly positioned when the faults occur, and the function expansion is facilitated.
The method and the device for distributing the questions to the users can be applied to complement distribution of the questions in the question-answering community.
Fig. 3 shows a schematic structural diagram of an electronic device 300 according to an embodiment of the disclosure. As shown in fig. 3, the electronic apparatus 300 includes a Central Processing Unit (CPU) 301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment 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-readable medium bearing instructions that, in such embodiments, may be downloaded and installed from a network via the communication section 309, and/or installed from the removable media 311. The instructions, when executed by the Central Processing Unit (CPU) 301, perform the various method steps described in the present invention.
The above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present disclosure, and should be construed as being included therein.

Claims (13)

1. A method of distributing questions to users, comprising:
acquiring a set comprising a plurality of problems to be distributed, wherein each problem to be distributed has a distribution frequency requirement and a distribution round number;
generating a distribution request for each to-be-distributed question in a polling mode aiming at the plurality of to-be-distributed questions, wherein each distribution request comprises identification of the to-be-distributed question and distribution times, and the distribution times are determined at least partially based on the distribution time requirement and the distribution round number; and
and distributing the problem to be distributed to the user according to the distribution request.
2. The method of distributing questions to users of claim 1 wherein the distribution request further comprises a distribution period for each question to be distributed.
3. The method for distributing questions to users according to claim 1, wherein the obtaining includes a plurality of sets of questions to be distributed, and specifically includes:
acquiring a problem to be distributed meeting the distribution condition;
and filtering and sequencing the problems to be distributed meeting the distribution conditions to form a problem set to be distributed.
4. The method of distributing questions to users of claim 3 further comprising, prior to retrieving the to-be-distributed questions meeting the distribution criteria, receiving one or more sources of the to-be-distributed questions into a kafka message queue, extracting the to-be-distributed questions from the kafka message queue and storing the to-be-distributed questions in a database.
5. The method of distributing questions to users of claim 3, the distribution conditions comprising at least one of a question type, a distribution period, and a distribution number requirement.
6. The method according to claim 1, before generating the distribution request for each to-be-distributed question in a polling manner, further comprising determining whether the to-be-distributed question meets the distribution frequency requirement or exceeds the distribution period, and if the to-be-distributed question meets the distribution frequency requirement or exceeds the distribution period, deleting the to-be-distributed question from the set of to-be-distributed questions.
7. The method of distributing questions to users of claim 1 further comprising sending the distribution request to a cache for storage for recovery of an abort.
8. The method for distributing the problems to the users according to claim 7, comprising the steps of judging whether the abnormal interruption occurs or not, if the abnormal interruption occurs, extracting the distribution request which is not successfully distributed from the cache, and distributing the problems to be distributed to the users according to the distribution request.
9. The method for distributing questions to users according to claim 1, wherein the distributing the questions to be distributed to the users according to the distribution request specifically comprises:
acquiring an alternative user according to the distribution request;
and calculating the answer probability of the alternative user, selecting the alternative user with the answer probability larger than a threshold value as an invited user, and sending the question to be distributed to the invited user.
10. An apparatus for distributing questions to users, comprising:
the system comprises a to-be-distributed problem set acquisition unit, a to-be-distributed problem acquisition unit and a to-be-distributed problem acquisition unit, wherein the to-be-distributed problem set acquisition unit is used for acquiring a set comprising a plurality of to-be-distributed problems, and each to-be-distributed problem has a distribution frequency requirement and a distribution round number;
a distribution request generation unit configured to generate a distribution request for each to-be-distributed question in a polling manner for the plurality of to-be-distributed questions, each distribution request including an identification of the to-be-distributed question and a distribution number, the distribution number being determined based at least in part on the distribution number requirement and the distribution round number; and
and the distribution unit is used for distributing the problems to be distributed to the users according to the distribution requests.
11. The apparatus for distributing questions to users of claim 10, the set of questions to be distributed obtaining unit and the distribution request generating unit being disposed in a first container, the distributing unit being disposed in a second container, the first container having concurrent locks, the second container being concurrently executable.
12. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-9.
13. A computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 9.
CN202011275414.7A 2020-11-16 2020-11-16 Method and device for distributing questions to users Pending CN112100508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011275414.7A CN112100508A (en) 2020-11-16 2020-11-16 Method and device for distributing questions to users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011275414.7A CN112100508A (en) 2020-11-16 2020-11-16 Method and device for distributing questions to users

Publications (1)

Publication Number Publication Date
CN112100508A true CN112100508A (en) 2020-12-18

Family

ID=73784608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011275414.7A Pending CN112100508A (en) 2020-11-16 2020-11-16 Method and device for distributing questions to users

Country Status (1)

Country Link
CN (1) CN112100508A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090253112A1 (en) * 2008-04-07 2009-10-08 Microsoft Corporation Recommending questions to users of community qiestion answering
CN102637170A (en) * 2011-02-10 2012-08-15 北京百度网讯科技有限公司 Question pushing method and system
CN103001851A (en) * 2012-01-16 2013-03-27 陈晓亮 Help-seeking interaction system and help-seeking interaction method for online users
CN108804664A (en) * 2018-06-08 2018-11-13 北京搜狗科技发展有限公司 A kind of problem distribution method and relevant apparatus
CN109033342A (en) * 2018-07-24 2018-12-18 北京京东尚科信息技术有限公司 Applied to the service providing method of service system, device and service model
CN111488177A (en) * 2020-04-14 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090253112A1 (en) * 2008-04-07 2009-10-08 Microsoft Corporation Recommending questions to users of community qiestion answering
CN102637170A (en) * 2011-02-10 2012-08-15 北京百度网讯科技有限公司 Question pushing method and system
CN103001851A (en) * 2012-01-16 2013-03-27 陈晓亮 Help-seeking interaction system and help-seeking interaction method for online users
CN108804664A (en) * 2018-06-08 2018-11-13 北京搜狗科技发展有限公司 A kind of problem distribution method and relevant apparatus
CN109033342A (en) * 2018-07-24 2018-12-18 北京京东尚科信息技术有限公司 Applied to the service providing method of service system, device and service model
CN111488177A (en) * 2020-04-14 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张苏可: "悟空问答社区系统服务端的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN108399564B (en) Credit scoring method and device
US20160217385A1 (en) Method and apparatus for analyzing missing not at random data and recommendation system using the same
CN113012336A (en) Queuing reservation method of banking business and device, storage medium and equipment thereof
US8257091B2 (en) Matching learning objects with a user profile using top-level concept complexity
CN115883392B (en) Data perception method and device of computing power network, electronic equipment and storage medium
CN112766776A (en) Translation order pushing method and system
CN112100508A (en) Method and device for distributing questions to users
US11294917B2 (en) Data attribution using frequent pattern analysis
CN108898482B (en) Multi-product signing method and device
CN111311310A (en) Advertisement order pushing method and device, storage medium and electronic device
CN109697224B (en) Bill message processing method, device and storage medium
CN114331446B (en) Method, device, equipment and medium for realizing out-of-chain service of block chain
CN116342137A (en) Client data recycling allocation method, device, computer equipment and storage medium
CN111400033B (en) Platform resource cost allocation method and device, storage medium and computer equipment
CN108989063B (en) Group account data processing method, device and equipment and readable storage medium
CN112163155A (en) Information processing method, device, equipment and storage medium
US20130144886A1 (en) Method for managing email
CN116909758B (en) Processing method and device of calculation task and electronic equipment
CN116843203A (en) Service access processing method, device, equipment, medium and product
CN115238676A (en) Method and device for identifying hot spots of bidding demands, storage medium and electronic equipment
CN114757198A (en) Similar method and device, electronic equipment and readable storage medium
CN116302652A (en) System alarm information processing method and device and electronic equipment
CN114168329A (en) Distributed batch optimization method, electronic device and computer-readable storage medium
CN113962725A (en) Information popularization method and device, electronic equipment and readable storage medium
CN116975048A (en) Object analysis method, device, storage medium, electronic equipment and product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201218