Method and device for statistics of number of online users

A technology of user quantity and quantity, applied in the network field, can solve the problems of low statistical efficiency of online user quantity, untimely statistics, large query volume, etc., achieve the effect of small query volume, timely statistics, and improve statistical efficiency

Inactive Publication Date: 2017-06-30
BEIJING QIHOO TECH CO LTD +1
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the above method, it is necessary to query the life cycle of the corresponding session of each user in the database one by one, and the query volume is very large, resulting in low statistical efficiency of the number of online users and untimely statistics

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for statistics of number of online users
  • Method and device for statistics of number of online users
  • Method and device for statistics of number of online users

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] refer to figure 1 , shows a flow chart of steps of a method for counting the number of online users according to Embodiment 1 of the present invention. The method of this embodiment may include the following steps:

[0046] Step 101, when receiving the dotted data including the dotted user ID, setting the online cut-off time corresponding to the dotted user ID.

[0047] At present, most of the business statistics rely on the dot management at the browser side, that is, the browser sends the dot data to the server by initiating a dot request, and the server records the dot data. The so-called dotted data is the business data of the function point. For example, when a user clicks a link on a web page, the click information on the link is the dotted data.

[0048] In this embodiment, the dotted data may be the heartbeat information sent by the user, wherein for each online user, the user's heartbeat information is sent once every preset time (for example, 10s, etc.). The ...

Embodiment 2

[0058] refer to figure 2 , shows a flowchart of steps of a method for counting the number of online users according to Embodiment 2 of the present invention. The method of this embodiment may include the following steps:

[0059] In step 201, the receiving thread receives the dotted data including the dotted user ID, and when receiving the dotted data, sends the dotted data to the processing thread.

[0060] In this embodiment, the receiving thread is set to receive the dot data sent by the user, and the processing thread is set to perform subsequent processing. The receiving thread and the processing thread can communicate with each other. When the receiving thread receives the dotted data, the dotted data will be processed. sent to the processing thread.

[0061] Preferably, in this step 201, when the receiving thread receives the dotted data, the process of sending the dotted data to the processing thread can include: when the receiving thread receives the dotted data, a...

Embodiment 3

[0083] refer to image 3 , shows a flow chart of steps of a method for counting the number of online users according to Embodiment 3 of the present invention. The method of this embodiment may include the following steps:

[0084] Step 301, divide user IDs into multiple groups, and create a corresponding independent processing thread for each group of user IDs.

[0085]In this embodiment, user identifiers can be divided into multiple groups according to the setting method. For the specific division method, those skilled in the art can choose any applicable method based on actual experience, and this embodiment of the present invention does not limit it . For example, user IDs 1-10000 may be divided into a group, user IDs 10001-20000 may be divided into a group, and so on, and so on.

[0086] For each group of user IDs, a corresponding independent processing thread may be created, and the independent processing thread is mainly used to process events related to the correspon...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for statistics of the number of online users. The method comprises the following steps: when event clicking data, which comprises an event clicking user identifier, is received, setting an online deadline corresponding to the event clicking user identifier; carrying out sorting of all the saved user identifiers according to the corresponding online deadlines; for all the sorted user identifiers, sequentially judging whether the online deadline corresponding to the current user identifier has been reached or not according to a sorting order, and stopping the judgment when the online deadline corresponding to one of the user identifiers has not been reached; and carrying out the statistics of the number of the online users according to judgment results. The method and device provided by the invention has the advantages that one-by-one queries of all the user identifiers are not needed, and the judgment only needs to be carried out for some of the sorted user identifiers, so that the number of the queries is smaller, the efficiency for the statistics of the number of the online users is improved, and the statistics is more timely.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method for counting the number of online users and a device for counting the number of online users. Background technique [0002] With the rapid development of network technology, various websites continue to emerge. In order to facilitate the maintenance of the website, it is usually necessary to count the number of real-time online users of the website. But when the number of simultaneous online users reaches tens of thousands, it will become difficult to count the number of online users. For example, an online user sends heartbeat information to the online statistics server. When the heartbeat information is sent for the first time, it means that the user is online. When the heartbeat information of the user is not received for more than 3 heartbeat intervals, it is determined that the user is offline. If the website platform currently has 1.2 million users online and sen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26
CPCH04L43/062H04L43/10
Inventor 左文建曲文庆
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products