Message fusing method and device, computer equipment and storage medium
By judging whether the message to be sent needs circuit breaker processing based on the user's access habits and the pressure of the server, the problem of server downtime due to message backlog in traditional technology is solved and the stability of the system is improved.
Patent Information
- Application Number
- CN202410643647.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-23
AI Technical Summary
When there are a large number of clients and a large number of messages to be sent, traditional technology can easily cause server downtime.
By obtaining the type of message to be sent, the sending time and the user's historical access data, as well as the server's interface response time, it is determined whether the message to be sent needs to be circuit breaker processed, thereby avoiding server downtime caused by message backlog.
It effectively prevents server downtime, improves the stability and reliability of the system, and ensures the smooth progress of the message sending process.
Smart Images

Figure CN118740779A_ABST
Abstract
Description
Technical Field
[0001] This application can be used in artificial intelligence technology in the financial field, and can also be used in any field other than the financial field. The application field of this application is not limited. Background Art
[0002] With the rise of user terminals in mobile phones, each user terminal will push various types of messages to users for them to read.
[0003] In traditional technology, the server corresponding to the user end will usually determine the message provided to the user and send the message as a to-be-sent message to each user end through an interface. Although this method can complete the sending of the to-be-sent message, when the number of user ends is large and the to-be-sent messages are large, there will be a backlog of to-be-sent messages, which may lead to server crashes. Summary of the invention
[0004] Based on this, it is necessary to provide a message fusing method, device, computer equipment and storage medium that can avoid server crashes in response to the above technical problems.
[0005] In a first aspect, the present application provides a message fusing method, comprising:
[0006] Obtain the message type, sending time and user end for receiving the message to be sent;
[0007] Get the interface response time of the server's corresponding sending interface; the sending interface is used to send messages to be sent;
[0008] Obtain historical access data generated by the user end corresponding to the user access history message;
[0009] Determine whether to perform fuse processing on the message to be sent based on the interface response time, historical access data, message type and sending time of the message to be sent;
[0010] If so, the message to be sent will be fused.
[0011] In one embodiment, determining whether to perform fuse processing on the message to be sent is required based on the interface response time, historical access data, the message type and sending time of the message to be sent includes:
[0012] Determine whether to allow fuse processing for the message to be sent based on the interface response time and the preset response time threshold;
[0013] If so, it is determined whether it is necessary to perform fuse processing on the message to be sent based on the historical access data of the user corresponding to the user end, the message type and the sending time of the message to be sent.
[0014] In one embodiment, the historical access data includes: a message type of a historical message; determining whether to perform fuse processing on the message to be sent according to the historical access data of the user corresponding to the user terminal, the message type and the sending time of the message to be sent, includes:
[0015] Determine whether the message type of the historical message corresponding to the user end is consistent with the message type of the message to be sent;
[0016] When the message type of the historical message is inconsistent with the message type of the message to be sent, it is determined that a fuse processing needs to be performed on the message to be sent.
[0017] In one embodiment, the historical access data includes: historical access time information of historical messages; the method further includes:
[0018] When the message type of the historical message is consistent with the message type of the message to be sent, it is determined whether it is necessary to perform fuse processing on the message to be sent according to the historical access time information of the historical message.
[0019] In one embodiment, the historical access time information includes: the historical access period of the historical message; and determining whether to perform fuse processing on the message to be sent according to the historical access time information of the historical message includes:
[0020] Determine whether the sending time of the message to be sent is within the historical access period of the historical messages;
[0021] When the sending time is not in the historical access period, it is determined that the message to be sent needs to be fuse-processed.
[0022] In one embodiment, the historical access time information includes: the historical access duration of the historical message; the method further includes:
[0023] When the historical access duration of the historical message does not meet the preset access duration threshold, it is determined that a fuse processing needs to be performed on the message to be sent.
[0024] In a second aspect, the present application also provides a message fusing device, including:
[0025] A message data acquisition module, used to acquire the message type, sending time and user end for receiving the message to be sent;
[0026] The response time acquisition module is used to obtain the interface response time of the server corresponding to the sending interface; the sending interface is used to send the message to be sent;
[0027] A historical data acquisition module is used to acquire historical access data generated by the user end corresponding to the user access history message;
[0028] The message fuse judgment module is used to determine whether the message to be sent needs to be fuse-processed according to the interface response time, historical access data, message type and sending time of the message to be sent;
[0029] The message fusing processing module, if so, performs fusing processing on the message to be sent.
[0030] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0031] Obtain the message type, sending time and user end for receiving the message to be sent;
[0032] Get the interface response time of the server's corresponding sending interface; the sending interface is used to send messages to be sent;
[0033] Obtain historical access data generated by the user end corresponding to the user access history message;
[0034] Determine whether to perform fuse processing on the message to be sent based on the interface response time, historical access data, message type and sending time of the message to be sent;
[0035] If so, the message to be sent will be fused.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0037] Obtain the message type, sending time and user end for receiving the message to be sent;
[0038] Get the interface response time of the server's corresponding sending interface; the sending interface is used to send messages to be sent;
[0039] Obtain historical access data generated by the user end corresponding to the user access history message;
[0040] Determine whether to perform fuse processing on the message to be sent based on the interface response time, historical access data, message type and sending time of the message to be sent;
[0041] If so, the message to be sent will be fused.
[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0043] Obtain the message type, sending time and user end for receiving the message to be sent;
[0044] Get the interface response time of the server's corresponding sending interface; the sending interface is used to send messages to be sent;
[0045] Obtain historical access data generated by the user end corresponding to the user access history message;
[0046] Determine whether to perform fuse processing on the message to be sent based on the interface response time, historical access data, message type and sending time of the message to be sent;
[0047] If so, the message to be sent will be fused.
[0048] The above-mentioned message fusing method, device, computer equipment and storage medium obtain the message type, sending time and user end for receiving the message to be sent; obtain the interface response time of the server corresponding to the sending interface; the sending interface is used to send the message to be sent; obtain the historical access data generated by the user end corresponding to the user access history message; determine whether it is necessary to perform fusing processing on the message to be sent according to the interface response time, historical access data, message type and sending time of the message to be sent; if so, perform fusing processing on the message to be sent. This application determines whether the message to be sent needs to be fusing processing according to the access habits of the user end (i.e., historical access data) and the pressure situation of the server (i.e., interface response time), thereby preventing the problem of server crash caused by backlog of messages to be sent. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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 work.
[0050] FIG1 is an application environment diagram of a message fusing method provided by this embodiment;
[0051] FIG2 is a schematic diagram of a flow chart of a first message fusing method provided in this embodiment;
[0052] FIG3 is a schematic diagram of a flow chart of a second message fusing method provided in this embodiment;
[0053] FIG4 is a structural block diagram of a message fusing device provided in this embodiment;
[0054] FIG5 is an internal structure diagram of a computer device provided in this embodiment;
[0055] FIG6 is a diagram showing the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] The message fuse method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the user terminal 102 communicates with the server 104 through the network. The server 104 includes a database and a message source system. When the server has a message to be sent to the user terminal, it determines whether to fuse the message to be sent in the sending source system according to the interface response time, historical access data, message type and sending time of the message to be sent stored in the database. Specifically, the server 104 obtains the message type, sending time and user terminal for receiving the message to be sent; obtains the interface response time of the server corresponding to the sending interface; the sending interface is used to send the message to be sent; obtains the historical access data generated by the user terminal corresponding to the user access history message; according to the interface response time, historical access data, message type and sending time of the message to be sent, it is determined whether it is necessary to fuse the message to be sent; if so, the message to be sent is fused. Among them, the user terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0058] In an exemplary embodiment, as shown in FIG2 , a message fusing method is provided, which is described by taking the method applied to the server 104 in FIG1 as an example, and includes the following steps 201 to 205. Among them:
[0059] Step 201, obtaining the message type, sending time and user end for receiving the message to be sent.
[0060] The message to be sent may be a push message to be sent to the user terminal, and the message to be sent may include an article, audio or video, etc. The message type may be the type of the message content of the message to be sent, such as technology type, financial type, etc. The sending time may be the time when the message to be sent is sent.
[0061] Specifically, the server obtains the message to be sent, and parses the message to be sent to obtain the message type, sending time and user end for receiving the message to be sent.
[0062] Step 202, obtaining the interface response time length of the corresponding sending interface of the server.
[0063] The sending interface is used to send the message to be sent. The interface response time may be the response time when the message is sent out through the sending interface.
[0064] Specifically, the server obtains the interface response time of its corresponding sending interface.
[0065] Step 203: Acquire historical access data generated by the user terminal corresponding to the user access history message.
[0066] The historical message may be a message sent by a historical server. The historical access data may be message data of messages sent by a historical server viewed by historical users.
[0067] Specifically, the server obtains the historical access data generated by the user's access history message corresponding to the user's end.
[0068] Step 204, determining whether it is necessary to perform fuse processing on the message to be sent based on the interface response time, historical access data, the message type and the sending time of the message to be sent.
[0069] Among them, the fuse processing can be a process of discarding the message to be sent.
[0070] Specifically, when the server determines that the response time of the outbound interface exceeds the preset time threshold, it determines whether it is necessary to perform fuse processing on the message to be sent according to historical access data, the message type and sending time of the message to be sent.
[0071] Step 205: If yes, the message to be sent is subjected to fuse processing.
[0072] Specifically, the server deletes and discards the message to be sent to the user terminal.
[0073] The above-mentioned message fusing method, device, computer equipment and storage medium obtain the message type, sending time and user end for receiving the message to be sent; obtain the interface response time of the server corresponding to the sending interface; the sending interface is used to send the message to be sent; obtain the historical access data generated by the user end corresponding to the user access history message; determine whether it is necessary to perform fusing processing on the message to be sent according to the interface response time, historical access data, message type and sending time of the message to be sent; if so, perform fusing processing on the message to be sent. This application determines whether the message to be sent needs to be fusing processing according to the access habits of the user end (i.e., historical access data) and the pressure situation of the server (i.e., interface response time), thereby preventing the problem of server crash caused by backlog of messages to be sent.
[0074] In some embodiments, whether it is necessary to perform fuse processing on the message to be sent is determined based on the interface response time, historical access data, the message type of the message to be sent, and the sending time, including: determining whether fuse processing is allowed for the message to be sent based on the interface response time and a preset response time threshold; if so, determining whether it is necessary to perform fuse processing on the message to be sent based on the historical access data of the user corresponding to the user end, the message type of the message to be sent, and the sending time.
[0075] Specifically, the server determines the relationship between the interface response time and the preset response time threshold. If it is determined that the interface response time is not greater than the preset response time threshold, there is no need to perform fuse processing on the message to be sent; if it is determined that the interface response time is greater than the preset response time threshold, it is allowed to perform fuse processing on the message to be sent, and further determine whether it is necessary to perform fuse processing on the message to be sent based on the historical access data of the user corresponding to the user end, the message type and sending time of the message to be sent.
[0076] This embodiment determines whether it is necessary to perform fuse processing on the message to be sent by determining the size relationship between the interface response time and the preset response time threshold, thereby further avoiding the problem of server downtime.
[0077] In some embodiments, the historical access data includes: the message type of the historical message; determining whether it is necessary to perform fuse processing on the message to be sent according to the historical access data of the user corresponding to the user terminal, the message type and the sending time of the message to be sent, including:
[0078] Determine whether the message type of the historical message corresponding to the user end is consistent with the message type of the message to be sent;
[0079] When the message type of the historical message is inconsistent with the message type of the message to be sent, it is determined that a fuse processing needs to be performed on the message to be sent.
[0080] Specifically, determine whether the message type of the historical message corresponding to the user end is consistent with the message type of the message to be sent. If not, determine whether the message to be sent needs to be fused. If consistent, further determine whether the message to be sent needs to be fused based on the historical access time information of the historical message.
[0081] In some embodiments, the historical access data includes: historical access time information of historical messages; the method also includes: when the message type of the historical message is consistent with the message type of the message to be sent, determining whether it is necessary to perform fuse processing on the message to be sent based on the historical access time information of the historical message.
[0082] This embodiment further avoids the problem of server downtime by further determining whether the message type of the historical message is consistent with the message type of the message to be sent, and then determining whether it is necessary to perform fuse processing on the message to be sent.
[0083] In some embodiments, the historical access time information includes: the historical access time period of historical messages; based on the historical access time information of historical messages, determining whether it is necessary to perform fuse processing on the message to be sent, including: determining whether the sending time of the message to be sent is within the historical access time period of the historical message; if the sending time is not within the historical access time period, determining that it is necessary to perform fuse processing on the message to be sent.
[0084] Specifically, determine whether the sending time of the message to be sent is in the historical access period of the historical message. If so, further determine whether the message to be sent needs to be fused based on the historical access duration; if not, determine that the message to be sent needs to be fused.
[0085] This embodiment further avoids the problem of server downtime by further determining whether the sending time is in the historical access period of the historical message, and then deciding whether it is necessary to perform fuse processing on the message to be sent.
[0086] In some embodiments, the historical access time information includes: the historical access duration of historical messages; the method also includes: when the historical access duration of historical messages does not meet a preset access duration threshold, determining that fuse processing needs to be performed on the message to be sent.
[0087] Specifically, the server determines whether the historical access time of the historical message meets the preset access time threshold. If it is determined that the historical access time does not meet the preset access time threshold, it is determined that the message to be sent needs to be fused. If it does, it proves that there is a probability that the user at the user end will view the message to be sent, and there is no need to fuse the message to be sent.
[0088] In this embodiment, by further determining whether the historical access duration meets the preset access duration threshold, and then deciding whether it is necessary to perform fuse processing on the message to be sent, the problem of server downtime is further avoided.
[0089] In one embodiment, this embodiment provides an optional method for message fusing, and takes the method applied to a server as an example for explanation. As shown in FIG3 , the method includes the following steps:
[0090] Step 301, obtaining the message type, sending time and user end for receiving the message to be sent.
[0091] Step 302: Obtain the interface response time of the corresponding sending interface of the server.
[0092] Step 303: Acquire historical access data generated by the user terminal corresponding to the user access history message.
[0093] Step 304, based on the interface response time and the preset response time threshold, determine whether to allow fuse processing for the message to be sent, if so, execute step 305, if not, execute step 308.
[0094] Step 305 , determining whether the message type of the historical message corresponding to the user end is consistent with the message type of the message to be sent, if so, executing step 306 , if not, executing step 309 .
[0095] Step 306 , determining whether the sending time of the message to be sent is within the historical access period of the historical messages, if so, executing step 307 , if not, executing step 309 .
[0096] Step 307 , determining whether the historical access duration of the historical message meets a preset access duration threshold, if so, executing step 308 , if not, executing step 309 .
[0097] Step 308: Send the message to be sent to the user end.
[0098] Step 309, determine to perform fuse processing on the message to be sent.
[0099] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0100] Based on the same inventive concept, the embodiment of the present application also provides a message fuse device for implementing the message fuse method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message fuse device embodiments provided below can refer to the limitations of the message fuse method above, and will not be repeated here.
[0101] In an exemplary embodiment, as shown in FIG4 , a message fusing device is provided, comprising: a message data acquisition module 10, a response time acquisition module 11, a historical data acquisition module 12, a message fusing determination module 13 and a message fusing processing module 14, wherein:
[0102] A message data acquisition module 10 is used to acquire the message type, the sending time and the user end for receiving the message to be sent;
[0103] The response time acquisition module 11 is used to acquire the interface response time of the server corresponding to the sending interface; the sending interface is used to send the message to be sent;
[0104] A historical data acquisition module 12, used to acquire historical access data generated by the user terminal corresponding to the user access history message;
[0105] The message fuse judgment module 13 is used to determine whether it is necessary to fuse the message to be sent according to the interface response time, historical access data, the message type and sending time of the message to be sent;
[0106] The message fusing processing module 14, if yes, performs fusing processing on the message to be sent.
[0107] In some embodiments, the message fuse judgment module 13 in Figure 4 is also used to determine whether it is allowed to fuse the message to be sent based on the interface response time and the preset response time threshold; if so, it is determined whether it is necessary to fuse the message to be sent based on the historical access data of the user corresponding to the user end, the message type and sending time of the message to be sent.
[0108] In some embodiments, the message fuse judgment module 13 in Figure 4 is also used to determine whether the message type of the historical message corresponding to the user end is consistent with the message type of the message to be sent; when the message type of the historical message is inconsistent with the message type of the message to be sent, it is determined that the message to be sent needs to be fused.
[0109] In some embodiments, the message fuse judgment module 13 in Figure 4 is also used to determine whether it is necessary to perform fuse processing on the message to be sent according to the historical access time information of the historical message when the message type of the historical message is consistent with the message type of the message to be sent.
[0110] In some embodiments, the message fuse judgment module 13 in Figure 4 is also used to determine whether the sending time of the message to be sent is in the historical access period of historical messages; if the sending time is not in the historical access period, it is determined that the message to be sent needs to be fused.
[0111] In some embodiments, the message fuse determination module 13 in FIG. 4 is further used to determine that a fuse process needs to be performed on the message to be sent when the historical access duration of the historical message does not meet a preset access duration threshold.
[0112] Each module in the above message fuse device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0113] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as interface response time, historical access data and messages to be sent. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message fuse method is implemented.
[0114] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a message fusing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0115] Those skilled in the art will understand that the structures shown in FIGS. 5 and 6 are merely block diagrams of partial structures related to the scheme of the present application, and do not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.
[0116] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0118] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the above method embodiments.
[0119] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0122] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A message fusing method, characterized in that: Applied to a server, the method comprises: Obtaining the message type, sending time and user end for receiving the message to be sent; Obtaining the interface response time of the sending interface corresponding to the server; the sending interface is used to send the message to be sent; Acquire historical access data generated by the user terminal corresponding to the user access history message; Determine whether it is necessary to perform fuse processing on the message to be sent according to the interface response time, the historical access data, the message type and the sending time of the message to be sent; If so, fuse processing is performed on the message to be sent.
2. The method according to claim 1, characterized in that The determining whether it is necessary to perform fuse processing on the message to be sent according to the interface response time, the historical access data, the message type and the sending time of the message to be sent includes: Determine whether to allow fuse processing for the message to be sent according to the interface response time and a preset response time threshold; If so, it is determined whether it is necessary to perform fuse processing on the message to be sent according to the historical access data of the user corresponding to the user terminal, the message type and the sending time of the message to be sent.
3. The method according to claim 2, characterized in that The historical access data includes: the message type of the historical message; the determining whether it is necessary to perform fuse processing on the message to be sent according to the historical access data of the user corresponding to the user terminal, the message type and the sending time of the message to be sent, includes: Determine whether the message type of the historical message corresponding to the user terminal is consistent with the message type of the message to be sent; When the message type of the historical message is inconsistent with the message type of the message to be sent, it is determined that a fuse processing needs to be performed on the message to be sent.
4. The method according to claim 3, characterized in that The historical access data includes: historical access time information of the historical message; the method further includes: In the case that the message type of the historical message is consistent with the message type of the message to be sent, it is determined whether it is necessary to perform fuse processing on the message to be sent according to the historical access time information of the historical message.
5. The method according to claim 4, characterized in that The historical access time information includes: the historical access period of the historical message; and determining whether it is necessary to perform fuse processing on the message to be sent according to the historical access time information of the historical message includes: Determine whether the sending time of the message to be sent is within the historical access period of the historical message; When the sending time is not within the historical access period, it is determined that a fuse processing needs to be performed on the message to be sent.
6. The method according to claim 5, characterized in that The historical access time information includes: the historical access duration of the historical message; the method further includes: When the historical access duration of the historical message does not meet the preset access duration threshold, it is determined that a fuse processing needs to be performed on the message to be sent.
7. A message fusing device, characterized in that: The device comprises: A message data acquisition module, used to acquire the message type, sending time and user end for receiving the message to be sent; A response duration acquisition module, used to acquire the interface response duration of the sending interface corresponding to the server; the sending interface is used to send the message to be sent; A historical data acquisition module, used to acquire historical access data generated by the user terminal corresponding to the user access history message; A message fusing judgment module, used to determine whether it is necessary to perform fusing processing on the message to be sent according to the interface response time, the historical access data, the message type and the sending time of the message to be sent; The message fusing processing module, if so, performs fusing processing on the message to be sent.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.
10. A computer program product, comprising 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 6 are implemented.
Citation Information
Patent Citations
Data processing method and device and computer equipment
CN116405534A
Message queue processing method and device based on service scene
CN116800698A
Access message processing method and device, storage medium and electronic equipment
CN116957123A
Message processing method and device, equipment, storage medium and computer program product
CN117312011A
Dynamic current-limiting fusing configuration method and apparatus, and device and storage medium
WO2022267179A1
