CN108681588A - A kind of interface accesses real-time statistical method and system - Google Patents
A kind of interface accesses real-time statistical method and system Download PDFInfo
- Publication number
- CN108681588A CN108681588A CN201810458374.6A CN201810458374A CN108681588A CN 108681588 A CN108681588 A CN 108681588A CN 201810458374 A CN201810458374 A CN 201810458374A CN 108681588 A CN108681588 A CN 108681588A
- Authority
- CN
- China
- Prior art keywords
- interface
- access
- data
- information
- memory
- 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
Links
Abstract
The present invention relates to a kind of interfaces to access real-time statistical method and system, and this method comprises the following steps:History interface access data in database is initialised in memory;When receiving interface acess control information inquiring request, which is parsed, determines interface message and inquiry request method;The access data record in memory is obtained according to inquiry request method and interface message;According to the access data record, interface acess control information is determined, and return.The present invention can cope with more clients and concurrently inquire;Improve the efficiency of client displaying interface statistic.
Description
【Technical field】
The invention belongs to technical field of information processing more particularly to a kind of interface to access real-time statistical method and system.
【Background technology】
With the continuous development of social informatization, single company or department want to singly complete a big project or
Engineering is all unpractical, and more companies or multidisciplinary cooperative cooperating is required for complete mostly.So in this process
Mutual calling access be required for there are one it is detailed statistics and displaying can just accomplish perfect supervision and go wrong timely
Positioning and tracking, this makes us that must have a kind of efficient interface to access real-time statistical method to cope with.What above-mentioned statistics referred to
It is the information that interface accesses.
Existing interface acess control method is mostly that the information after the access information for receiving interface in parsing interface packets is straight
Then directly inquiry use in storage to database is connect, or the access times field in table data is updated according to method.
The flow of interface acess control is realized at Fig. 1 prior arts center by database, is included the following steps:
Step S1, client transmission interface acess control information request;
Step S2, server-side receive the inquiry request that client is sent;
Step S3, server-side judge whether the request is legal request message, if it is jump to step S4, if
It is no, then return to failure information;
Step S4, if it is, inquiry database, composition result message returns to client;
Step S5 terminates.
The technology is presently the most a kind of realization of universal interface acess control.The realization of its technology is that client transmission is looked into
After asking request, server-side judges the inquiry with interface access information table to obtain interface access statistic data by message format.
Above-mentioned interface acess control is mainly data base querying, and the query statement for being limited to database executes speed, when
A large amount of to obtain request and be sent to server-side or when real time access needs faster response, the process performance of server-side will be by
The influence that speed is executed to database, can not accomplish to be disposed in the noninductive time range of user, make to influence user
With experience.
【Invention content】
In order to solve the above problem in the prior art, the present invention proposes a kind of interface access real-time statistical method, should
Method includes the following steps:
History interface access data in database is initialised in memory;
When receiving interface acess control information request, which is parsed, determines interface message and requesting party
Method;
The access data record in memory is obtained according to requesting method and interface message;
According to the access data record, interface acess control information is determined, and return.
With the method for the invention it is preferred to, when there is interface access, when there is interface access, update going through in memory
History interface access data information, and simultaneously will be in the history interface access data information update to database.
With the method for the invention it is preferred to, by configurable data synchronization time, interface is visited backstage is independent
It asks in information storage to the independent database table entry of database.
With the method for the invention it is preferred to, return to different interface access datas according to corresponding interface difference is asked
Statistical information.
With the method for the invention it is preferred to, after receiving interface acess control information request, need to judge that request is
It is no legal, if legal, which is parsed, determines interface message and requesting method, and according to requesting method and connect
Access data record in mouth acquisition of information memory does not parse the request if illegal, directly returns and unsuccessfully believes
Breath.
In order to solve the above problem in the prior art, the present invention proposes a kind of interface access real-time statistics system, should
System includes:Client, server-side, server-side include:
History interface access data in database is initialised in memory by data initialization module;
Request analysis module parses the request, determines interface when receiving interface acess control information request
Information and requesting method;
Data access module obtains the access data record in memory according to requesting method and interface message;
Data return to module and determine interface acess control information, and return according to the access data record.
The system according to the present invention, it is preferred that the server-side includes data update module:When there is interface access, more
History interface access data information in new memory, and simultaneously will be in the history interface access data information update to database.
The system according to the present invention, it is preferred that the data update module is by configurable data synchronization time, rear
In the independent storage to the independent database table entry of database by interface access information of platform.
The system according to the present invention, it is preferred that the data return to module, are returned not according to corresponding interface difference is asked
Same interface access data statistical information.
The system according to the present invention, it is preferred that the system is document exchange system between net.
Beneficial effects of the present invention include:
(1) more clients can be coped with concurrently to inquire;
(2) efficiency of client displaying interface statistic is improved.
【Description of the drawings】
Attached drawing described herein is to be used to provide further understanding of the present invention, and constitutes the part of the present invention, but
It does not constitute improper limitations of the present invention, in the accompanying drawings:
Fig. 1 is interface data statistical query method flow chart in the prior art.
Fig. 2 is that the interface of the present invention accesses real-time statistics system main assembly figure.
Fig. 3 is that interface of the present invention accesses real-time statistical method flow chart.
Fig. 4 is document exchange system composition figure between the net using the present invention program.
【Specific implementation mode】
Come that the present invention will be described in detail below in conjunction with attached drawing and specific embodiment, illustrative examples therein and says
It is bright to be only used for explaining the present invention but not as a limitation of the invention.
Terminal strategy refers to formulating Admission control to terminal, that is, allows or forbid the certain application services of terminal access
Device
IP rules allow for the management and control rule of IP address or IP packets are forbidden to be sent to destination address from source address IP
IP, wherein IP address can be an address ranges
The present invention is from the angle of actual demand and application, according to spy of the interface acess control in data safety management
A kind of the characteristics of needing quickly to judge simultaneously returned data when point and client access in time, it is proposed that new solution.
In management interface access information, when interface access information is newly-increased, memory information is updated, by interface access information
It is synchronized in memory and is handled.Meanwhile data synchronization time by that can match, interface access information is deposited backstage is independent
It stores up in independent database table entry.When server-side occurs actively to restart or when abnormal restarting.Update memory by interface access from
It is synchronized in memory in database.When the query interface acess control information request of client is sent to server-side, server-side
It receives to search corresponding interface acess control information after message from memory and form corresponding message and return again to, greatly accelerate
User obtains the speed of interface acess control information.
Such as Fig. 2, the present invention includes:Client and server-side pass through client transmission interface access information inquiry request;
Server-side includes following functions module:
Interface accesses statistic of classification module, statistic of classification is carried out to interface access information, according in interface access information
Keyword is classified;
Interface access information, is synchronized in memory by interface access information synchronization module in real time;
Timing information update module periodically updates interface access information to database according to the timing cycle of configuration;
Interface accesses initialization module, is initialized to interface access information.
The key of the present invention is that interface access information is according to keywords carried out to sorted statistic of classification synchronizing information in
Deposit and the timing of information storage processing, effectively avoid the slow-footed disadvantage of data base querying.Client is reduced to obtain
Interface access information processing time consumes, the efficiency handled when improving big concurrent;Another key point is the interface of categorized statistics
In access information timing storage to database, the loss problem of interface access information when avoiding server-side exception.
Fig. 3 is the request flow chart that the present invention obtains interface acess control information.
Interface acess control information request is the process of an information inquiry, is returned not according to the interface difference of acquisition request
Same interface access data statistical information.Specifically according in access interface keyword carry out statistic of classification record, then when
When receiving the request of queried access interface statistic, storage before matching is gone to classify according to the keyword in this inquiry request
Keyword, be then back to the data inquired.The data of return are the information of unified format.
Interface acess control information request process flow is as follows:
1) the history interface access data stored in database is initialised in memory;
2) when there is interface access, the interface access statistic data information in memory is updated, while by the interface in memory
Access statistic data synchronizing information is to database;
3) receive obtain interface acess control information request after, judge request it is whether legal, if legal, to ask into
Row parsing, obtains interface message and requesting method (keyword i.e. in interface packets), if request is illegal, directly returns to failure
Information;
4) the access data record in memory is obtained according to requesting method and interface message;
5) data inquired are formed into corresponding response message and returns to client.
It is illustrated below using technical scheme of the present invention with document exchange system between net.
In actual motion, the interface acess control letter on the day of the displaying of document exchange system First page information must be shown between net
The storage of breath and historical information.Need the interface access information on the page that can accomplish real-time synchronization simultaneously.It is different to reach
The purpose of timely processing is often judged in time.
Such as Fig. 4, document exchange system includes three parts between net:Web console, server-side, service database.It is literary between net
User needs multiple by transmitting file between the sub-network of gateway isolation in part exchange system.
Web administration console includes mainly homepage displaying, system administration, network management, tactical management, incident management, text
Part exchanges management.
Server-side mainly provides displaying acquisition of information, file-swapping service, tactical management service, event management service.
Service database main users store event information, log information, policy information, exchange files information, interface and visit
Ask data statistics.
It is as follows using the main business workflow of technical solution of the present invention:
(1) the interface access statistic data of history is synchronized in memory on startup by server-side, in the process of running
It will be in the update to memory of newest interface access information;
(2) opening individually service timing by server-side will be in the update to database of newest interface access data;
(3) when client sends query interface acess control information request, server-side obtains corresponding according to solicited message
Interface access data, and the data of gained composition message is returned into client;
Scheme through the invention faster than database due to internal storage data reading speed can cope with more clients
End is concurrently inquired;Improve the efficiency of client displaying interface statistic.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, system or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions send terminal to all-purpose computer, special purpose computer, embedded transmitter or other programmable datas and set
Standby transmitter is to generate a machine so that the transmitter that terminal device is sent by computer or other programmable datas is held
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The system of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable datas to send terminal device
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of instruction system is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable datas are sent on terminal device so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented transmission, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Real-time statistical method and system are accessed to a kind of interface provided by the present invention above, are described in detail, this
Specific case is applied in text, and principle and implementation of the present invention are described, the explanation of above example is only intended to
It facilitates the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
The limitation of the present invention.
Claims (10)
1. a kind of interface accesses real-time statistical method, which is characterized in that this method comprises the following steps:
History interface access data in database is initialised in memory;
When receiving interface acess control information inquiring request, which is parsed, determines that interface message and inquiry are asked
Seek method;
The access data record in memory is obtained according to inquiry request method and interface message;
According to the access data record, interface acess control information is determined, and return.
2. according to the method described in claim 1, it is characterized in that, when there is interface access, interface is accessed according to keyword
Information carries out statistic of classification, and updates the history interface access information data in memory.
3. independent on backstage according to the method described in claim 2, it is characterized in that, by configurable data synchronization time
Interface access information is subjected to statistic of classification after, storage is in the independent database table entry of database.
4. according to the method described in claim 2, it is characterized in that, according to storage before the keyword match in inquiry request
Keyword in statistic of classification information is then back to the acess control information data inquired.
5. according to the method described in claim 1, it is characterized in that, after receiving interface acess control information inquiring request,
It needs to judge whether inquiry request is legal, if legal, which is parsed, determines interface message and requesting party
Method, and the access data record in memory is obtained according to requesting method and interface message and the inquiry is not asked if illegal
It asks and is parsed, directly return to failure information.
6. a kind of interface accesses real-time statistics system, which includes:Client, server-side, which is characterized in that server-side packet
It includes:
History interface access data in database is initialised in memory by data initialization module;
Request analysis module parses the inquiry request when receiving interface acess control information inquiring request, determines
Interface message and inquiry request method;
Data access module obtains the access data record in memory according to inquiry request method and interface message;
Data return to module and determine interface acess control information, and return according to the access data record.
7. system according to claim 6, which is characterized in that the server-side includes data update module:When there is interface
When access, statistic of classification is carried out to interface access information according to keyword, and update the history interface access information number in memory
According to.
8. system according to claim 7, which is characterized in that the data update module is synchronized by configurable data
Time, after the independent progress statistic of classification by interface access information in backstage, in storage to the independent database table entry of database.
9. system according to claim 6, which is characterized in that the data return to module, according to the pass in inquiry request
Keyword in the statistic of classification information that the matching of key word stores before, is then back to the acess control information data inquired.
10. system according to claim 6, which is characterized in that the system is document exchange system between net.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810458374.6A CN108681588A (en) | 2018-05-14 | 2018-05-14 | A kind of interface accesses real-time statistical method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810458374.6A CN108681588A (en) | 2018-05-14 | 2018-05-14 | A kind of interface accesses real-time statistical method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681588A true CN108681588A (en) | 2018-10-19 |
Family
ID=63806108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810458374.6A Pending CN108681588A (en) | 2018-05-14 | 2018-05-14 | A kind of interface accesses real-time statistical method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681588A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008681A (en) * | 2019-03-12 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Access control method, equipment and system |
CN113111279A (en) * | 2021-05-12 | 2021-07-13 | 广东九联科技股份有限公司 | Set top box access data statistical method and access data strategy customization method |
CN113608962A (en) * | 2021-07-30 | 2021-11-05 | 平安普惠企业管理有限公司 | Method, device and equipment for predicting abnormal application interface and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101493826A (en) * | 2008-12-23 | 2009-07-29 | 中兴通讯股份有限公司 | Database system based on WEB application and data management method thereof |
CN103116627A (en) * | 2013-01-31 | 2013-05-22 | 汉柏科技有限公司 | Database access method with high concurrency service-oriented architecture (SOA) technology and system |
CN103440302A (en) * | 2013-08-21 | 2013-12-11 | 广东电网公司电力调度控制中心 | Real-time data exchange method and system |
US20150248467A1 (en) * | 2014-02-28 | 2015-09-03 | Deep Information Sciences, Inc. | Real-time calculation, storage, and retrieval of information change |
CN104933105A (en) * | 2015-05-29 | 2015-09-23 | 北京奇虎科技有限公司 | Analysis method and device for database access request |
CN105787064A (en) * | 2016-03-01 | 2016-07-20 | 广州铭诚计算机科技有限公司 | Mining platform establishment method based on big data |
CN107315761A (en) * | 2017-04-17 | 2017-11-03 | 阿里巴巴集团控股有限公司 | A kind of data-updating method, data query method and device |
-
2018
- 2018-05-14 CN CN201810458374.6A patent/CN108681588A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101493826A (en) * | 2008-12-23 | 2009-07-29 | 中兴通讯股份有限公司 | Database system based on WEB application and data management method thereof |
CN103116627A (en) * | 2013-01-31 | 2013-05-22 | 汉柏科技有限公司 | Database access method with high concurrency service-oriented architecture (SOA) technology and system |
CN103440302A (en) * | 2013-08-21 | 2013-12-11 | 广东电网公司电力调度控制中心 | Real-time data exchange method and system |
US20150248467A1 (en) * | 2014-02-28 | 2015-09-03 | Deep Information Sciences, Inc. | Real-time calculation, storage, and retrieval of information change |
CN104933105A (en) * | 2015-05-29 | 2015-09-23 | 北京奇虎科技有限公司 | Analysis method and device for database access request |
CN105787064A (en) * | 2016-03-01 | 2016-07-20 | 广州铭诚计算机科技有限公司 | Mining platform establishment method based on big data |
CN107315761A (en) * | 2017-04-17 | 2017-11-03 | 阿里巴巴集团控股有限公司 | A kind of data-updating method, data query method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008681A (en) * | 2019-03-12 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Access control method, equipment and system |
CN110008681B (en) * | 2019-03-12 | 2023-04-07 | 创新先进技术有限公司 | Access control method, device and system |
CN113111279A (en) * | 2021-05-12 | 2021-07-13 | 广东九联科技股份有限公司 | Set top box access data statistical method and access data strategy customization method |
CN113608962A (en) * | 2021-07-30 | 2021-11-05 | 平安普惠企业管理有限公司 | Method, device and equipment for predicting abnormal application interface and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7334001B2 (en) | Method and system for data collection for alert delivery | |
CN105138592B (en) | A kind of daily record data storage and search method based on distributed structure/architecture | |
EP2005709B1 (en) | Service registry and relevant system and method | |
US7827280B2 (en) | System and method for domain name filtering through the domain name system | |
USRE42051E1 (en) | Peer-to-peer automated anonymous asynchronous file sharing | |
US6665674B1 (en) | Framework for open directory operation extensibility | |
US9223867B2 (en) | Methods and systems for data processing | |
KR100599204B1 (en) | Wire and radio data synchronization system for mobile environment and synchronization method using the same | |
WO2015163955A1 (en) | System and method for searching a distributed node-sharded graph | |
US8095495B2 (en) | Exchange of syncronization data and metadata | |
CN101102250A (en) | Distributed hashing mechanism for self-organizing networks | |
CN101771723A (en) | Data synchronization method | |
CN108681588A (en) | A kind of interface accesses real-time statistical method and system | |
CN107135266A (en) | HTTP Proxy framework safety data transmission method | |
CN109413040A (en) | Message authentication method, equipment, system and computer readable storage medium | |
Makris et al. | Efficient and adaptive discovery techniques of web services handling large data sets | |
CN101778131A (en) | Data synchronization system | |
US20030115243A1 (en) | Distributed process execution system and method | |
CN101789963A (en) | Data synchronization system | |
WO2017000592A1 (en) | Data processing method, apparatus and system | |
Priyadharshini et al. | A survey on semantic web service discovery methods | |
EP3304333A1 (en) | Local object instance discovery for metric collection on network elements | |
US11526516B2 (en) | Method, apparatus, device and storage medium for generating and processing a distributed graph database | |
CN116095081A (en) | Event processing method and device based on block chain system, equipment and medium | |
Rukkas et al. | Distributed datastores: Towards probabilistic approach for estimation of reliability |
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: 20181019 |