CN111193760B - Information sending method, device and storage medium - Google Patents

Information sending method, device and storage medium Download PDF

Info

Publication number
CN111193760B
CN111193760B CN201910650316.8A CN201910650316A CN111193760B CN 111193760 B CN111193760 B CN 111193760B CN 201910650316 A CN201910650316 A CN 201910650316A CN 111193760 B CN111193760 B CN 111193760B
Authority
CN
China
Prior art keywords
information
access
access request
sending
information system
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.)
Active
Application number
CN201910650316.8A
Other languages
Chinese (zh)
Other versions
CN111193760A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910650316.8A priority Critical patent/CN111193760B/en
Publication of CN111193760A publication Critical patent/CN111193760A/en
Application granted granted Critical
Publication of CN111193760B publication Critical patent/CN111193760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses an information sending method, an information sending device and a storage medium, wherein first access request information is sent to a second information system in a first information sending period; receiving response information of the second information system; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing a second information system in a second information sending period according to the first access passing index; and when receiving the second access request information in the second information sending period, sending the second access request information to a second information system according to the adjusted second access passing index. According to the scheme, the first information system can limit the current of the access request information of the next period according to the response information of the second information system, and the problem that the performance of the first information system is influenced due to the fact that the second information system breaks down can be avoided, so that the performance of the first information system is improved.

Description

Information sending method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information sending method, an information sending apparatus, and a storage medium.
Background
In internet services, when request information is processed, a plurality of systems often need to be requested inside, for example, after the system a receives the request information, the request information is sent to the system B, for example, to a second information system such as a third party system, and information corresponding to the request information is acquired through the system B.
The system A and the system B are two independent systems, the system B is transparent and uncontrollable to the system A, and the system A is usually used as a transfer to send all request information to the system B. When the system B fails, the system a still sends all request information to the system B, which may cause the timeout of the internal request of the system a, resulting in an increase of the local queue, thereby affecting the performance of the system a.
Disclosure of Invention
The embodiment of the application provides an information sending method, an information sending device and a storage medium, which can improve the performance of a system.
In one aspect, an embodiment of the present application provides an information sending method, where the method is applied to a first information system, and the method includes:
transmitting first access request information to a second information system in a first information transmission period;
receiving response information of the second information system for the first access request information;
calculating a first access passing index for accessing the second information system in the first information sending period based on the response information;
adjusting a second access passing index for accessing the second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period;
and when second access request information sent by an access terminal is received in the second information sending period, sending the second access request information to the second information system according to the adjusted second access passing index.
Correspondingly, an embodiment of the present application further provides an information sending apparatus, where the apparatus includes a first information system, and the apparatus includes:
a first sending unit, configured to send first access request information to a second information system in a first information sending period;
a first receiving unit, configured to receive response information of the second information system for the first access request information;
a calculation unit configured to calculate a first access passing index for accessing the second information system in the first information transmission period based on the response information;
an adjusting unit, configured to adjust a second access passing indicator that accesses the second information system in a second information sending period according to the first access passing indicator, to obtain an adjusted second access passing indicator, where the second information sending period is a next information sending period of the first information sending period;
and a second sending unit, configured to, when second access request information sent by an access terminal is received in the second information sending period, send the second access request information to the second information system according to the adjusted second access passing indicator.
In some embodiments, the second transmitting unit comprises:
the first determining subunit is configured to determine, according to the adjusted second access passing indicator and the information quantity of the second access request information received at the current time, a target quantity of information to be sent to the second information system;
the selecting subunit is used for selecting target access request information from the received second access request information according to the target number of the information to be sent;
and the sending subunit is configured to send the target access request information to the second information system.
In some embodiments, the adjusting unit includes:
a second determining subunit configured to determine, based on the first access passing indicator, an information processing state of the second information system in the first information transmission period;
a third determining subunit, configured to determine, when the information processing state of the second information system is in an abnormal state, the number of cycles in which the second information system is continuously in the abnormal state;
and the first adjusting subunit is configured to adjust the second access passing indicator of the second information system according to the number of cycles to obtain the adjusted second access passing indicator.
In some embodiments, the first adjusting subunit is specifically configured to:
estimating a second access passing index pre-estimated in the second information sending period according to the period number;
comparing the estimated second access passing index with a preset access passing index to obtain a comparison result;
determining the estimated second access passing indicator as the adjusted second access passing indicator based on the comparison result.
In some embodiments, the adjusting subunit is further specifically configured to:
determining the power of a preset base number according to the number of the periods;
and determining a second access passing index pre-estimated in the second information sending period according to the preset base number and the power.
In some embodiments, the adjusting unit further comprises:
an obtaining subunit, configured to obtain a second access passing indicator of the first information sending period when an information processing state of the second information system is in a normal state;
and the second adjusting subunit is configured to adjust the second access passing indicator of the second information system according to the second access passing indicator of the first information sending period, so as to obtain the adjusted second access passing indicator.
In some embodiments, the first access passing indicator includes an access failure rate, and the second determining subunit is specifically configured to:
determining whether the access failure rate is greater than a preset threshold;
if the second information system is larger than the preset threshold, determining that the second information system is in an abnormal state in the first information sending period;
and if the second information system is not larger than the preset threshold, determining that the second information system is in a normal state in the first information sending period.
In some embodiments, the second sending unit is specifically configured to:
when second access request information sent by an access terminal is received in the second information sending period, determining whether response information corresponding to the second access request information exists in a local storage;
if the corresponding response information does not exist, sending the second access request information to the second information system according to the adjusted second access passing index;
after determining whether the local storage stores response information corresponding to the second access request information, the method further includes:
and if the corresponding response information exists, directly sending the corresponding response information to the access terminal.
In some embodiments, the apparatus further comprises:
a second receiving unit, configured to receive response information corresponding to the second access request information from the second information system;
a determining unit, configured to determine whether response information corresponding to the second request information is a normal result;
and the storage unit is used for storing the response information corresponding to the second request information into the local storage and sending the response result corresponding to the second request information to the access terminal, wherein the response result corresponding to the second request information is a normal result.
On the other hand, an information sending device is further provided, and includes a memory and a processor, where the memory stores a computer program, and the processor executes any of the information sending methods provided in the embodiments of the present application when calling the computer program in the memory.
On the other hand, the embodiment of the present application further provides a storage medium, where a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to execute any one of the information sending methods provided in the embodiment of the present application.
In the first information system in the embodiment of the application, first access request information is sent to a second information system in a first information sending period; receiving response information of a second information system aiming at the first access request information; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing a second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by the access terminal is received in a second information sending period, sending the second access request information to a second information system according to the adjusted second access passing index. According to the scheme, the first information system can limit the current of the access request information of the next period according to the response information of the second information system, and the problem that the performance of the first information system is influenced due to the fact that the second information system breaks down can be avoided, so that the performance of the first information system is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an information sending method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an information sending method according to an embodiment of the present application;
fig. 3 is a graph of a throughput rate of an information sending method according to an embodiment of the present application;
fig. 4 is a schematic view of another application scenario of the information sending method according to the embodiment of the present application;
fig. 5 is another schematic flow chart of an information sending method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating an implementation of an information sending method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an information sending apparatus according to an embodiment of the present application;
fig. 8 is another schematic structural diagram of an information transmitting apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application provide an information sending method, an information sending apparatus, and a storage medium, where the information sending apparatus may be integrated in an information system, and the information system may be a server.
In some embodiments, the information sending method provided in the embodiments of the present application may be used for controlling a sending rate of the access request information by the first information system, so as to avoid a problem that performance of the first system is affected due to a failure of the second information system, and improve performance of the first information system, where the first information system may be an upstream system of the second information system, that is, the first information system may send the access request information to the second information system.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of the information sending method of the present application, including an access terminal, a first information system and a second information system, where the first information system may include an overload protection module, where the overload protection module is configured to filter received access request information. The specific scheme can be as follows:
the first information system sends first access request information to a second information system in a first information sending period, the second information system generates corresponding response information aiming at the first access request information and returns the response information to the first information system, then the first information system carries out statistics on the response information and determines a first access passing index in the first information sending period, wherein the first access passing index can be the access failure rate of the access request information sent in the first information sending period.
And then the first information system adjusts the second access passing index according to the first access passing index to determine a second access passing index in a second access period, wherein the second access passing index can be an access passing rate in a second information sending period, and the second information sending period is the next information sending period of the first information sending period.
When the first information sending system receives the second access request information sent by the access terminal in the second information sending period, the overload module can determine whether to send the received second access request information to the second information system according to the second access passing index in the second information sending period.
Specifically, the first information sending system may determine the state of the second information system in the first information access period according to the access failure rate of the access request information in the first information sending period, and when the state of the second information system is determined to be an abnormal state, determine whether to send the second access request information to the second information system according to the calculated access passing rate in the second information sending period, so that the first information system may limit the access request information, reduce the passing rate of the access request information to the second information system, and thereby may reduce the problem that the performance of the first system is affected due to the failure of the second information system.
Referring to fig. 2, the embodiment will be described from the perspective of an information sending apparatus, where the information sending apparatus may be a first information system, the first information system may include a plurality of servers, and a specific flow of the information sending method may be as follows:
201. and sending the first access request information to the second information system in the first information sending period.
In this embodiment, the second information sending system may be a downstream system of the information sending apparatus (second information system), that is, the information sending apparatus may send information to the second information sending system, where the downstream system may be a third-party system, and the third-party system may also have a plurality of servers.
The first access request information may be generated by a user by triggering the access terminal, and then the access terminal transmits the first access request information to the information transmitting apparatus, and if the information transmitting apparatus receives the access request information in the first information transmission period, the information transmitting apparatus transmits the first access request information to the second information system in the first information transmission period. In some embodiments, the first access request information is information that the user requests to search, for example, the information is "Andy".
In some embodiments, the information sending period may be a period of sending the access request information, for example, sending 1000 access request information to the second information system is one information sending period; at this time, when the number of access request messages transmitted by the information transmission system exceeds 1000, a new cycle needs to be started at this time.
In other embodiments, the information transmission period may be a time period, for example, the information transmission system may have a time duration of 1 second as one information transmission period.
202. Response information of the second information system to the first access request information is received.
After the second information system receives the access request information sent by the information sending device, the second information system generates response information according to the access request information.
In this embodiment, the response information is a sum of response information corresponding to each first access request information received by the second information system in the first information sending period.
In some embodiments, in a case where the information processing status of the server in the second information system that processes the first access request information is in a normal status, the second information system will generate normal response information, for example, if the access request information is "Andy", the corresponding information will return information related to Andy, for example, news information that the data information is the latest news information.
If the information processing state of the server in the second information system that processes the access request information is in an abnormal state, the second information system generates abnormal response information, such as timeout information or system internal error information.
When the second information system generates response information according to the access request information, the response information is returned to the information sending device, and the information sending device records the state of the received response information.
203. A first access passing index for accessing the second information system in the first information transmission period is calculated based on the response information.
When the information transmitting apparatus receives the response information, it counts the response information and returns the response information to the access terminal.
In some embodiments, the information sending device may determine whether the response information is normal information according to a return code agreed with the second information system in the response information, for example, the normal response information carries "1", and the abnormal response information carries "0".
After the information sending apparatus receives all the response information corresponding to the second information sending period, a first access passing index in the first information sending period is calculated according to the state of the received response information of the first information sending period, where the second access passing index may be an access failure rate, an access success rate, or the like, and is not limited herein.
Taking the access failure rate as an example, the access failure rate of the first information transmission period is equal to the number of abnormal response information in the first information transmission period (request failure number)/the total number of response information in the first information transmission period (request total number).
204. And adjusting a second access passing index for accessing a second information system in a second information sending period according to the first access passing index to obtain the adjusted second access passing index.
Wherein, the second information sending period is the next information sending period of the first information sending period.
In some embodiments, adjusting a second access passing indicator for accessing a second information system in a second information sending period according to the first access passing indicator to obtain the adjusted second access passing indicator includes:
a. the information processing state of the second information system in the first information transmission period is determined based on the first access passing indicator.
Wherein the first access passing rate comprises a failure rate of the first information system transmitting the access request information to the second information system in the first information transmission period.
Specifically, the method comprises the following steps: determining whether the access failure rate is greater than a preset threshold; if the second information system is larger than the preset threshold, determining that the second information system is in an abnormal state in the first information sending period; and if the second information system is not larger than the preset threshold, determining that the second information system is in a normal state in the first information sending period.
For example, it is determined whether the access failure rate is greater than a preset threshold, where the preset threshold may be 10%, and may also be set to other values, which is not limited herein. If the access failure rate is greater than the preset threshold, it indicates that the second information system is in an abnormal state, and if the access failure rate is not greater than the preset threshold, it indicates that the second information system is in a normal state.
That is, the information sending apparatus in the embodiment of the present application may determine the information processing state of the second information system through the response information fed back by the second information system.
b. And when the information processing state of the second information system is in an abnormal state, determining the number of the cycles of the second information system which are continuously in the abnormal state.
That is, when the second information system is judged to be in an abnormal state in the first information sending period, at this time, the number of consecutive abnormal periods of the second information system needs to be acquired.
c. And adjusting the second access passing index of the second information system according to the period number to obtain the adjusted second access passing index.
In some embodiments, the method specifically comprises:
1. and estimating a second access passing index pre-estimated in the second information sending period according to the period number.
In some embodiments, the power of the preset base number may be determined from the number of cycles; and then determining a second access passing index estimated in the second information sending period according to the preset base number and the power.
In a specific embodiment, the preset base number may be 5, and then the estimated second access passing indicator of the second information sending period is determined according to the preset base number and the power, and may be the estimated second access passing indicator determined according to a first preset rule and the number of the periods, where the first preset rule may be a current limiting formula, for example: 1/5nAnd y is a second access passing index, and n is the number of the continuous abnormal cycles of the second information system.
In some embodiments, the second access passing indicator may be an access passing rate, where when n is 1, y is 20%, and when n is 2, y is 4%, that is, as the number of consecutive cycles of the second information system in the abnormal state increases, the access passing rate decreases, and the access to the second information system may be limited, and at this time, the processing pressure of the second information system may be gradually relieved, which is beneficial to recovery of the second information system.
In addition, the second access passing index may also be an access failure rate, which is not limited herein.
2. And comparing the estimated second access passing index with a preset access passing index to obtain a comparison result.
It should be noted that the access amount of the information transmission apparatus to the second information system cannot be reduced to 0, and if no access request information accesses the second information system, the information transmission apparatus cannot judge the current state of the second information system. The present embodiment may configure, according to specific service setting parameters, a minimum access rate (i.e. a preset access rate index) of the information sending apparatus accessing the second information system, for example, a minimum access proportion is 0.3%, where a curve of the access rate may be as shown in fig. 3.
Specifically, in some embodiments, when the second access passing index is the access passing rate, the estimated access passing rate and the minimum access passing rate are determined to obtain a determination result.
3. Determining the estimated second access passing indicator as the adjusted second access passing indicator based on the comparison result.
In some embodiments, if the estimated access passing rate is smaller than the minimum access passing rate, the minimum access passing rate is determined as the access passing rate of the second information sending period, that is, the adjusted second access passing indicator is determined.
In some other embodiments, adjusting a second access passing indicator for accessing the second information system in the second information sending period according to the first access passing indicator to obtain an adjusted second access passing indicator, further includes:
a. when the information processing state of the second information system is in a normal state, acquiring a second access passing index of the first information sending period;
b. and adjusting the second access passing index of the second information system according to the second access passing index of the first information sending period to obtain the adjusted second access passing index.
That is, when the second information system status is normal in the second information transmission period, the access passing rate of the second information transmission period may be adjusted upward, and specifically, may be adjusted according to a first preset rule (e.g., y is 1/5)n) And calculating the continuous abnormal cycle number of the second information system corresponding to the first information sending cycle by the access passing rate of the first information sending cycle, namely knowing the access passing rate y in the first information sending cycle, calculating the cycle number n of the first information sending cycle, then subtracting one from the cycle number to obtain new n, then substituting the new n into the first preset rule, and calculating the access passing rate corresponding to the second information sending cycle, so that the access amount of the information sending device to the second information system can be gradually increased, and the impact on the second information system caused by one-time recovery is avoided.
If the access passing rate corresponding to the first information transmission cycle is 100%, the access passing rate corresponding to the second information transmission cycle is also 100% at this time, and the access passing rate is 100% at most.
Similarly, when the information processing state of the second information system is in an abnormal state, the access passing rate of the first information sending period can be obtained, then the number of continuous abnormal periods of the second information system corresponding to the first information sending period is calculated according to the preset rule and the access passing rate of the first information sending period, then one is added on the basis of the calculated number of periods to obtain new n, the new n is substituted into the first preset rule, the access passing rate of the second information sending period is calculated, and the access amount to the second information system is gradually reduced.
For example: access passing rate y if the first information transmission period1Is 4%, according to a first preset rule y1=1/5nIt can be known that if n is 2, then new n is 2+1 — 3, that is, the number of consecutive cycles in the second information sending cycle in which the state of the second information system is abnormal is 3, and at this time, the access passing rate corresponding to the second information sending cycle is calculated according to the first preset rule: y is2=1/53=0.8%。
205. And when second access request information sent by the access terminal is received in the second information sending period, sending the second access request information to the second information system according to the adjusted second access passing index.
When the second access passing index is the access passing rate, and at this time, when the access request information is received in the second information sending period, the overload module determines whether to send the received access request information to the second information system according to the adjusted access passing rate, that is, the access request is limited according to the access passing rate.
In some embodiments, sending the second access request message to the second information system according to the adjusted second access passing indicator includes:
determining the target number of information to be sent to the second information system according to the adjusted second access passing index and the information number of the second access request information received at the current time; selecting target access request information from the received second access request information according to the target number of the information to be sent; and sending the target access request information to the second information system.
For example, if the access passing rate corresponding to the adjusted second information sending period is 20%, and the number of pieces of information of the second access request information that has been received at the current time and has not been processed is 1000, then the calculated target number is 200, and at this time, the information sending apparatus arbitrarily selects 200 pieces of information from the 1000 pieces of second access request information to be processed as the target access request information, and then sends the selected target access request information to the second information system.
In some other embodiments, sending the access request message received in the second message sending period to the second message system according to the second access passing indicator of the second message sending period includes: determining a sending strategy of the second information sending period according to a second access passing index of the second information sending period; and sending the access request information received in the second information sending period to the second information system according to the sending strategy.
In some embodiments, the sending policy is generated according to the access passing rate, for example, if the access passing rate is 20%, then the sending policy may be: in the second information sending period, every 5 access request information are received, one access request information is allowed to pass, for example, the 5 th access request information is allowed to pass, that is, the 5 th access request information is sent to the second information system, and the received 1 st to 4 th access request information is directly rejected.
Referring to fig. 4, in some embodiments, the first information system in the embodiments of the present application further includes a local storage (Cache), and when second access request information sent by the access terminal is received in a second information sending period, sending the second access request information to the second information system according to the adjusted second access passing indicator, where the sending includes: when second access request information is received in the second information sending period, determining whether response information corresponding to the access request information received in the second information sending period exists in a local storage; and if the corresponding response information does not exist, sending the access request information received in the second information sending period to the second information system according to the second access passing index of the second information sending period.
And if the corresponding response information exists, directly sending the corresponding response information to the access terminal.
That is, in this embodiment, when receiving the second access request information in the second information transmission cycle, in order to relieve the pressure of the second information system, first, it is searched whether response information corresponding to the access request information exists in the local storage, if so, the response information is directly returned to the access terminal, and if not, it is determined whether to transmit the access request information to the second information system according to the access passing rate corresponding to the second information transmission cycle.
In order to ensure timeliness of the information and reduce the pressure of the local storage, the response information cached in the local storage is invalidated after a certain time, for example, after 5 minutes of storage.
In some embodiments, after sending the second access request message to the second information system according to the adjusted second access passing indicator, the method further includes: receiving response information corresponding to the second access request information by the second information system; determining whether the response information corresponding to the second request information is a normal result; and if the result is a normal result, storing the response information corresponding to the second request information to a local storage, sending the response result corresponding to the second request information to the access terminal, and if the result is not a normal result, directly returning access failure information to the access terminal.
It should be noted that, when the information sending apparatus restricts the flow of the request for accessing the second information system, the request for accessing the second information system is rapidly reduced, and for the service with low flow, the second information system is recovered, because the information sending apparatus cannot adjust the access ratio in time due to insufficient statistics, the present embodiment may increase the statistical frequency after restricting a certain ratio, for example, when only 1% of the requests are available for accessing the second information system, the period of the information sending apparatus for determining the state of the second information system is adjusted from sending 1000 times to sending 100 times, so as to prevent the access throughput rate recovery speed from being slow due to insufficient request amount.
In other embodiments, when it is determined that the second information system is in a normal state based on the response information in the first information transmission period, all the access request information received may be transmitted to the second information system at this time.
In the first information system in the embodiment of the application, first access request information is sent to a second information system in a first information sending period; receiving response information of a second information system aiming at the first access request information; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing a second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by the access terminal is received in a second information sending period, sending the second access request information to a second information system according to the adjusted second access passing index. According to the scheme, the first information system can limit the current of the access request information of the next period according to the response information of the second information system, filter the received access request information, directly reject the filtered access request information, and only send the access request information which is not filtered to the second information system, so that the problems that the performance of the first information system is influenced due to the fact that a local queue is increased because the internal request of the first information system is overtime because the second information system breaks down can be avoided, the performance of the first information system is improved, and the performance recovery of the second information system is facilitated.
In addition, the embodiment can utilize the existing access request information to perform detection and statistics, does not need separate traffic to detect the traffic of the second information system, and can reduce the load of the second information system.
The method described in the previous embodiment is further illustrated below by way of example.
In this embodiment, taking an information sending apparatus (a first information system) as a system a and a second information system as a system B as an example for description, please refer to fig. 5, another information sending method provided in this application includes the following specific processes:
501. the access terminal transmits first access request information to the A system in a first information transmission period.
When receiving an access request from a user, an access terminal (e.g., a terminal such as a mobile phone or a computer) sends access request information to the system a.
For example, the user searches for "Andy" in the mobile phone client, and at this time, the a system receives the access request information including "Andy".
In this embodiment, the first access request information is the access request information processed by the system a in the first information transmission period.
In some embodiments, the information sending period may take the sending number of the access request information as a period, for example, sending 1000 access request information to the second information system is one information sending period; at this time, when the number of access request messages transmitted by the information transmission system exceeds 1000, a new cycle needs to be started at this time.
In other embodiments, the information transmission period may be a time period, for example, the information transmission apparatus may have a time duration of 1 second as one information transmission period.
502. The system A determines whether response information corresponding to the first access request information exists in the local storage.
In this embodiment, the system a is further provided with a local storage, and the local storage stores normal response information received by the system a within a preset time period, where the preset time period may be 5 minutes, and may also be set to other values, which is not limited herein.
In order to reduce the pressure of accessing the system B and improve the access rate of the access terminal, after receiving the first access request information, the system a first searches whether there is response information corresponding to the first access request information in the local storage, if so, directly returns the corresponding response information to the access terminal, and if not, determines whether to send the access request information to the system B or directly reject the access request information according to the access passing rate of the preset first information sending period (i.e., the access passing rate calculated in the previous information sending period of the first information sending period).
503. And if the response information corresponding to the first access request information does not exist, and when the first access request information is determined to be sent according to the access passing rate of the first information sending period, the system A sends the first access request information to the system B in the first information sending period.
When the system A receives the first access request information, determines that the local cache does not store response information corresponding to the first access request information, and determines to send the first access request information according to the access passing rate of the first information sending period, the system A forwards the first access request information to the system B so as to obtain the response information corresponding to the first access request information in the system B.
The step of determining, by the system a, whether to send the first access request information to the system B according to the access passing rate of the first information sending period is similar to the step of determining, by the system a, whether to send the second access request information to the system B according to the access passing rate of the second information sending period, which may specifically refer to step 509, and details of which are not described herein.
504. And the system B generates response information according to the first access request information and returns the response information to the system A.
After the B system receives the access request information sent by the A system, the B system generates response information according to the access request information.
In some embodiments, in a case where the server in the B system processing the access request message is in a normal state, the B system generates a normal response message, for example, if the access request message is "Andy", the corresponding message returns information related to Andy, for example, news information that the profile information is the latest.
If the server in the system B that processes the access request message is in an abnormal state, the system B generates an abnormal response message, such as a timeout message or an internal error message.
When the B system generates response information according to the access request information, the response information is returned to the A system.
505. And the system A counts all the response information corresponding to the first information sending period to obtain the access failure rate corresponding to the first information sending period.
When the A system receives the response information, statistics is carried out on the response information, and the response information is returned to the access terminal.
In one embodiment, system a accumulates a total number of requests (e.g., a total number of received response messages or a total number of transmitted access request messages) and a total number of request failures (e.g., a total number of abnormal response messages in received response messages) during the first message transmission period.
In some embodiments, the system a may determine whether the response information is normal information according to a return code agreed with the system B in the response information, for example, the normal response information carries "1", and the abnormal response information carries "0".
When the system a acquires all the response information corresponding to the first information sending period, all the response information corresponding to the period is counted to obtain the access failure rate corresponding to the period.
Specifically, the access failure rate of the first information transmission period is the number of abnormal response information (request failure number) in the first information transmission period/the total number of response information (request total number) in the first information transmission period.
When the access failure rate is greater than a preset threshold, it indicates that the system B is in an abnormal state, and when the access failure rate is not greater than a preset, it indicates that the system B is in a normal state, where the preset may be 10%.
506. And the system A determines the access passing rate of the second information sending period according to the access failure rate.
And the second information sending period is the next information sending period of the first information sending period.
In some embodiments, the access passing rate of the system a to the system B in the second information sending period may be determined according to the number of cycles that the system B is continuously in the abnormal state and the first preset rule.
Specifically, when the access failure rate is greater than the preset threshold, it indicates that the B system is in an abnormal state in the second information sending period, and at this time, if n consecutive periods of the B system before the second information sending period are in an abnormal state, the access passing rate y corresponding to the second information sending period is 1/5n+1
When the access failure rate is not greater than the preset threshold, it indicates that the B system is in a normal state in the second information sending period, and at this time, if the B system has n consecutive periods in an abnormal state before the second information sending period, the access passing rate y corresponding to the second information sending period is 1/5n-1
It should be noted that the access passing rate cannot be reduced to 0 in this embodiment, and if the access to the B system is not requested, the a system cannot determine the current state of the B system. The present embodiment may configure the lowest value of the access passing rate according to the specific service setting parameter, for example, the present embodiment may set the lowest value of the access passing rate to 0.3%.
It should be noted that, when the a system performs current limitation on the request for accessing the B system, the request for accessing the B system is rapidly reduced, and for a service with a small flow, the B system is recovered, because the a system cannot adjust the access proportion in time due to insufficient statistics, the present embodiment may increase the statistical frequency after limiting the current by a certain proportion, for example, when only 1% of the requests are available for accessing the B system, the cycle of the state judgment of the a system for the B system is adjusted from sending 1000 times to sending 100 times, so as to prevent the access passing rate recovery speed from being slow due to insufficient request.
507. And the access terminal sends second access request information to the A system in a second information sending period.
When the access terminal receives an access request of a user in a second information sending period, the access terminal sends the access request information to the system a, where in this embodiment, the second access request information is access request information processed by the system a in the second information sending period, for example, access request information forwarded by the system a in the second information sending period.
508. The system A determines whether response information corresponding to the second access request information exists in the local storage.
In order to reduce the pressure of accessing the system B and improve the access rate of the access terminal, after receiving the second access request information, the system A firstly searches whether response information corresponding to the second access request information exists in a local storage, if so, the response information is directly returned to the access terminal, and if not, the access request information is determined to be sent to the system B or directly rejected according to the access passing rate of the pre-calculated second information sending period.
509. If the response information corresponding to the second access request information does not exist, the system A determines whether to send the second access request information to the system B according to the access passing rate of the second information sending period, so that overload protection of the system B is realized.
If the local storage does not store the response information corresponding to the second access request information, at this time, the system a determines whether to send the second access request information to the system B according to the access passing rate of the second information sending period, so that the received access request information can be limited, the amount of information sent to the system B can be reduced to a certain extent, and overload protection of the system B is realized.
In some embodiments, the access passing rate of the second information sending period of the system a and the information quantity of the second access request information received at the current time determine the target quantity of information to be sent to the system B; then, target access request information is selected from the received second access request information according to the target number of the information to be sent; and sending the target access request information to the B system.
For example, if the access passing rate corresponding to the adjusted second information sending period is 20%, and the number of pieces of information of the second access request information that has been received by the system a at the current time and has not been processed is 1000, then the calculated target number is 200, at this time, the system a arbitrarily selects 200 pieces of information from the 1000 pieces of second access request information to be processed as the target access request information, and then sends the selected target access request information to the second information system.
Specifically, in other embodiments, the system a determines the transmission policy of the second information transmission period according to the access passing rate of the second information transmission period; and sending the access request information received in the second information sending period to the second information system according to the sending strategy.
In some embodiments, the sending policy is generated according to the access passing rate, for example, if the access passing rate is 20%, then the sending policy may be: in the second information sending period, every time 5 access request information are received, one access request information is allowed to pass, for example, the 5 th access request information is allowed to pass, that is, the 5 th access request information is sent to the system B, and the received 1 st to 4 th access request information is directly rejected.
In other embodiments, when it is determined that the B system is in a normal state in the first information sending period, whether all the received access request information is sent to the B system may be determined.
510. And if the system A sends the second access request information to the system B, the system B generates response information according to the second access request information and sends corresponding response information to the system A.
When the system B receives the second access request message, it will generate a corresponding response message according to the access request message, wherein if the server in the system B that processes the second access request message is in an abnormal state, the system B will generate an abnormal response message, such as a timeout or an error response message, and if the server that processes the second access request message is in a normal state, the system B will generate a normal response message.
When the B system generates the corresponding response information, the response information is returned to the A system.
511. The system A determines whether the response information is a normal result, and returns the response information to the access terminal.
After receiving the response information returned by the system B, the system A judges whether the response information is a normal result or not, and returns the response information to the access terminal.
For example, in some embodiments, the system a determines whether the response information is normal information according to a return code agreed with the system B in the corresponding information, and if the response information carries "1", the response information is normal response information, and if the response information carries "0", the response information is abnormal response information.
512. And if the response information is normal, the system A stores the response information to a local storage.
If the response message is a normal response message. Then the system a stores the response information in the local storage at this time, so that when subsequently receiving the access request information corresponding to the response information, the system a can directly acquire the response information from the local storage, thereby reducing the processing pressure of the system B.
If the response result is an abnormal response result, the system A directly sends access failure information to the access terminal or directly forwards the response result to the access terminal.
In the embodiment of the application, the system A sends first access request information to the system B in a first information sending period; receiving response information of the system B for the first access request information; calculating an access failure rate of accessing the B system in the first information sending period based on the response information; adjusting the access passing rate of the access B system in a second information sending period according to the access failure rate to obtain the adjusted access passing rate, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by the access terminal is received in a second information sending period, sending the second access request information to the system B according to the adjusted access passing rate. According to the scheme, the system A can limit the current of the access request information of the next period according to the response information of the system B, filter the received access request information, directly refuse the filtered access request information, and only send the access request information which is not filtered to the system B, so that the problem that the performance of the system A is influenced due to the fact that a local queue is increased due to the fact that the internal request of the system A is overtime because the system B breaks down can be avoided, the performance of the system A is improved, and the performance recovery of the system B is facilitated. In addition, the embodiment can utilize the existing access request information to perform detection and statistics, does not need to detect the traffic of the system B through separate traffic, and can reduce the load of the system B.
Referring to fig. 6, fig. 6 is a specific execution flow of the system a in this embodiment after receiving the access request message, which is described in detail as follows:
after receiving the access request information, the system A firstly searches whether response information corresponding to the request information exists in a local storage, if not, judges whether the system B is normal at the moment, if so, directly sends the access request information to the system B (or sends the request information to the system B according to the access passing rate at the moment), if not, then determines whether to filter the access request information according to the access passing rate at the moment, if so, directly rejects the access request information, finishes the process, if not, sends the access request information to the system B, and after receiving the response information of the system B, records the state of the response information, judges whether the state of the response information is normal, and if not, ends the process; and if the current state is the normal state, storing the response information into a local storage, and ending the process.
In order to better implement the method, correspondingly, the embodiment of the present application further provides an information sending apparatus, which may be specifically integrated in a network device, where the network device may be a server or the like.
For example, as shown in fig. 7, the information transmitting apparatus may include a first transmitting unit 701, a first receiving unit 702, a calculating unit 703, an adjusting unit 704, and a second transmitting unit 705 as follows:
a first sending unit 701, configured to send first access request information to a second information system in a first information sending period;
a first receiving unit 702, configured to receive response information of the second information system for the first access request information;
a calculating unit 703, configured to calculate, based on the response information, a first access passing indicator for accessing the second information system in the first information sending period;
an adjusting unit 704, configured to adjust a second access passing indicator that accesses the second information system in a second information sending period according to the first access passing indicator, to obtain an adjusted second access passing indicator, where the second information sending period is a next information sending period of the first information sending period;
a second sending unit 705, configured to, when second access request information sent by an access terminal is received in the second information sending period, send the second access request information to the second information system according to the adjusted second access passing indicator.
Referring to fig. 8, in some embodiments, the second sending unit 705 includes:
a first determining subunit 7051, configured to determine, according to the adjusted second access passing indicator and the information quantity of the second access request information received at the current time, a target quantity of information to be sent to the second information system;
a selecting subunit 7052, configured to select target access request information from the received second access request information according to the target number of the information to be sent;
a sending subunit 7053, configured to send the target access request information to the second information system.
In some embodiments, the adjusting unit 704 includes:
a second determining subunit 7041, configured to determine, based on the first access passing indicator, an information processing state of the second information system in the first information transmission period;
a third determining subunit 7042, configured to determine, when the information processing state of the second information system is in an abnormal state, the number of cycles that the second information system is continuously in the abnormal state;
a first adjusting subunit 7043, configured to adjust the second access passing indicator of the second information system according to the number of cycles, to obtain the adjusted second access passing indicator.
In some embodiments, the first adjusting subunit 7043 is specifically configured to:
estimating a second access passing index pre-estimated in the second information sending period according to the period number;
comparing the estimated second access passing index with a preset access passing index to obtain a comparison result;
determining the estimated second access passing indicator as the adjusted second access passing indicator based on the comparison result.
In some embodiments, the adjusting subunit 7043 is further specifically configured to:
determining the power of a preset base number according to the number of the periods;
and determining a second access passing index pre-estimated in the second information sending period according to the preset base number and the power.
In some embodiments, the adjusting unit 704 further includes:
an obtaining subunit 7044, configured to obtain, when the information processing state of the second information system is in a normal state, a second access passing indicator of the first information sending period;
a second adjusting subunit 7045, configured to adjust the second access passing indicator of the second information system according to the second access passing indicator of the first information sending period, to obtain the adjusted second access passing indicator.
In some embodiments, the first access passing indicator includes an access failure rate, and the second determining subunit 7041 is specifically configured to:
determining whether the access failure rate is greater than a preset threshold;
if the second information system is larger than the preset threshold, determining that the second information system is in an abnormal state in the first information sending period;
and if the second information system is not larger than the preset threshold, determining that the second information system is in a normal state in the first information sending period.
In some embodiments, the second sending unit is specifically configured to:
when second access request information sent by an access terminal is received in the second information sending period, determining whether response information corresponding to the second access request information exists in a local storage;
if the corresponding response information does not exist, sending the second access request information to the second information system according to the adjusted second access passing index;
after determining whether the local storage stores response information corresponding to the second access request information, the method further includes:
and if the corresponding response information exists, directly sending the corresponding response information to the access terminal.
In some embodiments, the apparatus further comprises:
a second receiving unit 706, configured to receive response information corresponding to the second access request information from the second information system;
a determining unit 707 configured to determine whether response information corresponding to the second request information is a normal result;
the saving unit 708 is configured to, when the response result corresponding to the second request information is a normal result, save the response information corresponding to the second request information to the local storage, and send the response result corresponding to the second request information to the access terminal.
A first sending unit 701 in this embodiment sends first access request information to a second information system in a first information sending period; the first receiving unit 702 receives response information of the second information system for the first access request information; the calculation unit 703 calculates a first access passage index for accessing the second information system in the first information transmission period based on the response information; the adjusting unit 704 adjusts a second access passing index for accessing a second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; when receiving second access request information sent by the access terminal in the second information sending period, the second sending unit 705 sends the second access request information to the second information system according to the adjusted second access passing index. According to the scheme, the first information system can limit the current of the access request information of the next period according to the response information of the second information system, filter the received access request information, directly reject the filtered access request information, and only send the access request information which is not filtered to the second information system, so that the problems that the performance of the first information system is influenced due to the fact that a local queue is increased because the internal request of the first information system is overtime because the second information system breaks down can be avoided, the performance of the first information system is improved, and the performance recovery of the second information system is facilitated.
In addition, an embodiment of the present application further provides a network device, as shown in fig. 9, which shows a schematic structural diagram of the network device according to the embodiment of the present application, and specifically:
the network device may include components such as a processor 901 of one or more processing cores, memory 902 of one or more computer-readable storage media, a power supply 903, and an input unit 904. Those skilled in the art will appreciate that the network device architecture shown in fig. 9 does not constitute a limitation of network devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 901 is a control center of the network device, connects various parts of the entire network device by using various interfaces and lines, and performs various functions of the network device and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the network device. Optionally, processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 901.
The memory 902 may be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the network device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 access to the memory 902.
The network device further comprises a power supply 903 for supplying power to each component, and preferably, the power supply 903 may be logically connected to the processor 901 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system. The power supply 903 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The network device may also include an input unit 904, the input unit 904 operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the network device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 901 in the network device loads the executable file corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 901 runs the application program stored in the memory 902, so as to implement various functions as follows:
transmitting first access request information to a second information system in a first information transmission period; receiving response information of the second information system for the first access request information; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing the second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by an access terminal is received in the second information sending period, sending the second access request information to the second information system according to the adjusted second access passing index.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the embodiment of the present application, the first information system sends the first access request information to the second information system in the first information sending period; receiving response information of a second information system aiming at the first access request information; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing a second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by the access terminal is received in a second information sending period, sending the second access request information to a second information system according to the adjusted second access passing index. According to the scheme, the first information system can limit the current of the access request information of the next period according to the response information of the second information system, filter the received access request information, directly reject the filtered access request information, and only send the access request information which is not filtered to the second information system, so that the problems that the performance of the first information system is influenced due to the fact that a local queue is increased because the internal request of the first information system is overtime because the second information system breaks down can be avoided, the performance of the first information system is improved, and the performance recovery of the second information system is facilitated.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the information sending methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
transmitting first access request information to a second information system in a first information transmission period; receiving response information of the second information system for the first access request information; calculating a first access passing index for accessing the second information system in the first information sending period based on the response information; adjusting a second access passing index for accessing the second information system in a second information sending period according to the first access passing index to obtain an adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period; and when second access request information sent by an access terminal is received in the second information sending period, sending the second access request information to the second information system according to the adjusted second access passing index.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any information transmission method provided in the embodiments of the present application, beneficial effects that can be achieved by any information transmission method provided in the embodiments of the present application can be achieved, and for details, refer to the foregoing embodiments, and are not described herein again.
The foregoing detailed description is directed to an information sending method, an information sending apparatus, and a storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. An information sending method, wherein the method is applied to a first information system, and the method comprises:
transmitting first access request information to a second information system in a first information transmission period;
receiving response information of the second information system for the first access request information;
calculating a first access passing index for accessing the second information system in the first information sending period based on the response information;
determining an information processing state of the second information system within the first information transmission period based on the first access pass indicator;
when the information processing state of the second information system is in an abnormal state, determining the number of cycles that the second information system is continuously in the abnormal state;
adjusting a second access passing index of the second information system according to the period number to obtain the adjusted second access passing index;
and when second access request information sent by an access terminal is received in a second information sending period, sending the second access request information to the second information system according to the adjusted second access passing index, wherein the second information sending period is the next information sending period of the first information sending period.
2. The method of claim 1, wherein sending the second access request message to the second information system according to the adjusted second access pass indicator comprises:
determining the target number of information to be sent to a second information system according to the adjusted second access passing index and the information number of the second access request information received at the current time;
selecting target access request information from the received second access request information according to the target number of the information to be sent;
and sending the target access request information to the second information system.
3. The method according to claim 1, wherein the adjusting the second access passing indicator of the second information system according to the number of cycles to obtain the adjusted second access passing indicator comprises:
estimating a second access passing index pre-estimated in the second information sending period according to the period number;
comparing the estimated second access passing index with a preset access passing index to obtain a comparison result;
determining the estimated second access passing indicator as the adjusted second access passing indicator based on the comparison result.
4. The method of claim 3, wherein estimating the second access passing indicator of the second information sending period prediction according to the number of periods comprises:
determining the power of a preset base number according to the number of the periods;
and determining a second access passing index pre-estimated in the second information sending period according to the preset base number and the power.
5. The method of claim 1, wherein the adjusting a second access passing indicator for accessing the second information system during a second information sending period according to the first access passing indicator to obtain an adjusted second access passing indicator, further comprises:
when the information processing state of the second information system is in a normal state, acquiring a second access passing index of the first information sending period;
and adjusting the second access passing index of the second information system according to the second access passing index of the first information sending period to obtain the adjusted second access passing index.
6. The method of claim 1 or 5, wherein the first access pass indicator comprises an access failure rate, and wherein determining the information processing state of the second information system during the first information transmission period based on the first access pass indicator comprises:
determining whether the access failure rate is greater than a preset threshold;
if the second information system is larger than the preset threshold, determining that the second information system is in an abnormal state in the first information sending period;
and if the second information system is not larger than the preset threshold, determining that the second information system is in a normal state in the first information sending period.
7. The method of claim 1, wherein when receiving second access request information sent by an access terminal in the second information sending period, sending the second access request information to the second information system according to the adjusted second access passing indicator, comprises:
when second access request information sent by an access terminal is received in the second information sending period, determining whether response information corresponding to the second access request information exists in a local storage;
if the corresponding response information does not exist, sending the second access request information to the second information system according to the adjusted second access passing index;
after determining whether the local storage stores response information corresponding to the second access request information, the method further includes:
and if the corresponding response information exists, directly sending the corresponding response information to the access terminal.
8. The method of claim 7, wherein after sending the second access request message to the second information system according to the adjusted second access pass indicator, the method further comprises:
receiving response information corresponding to the second access request information by the second information system;
determining whether response information corresponding to the second access request information is a normal result;
and if the result is a normal result, storing the response information corresponding to the second access request information to the local storage, and sending the response result corresponding to the second access request information to the access terminal.
9. An information transmission apparatus, characterized in that the apparatus comprises a first information system, the apparatus comprising:
a first sending unit, configured to send first access request information to a second information system in a first information sending period;
a first receiving unit, configured to receive response information of the second information system for the first access request information;
a calculation unit configured to calculate a first access passing index for accessing the second information system in the first information transmission period based on the response information;
a first determination unit configured to determine an information processing state of the second information system in the first information transmission period based on the first access passing index;
a second determining unit, configured to determine, when the information processing state of the second information system is in an abnormal state, the number of cycles in which the second information system is continuously in the abnormal state;
the adjusting unit is used for adjusting the second access passing index of the second information system according to the number of the periods to obtain the adjusted second access passing index;
and a second sending unit, configured to, when second access request information sent by an access terminal is received in a second information sending period, send the second access request information to the second information system according to the adjusted second access passing indicator, where the second information sending period is a next information sending period of the first information sending period.
CN201910650316.8A 2019-07-18 2019-07-18 Information sending method, device and storage medium Active CN111193760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910650316.8A CN111193760B (en) 2019-07-18 2019-07-18 Information sending method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910650316.8A CN111193760B (en) 2019-07-18 2019-07-18 Information sending method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111193760A CN111193760A (en) 2020-05-22
CN111193760B true CN111193760B (en) 2022-01-07

Family

ID=70707141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910650316.8A Active CN111193760B (en) 2019-07-18 2019-07-18 Information sending method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111193760B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114417081B (en) * 2021-12-27 2024-05-24 深圳萨摩耶数字科技有限公司 Processing method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540533A (en) * 2018-03-14 2018-09-14 聚好看科技股份有限公司 A kind of method and apparatus of response request
CN108566317A (en) * 2018-04-27 2018-09-21 深信服科技股份有限公司 Business monitoring method, Cloud Server, storage medium and device
CN109547282A (en) * 2018-10-22 2019-03-29 中国平安人寿保险股份有限公司 Overload protection method, device, computer readable storage medium and server
CN109815716A (en) * 2019-01-08 2019-05-28 平安科技(深圳)有限公司 Access request processing method, device, storage medium and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9331966B2 (en) * 2012-07-06 2016-05-03 Empire Technology Development Llc Processing connection request in online service
US10592132B2 (en) * 2015-01-30 2020-03-17 Pure Storage, Inc. Read-foreign-slices request for improved read efficiency with bundled writes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540533A (en) * 2018-03-14 2018-09-14 聚好看科技股份有限公司 A kind of method and apparatus of response request
CN108566317A (en) * 2018-04-27 2018-09-21 深信服科技股份有限公司 Business monitoring method, Cloud Server, storage medium and device
CN109547282A (en) * 2018-10-22 2019-03-29 中国平安人寿保险股份有限公司 Overload protection method, device, computer readable storage medium and server
CN109815716A (en) * 2019-01-08 2019-05-28 平安科技(深圳)有限公司 Access request processing method, device, storage medium and server

Also Published As

Publication number Publication date
CN111193760A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111030936B (en) Current-limiting control method and device for network access and computer-readable storage medium
CN110858843B (en) Service request processing method and device and computer readable storage medium
WO2019169724A1 (en) Server concurrency control method and device, computer device, and storage medium
CN111190745B (en) Data processing method, device and computer readable storage medium
CN110099009A (en) Dynamic current limiting method and computer-readable medium based on interface response time trend
CN104424031B (en) Method and device for controlling working frequency of processor
US20130104139A1 (en) System for Managing Data Collection Processes
CN105656810B (en) Method and device for updating application program
JP2018532172A (en) Method and system for resource scheduling
CN115277577B (en) Data processing method, apparatus, computer device, and computer readable storage medium
CN109936613B (en) Disaster recovery method and device applied to server
CN110932988A (en) Flow control method and device, electronic equipment and readable storage medium
CN102045321A (en) Flow control method and system for software downloading
CN110471749A (en) Task processing method, device, computer readable storage medium and computer equipment
US20070265976A1 (en) License distribution in a packet data network
CN111338575B (en) Storage service quality control method, device, equipment and storage medium
CN110311963B (en) Message pushing method and device, computer equipment and computer readable storage medium
CN111193760B (en) Information sending method, device and storage medium
CN111291252A (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
CN111078386A (en) Control method and control device of distributed scheduling system
CN111897659A (en) Method, system and device for controlling service processing frequency and electronic equipment
CN111935782A (en) Optimization method of client retry mechanism and storage medium
CN114745278B (en) Method and device for expanding and shrinking capacity of service system, electronic equipment and storage medium
CN114466365B (en) Spectrum resource acquisition method, spectrum resource acquisition device and computer readable storage medium
CN106131187B (en) Authorization control method and device

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
GR01 Patent grant
GR01 Patent grant