A flow control method and device for application component
By obtaining the touch screen information on the terminal and sending the application information to the server under current limiting and fusing conditions, the problem of low efficiency of flow monitoring and control of application components in the existing technology is solved, and the problem of App component can be quickly located and solved, which improves the efficiency of application components. App performance and usability.
Patent Information
- Application Number
- CN202010120815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-02-26
AI Technical Summary
Existing technologies are inefficient in monitoring and controlling traffic of application components, making it difficult to locate and solve problems when problems occur in the App, affecting performance and availability.
By obtaining the touch screen information at the terminal, the component function is determined, and when the current limiting and fusing conditions are met, the application information is sent to the server for data verification and storage, and a queue message is generated to count the call information of the component to achieve rapid positioning and flow control.
It improves the efficiency of traffic monitoring and control of application components, quickly locates problems, and improves the performance and usability of the App.
Smart Images

Figure CN111290696B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer application technology, and in particular, relates to a flow control method and device for an application component. Background Art
[0002] The application (Application, App) component provides basic services for the entire App. By controlling the flow of App components, it is helpful to timely discover the performance bottlenecks and potential risks of each App component. At the same time, it also makes the usage and status of the components called by the pages in the App transparent, which is more conducive to improving the performance and robustness of the App. At the same time, it also provides good data support for component billing to achieve the purpose of on-demand use and who pays for who uses it. Traditional App component calls are generally opaque. Which page in the App calls which components, the success rate, time consumption and call volume of the call components are unknown, and the call permissions cannot be controlled.
[0003] The existing technology implements App traffic control management by capturing App usage data and analyzing the data processed by the background server. However, this method cannot limit or fuse the traffic of related components when problems occur in the App, and it is easy to cause cross-influence, and even make the entire App unusable in serious cases. The performance and availability of the App lack good guarantees. At the same time, it is difficult to locate problems, and customer satisfaction will also be affected. Therefore, the existing technology is inefficient in monitoring and controlling the traffic of App components. Summary of the invention
[0004] The embodiments of the present application provide a flow control method and device for application components, which can solve the problem of low efficiency in the prior art when monitoring and controlling the flow of App components.
[0005] In a first aspect, an embodiment of the present application provides a flow control method for an application component, which is applied to a terminal, including:
[0006] Acquire the touch screen information of the user on the terminal interface; the touch screen information includes the touch position and contact mode on the terminal interface;
[0007] Determine a component function corresponding to the touch position and the contact mode, and if the user's account information has permission to use the component function, run the component of the application;
[0008] Collecting application information generated by the application program in the process of running the component;
[0009] The application information is cached, and when a preset current limiting fuse condition is met, a limited number of application information are sent to a server associated with the terminal according to the communication status of the current network.
[0010] Wherein, if the user's account information has the permission to use the component function, running the component of the application includes:
[0011] Determine the user calling permissions of the account information currently logged into the application based on the component calling permissions corresponding to each account information obtained;
[0012] Determine the component according to the touch position, and determine the function corresponding to the component according to the contact mode;
[0013] If the component function complies with the user's calling authority, the component of the application is run.
[0014] In a second aspect, an embodiment of the present application provides a flow control method for an application component, which is applied to a server and includes:
[0015] Receiving application information sent by a terminal associated with the server when a preset current limiting and fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0016] Verify the legitimacy of the application information according to a preset data verification method;
[0017] If the validity check of the application information passes, generating a first queue message according to the application information and a preset message format;
[0018] The first queue message is sent to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message.
[0019] Wherein, before receiving the application information sent by the terminal associated with the server when the preset current limiting fuse condition is met, it also includes:
[0020] Setting component call permissions and current limiting fuse conditions corresponding to each account information registered in the application, wherein the current limiting fuse conditions are used to trigger the terminal to send application information;
[0021] The component calling permission and the current limiting fuse condition are sent to the terminal to instruct the terminal to call the component according to the component calling permission and the currently logged-in account information, and send the application information to the server when the current limiting fuse condition is met.
[0022] Wherein, after receiving the application information sent by the terminal associated with the server when the preset current limiting fuse condition is met, it also includes:
[0023] Counting the call information of each component in the application information within a preset period; the call information includes the number of calls, average time consumption and call success rate of each component;
[0024] Generate a second queue message according to the call information and the message format; the second queue message is used to represent the running state of the application within the preset period;
[0025] The second queue message is sent to a preset storage device to instruct the storage device to store the calling information of the component according to the second queue message.
[0026] In a third aspect, an embodiment of the present application provides a flow control method for an application component, which is applied to a storage device, including:
[0027] Receiving a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0028] Dividing the first queue messages into batch files according to a preset period;
[0029] Generate detailed reports of all the batch files, and store the batch files and their detailed reports.
[0030] Wherein, the method further comprises:
[0031] Receiving a second queue message sent by the server;
[0032] Identify the component identifier in the second queue message, and store the number of calls, average duration and call success rate in the second queue message according to the component identifier, so that when the operation failure information of the application is received, the second queue message corresponding to the component identifier of the failed component in the operation failure information can be retrieved.
[0033] In a fourth aspect, an embodiment of the present application provides a flow control terminal of an application component, including:
[0034] A first acquisition unit is used to acquire touch screen information of a user on a terminal interface; the touch screen information includes a touch position and a contact mode on the terminal interface;
[0035] an operating unit, configured to determine a component function corresponding to the touch position and the contact mode, and to operate the component of the application program if the user's account information has permission to use the component function;
[0036] A collection unit, used for collecting application information generated by the application program in the process of running the component;
[0037] The first sending unit is used to cache the application information and, when a preset current limiting fuse condition is met, send a limited number of application information to a server associated with the terminal according to the communication status of the current network.
[0038] Furthermore, the operation unit includes:
[0039] A first determining unit, configured to determine the user calling authority of the account information currently logged into the application program according to the component calling authority corresponding to each acquired account information;
[0040] A second determining unit, configured to determine the component according to the touch position and determine a function corresponding to the component according to the contact mode;
[0041] The component running unit is used to run the component of the application if the component function meets the user calling authority.
[0042] In a fifth aspect, an embodiment of the present application provides a flow control server of an application component, including:
[0043] a first receiving unit, receiving application information sent by a terminal associated with the server when a preset current limiting and fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0044] A verification unit, used to verify the legitimacy of the application information according to a preset data verification method;
[0045] A first queue unit, configured to generate a first queue message according to the application information and a preset message format if the validity check of the application information passes;
[0046] The second sending unit is used to send the first queue message to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message.
[0047] Furthermore, the flow control server of the application component also includes:
[0048] A setting unit, used to set component call permissions and current limiting fuse conditions corresponding to each account information registered in the application, wherein the current limiting fuse conditions are used to trigger the terminal to send application information;
[0049] The third sending unit is used to send the component calling permission and the current limiting fuse condition to the terminal to instruct the terminal to call the component according to the component calling permission and the currently logged-in account information, and send the application information to the server when the current limiting fuse condition is met.
[0050] Furthermore, the flow control server of the application component also includes:
[0051] A statistical unit, used to count the call information of each component in the application information within a preset period; the call information includes the number of calls, average time consumption and call success rate of each component;
[0052] A second queue unit, used to generate a second queue message according to the call information and the message format; the second queue message is used to represent the running state of the application within the preset period;
[0053] The fourth sending unit is used to send the second queue message to a preset storage device to instruct the storage device to store the calling information of the component according to the second queue message.
[0054] In a sixth aspect, an embodiment of the present application provides a flow control storage device for an application component, including:
[0055] a third receiving unit, configured to receive a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information being generated by the terminal when running a component of an application, the operating condition of the component of the application including that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0056] A batching unit, used to divide the first queue messages into batch files according to a preset period;
[0057] The storage unit is used to generate detailed reports of all the batch files and store the batch files and their detailed reports.
[0058] Furthermore, the flow control storage device of the application component also includes:
[0059] A fourth receiving unit, configured to receive a second queue message sent by the server;
[0060] An identification unit is used to identify the component identifier in the second queue message, and store the number of calls, average call time and call success rate in the second queue message according to the component identifier, so that when the operation failure information of the application is received, the second queue message corresponding to the component identifier of the faulty component in the operation failure information is retrieved.
[0061] In a seventh aspect, an embodiment of the present application provides a flow control system for an application component, including:
[0062] A terminal, configured to generate application information when running a component of an application, and send a limited number of pieces of application information to a server associated with the terminal according to a current network communication state, wherein the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0063] The server is configured to receive the application information sent by the terminal, and after the legitimacy check of the application information is passed, generate a first queue message according to the application information and a preset message format, and send the first queue message to a storage device associated with the terminal;
[0064] The storage device is used to receive the first queue message sent by the server, divide the first queue message into batch files according to a preset period, generate detailed reports of all the batch files, and store the batch files and their detailed reports.
[0065] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect, the second aspect, or the third aspect mentioned above.
[0066] In the ninth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, enables the terminal device to execute the flow control method of the application component described in any one of the first aspect, the second aspect or the third aspect.
[0067] It can be understood that the beneficial effects of the fourth to ninth aspects mentioned above can be found in the relevant descriptions of the first to third aspects mentioned above, and will not be repeated here.
[0068] Compared with the prior art, the embodiments of the present application have the following beneficial effects: after the application information is generated by using the application on the terminal, the application information is sent to the server if the current limiting and fuse conditions are met; the server generates a first queue message corresponding to the application information according to a preset queue message format, and sends the first queue message to a storage device associated with it; the first queue message is divided into batch files for storage in the storage device; and at the same time, the number of calls, average time consumption and call success rate of each component of the application are counted and stored in the storage device. This embodiment generates a first queue message corresponding to the application information according to the preset queue message format, so that in the event of a failure in the application, the failed page or component can be quickly located according to the queue message format, thereby improving the efficiency and accuracy of locating the problem, and also improving the efficiency of the application component in traffic monitoring and control. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0070] Figure 1 It is a flow chart of the flow control method of the application component provided in the first embodiment of the present application;
[0071] Figure 2 It is a flow chart of the flow control method of the application component provided in the second embodiment of the present application;
[0072] Figure 3 It is a flow chart of the flow control method of the application component provided in the third embodiment of the present application;
[0073] Figure 4 It is a schematic diagram of a flow control terminal of an application component provided in Embodiment 4 of the present application;
[0074] Figure 5 It is a schematic diagram of a flow control server of an application component provided in Embodiment 5 of the present application;
[0075] Figure 6 It is a schematic diagram of a flow control device of an application component provided in Example 6 of the present application;
[0076] Figure 7is a schematic diagram of a flow control system of an application component provided in Embodiment 7 of the present application;
[0077] Figure 8 This is a schematic diagram of the flow control device of the application component provided in Example 8 of the present application. DETAILED DESCRIPTION
[0078] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0079] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0080] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0081] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0082] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0083] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0084] See also Figure 1 , Figure 1 It is a flow chart of a flow control method for an application component provided in Example 1 of the present application. In this embodiment, the execution subject of the flow control method for the application component is a terminal. The terminal can be a mobile terminal such as a smart phone, a tablet computer, but is not limited to this, and can also be other terminals, which are not limited here. The terminal can be an Android operating system, a Windows operating system, or an IOS operating system. The flow control method for the application component shown in the figure can include the following steps:
[0085] S101: Acquire touch screen information of a user on a terminal interface; the touch screen information includes a touch position and a contact method on the terminal interface.
[0086] When a user manipulates an application installed in a terminal, he or she first clicks or touches a corresponding interface component on the terminal interface to trigger the terminal to execute a corresponding application function.
[0087] When the terminal is in an unlocked state, the user's touch screen information is obtained to determine the user's usage through the touch screen information and execute the component function corresponding to the touch screen information.
[0088] The touch screen information in this embodiment includes the touch position and contact method of the user on the terminal interface, wherein the touch position can be represented by a component identifier on the terminal interface, or determined by the position coordinates of the contact point on the terminal interface; the contact method includes single-click, double-click, long press and slide, etc., which are not limited here.
[0089] S102: Determine a component function corresponding to the touch position and the contact mode, and if the user's account information has permission to use the component function, run the component of the application.
[0090] The terminal pre-stores the component usage rights corresponding to the user's account information, wherein the component usage rights corresponding to each account information are set by the server according to the account information of each registered user in the application.
[0091] After acquiring the touch screen information, the interface component in the current interface is determined according to the touch position in the touch screen information, and the component function corresponding to the user's current touch screen information is determined according to the function and contact method of the interface component, so as to judge whether the user's account information has the permission to use the component function according to the usage permission of the user account. If the user's account information has the permission to use the component function, it is determined whether the component function can be used by the user.
[0092] If the user's account information has permission to use the component function, the component function is run in the terminal; if the user's account information does not have permission to use the component function, a prompt message is generated in the terminal to prompt the user that his permission does not allow him to open or use the function corresponding to the interface component.
[0093] Furthermore, step S102 may specifically include steps S1021 to S1023:
[0094] S1021: Determine the user usage rights of the account information currently logged into the application program according to the component usage rights corresponding to each acquired account information.
[0095] In the present embodiment, when the user controls the application installed in the terminal, he needs to log in to the user program according to the account information pre-registered in the server. After the successful login, the application can open the application interface on the terminal interface for the user to touch the screen.
[0096] Furthermore, in this embodiment, after the user logs in to the application according to his / her account information, the terminal can determine the user's authority according to the logged-in account information, and determine which components are usable within the authority of the account information according to the user's authority, and display these components on the terminal interface, while selectively shielding the display of the component interface that does not belong to the authority of the account information. In this way, it is convenient for users to use, improve the display effect of user authority, and improve the success rate of users applying components through touch screen.
[0097] S1022: Determine the component according to the touch position, and determine a function corresponding to the component according to the contact mode.
[0098] After obtaining the user permission of the account information of the currently logged-in application, in this embodiment, the component clicked by the user is determined according to the touch position, and the function corresponding to the component that the user wants to use is determined according to the contact method.
[0099] Exemplarily, the component determined according to the touch position is a component named "shopping cart", and the user's contact method is a single click. Then, based on single clicking the "shopping cart" component, the function of the component corresponding to the touch screen information is determined to be: opening the shopping cart.
[0100] Optionally, the component calling permission in this embodiment can be used to authenticate the user's identity first, and then control the user's permissions after the user's identity authentication is passed. Specifically, when performing identity authentication, the account information of the user who triggered the touch screen information is authenticated. When the identity information obtained by authentication is consistent with the pre-stored identity information, it is determined that the identity authentication is successful and the user can use the corresponding function of the interface component.
[0101] Exemplarily, in this embodiment, identity authentication may include two identity authentication mechanisms: one based on the network authentication protocol Kerberos and the other based on the Internet Protocol (IP). The former is a strong identity authentication and has better security than the latter, and the latter is suitable for a network environment where the IP address is trusted and is easier to deploy than the former.
[0102] After the user identity authentication is passed, the user's permission control is performed. In this embodiment, the permission control can be determined by setting the session level to determine the corresponding permission. Optionally, the session level in this embodiment can include: pulling data from the session, producing data to the session, creating a session, and deleting a session, etc., which are not limited here.
[0103] Exemplarily, after determining a user's identity information, the user can use the function corresponding to the interface component, and then determine how the user handles the interface component based on preset session permissions, for example, the user can only produce and create data from the session, but does not have the permission to delete session data.
[0104] S1023: If the component function complies with the user's usage authority, the component of the application is run.
[0105] After identifying the component function corresponding to the touch screen information, the component function is compared with the user's usage permissions. If the component function meets the usage permissions corresponding to the account information, the component of the application is run to implement the component function.
[0106] Specifically, in this embodiment, the component of the application is pre-installed in the terminal together with the installation package of the application. Specifically, the terminal can run the component of the application according to the data in the installation package to implement the function corresponding to the component.
[0107] S103: Collect application information generated by the application program in the process of running the component.
[0108] In the process of running the application, this embodiment collects application information generated by the application during the running process. The application information may include information input by the user, information generated during the running process, and data processing results, etc. In addition, the application information may also include the component identifier accessed by the user, the delay information of calling the component, and the calling result, etc., which are not limited here.
[0109] The application information may include the page ID visited by the user, the component ID called by the page, the time taken in the page processing, and the result of the page processing, etc., which are not limited here.
[0110] Optionally, the method of collecting application information in this embodiment may be to set tracking points in the application, and by providing data collection controls in various components in the application, all data during the operation of the component can be collected during the operation of the component, thereby achieving the purpose of collecting application information generated by the application during the operation.
[0111] S104: Cache the application information, and when a preset current limiting and fuse condition is met, send a limited number of application information to a server associated with the terminal according to the communication status of the current network.
[0112] After collecting the application information generated by the application during operation, the application information is first cached locally, so that the application information can be sent to a server associated with the terminal when the current limiting fuse condition is met.
[0113] In this embodiment, the server pre-sets the current limiting and fuse conditions for sending cached application information. When the user is running an application on the terminal, when the amount of data generated is large, the current limiting and fuse are promptly performed, and the cached application information is sent to the server. At the same time, the application information cached locally is optionally deleted to ensure load balancing of network communications and reduce the cache pressure of the terminal.
[0114] Specifically, in this embodiment, after collecting the application information of the user using the application, the cache protocol ProtoBuf is used to save the collected application information, and the application information is sent to the server when the current limiting fuse condition is met. The current limiting fuse condition in this embodiment can be to upload the data to the server when it is met every 10 seconds or every 100 data. In this embodiment, the monitoring data is sent to the server through the application using the ProtoBuf protocol for transmission, which reduces the size of the transmitted data, improves the transmission performance, and saves network traffic and bandwidth.
[0115] Furthermore, in actual applications, when a server is connected to many terminals, the server often experiences overload and data reception delays due to receiving data sent by a large number of terminals at the same time. Therefore, in this embodiment, when sending application information to the server, the terminal first detects the communication status of the current network. When the communication status of the network is good, more application information is sent to the server. When the communication status of the network is low, less application information is sent to the server, and a larger proportion of application information is cached locally in the terminal so that it can be sent again when it detects that the communication status of the network has improved.
[0116] Specifically, the network status in this embodiment can be measured by the amount of data transmitted in transit per unit time. If the amount of data transmitted in transit per unit time is greater than the preset data volume threshold, it means that the communication status is poor and a lower limited number of messages is required to send application information; if the amount of data transmitted in transit per unit time is less than the data volume, it means that the communication status is good and a higher limited number of messages can be used to send application information. In this way, this embodiment can avoid network congestion when transmitting application information, and improve the transmission efficiency of application data on the basis of ensuring network load balancing.
[0117] The above scheme obtains the user's touch screen information on the terminal interface; the touch screen information includes the touch position and contact method on the terminal interface; determines the component function corresponding to the touch position and the contact method, and if the user's account information has the permission to use the component function, runs the component of the application; collects the application information generated by the application in the process of running the component; caches the application information, and when the preset current limiting and fuse conditions are met, according to the current network communication status, sends a limited number of application information to the server associated with the terminal. When the amount of data generated during the terminal running the application is large, the current limiting and fuse are performed in time, and the cached application information is sent to the server, which ensures the load balancing of network communication and reduces the cache pressure of the terminal.
[0118] See also Figure 2 , Figure 2 1 is a flow chart of a flow control method for an application component provided in Embodiment 2 of the present application. In this embodiment, the execution subject of the flow control method for the application component is a server. The flow control method for the application component shown in the figure may include the following steps:
[0119] S201: Receive application information sent by a terminal associated with the server when a preset current limiting and fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact method.
[0120] The server in this embodiment is associated with the terminal and is used to receive application information sent by the terminal when the terminal meets the preset current limiting fuse condition. The application information is generated when the terminal runs the component of the application, and the terminal can only run the component of the application and generate the application information corresponding to the component function when the user's account information has the permission to use the component function.
[0121] Furthermore, before step S201, steps S2011 and S2012 may also be included:
[0122] S2011: Setting component calling permissions and current limiting fuse conditions corresponding to each account information registered in the application, wherein the current limiting fuse conditions are used to trigger the terminal to send application information.
[0123] The application in this embodiment is registered with multiple account information, where each account information has a different level, and corresponds to different component calling permissions and current limiting fuse conditions, where the component calling permissions are used to indicate the component calling status of the application corresponding to different account information, and the current limiting fuse conditions are used to indicate the trigger conditions and the processing method of the cached application information when different account information is running the application, and the application cache is generated, and the cache is stopped after the cached application information reaches a certain capacity, so that the cached application information can be sent to the server associated with the terminal when the trigger conditions are met.
[0124] In this embodiment, the server configures the current limiting and fuse rules of each component in advance according to the performance of each component in the application, and the page uses the authorization of the component.
[0125] S2012: Send the component calling permission and the current limiting fuse condition to the terminal to instruct the terminal to call the component according to the component calling permission and the currently logged-in account information, and send the application information to the server when the current limiting fuse condition is met.
[0126] In this embodiment, after generating component calling permissions and current limiting fuse conditions corresponding to each account information, the component calling permissions and current limiting fuse conditions are sent to the terminal to instruct the terminal to call the component according to the component calling permissions and the currently logged-in account information, and send the application information to the server when the current limiting fuse conditions are met.
[0127] Furthermore, after step S201, steps S2013 to S2015 may also be included:
[0128] S2013: Counting the calling information of each component in the application information within a preset period; the calling information includes the number of calls, average time consumption and calling success rate of each component.
[0129] When the terminal runs the application, it will continuously generate application information and send the cached application information to the server. The server counts the application information received within a preset period, including the call information of each component in the application information, where the call information includes the number of calls, average time consumption and call success rate of each component, so as to analyze and process these statistical data later.
[0130] Specifically, based on the configured flow control and circuit breaker rules, determine whether the number of times the page calls the component, the success rate, and the time consumed have reached the threshold. If the threshold is reached, a notification of flow limiting, circuit breaking, or closing the call permission is dynamically sent to the application. If it is flow limiting, the flow limiting threshold is dynamically adjusted based on the subsequent reported call data until normal calls are fully restored.
[0131] S2014: Generate a second queue message according to the calling information and the message format; the second queue message is used to represent the running status of the application within the preset period.
[0132] In this embodiment, the application usually needs to continuously exchange information with the server during operation. How to ensure fast data flow and low latency while ensuring the independence of each system itself. At this time, the message middleware service is introduced in this embodiment, and the obtained application messages are processed through queue messages to obtain queue messages with a unified format. The main functions of queue messages are two: first, to reduce the coupling between systems or between services within the system. Each subsystem does not need to be aware of the existence of the other, which is convenient for independent development and maintenance. Second, to reduce programming complexity. All subsystems or services are programmed for queue messages, without direct dependencies, without associating with other systems, and only need to focus on their own business functions.
[0133] Optionally, in this embodiment, the k data stream kStream in the Kafka data stream KAFKA Stream is used to aggregate and summarize the number of calls, average duration, success rate and other information of each component called by each page by minutes, and then the statistical data is summarized by k table kTable, and then the summarized calculation results are used to generate a second queue message according to the message format.
[0134] When generating the first KAFKA queue message, in order to make the data more usable, from the perspective of the time and space of the data, this embodiment proposes an efficient queue message format, as shown in the following queue message format:
[0135] Queue message format
[0136] ID Component Time Data
[0137] Among them, ID is the unique code of the data block, which is set to 16 bytes for storage; Component represents the component interface information of the application corresponding to the application information, which can be a component identifier, set to 1024 bytes for storage, and each interface component corresponds to a corresponding bit (such as interface component C1 corresponds to the first bit, interface component C2 corresponds to the second bit, and so on). If the interface component is not collecting data, Component is set to 0, and if the interface component is collecting data, Component is set to 1; Time represents the start time and end time of the interface component, set to 16 bytes for storage, the first 8 bytes correspond to the monitoring start time, and the last 8 bytes correspond to the monitoring end time; Data represents the original monitoring data of a specific measurement point at a specific time, set to 1024000 bytes for storage, and when a certain data block byte block to be saved exceeds the set length, another data block can be opened for storage. At this time, the data is written to the non-relational database hBase according to the defined queue message format. When data needs to be analyzed, data can be read from the hBase database conveniently and quickly according to ID or time, component identifier.
[0138] S2015: Send the second queue message to a preset storage device to instruct the storage device to store the calling information of the component according to the second queue message.
[0139] After the second queue message is generated, the second queue message is sent to a preset storage device associated with the server to instruct the storage device to store the calling information of the component according to the second queue message.
[0140] After receiving the second queue message, the storage device saves the summarized data into a table by day and into a MYSQL database, providing data support for a quasi-real-time summary report.
[0141] In this embodiment, by monitoring the situation of each page in the mobile application calling the application component, if a page or component has an abnormality, the page or component with the problem can be quickly located, improving the efficiency of locating the problem; in addition, the flow of the problematic page or component can be restricted or fuse-broken in time to avoid cross-influence and improve the performance and availability of the application. Provide authorization management and payment calculation basis for page calling components, and use and charge each page owner on demand.
[0142] S202: Verify the legitimacy of the application information according to a preset data verification method.
[0143] After receiving the application information, the server first verifies the legitimacy of the application information. The specific verification method may be a data summary verification of the application information, which will not be described here.
[0144] S203: If the validity check of the application information passes, a first queue message is generated according to the application information and a preset message format.
[0145] The queue message format in this embodiment can generate a KAFKA queue message according to the queue message format, including the application information of the user using the application, all the application information and call data of the server in the process of processing the application request. The queue message format in this embodiment can be used to determine the corresponding target data within the period according to the target time of the failure when the application fails, or when any device such as the terminal, server and storage device fails. The target data can be determined by extracting the data including the target time in the message format according to the Time in the queue message format as the target data, and then filtering out the elements that may fail according to the Component in the target data to realize data positioning, so as to conduct targeted fault analysis and efficiently determine the cause of the fault.
[0146] The first queue message in this embodiment may include KAFKA queue messages. The elements that generate KAFKA queue messages may include creator Producer, client Consumer, message Message, session Topic, group Partition, and cluster Broker, etc., where Produce is used to indicate that the object that publishes the message is called a topic producer; Consumer is used to indicate that the object that subscribes to the message and processes the seed of the published message is called a topic consumer; Message is used to indicate that the message is the basic unit of communication, and each Producer can publish some messages to a topic; Session is used to indicate that KAFKA classifies message seeds, and each type of message is called a topic; Partition is used to indicate that the session is a physical grouping, and Partition is a logical partition, because a session can be divided into multiple Partitions, and each Partition is an ordered queue. Each message in a Partition will be assigned an ordered message identifier, which will indicate the offset of the ordered queue of the Partition; Broker is used to indicate that the published messages are stored in a group of servers, which is called a KAFKA cluster. Each server in the cluster is an agent. Consumers can subscribe to one or more topics and pull data from Broker to consume these published messages.
[0147] In practical applications, the data collection system can only operate normally if the server's ability to provide data is greater than or equal to the storage device's ability to store or process data. The push method will cause data accumulation when the storage device's ability to consume or digest data is less than the server's ability to provide data. Therefore, KAFKA in this embodiment adopts a pull method, allowing the server's ability to provide data to exceed the storage device's ability to consume data, and also allowing the storage device to adjust the rate of receiving data by itself.
[0148] S204: Send the first queue message to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message.
[0149] After the first queue message is generated, the first queue message is sent to a storage device associated with the server, and the sending method can be cache-and-resend. The first queue message in this embodiment is used to store application information through the first queue message, so that the state of the application information can be determined in the storage device according to the first queue message.
[0150] The above scheme receives application information sent by a terminal associated with the server when a preset current limiting fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact method; according to a preset data verification method, the legitimacy of the application information is verified; if the legitimacy of the application information is verified, a first queue message is generated according to the application information and a preset message format; the first queue message is sent to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message. By generating a first queue message according to the application information sent by the terminal, and storing the first queue message and the application information in the storage device, the storage efficiency of the application information is improved, and the data processing efficiency of the application is also improved.
[0151] See also Figure 3 , Figure 3 1 is a flow chart of a flow control method for an application component provided in Example 3 of the present application. The execution subject of the flow control method for the application component in this embodiment is a storage device. The flow control method for the application component shown in the figure may include the following steps:
[0152] S301: Receive a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, the operating conditions of the component of the application include that the user's account information has permission to use a function of the component, and the component function is determined based on an acquired touch position and contact method.
[0153] Receive a first queue message sent by a server associated with a storage device. In this embodiment, the first queue message includes application information generated by a terminal associated with the server during operation. The application information includes information generated when the terminal runs a component of an application. The operating conditions of the component of the application include the user's account information having permission to use the component function.
[0154] S302: Divide the first queue messages into batch files according to a preset period.
[0155] After receiving the KAFKA queue message, the storage device first saves each detail data of the queue message in a file every hour, generates batch files, and then moves the generated batch files to the network attached storage volume in batches.
[0156] S303: Generate detailed reports of all the batch files, and store the batch files and their detailed reports.
[0157] Then, Hadoop is used to save the batch files into the hive library by day, and detailed reports of the batch files are generated and saved into the MYSQL database to provide data support for quasi-real-time summary reports.
[0158] Exemplarily, the data traffic size of each component can be determined based on the detailed report, and if charging is required based on the component traffic, the traffic called by the component is charged based on the detailed report.
[0159] Furthermore, the method further comprises:
[0160] Receiving a second queue message sent by the server;
[0161] Identify the component identifier in the second queue message, and store the number of calls, average duration and call success rate in the second queue message according to the component identifier, so that when the operation failure information of the application is received, the second queue message corresponding to the component identifier of the failed component in the operation failure information can be retrieved.
[0162] Specifically, after generating the first queue message, the server sends the second queue message to a storage device associated therewith. After receiving the second queue message sent by the server, the storage device identifies the component identifier in the second queue message, and stores the number of calls, average time consumption, and call success rate in the second queue message according to the component identifier, so as to retrieve the second queue message corresponding to the component identifier of the component that fails in the running fault information when receiving the running fault information of the application.
[0163] For example, by monitoring the situation of calling application components on each page in the mobile application, if a page or component has an abnormality, the problematic page or component can be quickly located to improve the efficiency of locating the problem; in addition, the flow of problematic pages or components can be restricted or fuse-broken in time to avoid cross-influence and improve the performance and availability of the application. Provide authorization management and payment calculation basis for page calling components, and use and charge each page owner on demand.
[0164] The above scheme receives a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, and the operating conditions of the component of the application include that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact method; divides the first queue message into batch files according to a preset period; generates a detailed report of all the batch files, and stores the batch files and their detailed reports. By receiving and storing the first queue message sent by the server and dividing it according to the first queue message, a detailed report corresponding to each batch file is obtained, the storage efficiency of the application information is improved, and the fault handling efficiency of the application is also improved.
[0165] See also Figure 4 , Figure 4 4 is a schematic diagram of a flow control terminal of an application component provided in the fourth embodiment of the present application. The flow control terminal 400 of the application component can be a mobile terminal such as a smart phone, a tablet computer, etc. The flow control terminal 400 of the application component of this embodiment includes various units for executing Figure 1 For details of the steps in the corresponding embodiments, please refer to Figure 1 and Figure 1 The relevant descriptions in the corresponding embodiments are not repeated here. The flow control terminal 400 of the application component of this embodiment includes:
[0166] The first acquisition unit 401 is used to acquire the touch screen information of the user on the terminal interface; the touch screen information includes the touch position and contact mode on the terminal interface;
[0167] An operating unit 402 is used to determine a component function corresponding to the touch position and the contact mode, and if the user's account information has permission to use the component function, operate the component of the application program;
[0168] A collection unit 403 is used to collect application information generated by the application program in the process of running the component;
[0169] The first sending unit 404 is used to cache the application information and, when a preset current limiting and fuse condition is met, send a limited number of application information to a server associated with the terminal according to the communication status of the current network.
[0170] Furthermore, the operation unit 402 includes:
[0171] A first determining unit, configured to determine the user calling authority of the account information currently logged into the application program according to the component calling authority corresponding to each acquired account information;
[0172] A second determining unit, configured to determine the component according to the touch position and determine a function corresponding to the component according to the contact mode;
[0173] The component running unit is used to run the component of the application if the component function meets the user calling authority.
[0174] The above scheme obtains the user's touch screen information on the terminal interface; the touch screen information includes the touch position and contact method on the terminal interface; determines the component function corresponding to the touch position and the contact method, and if the user's account information has the permission to use the component function, runs the component of the application; collects the application information generated by the application in the process of running the component; caches the application information, and when the preset current limiting and fuse conditions are met, according to the current network communication status, sends a limited number of application information to the server associated with the terminal. When the amount of data generated during the terminal running the application is large, the current limiting and fuse are performed in time, and the cached application information is sent to the server, which ensures the load balancing of network communication and reduces the cache pressure of the terminal.
[0175] See also Figure 5 , Figure 5 Schematic diagram of a server 500 provided in Embodiment 5 of the present application. The server 500 of this embodiment includes units for executing Figure 2 For details of the steps in the corresponding embodiments, please refer to Figure 2 and Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here. The server 500 of this embodiment includes:
[0176] A first receiving unit 501 receives application information sent by a terminal associated with the server when a preset current limiting and fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0177] A verification unit 502, configured to verify the legitimacy of the application information according to a preset data verification method;
[0178] The first queue unit 503 is used to generate a first queue message according to the application information and a preset message format if the validity check of the application information passes;
[0179] The second sending unit 504 is configured to send the first queue message to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message.
[0180] Furthermore, the server 500 further includes:
[0181] A setting unit, used to set component call permissions and current limiting fuse conditions corresponding to each account information registered in the application, wherein the current limiting fuse conditions are used to trigger the terminal to send application information;
[0182] The third sending unit is used to send the component calling application information generated by the terminal when running the component of the application program, the permission and the current limiting fuse condition to the terminal, so as to instruct the terminal to call the component according to the component calling permission and the currently logged-in account information, and send the application information to the server when the current limiting fuse condition is met.
[0183] Furthermore, the server 500 further includes:
[0184] A statistical unit, used to count the call information of each component in the application information within a preset period; the call information includes the number of calls, average time consumption and call success rate of each component;
[0185] A second queue unit, used to generate a second queue message according to the call information and the message format; the second queue message is used to represent the running state of the application within the preset period;
[0186] The fourth sending unit is used to send the second queue message to a preset storage device to instruct the storage device to store the calling information of the component according to the second queue message.
[0187] The above scheme receives application information sent by a terminal associated with the server when a preset current limiting fuse condition is met, wherein the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact method; according to a preset data verification method, the legitimacy of the application information is verified; if the legitimacy of the application information is verified, a first queue message is generated according to the application information and a preset message format; the first queue message is sent to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message. By generating a first queue message according to the application information sent by the terminal, and storing the first queue message and the application information in the storage device, the storage efficiency of the application information is improved, and the data processing efficiency of the application is also improved.
[0188] See also Figure 6 , Figure 6 600 can be a mobile terminal such as a smart phone, a tablet computer, etc. The storage device 600 of this embodiment includes various units for executing Figure 3 For details of the steps in the corresponding embodiments, please refer to Figure 3 and Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here. The storage device 600 of this embodiment includes:
[0189] A third receiving unit 601 is configured to receive a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, and the running condition of the component of the application includes that the user's account information has permission to use a function of the component, and the component function is determined based on the acquired touch position and contact method;
[0190] A batching unit 602, configured to divide the first queue messages into batch files according to a preset period;
[0191] The storage unit 603 is used to generate detailed reports of all the batch files and store the batch files and their detailed reports.
[0192] Furthermore, the storage device 600 further includes:
[0193] A fourth receiving unit, configured to receive a second queue message sent by the server;
[0194] An identification unit is used to identify the component identifier in the second queue message, and store the number of calls, average call time and call success rate in the second queue message according to the component identifier, so that when the operation failure information of the application is received, the second queue message corresponding to the component identifier of the faulty component in the operation failure information is retrieved.
[0195] The above scheme receives a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, and the operating conditions of the component of the application include that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact method; divides the first queue message into batch files according to a preset period; generates a detailed report of all the batch files, and stores the batch files and their detailed reports. By receiving and storing the first queue message sent by the server and dividing it according to the first queue message, a detailed report corresponding to each batch file is obtained, the storage efficiency of the application information is improved, and the fault handling efficiency of the application is also improved.
[0196] See also Figure 7 , Figure 7 7 is a schematic diagram of a flow control system of an application component provided in Embodiment 7 of the present application. The flow control system of the application component includes a terminal 701, a server 702, and a storage device 703, wherein the terminal 701 is associated with the server 702, and the server 702 is associated with the storage device 703. The flow control system 700 of the application component of this embodiment includes:
[0197] Terminal 701, used for generating application information when running a component of an application, and sending a limited number of pieces of application information to a server associated with the terminal according to the communication state of the current network, wherein the running condition of the component of the application includes that the user's account information has the right to use the function of the component, and the component function is determined based on the acquired touch position and contact mode;
[0198] The server 702 is used to receive the application information sent by the terminal, and after the legitimacy check of the application information is passed, generate a first queue message according to the application information and a preset message format, and send the first queue message to an associated storage device;
[0199] The storage device 703 is used to receive the first queue message sent by the server, divide the first queue message into batch files according to a preset period, generate detailed reports of all the batch files, and store the batch files and their detailed reports.
[0200] The above scheme generates application information by using an application on the terminal, and then sends the application information to the server if the current limiting and fuse conditions are met. The server generates a first queue message corresponding to the application information according to a preset queue message format, and sends the first queue message to a storage device associated with it. The first queue message is divided into batch files for storage in the storage device. At the same time, the number of calls, average time consumption and call success rate of each component of the application are counted and stored in the storage device. This embodiment generates a first queue message corresponding to the application information according to the preset queue message format, so that in the event of a failure in the application, the faulty page or component can be quickly located according to the queue message format, thereby improving the efficiency and accuracy of locating problems and also improving the efficiency of traffic monitoring and control of application components.
[0201] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0202] Figure 8 Schematic diagram of the flow control system of the application component provided in Example 8 of the present application. Figure 8 As shown, the flow control device 800 of the application component of this embodiment includes: a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and executable on the processor 801. When the processor 801 executes the computer program 803, the steps of the flow control method embodiments of each application component are implemented, such as Figure 1 , Figure 2 or Figure 3 Alternatively, when the processor 801 executes the computer program 803, the functions of the flow control terminal of each program component, the flow control server of the program component or the flow control storage device of the program component are realized.
[0203] Exemplarily, the computer program 803 may be divided into one or more modules / units, which are stored in the memory 802 and executed by the processor 801 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 803 in the flow control device 800 of the application component.
[0204] The flow control device 800 of the application component can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device can include, but is not limited to, a processor 801 and a memory 802. Those skilled in the art can understand that Figure 8 It is only an example of the flow control device 800 of the application component and does not constitute a limitation of the flow control device 800 of the application component. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0205] The processor 801 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0206] The memory 802 may be an internal storage unit of the flow control device 800 of the application component, such as a hard disk or memory of the flow control device 800 of the application component. The memory 802 may also be an external storage device of the flow control device 800 of the application component, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FC), etc. equipped on the flow control device 800 of the application component. Further, the memory 802 may also include both an internal storage unit and an external storage device of the flow control device 800 of the application component. The memory 802 is used to store the computer program and other programs and data required by the terminal device. The memory 802 may also be used to temporarily store data that has been output or is to be output.
[0207] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0208] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0209] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0210] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
[0211] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A flow control method for an application component, characterized in that: Applied to terminals, including: Acquire the touch screen information of the user on the terminal interface; the touch screen information includes the touch position and contact mode on the terminal interface; Determine the component function corresponding to the touch position and the contact mode; If the user's account information has permission to use the component function, then run the component of the application; Collecting application information generated by the application program in the process of running the component; wherein the application information includes call information of each component, and the call information includes the number of calls, average time consumption and call success rate of each component; The application information is cached, and when the terminal associated with the server meets the preset current limiting and fuse conditions, a limited number of application information are sent to the server associated with the terminal according to the communication status of the current network; wherein the current limiting and fuse conditions are used to indicate the triggering conditions and the processing method of the cached application information, which are used to indicate the generated application cache for different account information during the running of the application, and to stop the caching after the cached application information reaches a certain capacity, so as to send the cached application information to the server associated with the terminal when the trigger conditions are met.
2. The flow control method of the application component according to claim 1, characterized in that: If the user's account information has permission to use the component function, running the component of the application program includes: Determine the user calling permissions of the account information currently logged into the application based on the component calling permissions corresponding to each account information obtained; Determine the component according to the touch position, and determine the function corresponding to the component according to the contact mode; If the component function complies with the user's calling authority, the component of the application is run.
3. A flow control method for an application component, characterized in that: Applicable to servers, including: Receive application information sent by a terminal associated with the server when a preset current limiting and fuse conditions are met, wherein the application information is generated by the terminal when running a component of an application, and the running conditions of the component of the application include that the user's account information has the right to use the function of the component, and the function of the component is determined based on the acquired touch position and contact method; the application information includes call information of each component, and the call information includes the number of calls, average time consumption and call success rate of each component; the current limiting and fuse conditions are used to indicate that different account information will cache the generated application in the process of running the application, and stop caching the triggering conditions and the processing method of the cached application information after the cached application information reaches a certain capacity, so as to send the cached application information to the server associated with the terminal when the triggering conditions are met; Verify the legitimacy of the application information according to a preset data verification method; If the validity check of the application information passes, generating a first queue message according to the application information and a preset message format; The first queue message is sent to a storage device associated with the server to instruct the storage device to store the application information according to the first queue message.
4. The flow control method of the application component as claimed in claim 3, characterized in that: Before receiving the application information sent by the terminal associated with the server when the preset current limiting fuse condition is met, the method further includes: Setting component call permissions and current limiting fuse conditions corresponding to each account information registered in the application, wherein the current limiting fuse conditions are used to trigger the terminal to send application information; The component calling permission and the current limiting fuse condition are sent to the terminal to instruct the terminal to call the component according to the component calling permission and the currently logged-in account information, and send the application information to the server when the current limiting fuse condition is met.
5. The flow control method of application component according to claim 3, characterized in that: After receiving the application information sent by the terminal associated with the server when the preset current limiting fuse condition is met, the method further includes: Counting the call information of each component in the application information within a preset period; generating a second queue message according to the call information and a corresponding message format; the second queue message is used to represent the running state of the application within the preset period; The second queue message is sent to a preset storage device to instruct the storage device to store the calling information of the component according to the second queue message.
6. A flow control method for an application component, characterized in that: Applicable to storage devices, including: Receive a first queue message sent by a server associated with the storage device, wherein the first queue message includes application information generated by a terminal associated with the server during operation, the application information is generated by the terminal when running a component of an application, the running conditions of the component of the application include that the user's account information has the right to use the function of the component, and the function of the component is determined based on the acquired touch position and contact method; the application information includes call information of each component, and the call information includes the number of calls, average time consumption and call success rate of each component; the terminal can be used to cache the application information, and when the terminal associated with the server meets the preset current limiting fuse condition, according to the communication state of the current network, a limited number of application information is sent to the server associated with the terminal; the current limiting fuse condition is used to indicate the triggering conditions and the processing method of the cached application information of different account information during the running of the application, and to stop caching the generated application after the cached application information reaches a certain capacity, so as to send the cached application information to the server associated with the terminal when the trigger condition is met; Dividing the first queue messages into batch files according to a preset period; Generate detailed reports of all the batch files, and store the batch files and their detailed reports.
7. The flow control method of application component according to claim 6, characterized in that: The method further comprises: Receiving a second queue message sent by the server; Identify the component identifier in the second queue message, and store the number of calls, average duration and call success rate in the second queue message according to the component identifier, so that when the operation failure information of the application is received, the second queue message corresponding to the component identifier of the failed component in the operation failure information can be retrieved.
8. A flow control system for an application component, characterized in that: include: A terminal, used to generate application information when running a component of an application, and send a limited number of application information to a server associated with the terminal according to the communication state of the current network, wherein the running conditions of the component of the application include that the user's account information has the right to use the function of the component, the function of the component is determined based on the acquired touch position and contact method, and the application information includes call information of each component, and the call information includes the number of calls, average time consumption and call success rate of each component; the terminal is also used to cache the application information, and when the terminal associated with the server meets the preset current limiting fuse condition, send the limited number of application information to the server associated with the terminal according to the communication state of the current network; the current limiting fuse condition is used to indicate the triggering conditions and the processing method of the cached application information when different account information runs the application, and stops caching the generated application after the cached application information reaches a certain capacity, so that the cached application information is sent to the server associated with the terminal when the trigger condition is met; The server is configured to receive the application information sent by the terminal, generate a first queue message according to the application information and a preset message format after the legitimacy of the application information is verified, and send the first queue message to a storage device associated with the server; The storage device is used to receive the first queue message sent by the server, divide the first queue message into batch files according to a preset period, generate detailed reports of all the batch files, and store the batch files and their detailed reports.
9. A flow control device for an application component, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2, the method according to any one of claims 3 to 5, or the method according to any one of claims 6 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2, the method according to any one of claims 3 to 5, or the method according to any one of claims 6 to 7 are implemented.
Citation Information
Patent Citations
Message backlog solving method and device of distributed system
CN108664337A
Asynchronous message interface fusing control method and device, computer equipment and storage medium
CN109743358A
Message pushing user message state reporting processing method and device and storage medium
CN109873904A
Data processing method and system
CN110297746A
Service fusing method and device and message middleware
CN110377434A
