Data collection method, device and terminal equipment
A data acquisition and data technology, applied in the field of data processing, can solve the problems of the amount of data exceeding the maximum temporarily stored data, the reduction of real-time performance of cumulative data, and the reduction of accuracy of cumulative data, etc., to achieve small data volume and avoid data errors , Guaranteed real-time effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] refer to figure 1 , showing a flow chart of the steps of a data acquisition method according to Embodiment 1 of the present invention.
[0026] The data collection method of this embodiment includes the following steps:
[0027] S101. From at least two preset candidate storage areas, determine a first storage area for storing real-time data of the user in the current time period.
[0028] In this embodiment, the preset at least two candidate storage areas may be storage areas in the database, or may be storage areas in other locations, as long as real-time data can be stored, which is not limited in this embodiment.
[0029] In this embodiment, the current time period may be the time period corresponding to the current time point, for example, one minute, one hour or one day where the current time point is located may be used as the current time period.
[0030] Specifically, the current time period may be the time period within the current time period, and the time p...
Embodiment 2
[0049] refer to Figure 2a , showing a flow chart of the steps of a data collection method according to Embodiment 2 of the present invention.
[0050] The data collection method of this embodiment includes the following steps:
[0051] S201. From the preset at least two candidate storage areas, determine a first storage area for storing real-time data of the user's current time period according to a preset switching rule.
[0052] In this embodiment, the switching rule may be a switching rule for defining a candidate storage area as the first storage area. Those skilled in the art may set specific switching rules as required, which is not limited in this embodiment.
[0053] In an implementation manner of this embodiment, the preset switching rule includes: the at least two candidate storage areas are periodically switched sequentially according to a preset switching sequence to serve as the first storage area.
[0054] Specifically, assuming that the number of candidate s...
Embodiment 3
[0097] refer to image 3 , showing a flow chart of the steps of a data collection method according to Embodiment 3 of the present invention.
[0098] This embodiment uses Kafka message queue, Spark cluster, and Redis database as examples to describe the data collection process of user user_1.
[0099] The data collection method in this embodiment includes the following steps, all of which can be implemented by a Spark cluster:
[0100] S301. From the preset two candidate storage areas user_1_A or user_1_B, determine a first storage area for storing real-time data after switching according to a preset switching rule.
[0101] Among them, user_1_A and user_1_B are the indexes of the two alternative storage areas respectively, which may point to the storage areas in the Redis database.
[0102] Specifically, the index corresponding to the first storage area may be specifically indicated by the first indication mark as user_1_A or user_1_B.
[0103] The alternative storage area...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


