CN115914152B - Receipt information pushing method, system and storage medium - Google Patents

Receipt information pushing method, system and storage medium Download PDF

Info

Publication number
CN115914152B
CN115914152B CN202211245038.6A CN202211245038A CN115914152B CN 115914152 B CN115914152 B CN 115914152B CN 202211245038 A CN202211245038 A CN 202211245038A CN 115914152 B CN115914152 B CN 115914152B
Authority
CN
China
Prior art keywords
push
pushing
receiving end
information
target receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211245038.6A
Other languages
Chinese (zh)
Other versions
CN115914152A (en
Inventor
何俊杰
张锦秀
黄微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xuanwu Wireless Technology Co Ltd
Original Assignee
Guangzhou Xuanwu Wireless Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xuanwu Wireless Technology Co Ltd filed Critical Guangzhou Xuanwu Wireless Technology Co Ltd
Priority to CN202211245038.6A priority Critical patent/CN115914152B/en
Publication of CN115914152A publication Critical patent/CN115914152A/en
Application granted granted Critical
Publication of CN115914152B publication Critical patent/CN115914152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

The application discloses a receipt information pushing method, a system and a storage medium, which are applied to the technical field of message pushing, can effectively relieve the problem of receipt loss and improve the overall pushing efficiency of receipt information pushing. The method comprises the following steps: acquiring a push address of the receipt information; determining that the push address is obtained, and pushing the receipt information to a target receiving end through a first push thread pool according to the push address to obtain a push result; determining that the pushing result is a pushing failure, and generating a first delayed pushing message according to the receipt information; delivering the first delayed push message to a second push thread pool; and pushing the first delayed push message to the target receiving end through the second push thread pool.

Description

Receipt information pushing method, system and storage medium
Technical Field
The present application relates to the field of message pushing technologies, and in particular, to a method, a system, and a storage medium for pushing receipt information.
Background
After the client or the internal system sends the short message through the short message platform, the push service obtains the receipt information from the information queue (MQ), and obtains the corresponding push address according to the identification of the short message. And then, the receipt information is pushed to the corresponding client or an internal system to feed back the short message sending result. In the related art, when the receiving end of the push is abnormal in receiving, the receipt information is lost when the push fails, and the receiving speed of the push receiving end is low, so that the overall receipt information push speed is low.
Disclosure of Invention
In order to solve at least one of the above technical problems, the application provides a receipt information pushing method, a system and a storage medium, which can effectively relieve the problem of receipt loss and improve the overall pushing efficiency of receipt information pushing.
In one aspect, the embodiment of the application provides a receipt information pushing method, which comprises the following steps:
acquiring a push address of the receipt information;
determining that the push address is obtained, and pushing the receipt information to a target receiving end through a first push thread pool according to the push address to obtain a push result;
determining that the pushing result is a pushing failure, and generating a first delayed pushing message according to the receipt information;
delivering the first delayed push message to a second push thread pool;
and pushing the first delayed push message to the target receiving end through the second push thread pool.
The receipt information pushing method provided by the embodiment of the application has at least the following beneficial effects: according to the embodiment, firstly, the push address of the receipt information is obtained, after the push address is obtained, the receipt information is pushed to the target receiving end through the first push thread pool according to the push address, and a corresponding push result is obtained. And then, when the pushing result is determined to be the pushing failure, generating a first delayed pushing message according to the receipt information. Then, the embodiment delivers the first delayed push message to the second push thread pool, so that the first delayed push message is pushed to the target receiving end through the second push thread pool, and the problem of receipt loss is effectively relieved. Meanwhile, the first pushing thread pool and the second pushing thread pool are arranged, so that the delayed pushing is performed through the second pushing thread pool, the problem that normal pushing is affected due to failure in receipt information pushing is effectively relieved, and the overall pushing efficiency of receipt information pushing is effectively improved.
According to some embodiments of the present application, when the determining is performed to obtain the push address, and the response piece information is pushed to the target receiving end through the first push thread pool according to the push address to obtain a push result, the method further includes:
determining that the push address is not acquired, and generating second delay push information according to the receipt information;
delivering the second delayed push information to the second push thread pool; the second push thread pool pushes the second delayed push information to the target receiving end.
According to some embodiments of the present application, when the step of determining that the push result is a push failure and generating a first delayed push message according to the response piece information is performed, the method further includes:
determining that the pushing result is pushing success, and acquiring response data of the target receiving end; the response data comprises response delay time and response abnormal conditions;
and determining that the target receiving end needs to be degraded according to the response data through a preset degradation rule, and marking the target receiving end as a degraded receiving end.
According to some embodiments of the present application, before performing the step of pushing the response piece information to the target receiving end through the first push thread pool according to the push address to obtain a push result, the method further includes:
determining the target receiving end as the degradation receiving end, and generating a third delayed push message according to the receipt information;
delivering the third delayed push information to the second push thread pool; and the second push thread pool pushes the third delayed push information to the target receiving end.
According to some embodiments of the present application, the determining, according to the response data, that the target receiving end needs to be degraded through a preset degradation rule, marking the target receiving end as a degraded receiving end includes:
determining that the response delay time is greater than a preset delay time, and recording a response overtime event; determining that the first number of response timeout events is larger than the preset timeout number in a first preset detection time, and marking the target receiving end as the degradation receiving end;
or, counting a second number of abnormal sound events in a second preset detection time; and determining that the second number is larger than a preset abnormal number, and marking the target receiving end as the degraded receiving end.
According to some embodiments of the application, before performing the step of generating the first delayed push message from the response piece information, the method further comprises:
re-pushing the receipt information according to preset re-pushing times; the re-pushing is to re-push the receipt information to the target receiving end through the first pushing thread pool.
According to some embodiments of the application, the obtaining the push address of the receipt information includes:
registering the corresponding push address to a preset service platform according to a first preset identifier of the target receiving end;
and dynamically acquiring the push address from the preset service platform according to a second preset identifier of the push message.
According to some embodiments of the present application, before performing the step of pushing the response piece information to the target receiving end through the first push thread pool according to the push address to obtain a push result, the method further includes:
and constructing push connection between the push server and the target receiving end through a preset remote procedure call architecture.
On the other hand, the embodiment of the application also provides a receipt information pushing system, which comprises:
at least one processor;
at least one memory for storing at least one program;
and when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the receipt information pushing method according to the above embodiment.
In another aspect, an embodiment of the present application further provides a computer storage medium, where a program executable by a processor is stored, where the program executable by the processor is used to implement the response piece information pushing method according to the foregoing embodiment.
Drawings
FIG. 1 is a flowchart of a receipt information pushing method provided by an embodiment of the present application;
FIG. 2 is a schematic block diagram of a receipt information push system according to an embodiment of the present application.
Detailed Description
The embodiments described herein should not be construed as limiting the application, and all other embodiments, which may be made by those of ordinary skill in the art without the benefit of the present disclosure, are intended to be within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
After the message pushing service is performed, for example, a client or an internal system sends a short message through a short message platform, in order to know the pushing details of the message, such as success or failure of pushing, receipt information is often required to be obtained from an information queue (MQ), and then a corresponding pushing address is required to be obtained according to the identification of the pushing information. And then, the receipt information is pushed to the corresponding client or the internal system to feed back the short message sending result. In the related art, when the receiving end of the receipt information pushing is abnormal, the receipt information pushing is failed, so that a large amount of receipt information is lost. Meanwhile, when the receiving response of some pushed receiving terminals is slower, the push service waits for the receiving response all the time, so that the overall push speed is lower.
Based on the above, an embodiment of the application provides a receipt information pushing method, which can effectively relieve the problem of receipt loss and improve the overall pushing efficiency of receipt information pushing. Referring to fig. 1, the method of the embodiment of the present application includes, but is not limited to, step S110, step S120, step S130, step S140, and step S150.
Specifically, the method application process of the embodiment of the application includes, but is not limited to, the following steps:
s110: and obtaining the push address of the receipt information.
S120: determining that a push address is obtained, and pushing receipt information to a target receiving end through a first push thread pool according to the push address to obtain a push result.
S130: and determining that the pushing result is the pushing failure, and generating a first delayed pushing message according to the receipt information.
S140: delivering the first delayed push message to a second push thread pool.
S150: and pushing the first delayed push message to the target receiving end through the second push thread pool.
In the working process of this embodiment, this embodiment first obtains the push address of the receipt information. Then, after determining that the push address corresponding to the receipt information is obtained, the embodiment pushes the receipt information to a push receiving end, namely a target receiving end, through a first push thread pool according to the push address, and obtains a corresponding push result. Further, when the push result of the receipt information is determined to be push failure, generating a first delayed push message according to the receipt information. Next, the present embodiment delivers the first delayed push message to the second push thread pool. Meanwhile, the second pushing thread pool pushes the first delayed push message to the target receiving end, so that re-pushing of receipt information which fails to be pushed is completed. For example, in this embodiment, the push address of the target receiving end corresponding to the receipt information is first obtained. After determining that the push address is obtained, the embodiment pushes the receipt information to the corresponding target receiving end according to the push address through the normal push thread pool, namely the first push thread pool, and obtains a push result. It is easy to understand that the pushing result after the first pushing thread pool pushes the receipt information to the target receiving end includes pushing success and pushing failure. When the pushing result is determined to be the pushing failure, the embodiment generates the receipt information into first delay pushing information. At the same time, the first delayed push message is delivered to the second push thread pool, for example, the generated first delayed push message is sent to the retry Topic. Where Topic is the transport intermediary between the message publisher (Pub) and subscriber (Sub). Further, after the second push thread pool consumes the first delayed push information, the first delayed push information is pushed to the target receiving end, so that the return receipt information which is failed to be pushed is pushed again, and the problem of return receipt information loss is effectively relieved. Meanwhile, according to the embodiment, the first pushing thread pool and the second pushing thread pool which are isolated from each other are arranged, and the second pushing thread pool is used for carrying out independent processing of delayed pushing, so that the problem that normal pushing is affected due to failure pushing or delayed pushing is effectively relieved, and the overall pushing efficiency of receipt information pushing is effectively improved.
In some embodiments of the present application, when determining that a push address is obtained and pushing response piece information to a target receiving end through a first push thread pool according to the push address to obtain a push result, the response piece information pushing method provided in this embodiment further includes, but is not limited to:
and determining that the push address is not acquired, and generating second delay push information according to the receipt information.
And delivering the second delayed push information to a second push thread pool. And the second push thread pool pushes the second delayed push information to the target receiving end.
In this embodiment, when it is determined that the push address cannot be acquired, the embodiment first generates second delayed push information according to the receipt information. Then, the embodiment delivers the second delayed push information to the second push thread pool, so as to push the second delayed push information to the target receiving end through the second push thread pool. Specifically, in this embodiment, in the process of obtaining the push address of the receipt information, a problem of failure in obtaining the push address may occur due to a communication or network problem. In this embodiment, when it is determined that the push address cannot be acquired, if the corresponding push address cannot be acquired within a preset acquiring duration, second delayed push information is generated according to the receipt information. And then delivering the second delayed push information to a second push thread pool, so that the problem of congestion of the push process of the first push thread pool caused by the fact that the push address of the receipt information cannot be acquired is solved by pushing the second delayed push information to the target receiving end through the second push thread pool, and the overall push efficiency of the receipt information push is effectively improved.
In some embodiments of the present application, when the step of determining that the pushing result is a pushing failure and generating the first delayed push message according to the receipt information is performed, the receipt information pushing method provided in this embodiment further includes, but is not limited to:
and determining that the pushing result is that the pushing is successful, and acquiring response data of the target receiving end. The response data comprises response delay time and response abnormal conditions.
And determining that the target receiving end needs to be degraded according to the response data through a preset degradation rule, and marking the target receiving end as a degraded receiving end.
In this embodiment, after the receipt information is successfully pushed, a degradation mechanism is introduced in the embodiment, so that the problem that the pushing process is delayed or the receipt information is lost due to an abnormal receiving end is relieved through the degradation mechanism. Specifically, when the embodiment determines that the pushing result is successful, that is, after the receipt information pushing is completed, response data of the target receiving end is obtained. The response data of the target receiving end comprises response delay time and response abnormal conditions. For example, the response delay time is the response time of the request of the target receiving end in the process of pushing the receipt information. And the response abnormal condition is the condition that the opposite terminal reports errors or returns error responses in the process of pushing the receipt information. Further, in this embodiment, according to the corresponding data of the target receiving end, whether the target receiving end needs to be degraded or not is determined through a preset degradation rule. And when the target receiving end is determined to be required to be degraded according to the response data through a preset degradation rule, marking the target receiving end as a degraded receiving end so as to distinguish the target receiving end required to be degraded from a normal target receiving end. It is easy to understand that in this embodiment, when the target receiving end needs to be degraded, it is indicated that the target receiving end is abnormal, and continuously pushing the receipt information to the target receiving end may cause a failure in pushing and a loss of the receipt information. Therefore, the response data of the corresponding target receiving end is obtained after pushing is completed, and the target receiving end is evaluated through a degradation mechanism, so that the normal target receiving end and the target receiving end needing degradation are effectively distinguished.
In some embodiments of the present application, before performing the step of pushing response piece information to a target receiving end through a first push thread pool according to a push address to obtain a push result, the response piece information pushing method provided in the present embodiment further includes, but is not limited to:
and determining the target receiving end as a degradation receiving end, and generating a third delayed push message according to the receipt information.
And delivering the third delayed push information to a second push thread pool. And the second push thread pool pushes the third delay push information to the target receiving end.
In this embodiment, before the response piece information is pushed to the target receiving end through the first push thread pool according to the push address, the embodiment first determines whether the target receiving end corresponding to the push address is a degraded receiving end. And when the target receiving end is determined to be a degraded receiving end, third delay push information is generated according to the receipt information. And delivering the third delayed push information to a second push thread pool so as to push the third delayed push information to a target receiving end through the second push thread pool, thereby completing the push of receipt information. Specifically, after the push address of the receipt information is obtained, the embodiment determines whether the corresponding target receiving end is marked as a degraded receiving end according to the push address. And when the target receiving end is determined to be marked as the degraded receiving end, the target receiving end is indicated to be abnormal. At this time, the embodiment generates third delayed push information according to the receipt information. Further, the embodiment delivers the third push information to the second push thread pool, and then when the second push thread pool consumes the third delay push information, the third push information is pushed to the corresponding target receiving end, so as to complete the push of the receipt information. For example, the embodiment generates corresponding delay queue information according to the receipt information and delivers the delay queue information to the retry Topic, so that the retry push thread pool, i.e. the second push thread pool, can consume the delay queue information, i.e. the third delay push information. And after the second push thread pool consumes the delay queue information, the second push thread pool pushes the delay queue information to the target receiving end. According to the method, the target receiving end is judged before the receipt information pushing is carried out by the first pushing thread pool, when the target receiving end is determined to be the degraded receiving end, the receipt information pushing efficiency is low due to the fact that the receipt information pushing response is too long or abnormal caused by the fact that some target receiving ends are abnormal in a pushing mode through the second pushing thread pool, and the performance of pushing service is effectively improved.
In some embodiments of the present application, determining that the target receiving end needs to be degraded according to the response data through a preset degradation rule, and marking the target receiving end as a degraded receiving end includes, but is not limited to:
and determining that the response delay time is larger than the preset delay time, and recording a response overtime event. And determining that the first number of response timeout events within the first preset detection time is larger than the preset timeout number, and marking the target receiving end as a degraded receiving end.
Or, counting a second number of abnormal sound events in a second preset detection time. And determining that the second number is larger than the preset abnormal number, and marking the target receiving end as a degraded receiving end.
In this embodiment, whether the target receiving end needs to be degraded or not is determined according to corresponding data through a preset degradation rule. Specifically, the preset degradation rules in this embodiment include a slow call rule and an abnormal rule. In the slow call rule of this embodiment, first, the embodiment determines whether the response delay time of the target receiving end is greater than a preset delay time, and when it is determined that the response delay time of the target receiving end is greater than the preset delay time, records a response timeout event. Further, when it is determined that the number of response timeout events recorded in the first preset detection time, that is, the first number, is greater than the preset timeout number, the target receiving end is considered to be abnormal, and the target receiving end is marked as a degraded receiving end in this embodiment. Illustratively, in the process of pushing the receipt information, when the response time of the request of the target receiving end, namely the response delay time, is more than one second, a response timeout event is recorded. And when the response timeout event recorded to the target receiving end is more than ten times within one minute, namely within the first preset detection time, marking the target receiving end as a degraded receiving end. Meanwhile, in the anomaly rule of the present embodiment, the present embodiment first counts the number of anomaly response times within the second preset detection time, that is, the second number. And when the second number is determined to be larger than the preset abnormal number, marking the target receiving end as a degraded receiving end. In the process of pushing receipt information, if the number of recorded abnormal response events is greater than 5 times within one minute, that is, within a second preset detection time, the target receiving end is subjected to degradation processing, that is, the target receiving end is marked as a degraded receiving end. It should be noted that, in some embodiments of the present application, after the receipt information is pushed, the slow call proportion and the exception proportion of each target receiving end are recorded by the micro-service current-limiting fusing framework senderin, so as to determine whether the corresponding target receiving end needs to be degraded or not according to the slow call proportion and the exception proportion.
In some embodiments of the present application, before performing the step of generating the first delayed push message according to the response piece information, the response piece information push method provided in this embodiment further includes, but is not limited to:
and re-pushing the receipt information according to the preset re-pushing times. The re-pushing is to re-push the receipt information to the target receiving end through the first pushing thread pool.
In this embodiment, when it is determined that the pushing result of the receipt information is that the pushing is failed, the preset number of re-pushing times is performed on the receipt information through the first pushing thread pool before the first delayed pushing information is generated according to the receipt information. Specifically, in this embodiment, the response piece information is re-pushed according to the preset number of re-pushing times, and the response piece information is re-pushed to the target receiving end through the first push thread. In this embodiment, the re-pushing of the receipt information with the number of re-pushing times of 10 times is performed, that is, when the receipt information is pushed with the number of re-pushing times of 10 times is performed on the receipt information through the first push thread pool after the receipt information is pushed with the number of re-pushing times of 10 times. And when the number of times of re-pushing reaches 10, completing one time of pushing retry of the receipt information. Wherein the delay time between each push retry is as shown in table 1 below:
TABLE 1
Number of pushing times Interval time of
1 1min
2 1min
3 5min
4 10min
5 30min
6 30min
7 1h
8 1h
9 1h
10 1h
It should be noted that, in some embodiments of the present application, when the receipt information fails to be pushed, a push retry is performed on the receipt information that fails to be pushed for a preset number of retries. For example, when the receipt pushing information fails to be pushed, the preset retry number of the embodiment is 3, and the embodiment performs retry pushing on the receipt information that fails to be pushed for 3 times. The maximum number of retries in each retrying pushing process is a preset number of retries. For example, when the preset number of retries is 10, the embodiment performs 3 retries of pushing the receipt information that fails to be pushed, and performs 10 retries in each retries of pushing. When the retry pushing for 3 times fails, the embodiment generates the first delayed pushing information according to the receipt information, so that the problem of the loss of the receipt information is effectively relieved in a mode that the second pushing thread pool pushes the first delayed pushing information to the target receiving end.
In some embodiments of the application, the push address of the response piece information is obtained, including but not limited to:
and registering the corresponding push address to a preset service platform according to the first preset identifier of the target receiving end.
And dynamically acquiring the push address from the preset service platform according to the second preset identifier of the push message.
In this embodiment, the corresponding push address is first registered to a preset service platform according to a first preset identifier of the target receiving end. Next, in this embodiment, the push address is dynamically obtained from the preset service platform according to the second preset identifier of the push information. Specifically, since the push address is modified by configuration in the related art, the restart server needs to be modified each time the push address is newly added, which also results in lower push efficiency of the push service. According to the embodiment, firstly, according to the self identifier of the target receiving end, namely the first preset identifier, the corresponding push address is registered to the preset service platform. For example, in this embodiment, the push address corresponding to the target receiving end is registered in the preset service platform according to the channel id identifier of the target receiving end. The channel id identifier includes a receiving end ip and a receiving end port. It should be noted that, in some embodiments of the present application, the preset service platform may be a nacos platform, which is a dynamic service discovery, configuration management and service management platform. Further, in this embodiment, the push address is dynamically obtained from the preset service platform according to the identifier field included in the push message, that is, the second preset identifier. For example, when receipt information pushing is required, the embodiment dynamically obtains a corresponding pushing address from a preset service platform according to a channel id identifier included in a pushing message corresponding to the receipt information. According to the embodiment, the push address of each target receiving end is registered on the preset service platform, and then the push address is obtained dynamically in a mode of obtaining the push address from the preset service platform. Meanwhile, when the push address is modified, the server is not required to be restarted, and the overall push efficiency of the receipt information push is effectively improved.
In some embodiments of the present application, before performing the step of pushing response piece information to a target receiving end through a first push thread pool according to a push address to obtain a push result, the response piece information pushing method provided in the present embodiment further includes, but is not limited to:
and constructing push connection between the push server and the target receiving end through a preset remote procedure call architecture.
In this embodiment, before the receipt information is pushed to the target receiving end, a push connection between the push server and the target receiving end needs to be established. Specifically, in this embodiment, push connection between the push server and the target receiving end is constructed through a preset remote procedure call architecture. Illustratively, the preset remote procedure call architecture may be a grpc (Google Remote Procedure Call) architecture. Compared with the json serialization mode of http1, the grpc architecture adopts Protobuf binary serialization, the serialization speed is six times faster than json, and the volume after serialization is small and the deserialization speed is faster, so that the size of a message can be greatly reduced, and the transmission speed of a network is improved. Meanwhile, the http2.0 protocol is used at the bottom layer of the grpc architecture, and a plurality of connections can be managed through one thread, so that service resources are saved, performance is improved, the problem that a large number of connections need to be constructed in the http mode for pushing, server resources are occupied, and pushing performance is low is effectively solved. Meanwhile, more fields are supported by the compression of the http2.0 on the header fields than the compression of the http1, the compression rate is good, the compressed message is smaller, the transmission is faster, and the pushing efficiency is effectively improved. In addition, http2.0 divides all transmitted information into smaller messages and frames, so that after framing, the frames can be sent out of order and concurrently, then a receiving end can assemble according to the flow identification sign of the head of each frame, and can concurrently transmit messages without establishing a plurality of connections, so that a large number of connections are avoided to be established, and http1.0 can only process one request or response at a time, can continue to send the next message after obtaining the response, and can only establish a plurality of connections if the messages are required to be concurrently transmitted, thereby leading to the generation of a large number of connections.
Referring to fig. 2, an embodiment of the present application further provides a response piece information push system, including:
at least one processor 210.
At least one memory 220 for storing at least one program.
When the at least one program is executed by the at least one processor 210, the at least one processor 210 is caused to implement the response piece information pushing method as in the above embodiment.
An embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions for execution by one or more control processors, e.g., to perform the steps described in the above embodiments.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the above embodiment, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims.

Claims (8)

1. The receipt information pushing method is characterized by comprising the following steps of:
acquiring a push address of the receipt information;
determining that the push address is obtained, and pushing the receipt information to a target receiving end through a first push thread pool according to the push address to obtain a push result;
determining that the pushing result is a pushing failure, and generating a first delayed pushing message according to the receipt information;
delivering the first delayed push message to a second push thread pool; wherein the second push thread pool is isolated from the first push thread pool;
pushing the first delayed push message to the target receiving end through the second push thread pool;
when the step of determining that the pushing result is the pushing failure and generating a first delayed pushing message according to the receipt information is executed, the method further includes:
determining that the pushing result is pushing success, and acquiring response data of the target receiving end; the response data comprises response delay time and response abnormal conditions;
determining that the target receiving end needs to be degraded according to the response data through a preset degradation rule, and marking the target receiving end as a degradation receiving end;
before the step of pushing the receipt information to a target receiving end through a first pushing thread pool according to the pushing address to obtain a pushing result is executed, the method further includes:
determining the target receiving end as the degradation receiving end, and generating a third delayed push message according to the receipt information;
delivering the third delayed push information to the second push thread pool; and the second push thread pool pushes the third delayed push information to the target receiving end.
2. The response piece information pushing method according to claim 1, wherein when the step of determining that the push address is obtained and pushing the response piece information to the target receiving end through the first push thread pool according to the push address to obtain a push result is performed, the method further comprises:
determining that the push address is not acquired, and generating second delay push information according to the receipt information;
delivering the second delayed push information to the second push thread pool; the second push thread pool pushes the second delayed push information to the target receiving end.
3. The response piece information pushing method according to claim 1, wherein the determining that the target receiving end needs to be degraded according to the response data through a preset degradation rule, and marking the target receiving end as a degraded receiving end includes:
determining that the response delay time is greater than a preset delay time, and recording a response overtime event; determining that the first number of response timeout events is larger than the preset timeout number in a first preset detection time, and marking the target receiving end as the degradation receiving end;
or, counting a second number of abnormal sound events in a second preset detection time; and determining that the second number is larger than a preset abnormal number, and marking the target receiving end as the degraded receiving end.
4. The response piece information pushing method of claim 1, wherein prior to performing the step of generating a first delayed push message from the response piece information, the method further comprises:
re-pushing the receipt information according to preset re-pushing times; the re-pushing is to re-push the receipt information to the target receiving end through the first pushing thread pool.
5. The response piece information pushing method according to claim 1, wherein the obtaining the push address of the response piece information includes:
registering the corresponding push address to a preset service platform according to a first preset identifier of the target receiving end;
and dynamically acquiring the push address from the preset service platform according to a second preset identifier of the push message.
6. The response piece information pushing method according to claim 1, wherein before performing the step of pushing the response piece information to a target receiving end through a first push thread pool according to the push address to obtain a push result, the method further comprises:
and constructing push connection between the push server and the target receiving end through a preset remote procedure call architecture.
7. A response piece information pushing system, comprising:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the response piece information pushing method according to any one of claims 1 to 6.
8. A computer storage medium having stored therein a processor executable program which when executed by the processor is for implementing the response piece information pushing method of any of claims 1 to 6.
CN202211245038.6A 2022-10-12 2022-10-12 Receipt information pushing method, system and storage medium Active CN115914152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211245038.6A CN115914152B (en) 2022-10-12 2022-10-12 Receipt information pushing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211245038.6A CN115914152B (en) 2022-10-12 2022-10-12 Receipt information pushing method, system and storage medium

Publications (2)

Publication Number Publication Date
CN115914152A CN115914152A (en) 2023-04-04
CN115914152B true CN115914152B (en) 2023-11-21

Family

ID=86475193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211245038.6A Active CN115914152B (en) 2022-10-12 2022-10-12 Receipt information pushing method, system and storage medium

Country Status (1)

Country Link
CN (1) CN115914152B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028365A1 (en) * 2015-08-17 2017-02-23 宇龙计算机通信科技(深圳)有限公司 Message push method, message push apparatus, and terminal
CN108388479A (en) * 2018-02-10 2018-08-10 深圳壹账通智能科技有限公司 Postpone information push method, device, computer equipment and storage medium
CN112468598A (en) * 2020-12-11 2021-03-09 四川长虹电器股份有限公司 Method for realizing message compensation pushing based on AMQP protocol
CN115134325A (en) * 2022-05-17 2022-09-30 上海维信荟智金融科技有限公司 Method, device and medium for information push

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028365A1 (en) * 2015-08-17 2017-02-23 宇龙计算机通信科技(深圳)有限公司 Message push method, message push apparatus, and terminal
CN108388479A (en) * 2018-02-10 2018-08-10 深圳壹账通智能科技有限公司 Postpone information push method, device, computer equipment and storage medium
CN112468598A (en) * 2020-12-11 2021-03-09 四川长虹电器股份有限公司 Method for realizing message compensation pushing based on AMQP protocol
CN115134325A (en) * 2022-05-17 2022-09-30 上海维信荟智金融科技有限公司 Method, device and medium for information push

Also Published As

Publication number Publication date
CN115914152A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
CN111475576B (en) Block chain-based distributed database storage method and system
CN111585867B (en) Message processing method and device, electronic equipment and readable storage medium
US20210036907A1 (en) Methods and apparatuses for pushing a message
US20080126492A1 (en) Pinging for the Presence of a Server in a Peer to Peer Monitoring System
US20220209878A1 (en) Method, system and device for pushing information, and storage medium thereof
US20220201085A1 (en) Data management method, related product, and communications system
CN107395559B (en) Data processing method and device based on redis
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN113746900B (en) Intranet data transmission method, electronic device and computer readable storage medium
CN108347350B (en) Communication method and device
US20130139178A1 (en) Cluster management system and method
US20200142759A1 (en) Rest gateway for messaging
CN111953784B (en) Asynchronous communication framework-based file transmission method, device and system
CN111416823A (en) Data transmission method and device
CN106899605B (en) Communication method and device based on STOMP protocol
CN113496004A (en) Message sending method and device
CN115914152B (en) Receipt information pushing method, system and storage medium
CN111367795A (en) Performance test method based on benchmark service and related equipment
US11638134B2 (en) Methods, systems, and computer readable media for resource cleanup in communications networks
CN114880137A (en) Message processing method and device, electronic equipment and storage medium
CN112799796A (en) Timed task management method, device and storage medium
US20230319134A1 (en) Request delivery device, request delivery method, and request delivery program
CN112995260A (en) Session message interaction method and device and computer readable storage medium
US20240187904A1 (en) Load Query Processing Method and Apparatus, Storage Medium and Electronic Apparatus
WO2024001213A1 (en) Information processing method, publisher, subscriber, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant