Summary of the invention
The embodiment of the present invention provides a kind of data monitoring method, device, electronic equipment and computer readable storage medium.
In a first aspect, providing a kind of data monitoring method in the embodiment of the present invention.
Specifically, the data monitoring method, comprising:
Calculate the current request digital pressure values at destination request end;
When the current request digital pressure values are greater than preset threshold, target corresponding with the destination request end is obtained
Request data;
Default prevention operation is executed to the destination request data.
With reference to first aspect, the embodiment of the present invention in the first implementation of first aspect, ask by the calculating target
Seek the current request digital pressure values at end, comprising:
Obtain the current request data volume at destination request end;
The maximum for obtaining destination request end can carry request data quantity;
It can carry request data quantity according to the current request data volume and maximum and the destination request end is calculated
Current request digital pressure values.
With reference to first aspect with the first implementation of first aspect, second in first aspect of the embodiment of the present invention
In implementation, it is described request data quantity can be carried according to the current request data volume and maximum the target is calculated ask
Seek the current request digital pressure values at end, comprising:
Calculate the current request data volume and the maximum quotient that can carry request data quantity;
The current request data volume and the maximum quotient that can carry request data quantity are determined as the destination request end
Current request digital pressure values.
With reference to first aspect, second of implementation of the first implementation of first aspect and first aspect, this hair
Bright embodiment is described to execute default prevention operation to the destination request data in the third implementation of first aspect,
Include:
Request prevention rate is calculated according to the current request digital pressure values at the destination request end;
The destination request data are executed according to the request prevention rate and prevent operation.
With reference to first aspect, the first implementation of first aspect, first aspect second of implementation and first
The third implementation of aspect, the embodiment of the present invention is in the 4th kind of implementation of first aspect, further includes:
Acquisition is prevented from requestor information;
It is prevented from requesting party's transmission prompt information to described.
Second aspect provides a kind of data monitoring device in the embodiment of the present invention.
Specifically, the data monitoring device, comprising:
Computing module is configured as calculating the current request digital pressure values at destination request end;
First obtains module, is configured as when the current request digital pressure values are greater than preset threshold, acquisition and institute
State the corresponding destination request data in destination request end;
Execution module is configured as executing the destination request data default prevention operation.
In conjunction with second aspect, the embodiment of the present invention is in the first implementation of second aspect, the computing module packet
It includes:
First acquisition submodule is configured as obtaining the current request data volume at destination request end;
Second acquisition submodule, the maximum for being configured as obtaining destination request end can carry request data quantity;
First computational submodule is configured as that request data meter can be carried according to the current request data volume and maximum
Calculation obtains the current request digital pressure values at the destination request end.
In conjunction with the first of second aspect and second aspect implementation, second in second aspect of the embodiment of the present invention
In implementation, first computational submodule includes:
Second computational submodule is configured as calculating the current request data volume and maximum can carry request data quantity
Quotient;
It determines submodule, is configured as the current request data volume and the maximum quotient that can carry request data quantity is true
It is set to the current request digital pressure values at the destination request end.
In conjunction with the first implementation of second aspect, second aspect and second of implementation of second aspect, this hair
In the third implementation of second aspect, the execution module includes: bright embodiment
Third computational submodule is configured as being calculated according to the current request digital pressure values at the destination request end
Request prevention rate;
Implementation sub-module is configured as executing prevention operation to the destination request data according to the request prevention rate.
In conjunction with the first implementation of second aspect, second aspect, second of implementation and second of second aspect
The third implementation of aspect, the embodiment of the present invention is in the 4th kind of implementation of second aspect, further includes:
Second obtains module, is configured as acquisition and is prevented from requestor information;
Sending module is configured as being prevented from requesting party's transmission prompt information to described.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including memory and processor, the memories
The computer instruction of data monitoring method in above-mentioned first aspect is executed for storing one or more support data monitoring device,
The processor is configured to for executing the computer instruction stored in the memory.The data monitoring device can be with
Including communication interface, for data monitoring device and other equipment or communication.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, and monitoring fills for storing data
Computer instruction used is set, it includes be involved by data monitoring device for executing data monitoring method in above-mentioned first aspect
And computer instruction.
Technical solution provided in an embodiment of the present invention can include the following benefits:
Above-mentioned technical proposal is targetedly right when the current request digital pressure values for detecting destination request end are larger
Prevention operation is carried out in destination request data volume corresponding with the destination request end, rather than all request datas are held
Row prevents operation.The technical solution can be avoided the case where appearance accidentally prevents operation, effectively increase other request target ends
Success rate is requested, the usage experience of user is improved, increases throughput of system.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The embodiment of the present invention can be limited.
Specific embodiment
Hereinafter, the illustrative embodiments of the embodiment of the present invention will be described in detail with reference to the attached drawings, so that art technology
Them are easily implemented in personnel.In addition, for the sake of clarity, being omitted in the accompanying drawings unrelated with description illustrative embodiments
Part.
In embodiments of the present invention, it should be appreciated that the term of " comprising " or " having " etc. is intended to refer in this specification
The presence of disclosed feature, number, step, behavior, component, part or combinations thereof, and be not intended to exclude it is one or more its
A possibility that his feature, number, step, behavior, component, part or combinations thereof exist or are added.
It also should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention
It can be combined with each other.Embodiment that the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Technical solution provided in an embodiment of the present invention is larger in the current request digital pressure values for detecting destination request end
When, prevention operation targetedly carried out for destination request data volume corresponding with the destination request end, rather than for
All request datas are performed both by prevention operation.The technical solution can be avoided the case where appearance accidentally prevents operation, effectively increase
The request success rate at other request target ends, improves the usage experience of user, increases throughput of system.
Fig. 1 shows the flow chart of data monitoring method according to an embodiment of the present invention, as shown in Figure 1, the data
Monitoring method includes the following steps S101-S103:
In step s101, the current request digital pressure values at destination request end are calculated;
In step s 102, when the current request digital pressure values are greater than preset threshold, acquisition is asked with the target
Seek the corresponding destination request data in end;
In step s 103, default prevention operation is executed to the destination request data.
Mentioned above, with the development of internet technology and the progress of science and technology, much operation relevant to fund all may be used
To be completed on intelligent devices by Third-party payment mechanism, such as: it pays, transfer accounts, credit card repayment, purchase finance product etc.
Deng.Since present Internet user's quantity is huge, if user, which concentrates, issues request, the target side of request, such as bank, just meet
Face huge data processing pressure, is also resulted in when serious and data jamming occur.In order to solve this problem, the prior art is real-time
The digital pressure values for monitoring request target end hinder all requesting parties when finding that pressure value is too big at random in proportion
Only operate.The program is able to solve request and concentrates the data jamming problem that may cause, and process flow is also fairly simple, but the party
The request at other request target ends that case also prevents pressure value not transfinite simultaneously, thereby reduces other request target ends
Success rate is requested, the usage experience of user is also weakened.
In view of drawbacks described above, in this embodiment, a kind of data monitoring method is proposed, this method is detecting target
The current request digital pressure values of request end are bigger, for example, be greater than preset threshold when, for corresponding with the destination request end
Destination request data execute it is default prevent operation, rather than prevention operation is performed both by for all request datas.The technical side
Case can be avoided the case where appearance accidentally prevents operation, effectively increases the request success rate at other request target ends, improves use
The usage experience at family, increases throughput of system.
Wherein, the request refers to being initiated by one end, and the request other end executes a certain or certain several operation requests,
In the present invention, the one end for initiating request is known as request end, receives and requests and execute one end of corresponding operating and be known as destination request
End.In real data system, request end and destination request end can be one-to-many relationship, but a certain item that request end issues
Specific request and destination request end are usually one-to-one relationship, for example, a certain user is request end, initiate a mesh
Be designated as the payment request of Construction Bank, then this payment request with Construction Bank be exactly it is one-to-one, the user is also later
The payment request that a target is Bank of China may be initiated, is also to correspond between this payment request and Bank of China
, but the same user can initiate multiple requests corresponding with multiple banks respectively, that is, between the user and destination request end
It can be one-to-many relationship.
Wherein, the request can for any possible type, have any possible format, carry it is any suitable
Content, for the specific manifestation form of request, the present invention is not particularly limited.
Wherein, the request data pressure value is used to characterize the data processing busy extent at destination request end, works as number of request
When excessive according to pressure value, for example it is greater than a certain preset threshold, the data jamming for just illustrating that destination request end is faced is very risky,
It needs to take certain control measure.
Wherein, the preset threshold can be determined according to the needs of practical application, and the present invention is not especially limited it,
For example, the data-handling capacity at destination request end, data processing speed, data reaction time, history processing energy can be comprehensively considered
Power etc. because usually determining, moreover, can also variation according to the actual situation, the variation of Consideration the preset threshold is carried out it is real
When or adjustment according to sometime frequency.
In an optional implementation of the present embodiment, the default prevention operation can be break-in operation, can also be with
To delay to operate, naturally it is also possible to the prevention operation of other forms is shown as, as long as prevention operation can play prevention and ask
The purpose of data is sought, the present invention is not especially limited it.
In an optional implementation of the present embodiment, as shown in Fig. 2, the step S101, i.e., the described calculating target
The step of current request digital pressure values of request end includes step S201-S203:
In step s 201, the current request data volume at destination request end is obtained;
In step S202, the maximum for obtaining destination request end can carry request data quantity;
In step S203, according to the current request data volume and maximum can carry request data quantity be calculated it is described
The current request digital pressure values at destination request end.
In this embodiment, request data can be carried by obtaining the current request data volume at destination request end and maximum first
Then currently asking for the destination request end is calculated according to current request data volume and the maximum request data quantity that can carry in amount
Seek digital pressure values.The data processing pressure that the destination request end is faced can be accurately determined in this way, grasped for subsequent prevention
The implementation of work provides decision support.
Wherein, the current request data volume at the destination request end refers to that the destination request end received at present asks
Data volume is sought, the maximum at the destination request end can carry request data quantity for characterizing the data processing at the destination request end
Ability to bear.
In an optional implementation of the present embodiment, as shown in figure 3, the step S203, i.e., described according to
Current request data volume and maximum can carry the current request data pressure that the destination request end is calculated in request data quantity
The step of value, includes the following steps S301-S302:
In step S301, the current request data volume and the maximum quotient that can carry request data quantity are calculated;
In step s 302, the current request data volume and the maximum quotient that can carry request data quantity are determined as institute
State the current request digital pressure values at destination request end.
In this embodiment, the current request data volume at the destination request end and maximum can be carried into request data quantity
Current request digital pressure values of the quotient as the destination request end.For example, if the current request at a certain destination request end
Data volume is 8000 yuan/second, and it is 10000 yuan/second that its maximum, which can carry request data quantity, then destination request end currently asks
Seeking digital pressure values is 8000/10000=0.8, also interchangeable to make percents 80%.
In an optional implementation of the present embodiment, as shown in figure 4, the step S103, i.e., described to the mesh
It marks request data and executes default the step of preventing operation, including step S401-S402:
In step S401, request is calculated according to the current request digital pressure values at the destination request end and prevents
Rate;
In step S402, the destination request data are executed according to the request prevention rate and prevent operation.
Mentioned above, the current request digital pressure values at the destination request end can characterize at the data at destination request end
Manage busy extent, therefore in this embodiment, calculated using the current request digital pressure values at destination request end with it is described
The corresponding destination request data in destination request end are prevented from ratio, i.e. request prevention rate.
For example, the current request digital pressure values at a certain destination request end are 80%, there are also 20% destination requests for this explanation
End has just reached its highest processing upper limit, and the risk of data processing is larger, if the preset threshold is set as 50%, 80% is greater than
50%, then just needing destination request data corresponding for the destination request end to implement to prevent strategy at this time.In the present embodiment
An optional implementation in, can be used: 1- current request digital pressure values obtain request prevention rate, for example, when described
When the current request digital pressure values at destination request end are 80%, corresponding request prevention rate is 20%.Certainly, in practical application
In, other modes can also be used and carry out computation requests prevention rate, the present invention is not especially limited it.
In an optional implementation of the present embodiment, the method also includes to be prevented from requesting party send prompt letter
The step of breath, as shown in figure 5, the method includes the steps S501-S505:
In step S501, the current request digital pressure values at destination request end are calculated;
In step S502, when the current request digital pressure values are greater than preset threshold, acquisition is asked with the target
Seek the corresponding destination request data in end;
In step S503, default prevention operation is executed to the destination request data;
In step S504, acquisition is prevented from requestor information;
In step S505, it is prevented from requesting party's transmission prompt information to described.
In this embodiment, after certain requests of request end are prevented from, in order to guarantee the usage experience of user, also
Prompt information is sent to the requesting party being prevented from, so that the reason of request is prevented from is illustrated in it.
Wherein, the prompt information such as can be with are as follows: the busy prompt information of system reattempts to again after asking a period of time
Information, in this regard, the present invention is not especially limited.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.
Fig. 6 shows the structural block diagram of data monitoring device according to an embodiment of the present invention, which can be by soft
Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in fig. 6, the data monitoring dress
It sets and includes:
Computing module 601 is configured as calculating the current request digital pressure values at destination request end;
First obtain module 602, be configured as when the current request digital pressure values be greater than preset threshold when, obtain with
The corresponding destination request data in the destination request end;
Execution module 603 is configured as executing the destination request data default prevention operation.
Mentioned above, with the development of internet technology and the progress of science and technology, much operation relevant to fund all may be used
To be completed on intelligent devices by Third-party payment mechanism, such as: it pays, transfer accounts, credit card repayment, purchase finance product etc.
Deng.Since present Internet user's quantity is huge, if user, which concentrates, issues request, the target side of request, such as bank, just meet
Face huge data processing pressure, is also resulted in when serious and data jamming occur.In order to solve this problem, the prior art is real-time
The digital pressure values for monitoring request target end hinder all requesting parties when finding that pressure value is too big at random in proportion
Only operate.The program is able to solve request and concentrates the data jamming problem that may cause, and process flow is also fairly simple, but the party
The request at other request target ends that case also prevents pressure value not transfinite simultaneously, thereby reduces other request target ends
Success rate is requested, the usage experience of user is also weakened.
In view of drawbacks described above, in this embodiment, a kind of data monitoring device is proposed, the device is in computing module
601 be calculated destination request end current request digital pressure values it is bigger, such as be greater than preset threshold when, execution module
603, which obtain the destination request data corresponding with the destination request end that module 602 obtains for first, executes default prevention behaviour
Make, rather than prevention operation is performed both by for all request datas.The technical solution can be avoided the feelings for occurring accidentally preventing operation
Condition effectively increases the request success rate at other request target ends, improves the usage experience of user, increase system throughput
Amount.
Wherein, the request refers to being initiated by one end, and the request other end executes a certain or certain several operation requests,
In the present invention, the one end for initiating request is known as request end, receives and requests and execute one end of corresponding operating and be known as destination request
End.In real data system, request end and destination request end can be one-to-many relationship, but a certain item that request end issues
Specific request and destination request end are usually one-to-one relationship, for example, a certain user is request end, initiate a mesh
Be designated as the payment request of Construction Bank, then this payment request with Construction Bank be exactly it is one-to-one, the user is also later
The payment request that a target is Bank of China may be initiated, is also to correspond between this payment request and Bank of China
, but the same user can initiate multiple requests corresponding with multiple banks respectively, that is, between the user and destination request end
It can be one-to-many relationship.
Wherein, the request can for any possible type, have any possible format, carry it is any suitable
Content, for the specific manifestation form of request, the present invention is not particularly limited.
Wherein, the request data pressure value is used to characterize the data processing busy extent at destination request end, works as number of request
When excessive according to pressure value, for example it is greater than a certain preset threshold, the data jamming for just illustrating that destination request end is faced is very risky,
It needs to take certain control measure.
Wherein, the preset threshold can be determined according to the needs of practical application, and the present invention is not especially limited it,
For example, the data-handling capacity at destination request end, data processing speed, data reaction time, history processing energy can be comprehensively considered
Power etc. because usually determining, moreover, can also variation according to the actual situation, the variation of Consideration the preset threshold is carried out it is real
When or adjustment according to sometime frequency.
In an optional implementation of the present embodiment, the default prevention operation can be break-in operation, can also be with
To delay to operate, naturally it is also possible to the prevention operation of other forms is shown as, as long as prevention operation can play prevention and ask
The purpose of data is sought, the present invention is not especially limited it.
In an optional implementation of the present embodiment, as shown in fig. 7, the computing module 601 includes:
First acquisition submodule 701 is configured as obtaining the current request data volume at destination request end;
Second acquisition submodule 702, the maximum for being configured as obtaining destination request end can carry request data quantity;
First computational submodule 703 is configured as that request data can be carried according to the current request data volume and maximum
The current request digital pressure values at the destination request end are calculated in amount.
In this embodiment, the first acquisition submodule 701 and the second acquisition submodule 702 obtain destination request end respectively
Current request data volume and maximum can carry request data quantity, the first computational submodule 703 according to current request data volume and
Maximum can carry the current request digital pressure values that the destination request end is calculated in request data quantity.It in this way can accurately really
The data processing pressure that the fixed destination request end is faced provides decision support for the subsequent implementation for preventing operation.
Wherein, the current request data volume at the destination request end refers to that the destination request end received at present asks
Data volume is sought, the maximum at the destination request end can carry request data quantity for characterizing the data processing at the destination request end
Ability to bear.
In an optional implementation of the present embodiment, as shown in figure 8, first computational submodule 703 includes:
Second computational submodule 801, request data can be carried by being configured as calculating the current request data volume and maximum
The quotient of amount;
It determines submodule 802, is configured as the current request data volume and the maximum quotient that can carry request data quantity
Value is determined as the current request digital pressure values at the destination request end.
In this embodiment, the current request data volume at the destination request end and maximum can be carried into request data quantity
Current request digital pressure values of the quotient as the destination request end.For example, if the current request at a certain destination request end
Data volume is 8000 yuan/second, and it is 10000 yuan/second that its maximum, which can carry request data quantity, then destination request end currently asks
Seeking digital pressure values is 8000/10000=0.8, also interchangeable to make percents 80%.
In an optional implementation of the present embodiment, as shown in figure 9, the execution module 603 includes:
Third computational submodule 901 is configured as being calculated according to the current request digital pressure values at the destination request end
Obtain request prevention rate;
Implementation sub-module 902 is configured as executing prevention behaviour to the destination request data according to the request prevention rate
Make.
Mentioned above, the current request digital pressure values at the destination request end can characterize at the data at destination request end
Manage busy extent, therefore in this embodiment, calculated using the current request digital pressure values at destination request end with it is described
The corresponding destination request data in destination request end are prevented from ratio, i.e. request prevention rate.
For example, the current request digital pressure values at a certain destination request end are 80%, there are also 20% destination requests for this explanation
End has just reached its highest processing upper limit, and the risk of data processing is larger, if the preset threshold is set as 50%, 80% is greater than
50%, then just needing destination request data corresponding for the destination request end to implement to prevent strategy at this time.In the present embodiment
An optional implementation in, can be used: 1- current request digital pressure values obtain request prevention rate, for example, when described
When the current request digital pressure values at destination request end are 80%, corresponding request prevention rate is 20%.Certainly, in practical application
In, other modes can also be used and carry out computation requests prevention rate, the present invention is not especially limited it.
In an optional implementation of the present embodiment, described device further include to be prevented from requesting party send prompt letter
The part of breath, as shown in Figure 10, described device includes:
Computing module 1001 is configured as calculating the current request digital pressure values at destination request end;
First obtains module 1002, is configured as obtaining when the current request digital pressure values are greater than preset threshold
Destination request data corresponding with the destination request end;
Execution module 1003 is configured as executing the destination request data default prevention operation;
Second obtains module 1004, is configured as acquisition and is prevented from requestor information;
Sending module 1005 is configured as being prevented from requesting party's transmission prompt information to described.
In this embodiment, after certain requests of request end are prevented from, in order to guarantee the usage experience of user, also
Prompt information is sent to the requesting party being prevented from, so that the reason of request is prevented from is illustrated in it.
Wherein, the prompt information such as can be with are as follows: the busy prompt information of system reattempts to again after asking a period of time
Information, in this regard, the present invention is not especially limited.
The embodiment of the invention also discloses a kind of electronic equipment, Figure 11 shows electronics according to an embodiment of the present invention and sets
Standby structural block diagram, as shown in figure 11, the electronic equipment 1100 include memory 1101 and processor 1102;Wherein,
The memory 1101 is for storing one or more computer instruction, wherein one or more computer
Instruction is executed by the processor 1102 to realize any of the above-described method and step.
Figure 12 is suitable for being used to realizing that the structure of the computer system of the data monitoring method of embodiment according to the present invention is shown
It is intended to.
As shown in figure 12, computer system 1200 include central processing unit (CPU) 1201, can according to be stored in only
It reads the program in memory (ROM) 1202 or is loaded into random access storage device (RAM) 1203 from storage section 1208
Program and execute the various processing in above embodiment.In RAM1203, be also stored with system 1200 operate it is required various
Program and data.CPU1201, ROM1202 and RAM1203 are connected with each other by bus 1204.Input/output (I/O) interface
1205 are also connected to bus 1204.
I/O interface 1205 is connected to lower component: the importation 1206 including keyboard, mouse etc.;Including such as cathode
The output par, c 1207 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1208;And the communications portion 1209 of the network interface card including LAN card, modem etc..Communications portion 1209 passes through
Communication process is executed by the network of such as internet.Driver 1210 is also connected to I/O interface 1205 as needed.It is detachable to be situated between
Matter 1211, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1210, so as to
In being mounted into storage section 1208 as needed from the computer program read thereon.
Particularly, embodiment according to the present invention, method as described above may be implemented as computer software programs.
For example, embodiments of the present invention include a kind of computer program product comprising be tangibly embodied in and its readable medium on
Computer program, the computer program includes program code for executing the data monitoring method.In such reality
It applies in mode, which can be downloaded and installed from network by communications portion 1209, and/or is situated between from detachable
Matter 1211 is mounted.
Flow chart and block diagram in attached drawing illustrate system, method and computer according to the various embodiments of the present invention
The architecture, function and operation in the cards of program product.In this regard, each box in course diagram or block diagram can be with
A part of a module, section or code is represented, a part of the module, section or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in embodiment of the present invention can be realized by way of software, can also
It is realized in a manner of through hardware.Described unit or module also can be set in the processor, these units or module
Title do not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, the embodiment of the invention also provides a kind of computer readable storage mediums, this is computer-readable
Storage medium can be computer readable storage medium included in device described in above embodiment;It is also possible to individually
In the presence of without the computer readable storage medium in supplying equipment.Computer-readable recording medium storage has one or one
Procedure above, described program are used to execute the method for being described in the embodiment of the present invention by one or more than one processor.
Above description is only presently preferred embodiments of the present invention and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the embodiment of the present invention, however it is not limited to which the specific combination of above-mentioned technical characteristic forms
Technical solution, while should also cover in the case where not departing from the inventive concept, by above-mentioned technical characteristic or its equivalent spy
Levy the other technical solutions for carrying out any combination and being formed.Such as features described above with it is (but unlimited disclosed in the embodiment of the present invention
In) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.