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

Receipt information pushing method, system and storage medium Download PDF

Info

Publication number
CN115914152A
CN115914152A CN202211245038.6A CN202211245038A CN115914152A CN 115914152 A CN115914152 A CN 115914152A CN 202211245038 A CN202211245038 A CN 202211245038A CN 115914152 A CN115914152 A CN 115914152A
Authority
CN
China
Prior art keywords
push
pushing
receiving end
receipt 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.)
Granted
Application number
CN202211245038.6A
Other languages
Chinese (zh)
Other versions
CN115914152B (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

Images

Abstract

The invention discloses a receipt information pushing method, a receipt information pushing 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 to obtain the push address, 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 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 invention 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 customer or the internal system sends the short message through the short message platform, the push service acquires the receipt information from the information queue (MQ), and acquires the corresponding push address according to the identification of the short message. 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 push receiving end receives an abnormal message and fails to push the message, the receipt message is lost, and the receiving speed of the push receiving end is low, which also results in a low push speed of the entire receipt message.
Disclosure of Invention
In order to solve at least one of the above technical problems, the present invention provides a method, a system and a storage medium for pushing receipt information, which can effectively alleviate the problem of receipt loss and improve the overall pushing efficiency of the pushing of the receipt information.
In one aspect, an embodiment of the present invention provides a receipt information pushing method, including the following steps:
acquiring a push address of the receipt information;
determining to obtain the push address, 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 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 invention at least has the following beneficial effects: in this embodiment, a push address of the receipt information is first obtained, and 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 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 as to push the first delayed push message to the target receiving end through the second push thread pool, thereby effectively alleviating the problem of the receipt loss. Meanwhile, the first pushing thread pool and the second pushing thread pool are arranged, so that the mode of delaying pushing through the second pushing thread pool is adopted, the problem that normal pushing is affected due to failure of receipt information pushing is effectively solved, and the whole pushing efficiency of receipt information pushing is effectively improved.
According to some embodiments of the present invention, when the step of determining to obtain the push address and pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result is performed, the method further includes:
determining that the push address cannot be obtained, and generating second delayed push information according to the receipt information;
delivering the second delayed push information to the second push thread pool; and the second push thread pool pushes the second delayed push information to the target receiving end.
According to some embodiments of the present invention, when the step of determining that the push result is a push failure and generating a first delayed push message according to the receipt information is performed, the method further includes:
determining that the pushing result is successful, and acquiring response data of the target receiving end; wherein the response data comprises response delay time and response abnormal conditions;
and determining that the target receiving end needs to be degraded through a preset degradation rule according to the response data, and marking the target receiving end as a degraded receiving end.
According to some embodiments of the present invention, before performing the step of pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result, the method further includes:
determining that the target receiving end is 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 invention, the determining that the target receiving end needs to be degraded according to the response data by using 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 a first number of the response timeout events within a first preset detection time is greater than a preset timeout number, and marking the target receiving end as the degradation receiving end;
or counting a second number of abnormal sound events within 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 degradation receiving end.
According to some embodiments of the invention, before performing the step of generating the first delayed push message according to the response piece information, the method further comprises:
re-pushing the receipt information according to preset re-pushing times; and the re-pushing refers to re-pushing the receipt information to the target receiving end through the first pushing thread pool.
According to some embodiments of the present invention, 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 identification 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 invention, before performing the step of pushing the receipt 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 establishing a push connection between a push server and the target receiving end through a preset remote process call architecture.
On the other hand, an embodiment of the present invention further provides a receipt information pushing system, including:
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, at least one processor is caused to implement the response piece information pushing method according to the above embodiment.
In another aspect, an embodiment of the present invention further provides a computer storage medium, in which a program executable by a processor is stored, and when the program executable by the processor is executed by the processor, the program is used to implement the receipt information pushing method according to the above embodiment.
Drawings
Fig. 1 is a flowchart of a response piece information pushing method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a receipt information pushing system according to an embodiment of the present invention.
Detailed Description
The embodiments described in the embodiments of the present application should not be construed as limiting the present application, and all other embodiments that can be obtained by a person skilled in the art without making any inventive step shall fall within the scope of protection 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 understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other 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 present application only and is not intended to be limiting of the application.
After the message push service is performed, for example, a client or an internal system sends a short message through a short message platform, in order to know push details of the message, such as push success or push failure, the response piece information often needs to be acquired from an information queue (MQ), and then a corresponding push address is acquired according to an identifier of the push 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 push is abnormal, the receipt information push fails, resulting in a large amount of loss of the receipt information. Meanwhile, when some of the pushed receiving ends receive a slow response, the push service waits for the received response all the time, which results in a low overall pushing speed.
Based on this, an embodiment of the present invention provides a method for pushing receipt information, which can effectively alleviate the problem of loss of the receipt and improve the overall pushing efficiency of pushing the receipt information. Referring to fig. 1, the method of the embodiment of the present invention 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 present invention includes, but is not limited to, the following steps:
s110: and acquiring the push address of the receipt information.
S120: and determining to obtain a push address, 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.
S130: and determining that the pushing result is pushing failure, and generating a first delayed pushing message according to the receipt information.
S140: and delivering the first delayed push message to a second push thread pool.
S150: and pushing the first delayed push message to a target receiving end through a second push thread pool.
In the working process of the present embodiment, the present 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 present embodiment pushes the receipt information to a push receiving end, i.e., a target receiving end, through the first push thread pool according to the push address, and obtains a corresponding push result. Further, when the pushing result of the receipt information is determined to be pushing failure, a first delayed pushing message is generated according to the receipt information. Then, the present embodiment delivers the first deferred push message to the second push thread pool. Meanwhile, the second push thread pool pushes the first delayed push message to the target receiving end, so that the receipt information which is failed to be pushed is pushed again. Illustratively, the present embodiment first obtains the push address of the target receiving end corresponding to the receipt information. After the push address is determined to be obtained, the present embodiment pushes the receipt information to the corresponding target receiving end through the normal push thread pool, that is, the first push thread pool, according to the push address, and obtains a push result. It is easily understood that the push result after the first push thread pool pushes the receipt information to the target receiving end includes a push success and a push failure. When the push result is determined to be push failure, the embodiment generates the response piece information into first delayed push information. Meanwhile, the first delayed push message is posted to the second push thread pool, e.g., the generated first delayed push message is sent to retry Topic. Wherein, topic is a transmission intermediary between a message publisher (Pub) and a subscriber (Sub). Furthermore, 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 receipt information which is failed to be pushed is pushed again, and the problem of loss of the receipt information is effectively solved. Meanwhile, in the embodiment, the first pushing thread pool and the second pushing thread pool which are isolated from each other are arranged, and independent processing of delayed pushing is performed through the second pushing thread pool, so that the problem that normal pushing is affected due to pushing failure or delayed pushing is effectively solved, and the overall pushing efficiency of receipt information pushing is effectively improved.
In some embodiments of the present invention, when the step of determining to obtain the push address and pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result is performed, the receipt information pushing method provided in this embodiment further includes, but is not limited to:
and determining that the push address cannot be obtained, and generating second delayed 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 is not obtained, the embodiment first generates the second delayed push information according to the receipt information. Then, the present embodiment delivers the second delayed push message to the second push thread pool, so as to push the second delayed push message to the target receiving end through the second push thread pool. Specifically, in the present embodiment, in the process of acquiring the push address of the receipt information, due to problems such as communication or network, a problem of failure in acquiring the push address may occur. In this embodiment, when it is determined that the push address cannot be obtained, if the corresponding push address cannot be obtained within the preset obtaining duration, second delayed push information is generated according to the receipt information. And then, second delayed push information is delivered to a second push thread pool, so that the problem of congestion of a push process of the first push thread pool caused by the fact that a push address of the receipt information cannot be obtained is relieved in a mode of pushing the second delayed push information to a target receiving end through the second push thread pool, and the whole push efficiency of the receipt information push is effectively improved.
In some embodiments of the present invention, when performing the step of determining that the push result is a push failure and generating the first delayed push message according to the receipt information, the receipt information pushing method provided in this embodiment further includes, but is not limited to:
and determining that the pushing result is successful, and acquiring response data of the target receiving end. The response data includes response delay time and response abnormal conditions.
And determining that the target receiving end needs to be degraded through a preset degradation rule according to the response data, 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 this embodiment to alleviate the problem of the push process being delayed or the receipt information being lost due to the abnormal receiving end through the degradation mechanism. Specifically, when the push result is determined to be successful, that is, the push of the receipt information is completed, the 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 a request response time of the target receiving end in the process of pushing the receipt information. And the abnormal response condition is the condition that the opposite end abnormally reports errors or returns an error response in the process of pushing the receipt information. Further, according to the present embodiment, whether the target receiving end needs to perform degradation is determined by a preset degradation rule according to the corresponding data of the target receiving end. And when the target receiving end is determined to need degradation through a preset degradation rule according to the response data, marking the target receiving end as a degradation receiving end so as to distinguish the target receiving end needing degradation from a normal target receiving end. It is easy to understand that, in this embodiment, when the target receiver needs to be degraded, it indicates that the target receiver is abnormal, and continuously pushing the receipt information to the target receiver may cause a push failure and a loss of the receipt information. Therefore, in the embodiment, the response data of the corresponding target receiving end is acquired after the push is completed, and the target receiving end is evaluated through the 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 invention, before performing the step of pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result, the receipt information pushing method provided in this embodiment further includes, but is not limited to:
and determining that the target receiving terminal is a degraded receiving terminal, and generating a third delayed push message according to the receipt information.
And 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.
In this embodiment, before pushing the receipt information 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 the degraded receiving end, generating third delayed push information according to the receipt information. And then, 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 the receipt information. Specifically, after the push address of the receipt information is obtained, the present 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 a degraded receiving end, the target receiving end is proved to be abnormal. At this time, the present embodiment generates third delayed push information from the response piece information. Further, in this embodiment, the third push information is delivered to the second push thread pool, and then when the second push thread pool consumes the third delayed push information, the third push information is pushed to the corresponding target receiving end, so as to complete pushing of the receipt information. For example, the present embodiment generates corresponding delay queue information according to the response piece 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 when the second pushing thread pool consumes the delay queue information, the second pushing thread pool pushes the delay queue information to a target receiving end. In the embodiment, the target receiving end is judged before the receipt information is pushed by the first pushing thread pool, and when the target receiving end is determined to be the degraded receiving end, the pushing is performed by the second pushing thread pool, so that the problem that the receipt information pushing efficiency is low due to overlong response time consumption or abnormity of the receipt information pushing caused by abnormity of some target receiving ends is effectively solved, and the performance of pushing service is effectively improved.
In some embodiments of the present invention, it is determined that the target receiving end needs to be degraded according to the response data by using a preset degradation rule, and the target receiving end is marked as a degraded receiving end, including but not limited to:
and determining that the response delay time is greater than the preset delay time, and recording a response timeout event. And determining that the first number of response timeout events in the first preset detection time is greater 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 within a second preset detection time. And determining that the second quantity is greater than the preset abnormal quantity, and marking the target receiving end as a degraded receiving end.
In this embodiment, the present embodiment determines whether the target receiving end needs to be degraded according to the corresponding data through a preset degradation rule. Specifically, the preset downgrade rules in this embodiment include slow-call rules and exception rules. In the slow call rule of this embodiment, the present embodiment first 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 within the first preset detection time, that is, the first number, is greater than the preset timeout number, it is determined that the target receiving end is 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 request response time of the target receiving end, namely the response delay time, is greater than one second, a response timeout event is recorded. And when the response timeout event of the target receiving end is recorded to be more than ten times within one minute, namely within the first preset detection time, the target receiving end is marked as a degraded receiving end. Meanwhile, in the anomaly rule of the present embodiment, the present embodiment first counts the number of the abnormal 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. Illustratively, in the process of pushing the receipt information, when the number of the 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 invention, after the push of the receipt information is completed, the present embodiment records the slow call proportion and the abnormal proportion of each target receiving end through the micro-service current-limiting fusing frame sentinel, so as to determine whether the corresponding target receiving end needs to be degraded or not through the slow call proportion and the abnormal proportion.
In some embodiments of the present invention, before performing the step of generating the first delayed push message according to the receipt information, the receipt information push method provided by this embodiment further includes, but is not limited to:
and re-pushing the receipt information according to the preset re-pushing times. And the re-pushing is to push the receipt information to the target receiving end again through the first pushing thread pool.
In this embodiment, when it is determined that the push result of the receipt information is a push failure, the receipt information is re-pushed for the preset number of times by the first push thread pool before the first delayed push information is generated according to the receipt information. Specifically, in this embodiment, the receipt information is pushed again according to the preset number of times of pushing again, and the receipt information is pushed again to the target receiving end through the first pushing thread. Illustratively, in this embodiment, the response piece information whose pushing has failed is re-pushed for 10 times, that is, after the pushing of the response piece information has failed, the embodiment performs the re-pushing of the response piece information for 10 times, which is the maximum number of times of re-pushing, on the response piece information through the first push thread pool. When the number of times of the re-push reaches 10 times, one push retry of the receipt information is completed. Wherein the delay time between each push retry is shown in table 1 below:
TABLE 1
Number of times of pushing Interval of time
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 invention, when the pushing of the response piece information fails, a pushing retry with a preset retry number is performed on the response piece information with the pushing failure. For example, when the push of the receipt push information fails, and the preset retry number of the present embodiment is 3, the present embodiment performs 3 times of retry push on the receipt information that fails to be pushed. And the maximum push-back times in the process of pushing each retry is preset push-back times. For example, when the preset number of times of re-pushing is 10, the present embodiment performs 3 times of retry pushing on the receipt information with failed pushing, and performs 10 times of re-pushing in each retry pushing process. When the 3 times of retried pushing fails, the embodiment generates the first delayed pushing information according to the receipt information, and effectively alleviates the problem of the receipt information loss in a manner of pushing the first delayed pushing information to the target receiving end through the second pushing thread pool.
In some embodiments of the present invention, the push address for obtaining the response piece information includes, but is not limited to:
and registering the corresponding push address to a preset service platform according to the first preset identification of the target receiving end.
And dynamically acquiring a push address from the preset service platform according to the second preset identification of the push message.
In this embodiment, first, a corresponding push address is registered to a preset service platform according to a first preset identifier of a target receiving end. Then, in this embodiment, the push address is dynamically acquired from the preset service platform according to the second preset identifier of the push information. Specifically, in the related art, since the push address is modified through configuration, the restart server needs to be modified each time a push address is newly added, which also results in low push efficiency of the push service. In this embodiment, first, according to an identifier of a target receiving end, that is, a first preset identifier, a corresponding push address is registered in a preset service platform. For example, in the present embodiment, a corresponding push address of the target receiving end is registered in the preset service platform according to the channeldid identifier of the target receiving end. Wherein, the channeldid identifier includes a receiver ip and a receiver port. It should be noted that, in some embodiments of the present invention, the default service platform may be a nacos platform, and the nacos platform 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 an identifier field included in the push message, that is, the second preset identifier. For example, when the receipt information needs to be pushed, the embodiment dynamically acquires the corresponding push address from the preset service platform according to the channeldid included in the push message corresponding to the receipt information. In this embodiment, the push address of each target receiving end is registered on the preset service platform, and then the push address is obtained from the preset service platform, so that the push address is dynamically obtained. Meanwhile, when the push address is modified, the server does not need to be restarted, and the overall push efficiency of the return receipt information push is effectively improved.
In some embodiments of the present invention, before performing the step of pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result, the method for pushing the receipt information provided in this embodiment further includes, but is not limited to:
and constructing a push connection between the push server and the target receiving end through a preset remote process call architecture.
In this embodiment, before pushing the receipt information to the target receiving end, the present embodiment needs to establish a push connection between the push server and the target receiving end. Specifically, the present embodiment constructs a push connection between the push server and the target receiving end through a preset remote procedure call architecture. Illustratively, the default Remote Procedure Call architecture may be a grpc (Google Remote Procedure Call) architecture. The grpc architecture uses Protobuf binary serialization, compared with a json serialization mode of http1, the serialization speed is six times faster than json, the size of a message is greatly reduced, and the transmission speed of a network is improved due to the fact that the volume of the message after serialization is small and the deserialization speed is higher. 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, the performance is improved, and the problems that a large number of connections need to be constructed in an http mode, server resources are occupied and the pushing performance is low are effectively solved. Meanwhile, the http2.0 supports more fields for the compression ratio http1 of the header field, so that the compression ratio is better, the compressed message is smaller, the transmission is faster, and the push efficiency is effectively improved. In addition, http2.0 divides all transmitted information into smaller messages and frames, so that the frames can be transmitted out of order and concurrently after framing, then a receiving end assembles according to the stream identification symbol of each frame header, and can concurrently transmit messages without establishing multiple connections, thereby avoiding the creation of a large number of connections, http1.0 can only process one request or response at a time, and can continue to transmit the next message after obtaining the response, and if the messages need to be transmitted concurrently, only multiple connections can be created, so that a large number of connections can be generated.
Referring to fig. 2, an embodiment of the present invention further provides a response piece information pushing 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 according to the above-described embodiment.
An embodiment of the present invention 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.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or 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 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 is well known to those of ordinary skill 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 accessed by a computer. In addition, 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 as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.

Claims (10)

1. A method for pushing receipt information is characterized by comprising the following steps:
acquiring a push address of the receipt information;
determining to obtain the push address, 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 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.
2. The receipt information pushing method according to claim 1, wherein when the step of determining to obtain the push address and pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result is performed, the method further comprises:
determining that the push address cannot be obtained, and generating second delayed push information according to the receipt information;
delivering the second delayed push information to the second push thread pool; and the second push thread pool pushes the second delayed push information to the target receiving end.
3. The receipt information pushing method according to claim 1, wherein when the step of determining that the pushing result is a pushing failure and generating a first delayed push message according to the receipt information is performed, the method further comprises:
determining that the pushing result is successful, and acquiring response data of the target receiving end; wherein the response data comprises response delay time and response abnormal conditions;
and determining that the target receiving end needs to be degraded through a preset degradation rule according to the response data, and marking the target receiving end as a degraded receiving end.
4. The method according to claim 3, wherein before the step of pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result, the method further comprises:
determining that the target receiving end is 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.
5. The method for pushing receipt information according to claim 3, 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 comprises:
determining that the response delay time is greater than a preset delay time, and recording a response timeout event; determining that a first number of the response timeout events within a first preset detection time is greater than a preset timeout number, and marking the target receiving end as the degradation receiving end;
or counting a second number of abnormal sound events within 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 degradation receiving end.
6. The receipt information pushing method according to claim 1, wherein before the step of generating the first delayed push message according to the receipt information is performed, the method further comprises:
re-pushing the receipt information according to preset re-pushing times; and the re-pushing is to re-push the receipt information to the target receiving end through the first push thread pool.
7. The receipt information pushing method according to claim 1, wherein the obtaining of the pushing address of the receipt information comprises:
registering the corresponding push address to a preset service platform according to a first preset identification 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.
8. The method according to claim 1, wherein before performing the step of pushing the receipt information to the target receiving end through the first push thread pool according to the push address to obtain the push result, the method further comprises:
and establishing a push connection between a push server and the target receiving end through a preset remote process call architecture.
9. A response piece information pushing system, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the response piece information pushing method of any one of claims 1-8.
10. A computer storage medium in which a processor-executable program is stored, wherein the processor-executable program, when executed by the processor, is configured to implement the receipt information pushing method according to any one of claims 1 to 8.
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 true CN115914152A (en) 2023-04-04
CN115914152B 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
CN115914152B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN111475576B (en) Block chain-based distributed database storage method and system
US10965519B2 (en) Exactly-once transaction semantics for fault tolerant FPGA based transaction systems
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN111585867B (en) Message processing method and device, electronic equipment and readable storage medium
WO2021121370A1 (en) Message loss detection method and apparatus for message queue
US20080126492A1 (en) Pinging for the Presence of a Server in a Peer to Peer Monitoring System
CN111030784A (en) Information synchronization method and device
US20220209878A1 (en) Method, system and device for pushing information, and storage medium thereof
CN107872396B (en) Communication method with timeout control, processing device, terminal device and server
CN108347350B (en) Communication method and device
CN111163159A (en) Message subscription method, device, server and computer readable storage medium
CN108228581B (en) Zookeeper compatible communication method, server and system
US20200142759A1 (en) Rest gateway for messaging
CN115914152B (en) Receipt information pushing method, system and storage medium
CN113496004A (en) Message sending method and device
US20210287181A1 (en) Method and apparatus for processing time records
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
US20230319134A1 (en) Request delivery device, request delivery method, and request delivery program
CN112799796A (en) Timed task management method, device and storage medium
CN112965831A (en) Method and device for inhibiting repeated smoothing of data
CN112835728B (en) Message processing method, device, computer equipment and storage medium
CN111641698B (en) Data statistical method, system, equipment and storage medium
CN113098978B (en) Data transmission method, device and medium
EP4319254A1 (en) Load query processing method and apparatus, storage medium, and electronic apparatus

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