CN107862033A - A kind of user behavior analysis method and system - Google Patents

A kind of user behavior analysis method and system Download PDF

Info

Publication number
CN107862033A
CN107862033A CN201711070484.7A CN201711070484A CN107862033A CN 107862033 A CN107862033 A CN 107862033A CN 201711070484 A CN201711070484 A CN 201711070484A CN 107862033 A CN107862033 A CN 107862033A
Authority
CN
China
Prior art keywords
user behavior
mongodb
server
client
behavior data
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
CN201711070484.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.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information 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 Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201711070484.7A priority Critical patent/CN107862033A/en
Publication of CN107862033A publication Critical patent/CN107862033A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Abstract

A kind of user behavior analysis method and system of disclosure.The system is mainly using the tp frameworks of latest domestic, it is combined with Mongodb cachings, Mongodb can quickly extract the behavioral data of user in the situation of big data quantity using distributed caching and can quickly count various abnormal user by Mongodb MapReduce simultaneously this be compared by the SQL statement of complexity with traditional Mysql, improve very big systematic function.

Description

A kind of user behavior analysis method and system
Technical field
The application is related to computer realm, more specifically to a kind of user behavior analysis method and system.
Background technology
In order to prevent the bootlegging broadcasting of the live circle of gold in user couple in the middle live platform of gold, relevant technical staff develops one Kind of user behavior analysis software, accesses the user of abnormal behavior with fast positioning, and by the behaviour blocking of these users, to prevent User obtains corresponding information (such as circle live information), the loss of the information of reduction by illegal act.
Current user behavior analysis system is typically based on Mysql relevant databases, to count access abnormal behavior User, the database is slower to the processing speed of user behavior data, causes the performance of user behavior analysis system relatively low.
The content of the invention
In view of this, the application provides a kind of user behavior analysis method and system, by improving user behavior analysis system The processing speed united to user behavior data, to realize the purpose for improving user behavior analysis system performance.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of user behavior analysis method, methods described are applied to include:
Obtain user behavior data, and the Mongodb client/server moulds that user behavior data write-in is pre-established The master server of type;
User behavior data in the master server is synchronized to the master server of the Mongodb client/servers model More from server;
Described more are called from the user behavior data in server, according to the user behavior analysis rule pre-established Parallel statistical disposition then is carried out to the user behavior data, to determine whether user is Lawful access user.
Preferably, establishing the process of the Mongodb client/servers model includes:
Mongodb caching classes are write, and the Mongodb cachings class is write in TP frameworks;
The Mongodb cachings class is instantiated, to establish the Mongodb client/servers model.
Preferably, it is described that the user behavior data is united parallel according to the user behavior analysis rule pre-established Meter, including:
MapReduce based on the Mongodb client/servers model is counted parallel to the user behavior data.
Preferably, including:
Data acquisition module, for obtaining user behavior data, and user behavior data write-in is pre-established The master server of Mongodb client/server models;
Data simultaneous module, for the user behavior data in the master server to be synchronized into the Mongodb principals and subordinates More of the master server of framework model are from server;
Data analysis module, for calling described more from the user behavior data in server, according to building in advance Vertical user behavior analysis rule carries out parallel statistical disposition to the user behavior data, to determine whether user is legal visit Ask user.
Preferential, in addition to:
Mongodb client/server model building modules, for writing Mongodb caching classes, and by the Mongodb In caching class write-in TP frameworks, the Mongodb cachings class is instantiated, to establish the Mongodb client/servers Model.
Preferential, the data analysis module is used for the MapReduce based on the Mongodb client/servers model to institute User behavior data is stated to be counted parallel.
Through as shown from the above technical solution, a kind of user behavior analysis method and system of disclosure.The system Mainly using the tp frameworks of latest domestic, it is combined with Mongodb cachings, Mongodb is using distributed caching The behavioral data that user can be quickly extracted in the situation of big data quantity simultaneously can be fast by Mongodb MapReduce This is compared the various abnormal user of statistics of speed with traditional Mysql by the SQL statement of complexity, improves very big system Performance.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 shows a kind of schematic flow sheet of user behavior analysis method disclosed in one embodiment of the invention;
Fig. 2 shows a kind of structural representation of user behavior analysis system disclosed in one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
A kind of schematic flow sheet of user behavior analysis method disclosed in one embodiment of the invention is shown referring to Fig. 1.
As shown in Figure 1, the present invention includes:
S101:Obtain user behavior data, and Mongodb principal and subordinate's framves that user behavior data write-in is pre-established The master server of structure model.
The system is mainly the extension mangodb.dll using PHP, while writes Mongodb caching class (this Individual class includes Mongodb various operations), and this class is incorporated into the caching that framework is made inside TP frameworks Class, this Mongodb class of direct instanceization when use, such words can are wanted to operate using TP inside framework Mongodb, also can using Mongodb MapReduce functions come statistics.
S102:User behavior data in the master server is synchronized to the master of the Mongodb client/servers model More of server are from server.
Mongodb client/servers model includes a master server and Duo Tai from server.Master server is mainly used in counting According to write-in, be mainly used in the readings of data from server.The present invention will make Mongdb (the read-write point of master-salve distributed pattern From), such foreground is right by not interfering with inquiry of the backstage to user behavior data when API typing user behavior datas The performance of system is greatly improved for the system of this big data quantity of behavior analysis system.
S103:Described more are called from the user behavior data in server, according to the user behavior pre-established Analysis rule carries out parallel statistical disposition to the user behavior data, to determine whether user is Lawful access user.
Multiple user behavior rules can be set whether to be validated user to user on backstage.Such as:Can be fixed on backstage For adopted user to the access frequency of some interface or the page, the last page entered for defining the interface or the page is that is several It is individual, the login times of user are set, pirate IP storehouses are set.If the access frequency of certain user beyond defined value or into this The last URL of the individual page or interface not inside defined URL, or access IP inside pirate IP storehouses, then Determine that the user is disabled user.
A kind of structural representation of user behavior analysis system disclosed in another embodiment of the present invention is shown referring to Fig. 2 Figure.
As shown in Figure 2, the system includes:Data acquisition module 1, data simultaneous module 2 and data analysis module 3.
Wherein, data acquisition module, built in advance for obtaining user behavior data, and by user behavior data write-in The master server of vertical Mongodb client/server models.
Data simultaneous module, for the user behavior data in the master server to be synchronized into the Mongodb principals and subordinates More of the master server of framework model are from server.
Data analysis module, for calling described more from the user behavior data in server, according to building in advance Vertical user behavior analysis rule carries out parallel statistical disposition to the user behavior data, to determine whether user is legal visit Ask user.
Specifically, the data analysis module is used for the MapReduce based on the Mongodb client/servers model to institute User behavior data is stated to be counted parallel.
It should be noted that in other embodiment disclosed by the invention, the system also includes Mongodb client/server moulds Type establishes module 4.
Mongodb client/server model building modules are mainly used in establishing Mongodb client/server models.Specific process For:Mongodb caching classes are write, and the Mongodb cachings class is write in TP frameworks, described in instantiation Mongodb caching classes, to establish the Mongodb client/servers model.
It should be noted that the system embodiment is corresponding with embodiment of the method, its implementation procedure is identical with implementation principle, Therefore not to repeat here.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (6)

  1. A kind of 1. user behavior analysis method, it is characterised in that methods described is applied to include:
    User behavior data is obtained, and the user behavior data is write to the Mongodb client/server models pre-established Master server;
    User behavior data in the master server is synchronized to the more of the master server of the Mongodb client/servers model Platform is from server;
    Described more are called from the user behavior data in server, it is right according to the user behavior analysis rule pre-established The user behavior data carries out parallel statistical disposition, to determine whether user is Lawful access user.
  2. 2. according to the method for claim 1, it is characterised in that establish the process bag of the Mongodb client/servers model Include:
    Mongodb caching classes are write, and the Mongodb cachings class is write in TP frameworks;
    The Mongodb cachings class is instantiated, to establish the Mongodb client/servers model.
  3. 3. according to the method for claim 1, it is characterised in that described right according to the user behavior analysis rule pre-established The user behavior data is counted parallel, including:
    MapReduce based on the Mongodb client/servers model is counted parallel to the user behavior data.
  4. A kind of 4. user behavior analysis system, it is characterised in that including:
    Data acquisition module, for obtaining user behavior data, and user behavior data write-in is pre-established The master server of Mongodb client/server models;
    Data simultaneous module, for the user behavior data in the master server to be synchronized into the Mongodb client/servers More of the master server of model are from server;
    Data analysis module, for calling described more from the user behavior data in server, according to what is pre-established User behavior analysis rule carries out parallel statistical disposition to the user behavior data, to determine whether user is that Lawful access is used Family.
  5. 5. system according to claim 4, it is characterised in that also include:
    Mongodb client/server model building modules, cached for writing Mongodb caching classes, and by the Mongodb Operate in class write-in TP frameworks, the Mongodb cachings class is instantiated, to establish the Mongodb client/servers model.
  6. 6. system according to claim 4, it is characterised in that the data analysis module is used to be based on the Mongodb The MapReduce of client/server model is counted parallel to the user behavior data.
CN201711070484.7A 2017-11-03 2017-11-03 A kind of user behavior analysis method and system Pending CN107862033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711070484.7A CN107862033A (en) 2017-11-03 2017-11-03 A kind of user behavior analysis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711070484.7A CN107862033A (en) 2017-11-03 2017-11-03 A kind of user behavior analysis method and system

Publications (1)

Publication Number Publication Date
CN107862033A true CN107862033A (en) 2018-03-30

Family

ID=61700675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711070484.7A Pending CN107862033A (en) 2017-11-03 2017-11-03 A kind of user behavior analysis method and system

Country Status (1)

Country Link
CN (1) CN107862033A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920948A (en) * 2018-05-25 2018-11-30 众安信息技术服务有限公司 A kind of anti-fraud streaming computing device and method
CN109727027A (en) * 2018-06-01 2019-05-07 平安普惠企业管理有限公司 Account recognition methods, device, equipment and storage medium
CN111782694A (en) * 2020-06-28 2020-10-16 百度在线网络技术(北京)有限公司 Information writing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298650A (en) * 2011-10-18 2011-12-28 东莞市巨细信息科技有限公司 Distributed recommendation method of massive digital information
CN102970296A (en) * 2012-11-22 2013-03-13 网宿科技股份有限公司 Intelligent website content capture-preventing method and system based on content delivery network
US20140373029A1 (en) * 2012-01-05 2014-12-18 International Business Machines Corporation Recording Activity of Software Threads in a Concurrent Software Environment
CN104881353A (en) * 2015-06-15 2015-09-02 成都千寻科技有限公司 Hive platform oriented user behavior auditing system and method
CN106302534A (en) * 2016-09-30 2017-01-04 微梦创科网络科技(中国)有限公司 A kind of detection and the method and system of process disabled user
CN106383768A (en) * 2016-09-14 2017-02-08 江苏北弓智能科技有限公司 Mobile device operation behavior-based supervision analysis system and method
CN106453521A (en) * 2016-09-23 2017-02-22 上海雷尼威尔技术有限公司 Data cluster management method and system of intelligent agricultural machinery management platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298650A (en) * 2011-10-18 2011-12-28 东莞市巨细信息科技有限公司 Distributed recommendation method of massive digital information
US20140373029A1 (en) * 2012-01-05 2014-12-18 International Business Machines Corporation Recording Activity of Software Threads in a Concurrent Software Environment
CN102970296A (en) * 2012-11-22 2013-03-13 网宿科技股份有限公司 Intelligent website content capture-preventing method and system based on content delivery network
CN104881353A (en) * 2015-06-15 2015-09-02 成都千寻科技有限公司 Hive platform oriented user behavior auditing system and method
CN106383768A (en) * 2016-09-14 2017-02-08 江苏北弓智能科技有限公司 Mobile device operation behavior-based supervision analysis system and method
CN106453521A (en) * 2016-09-23 2017-02-22 上海雷尼威尔技术有限公司 Data cluster management method and system of intelligent agricultural machinery management platform
CN106302534A (en) * 2016-09-30 2017-01-04 微梦创科网络科技(中国)有限公司 A kind of detection and the method and system of process disabled user

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
努力哥: "Mongodb主从复制及副本集+分片集群梳理", 《HTTPS://WWW.CNBLOGS.COM/NULIGE/P/7613721.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920948A (en) * 2018-05-25 2018-11-30 众安信息技术服务有限公司 A kind of anti-fraud streaming computing device and method
CN109727027A (en) * 2018-06-01 2019-05-07 平安普惠企业管理有限公司 Account recognition methods, device, equipment and storage medium
CN111782694A (en) * 2020-06-28 2020-10-16 百度在线网络技术(北京)有限公司 Information writing method and device and electronic equipment
CN111782694B (en) * 2020-06-28 2023-10-20 百度在线网络技术(北京)有限公司 Information writing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11281793B2 (en) User permission data query method and apparatus, electronic device and medium
CN105260474B (en) A kind of microblog users influence power computational methods based on information exchange network
CN105512247B (en) The optimization method of non-interactive type difference privacy Issuance model based on consistency feature
CN102844756B (en) Computer relational database method and system with access control based roles
KR101806333B1 (en) Optimizing electronic layouts for media content
WO2021032002A1 (en) Big data processing method based on heterogeneous distributed knowledge graph, device, and medium
CN109842628A (en) A kind of anomaly detection method and device
CN110443010A (en) One kind permission visual configuration control method, device, terminal and storage medium in information system
JP2016539427A (en) Pattern matching across multiple input data streams
CN104881490B (en) A kind of WEB form data access method and system
CN101373527A (en) Human authority control method engaged with system
CN110457891A (en) A kind of authority configuration interface display method, device, terminal and storage medium
EP3612973B1 (en) Referenced access control list
CN107862033A (en) A kind of user behavior analysis method and system
US10599654B2 (en) Method and system for determining unique events from a stream of events
US8856158B2 (en) Secured searching
CN104376058A (en) User interest model updating method and device
US11334601B2 (en) Unified data model
US20190179934A1 (en) Cloud based validation engine
US20190073399A1 (en) Efficient mechanism for managing hierarchical relationships in a relational database system
CN108269056A (en) Government information resources manage system
CN106803039A (en) The homologous decision method and device of a kind of malicious file
CN110020273A (en) For generating the method, apparatus and system of thermodynamic chart
CN103442016B (en) The method and system of white list are pushed based on website fingerprint
US20210211451A1 (en) Method and system for blockchain accreditation mechanism based on cybersecurity risk

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: 20180330