CN111225117B - Reminding message issuing method and device - Google Patents

Reminding message issuing method and device Download PDF

Info

Publication number
CN111225117B
CN111225117B CN201811469168.1A CN201811469168A CN111225117B CN 111225117 B CN111225117 B CN 111225117B CN 201811469168 A CN201811469168 A CN 201811469168A CN 111225117 B CN111225117 B CN 111225117B
Authority
CN
China
Prior art keywords
message
reminding
reminding message
task
queue
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
CN201811469168.1A
Other languages
Chinese (zh)
Other versions
CN111225117A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Shanghai Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Shanghai 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 China Mobile Communications Group Co Ltd, China Mobile Group Shanghai Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811469168.1A priority Critical patent/CN111225117B/en
Publication of CN111225117A publication Critical patent/CN111225117A/en
Application granted granted Critical
Publication of CN111225117B publication Critical patent/CN111225117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/852Low balance or limit reached
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The embodiment of the invention provides a method and a device for issuing a reminding message. The method comprises the following steps: calling a target ticket in a dialog ticket file from the rating TP to perform rating according to a reminding triggering task sent by the TG, and generating a reminding message corresponding to the target ticket; and writing the reminding message into the message queue so that the reminding message is issued to the terminal of the user corresponding to the target ticket when the alarm execution TP reads the reminding message from the message queue and judges that the issuing condition is met. The method and the device provided by the embodiment of the invention realize the parallel processing of the service by adopting the charging system which carries out the architecture based on the idea of separating the data access and the data processing to carry out rating and reminding triggering, and the rating TP in the charging system generates the corresponding reminding message after processing the ticket of one user and carries out the subsequent processing by reminding the triggering TP, the message queue and the alarm execution TP, thereby improving the timeliness of issuing the reminding message.

Description

Reminding message issuing method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for issuing a reminding message.
Background
With the continuous speed increase of mobile networks and the rapid enrichment of internet applications, the demand of user data traffic is continuously released, data traffic service becomes the service most concerned by users, and data traffic reminding becomes the service most concerned by users. Generally, data traffic alerts refer to: and when the data flow used by the user is judged to exceed a certain threshold or the residual data flow is judged to be lower than a certain threshold, the reminding message is issued to the user in a short message mode or the like, so that the user can reasonably use the data flow or timely recharge.
In the prior art, the issuing process of the reminding message is as follows: s1, the charging system obtains the bill file of many bills of many users, and carries on rating process to the bill file to generate the corresponding reminding information of each user; s2, the charging system composes a plurality of reminding messages corresponding to the plurality of users into a reminding file and sends the reminding file to the signal control processing system; and S3, after receiving the reminding file, the signal control processing system polls each reminding message in the reminding file, and when the size relation between the reminding message and the preset threshold value meets a certain condition, the signal control processing system issues the reminding message to the user.
In the issuing process of the reminding message, the reminding file is generated only after the completion of the rating processing of the ticket file, and if the ticket file is too large or the rating processing performance is reduced, the reminding file is generated in a delayed manner, so that the issuing of the reminding message is delayed by the information control processing system, and the issuing timeliness of the reminding message is influenced.
Disclosure of Invention
Aiming at the technical problems in the prior art, the embodiment of the invention provides a method and a device for issuing a reminding message.
In a first aspect, an embodiment of the present invention provides a method for issuing a notification message, including:
calling a target ticket in a dialog ticket file from a rating TP to perform rating according to a reminding trigger task sent by TG to generate a reminding message corresponding to the target ticket;
and writing the reminding message into a message queue so that when the alarm execution TP reads the reminding message from the message queue and judges that the issuing condition is met, the reminding message is issued to the terminal of the user corresponding to the target ticket.
In a second aspect, an embodiment of the present invention provides a method for issuing a notification message, including:
reading a reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation;
and judging whether the reminding message meets an issuing condition, and if so, issuing the reminding message to a terminal of the user corresponding to the target ticket.
In a third aspect, an embodiment of the present invention provides an apparatus for issuing a notification message, including:
the reminding message calling module is used for calling a target ticket in a dialogue document from the rating TP to perform rating according to a reminding trigger task sent by the TG, and generating a reminding message corresponding to the target ticket;
and the reminding message writing module is used for writing the reminding message into a message queue so as to enable the alarm execution TP to read the reminding message from the message queue and issue the reminding message to a user terminal corresponding to the target ticket when the condition of issuing is judged to be met.
In a fourth aspect, an embodiment of the present invention provides an apparatus for issuing a notification message, including:
the reminding message reading module is used for reading the reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation;
and the reminding message issuing module is used for judging whether the reminding message meets the issuing condition or not, and if so, issuing the reminding message to the terminal of the user corresponding to the target ticket.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect or the second aspect when executing the program.
In a sixth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first or second aspect.
According to the reminding message issuing method and device provided by the embodiment of the invention, the pricing and reminding triggering are carried out by adopting the charging system which is based on the data access and data processing separation concept to carry out architecture, the pricing and reminding triggering are separated into different TPs to be processed, the parallel processing of services is realized, and the pricing TP in the charging system can generate the reminding message while carrying out pricing, namely, the corresponding reminding message is generated after the ticket of one user is processed, and the subsequent processing is carried out through the reminding triggering TP, the message queue and the alarm execution TP, so that the service processing speed and efficiency are improved, and the timeliness of issuing the reminding message is further improved.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present invention, a brief description will be given below of the drawings used in the description of the embodiments or prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art will understand that
Fig. 1 is a flowchart of a method for issuing a reminder message according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for issuing a reminder message according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for issuing a reminder message according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for issuing a reminder message according to another embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to better describe the embodiment of the present invention, firstly, two systems related to the method provided by the embodiment of the present invention are described, where the two systems are a charging system and a credit control processing system, respectively, where the charging system is used to perform rating and reminder triggering on a dialog document, and the credit control processing system is used to obtain a reminder message generated by rating of the charging system and determine whether to issue the reminder message, and when determining to issue the reminder message, the reminder message is issued to a terminal of a corresponding user in the form of a short message or the like.
Further, the architecture of the charging system and the architecture of the signal control processing system are explained, it should be noted that the architectures of the two systems are similar, and only the architecture of the charging system is explained here.
The charging system abstracts two types of service components based on the idea of separating data access and data processing: data accessors (Task generators, abbreviated to TG) and data processors (Task processors, abbreviated to TP). The TG is a component for generating tasks in the system, and is responsible for setting task overtime time when generating the tasks, and performing task processing success, task processing failure and task overtime processing; the TP is a component for processing tasks in the system, and can process the tasks generated by the TG in a task flow mode or provide calling services for other TPs in a synchronous calling mode. In addition, the system also comprises two types of components besides the two types of components: a Service Client (SC) component and a State Service (SS) component, wherein the SC component is a component for executing Service invocation in the system; the SS component is a component for providing system state data management service in the system, and is mainly used for realizing registration and search of the TP.
Based on the four components, the flow from the task generation to the task processing completion in the charging system is as follows:
step 1: the TG generates a task and transmits a task name to the SS, so that the SS transmits a service address of the TP corresponding to a service name matching the task name to the TG. The SS stores service information of a plurality of TPs, where the service information includes at least a service name and a service address.
Step 2: and the TG calls the TP pointed by the service address through the SC according to the received service address, so that the called TP processes the task generated by the TG.
And step 3: the called TP processes the tasks generated by the TG, and the processing result is fed back to the TG through the SC.
Fig. 1 is a flowchart of a method for issuing a reminder message according to an embodiment of the present invention, where an execution subject of the method is a reminder trigger TP in a charging system, and as shown in fig. 1, the method includes:
step 101, according to a reminding trigger task sent by TG, calling a target call ticket in a dialog document from a rating TP to perform rating to generate a reminding message corresponding to the target call ticket.
Specifically, the charging system includes multiple types of TPs, such as rating TPs, reminder trigger TPs, and file processing TPs, and each type of TP is registered in the SS before executing a task generated by the TG, that is, stores its own service information in the SS, where the service information includes at least a service name and a service address. For example, for rating TP, it has stored its own service name "rating" and service address "192.168 …" and the like in the SS before executing the rating task generated by TG.
When all TP registrations in the charging system are completed, the generation and processing of tasks may begin.
After the TG generates a rating task, the TG sends the task name 'rating' to the SS; after the SS receives the task name 'wholesale price', whether a service name matched with the task name 'wholesale price' is stored in the SS or not is searched, if yes, the service address of the TP corresponding to the matched service name is sent to the TG, for example, if the service name 'wholesale price' is stored in the SS, the fact that the service name matched with the task name 'wholesale price' is stored in the SS is judged, and the service address '192.168 …' of the wholesale price TP corresponding to the service name 'wholesale price' is sent to the TG; after the TG receives the service address '192.168 …' sent by the SS, the batch price TP pointed by the service address '192.168 …' is called through the SC, so that the batch price TP processes a batch price task generated by the TG, namely, a target ticket in a batch price TP dialogue document is subjected to batch price to generate a reminding message; after the rating TP processes the rating task generated by the TG, the processing result is fed back to the TG through the SC, that is, the rating TP feeds back the rating success or rating failure result to the TG through the SC.
Similarly, when the TG generates a reminding triggering task, the TG acquires a service address of a reminding triggering TP for executing the reminding triggering task through the SS, and calls the reminding triggering TP through the SC, so that the reminding triggering TP calls a target ticket in a dialog list file from the rating TP to generate a reminding message for rating.
And 102, writing the reminding message into a message queue so that the reminding message is issued to a terminal of a user corresponding to the target ticket when the warning execution TP reads the reminding message from the message queue and judges that an issuing condition is met.
Specifically, after the reminding triggering TP calls the reminding message from the wholesale price TP, the reminding message is written into the message queue, so that the warning execution TP in the signal control processing system reads the reminding message from the message queue, and then when the reminding message is judged to meet the issuing condition, the reminding message is issued to the terminal of the user corresponding to the target ticket, so that the user can reasonably use the service or timely recharge. It should be noted that, the condition that the reminding message satisfies the issue condition may be: the data flow used by the user in the reminding message exceeds a certain threshold or the residual data flow is lower than a certain threshold.
The method provided by the embodiment of the invention has the advantages that the pricing and reminding triggering are carried out by adopting the charging system which is based on the data access and data processing separation concept to carry out architecture, the pricing and reminding triggering are separated into different TPs to be processed, the parallel processing of the service is realized, the pricing TP in the charging system can generate the reminding message while carrying out the pricing, namely, the corresponding reminding message is generated after the ticket of one user is processed, the subsequent processing is carried out by the reminding triggering TP, the message queue and the alarm execution TP, the service processing speed and efficiency are improved, and the timeliness of issuing the reminding message is further improved.
On the basis of the above embodiments, the embodiments of the present invention further include:
and receiving a write success message or a write failure message fed back by the message queue.
Specifically, the reminding trigger TP needs to write the reminding message into the message queue, and regardless of whether the writing is successful, the message queue needs to feed back the message of whether the writing is successful to the reminding trigger TP, that is, the writing success message or the writing failure message is fed back to the reminding trigger TP.
And if the writing success message is received, sending the reminding message and the writing success message to the TG so that the TG writes the reminding message into a normal upload file.
Specifically, if the reminding trigger TP receives the write-in success message, the reminding trigger TP sends the reminding message and the write-in success message to the TG, and then the TG writes the reminding message into the normal upload file according to the write-in success message to serve as an audit basis.
And if the write failure message is received, sending the reminding message and the write failure message to the TG so that the TG writes the reminding message into an abnormal upload file and judges that the message queue is unavailable.
Specifically, if the reminding trigger TP receives the write-in failure message, the reminding trigger TP sends the reminding message and the write-in success message to the TG, and then the TG writes the reminding message into the abnormal upload file according to the write-in failure message and judges that the message queue is unavailable, so that the reminding message in the abnormal upload file is rewritten into the message queue subsequently to complete subsequent judgment and issuing.
It should be noted that, when it is determined that the message queue is not available, the flow of reading the reminding message from the message queue by the alarm execution TP needs to be terminated, so as to avoid causing the workflow disorder of the signal control processing system.
According to the method provided by the embodiment of the invention, the successfully written reminding message and the unsuccessfully written reminding message are stored separately, the successfully written reminding message is stored in the normal upload file to be used as an audit basis, and the unsuccessfully written reminding message is stored in the abnormal upload file to resend the reminding message in the abnormal upload file subsequently, so that user complaints caused by missed sending are avoided, and the service quality and the user satisfaction are improved.
On the basis of the foregoing embodiments, sending the reminder message and the write failure message to the TG, so that the TG writes the reminder message into an abnormal upload file, and determines that the message queue is unavailable, and then further includes:
and if the message queue is available, calling a file processing TP (transport profile) to enable the file processing TP to read the abnormal upload file and write the reminding message stored in the abnormal upload file into the message queue.
Specifically, if the reminding triggering TP determines that the message queue is unavailable, the process of reading the reminding message from the message queue by the alarm execution TP is suspended, and the message queue is waited to be available again.
After a period of time, reminding the trigger TP, and if judging that the message queue is available, calling the file processing TP; then, the file processing TP starts an abnormal upload file parsing process, that is, reads the abnormal upload file, and writes the reminding message stored in the abnormal upload file into the message queue. It should be noted that, after all the reminding messages stored in the abnormal upload file are written into the message queue, the file processing TP stops the abnormal upload file parsing process, and starts the alarm execution TP to read the reminding messages from the message queue.
According to the method provided by the embodiment of the invention, the abnormal upload file is read by calling the file processing TP, and the reminding message stored in the abnormal upload file is written into the message queue to complete subsequent judgment and issuing, so that the user complaint caused by missed issuing is avoided, and the service quality and the user satisfaction are improved.
On the basis of the above embodiments, writing the reminder message into a message queue includes:
and sending the reminding message to any message queue in the cluster mirror image queues where the message queues are located, so that the reminding message is sent to the message queues when the message queues are not the message queues, the message queues are used for writing the reminding message, and the reminding message is sent to all other message queues in the cluster mirror image queues.
It should be noted that the message queue in the embodiment of the present invention is a primary message queue in the cluster mirror image queue. Specifically, the cluster mirror image queue includes a master message queue and a plurality of slave message queues, different message queues are deployed on different nodes, and all the slave message queues are mirror image queues of the master message queue, that is, the reminder messages stored in all the slave message queues need to be consistent with the reminder messages stored in the master message queue.
The reminding trigger TP can select any message queue in the cluster mirror image queues to connect, namely, a reminding message is sent to any message queue; if the message queue is not the main message queue, forwarding the received reminding message to the main message queue; and after receiving the reminding message, the main message queue writes the reminding message and sends the reminding message to all the slave message queues in the cluster mirror image queue, so that all the slave message queues store the reminding message.
According to the method provided by the embodiment of the invention, the cluster mirror image queue mechanism is adopted, and when a single node fails to cause that the message queue deployed in the node is unavailable, other nodes in the cluster mirror image queue can still provide services, so that the stability of the reminding message issuing process is ensured.
Fig. 2 is a flowchart of a method for issuing a reminder message according to another embodiment of the present invention, where an execution main body of the method is an alarm execution TP in a signaling processing system, as shown in fig. 2, the method includes:
step 201, reading a reminding message from a message queue; and the reminding message is generated by calling a target ticket in a dialogue document from the rating TP for rating according to a reminding triggering task sent by the reminding triggering TP according to the TG.
Specifically, the architecture of the signal control processing system is similar to that of the charging system, and the details of the architecture are not repeated here. After the TG in the signal control processing system generates an acquired alarm execution task, the TG acquires a service address of an alarm execution TP through an SS in the signal control processing system, and calls the alarm execution TP through an SC in the signal control processing system so that the alarm execution TP reads a reminding message from a message queue. The reminding message is generated by calling a target ticket in a dialogue document from a rating TP in the charging system for rating according to a reminding triggering task sent by a TG in the charging system by a reminding triggering TP in the charging system.
Step 202, judging whether the reminding message meets the issuing condition, if so, issuing the reminding message to the terminal of the user corresponding to the target ticket.
Specifically, after the alarm execution TP reads the reminding message from the message queue, it is determined whether the reminding message meets the issuing condition, and if so, the reminding message is issued to the terminal of the user corresponding to the target ticket, so that the user can reasonably use the service or timely recharge. It should be noted that, the condition that the reminding message satisfies the issue condition may be: the data flow used by the user in the reminding message exceeds a certain threshold or the residual data flow is lower than a certain threshold.
According to the method provided by the embodiment of the invention, the alarm execution TP in the credit control processing system does not need to wait until the billing system completes rating the whole ticket file to judge and issue the reminding message, but the reminding message corresponding to the ticket can be read from the message queue after the billing system rates the ticket of each user, so that the service processing rate and efficiency are improved, and the timeliness of issuing the reminding message is further improved.
On the basis of the above embodiments, the embodiments of the present invention further include:
and sending a read request to any message queue in the cluster mirror image queue where the message queue is located, so that the read request is sent to the message queue when the message queue is not the message queue.
It should be noted that the message queue in the embodiment of the present invention is a primary message queue in the cluster mirror image queue. Specifically, the alarm execution TP may select any message queue in the cluster mirror image queues to connect, that is, send a read request to any message queue; and if the message queue is not the main message queue, forwarding the received reading request to the main message queue.
And reading the reminding message from the message queue according to the received reading response of the message queue.
Specifically, after receiving the read request, the primary message queue generates a read response to the read request and sends the read response to the alarm execution TP. And the alarm execution TP reads the reminding message from the main message queue according to the received reading response.
It should be noted that, after the alarm execution TP reads out the alert message, an ack message is sent to the master message queue, and after the master message queue receives the ack message, the alert message is deleted, and the ack message is sent to all slave message queues in the cluster mirror image queue, so that the alert message stored in the slave message queue is deleted after all slave message queues receive the ack message.
According to the method provided by the embodiment of the invention, the cluster mirror image queue mechanism is adopted, and when a single node fails to cause that the message queue deployed in the node is unavailable, other nodes in the cluster mirror image queue can still provide services, so that the stability of the reminding message issuing process is ensured.
Fig. 3 is a schematic structural diagram of a device for issuing a reminder message according to an embodiment of the present invention, and as shown in fig. 3, the device includes:
the reminding message calling module 301 is configured to call a target ticket in a dialog document from the rating TP to perform rating according to a reminding trigger task sent by the TG, so as to generate a reminding message corresponding to the target ticket; a reminding message writing module 302, configured to write the reminding message into a message queue, so that when the alarm execution TP reads the reminding message from the message queue and determines that an issuing condition is met, the reminding message is issued to a terminal of a user corresponding to the target ticket.
Specifically, the device is a reminding trigger TP in the charging system, and the reminding trigger TP comprises a reminding message calling module 301 and a reminding message writing module 302. The message calling module 301 calls a target ticket in a dialog document from the rating TP to perform rating according to a reminding trigger task sent by the TG, and then writes a reminding message into a message queue through the reminding message writing module 302, so that when an alarm execution TP in the signal control processing system reads the reminding message from the message queue and determines that an issuing condition is met, the reminding message is issued to a terminal of a user corresponding to the target ticket, and the user can reasonably use a service or timely recharge. It should be noted that, the condition that the reminding message satisfies the issue condition may be: the data flow used by the user in the reminding message exceeds a certain threshold or the residual data flow is lower than a certain threshold.
The apparatus provided in the embodiment of the present invention specifically executes the flows of the above-mentioned method embodiments, and for details, the contents of the above-mentioned method embodiments are referred to, and are not described herein again. The device provided by the embodiment of the invention has the advantages that the pricing and reminding triggering are carried out by adopting the charging system which is based on the data access and data processing separation concept to carry out architecture, the pricing and reminding triggering are separated into different TPs to be processed, the parallel processing of the service is realized, the pricing TP in the charging system can generate the reminding message while carrying out the pricing, namely, the corresponding reminding message is generated after the ticket of one user is processed, the subsequent processing is carried out by the reminding triggering TP, the message queue and the alarm execution TP, the service processing speed and efficiency are improved, and the timeliness of issuing the reminding message is further improved.
Fig. 4 is a schematic structural diagram of a device for issuing a reminder message according to another embodiment of the present invention, as shown in fig. 4, the device includes:
a reminding message reading module 401, configured to read a reminding message from a message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation; and the reminding message issuing module 402 is configured to determine whether the reminding message meets an issuing condition, and if so, issue the reminding message to a terminal of the user corresponding to the target ticket.
Specifically, the device is an alarm execution TP in a signal control processing system, and the alarm execution TP includes a reminding message reading module 401 and a reminding message issuing module 402. The reminding message reading module 401 reads the reminding message from the message queue, and then the reminding message issuing module 402 determines whether the reminding message meets the issuing condition, and if so, the reminding message is issued to the terminal of the user corresponding to the target ticket, so that the user can reasonably use the service or timely recharge. It should be noted that, the condition that the reminding message satisfies the issue condition may be: the data flow used by the user in the reminding message exceeds a certain threshold or the residual data flow is lower than a certain threshold.
The apparatus provided in the embodiment of the present invention specifically executes the flows of the above-mentioned method embodiments, and for details, the contents of the above-mentioned method embodiments are referred to, and are not described herein again. The device provided by the embodiment of the invention does not need to judge and issue the reminding message after the billing system completes the rating of the whole ticket file, but can read the reminding message corresponding to the ticket from the message queue after the billing system rates the ticket of each pair of users, thereby improving the service processing rate and efficiency and further improving the timeliness of issuing the reminding message.
Fig. 5 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device may include: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may invoke a computer program stored on the memory 503 and executable on the processor 501 to perform the methods provided by the above embodiments, including, for example: calling a target ticket in a dialog ticket file from a rating TP to perform rating according to a reminding trigger task sent by TG to generate a reminding message corresponding to the target ticket; and writing the reminding message into a message queue so that when the alarm execution TP reads the reminding message from the message queue and judges that the issuing condition is met, the reminding message is issued to the terminal of the user corresponding to the target ticket. Or, reading the reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation; and judging whether the reminding message meets an issuing condition, and if so, issuing the reminding message to a terminal of the user corresponding to the target ticket.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and the method includes: calling a target ticket in a dialog ticket file from a rating TP to perform rating according to a reminding trigger task sent by TG to generate a reminding message corresponding to the target ticket; and writing the reminding message into a message queue so that when the alarm execution TP reads the reminding message from the message queue and judges that the issuing condition is met, the reminding message is issued to the terminal of the user corresponding to the target ticket. Or, reading the reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation; and judging whether the reminding message meets an issuing condition, and if so, issuing the reminding message to a terminal of the user corresponding to the target ticket.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for issuing a reminding message is characterized by comprising the following steps:
calling a target ticket in a dialog ticket file from a rating TP to perform rating according to a reminding trigger task sent by TG to generate a reminding message corresponding to the target ticket; the TG index data visitor is a component for generating tasks, is responsible for setting task overtime time when generating the tasks, and carries out task processing success, task processing failure and task overtime processing; the TP index data processor processes the tasks generated by the TG in a task flow mode or provides calling service for other TPs in a synchronous calling mode for the components processing the tasks;
and writing the reminding message into a message queue so that when the alarm execution TP reads the reminding message from the message queue and judges that the issuing condition is met, the reminding message is issued to the terminal of the user corresponding to the target ticket.
2. The method of claim 1, further comprising:
receiving a write success message or a write failure message fed back by the message queue;
if the writing success message is received, sending the reminding message and the writing success message to the TG so that the TG can write the reminding message into a normal upload file;
and if the write failure message is received, sending the reminding message and the write failure message to the TG so that the TG writes the reminding message into an abnormal upload file and judges that the message queue is unavailable.
3. The method according to claim 2, wherein sending the reminder message and the write failure message to the TG to cause the TG to write the reminder message to an exception upload file and determine that the message queue is unavailable, further comprising:
and if the message queue is available, calling a file processing TP (transport profile) to enable the file processing TP to read the abnormal upload file and write the reminding message stored in the abnormal upload file into the message queue.
4. The method of claim 1, wherein writing the alert message to a message queue comprises:
and sending the reminding message to any message queue in the cluster mirror image queues where the message queues are located, so that the reminding message is sent to the message queues when the message queues are not the message queues, the message queues are used for writing the reminding message, and the reminding message is sent to all other message queues in the cluster mirror image queues.
5. A method for issuing a reminding message is characterized by comprising the following steps:
reading a reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation; the TG index data visitor is a component for generating tasks, is responsible for setting task overtime time when generating the tasks, and carries out task processing success, task processing failure and task overtime processing; the TP index data processor processes the tasks generated by the TG in a task flow mode or provides calling service for other TPs in a synchronous calling mode for the components processing the tasks;
and judging whether the reminding message meets an issuing condition, and if so, issuing the reminding message to a terminal of the user corresponding to the target ticket.
6. The method of claim 5, wherein reading the alert message from the message queue comprises:
sending a read request to any message queue in a cluster mirror image queue where the message queue is located, so that the read request is sent to the message queue when the message queue is not the message queue;
and reading the reminding message from the message queue according to the received reading response of the message queue.
7. A reminding message issuing device is characterized by comprising:
the reminding message calling module is used for calling a target ticket in a dialogue document from the rating TP to perform rating according to a reminding trigger task sent by the TG, and generating a reminding message corresponding to the target ticket; the TG index data visitor is a component for generating tasks, is responsible for setting task overtime time when generating the tasks, and carries out task processing success, task processing failure and task overtime processing; the TP index data processor processes the tasks generated by the TG in a task flow mode or provides calling service for other TPs in a synchronous calling mode for the components processing the tasks;
and the reminding message writing module is used for writing the reminding message into a message queue so as to enable the alarm execution TP to read the reminding message from the message queue and issue the reminding message to a user terminal corresponding to the target ticket when the condition of issuing is judged to be met.
8. A reminding message issuing device is characterized by comprising:
the reminding message reading module is used for reading the reminding message from the message queue; the reminding message is a reminding triggering task sent by the reminding triggering TP according to the TG, and a target ticket in a dialog document is called from the rating TP to perform rating generation; the TG index data visitor is a component for generating tasks, is responsible for setting task overtime time when generating the tasks, and carries out task processing success, task processing failure and task overtime processing; the TP index data processor processes the tasks generated by the TG in a task flow mode or provides calling service for other TPs in a synchronous calling mode for the components processing the tasks;
and the reminding message issuing module is used for judging whether the reminding message meets the issuing condition or not, and if so, issuing the reminding message to the terminal of the user corresponding to the target ticket.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201811469168.1A 2018-11-27 2018-11-27 Reminding message issuing method and device Active CN111225117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811469168.1A CN111225117B (en) 2018-11-27 2018-11-27 Reminding message issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811469168.1A CN111225117B (en) 2018-11-27 2018-11-27 Reminding message issuing method and device

Publications (2)

Publication Number Publication Date
CN111225117A CN111225117A (en) 2020-06-02
CN111225117B true CN111225117B (en) 2021-08-27

Family

ID=70827485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811469168.1A Active CN111225117B (en) 2018-11-27 2018-11-27 Reminding message issuing method and device

Country Status (1)

Country Link
CN (1) CN111225117B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684837B (en) * 2023-07-19 2023-10-03 贵阳朗玛通信科技有限公司 Billing preprocessing method and device for ticket

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8099393B2 (en) * 2002-03-22 2012-01-17 Oracle International Corporation Transaction in memory object store
CN102111276B (en) * 2009-12-29 2015-03-04 北京四达时代软件技术股份有限公司 Real-time charging method and system
CN105827670A (en) * 2015-01-05 2016-08-03 中国移动通信集团四川有限公司 Data processing method and data processing device

Also Published As

Publication number Publication date
CN111225117A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN107889069B (en) Short message gateway selection method, device, server and readable storage medium
CN106548402B (en) Resource transfer monitoring method and device
CN114363407B (en) Message service method and device, readable storage medium and electronic equipment
TWI771616B (en) Payment anti-shake method and device
US11544119B2 (en) Business rules processing framework for implementing new desired functionality in a telecommunication application
CN114338793A (en) Message pushing method and device, electronic equipment and readable storage medium
CN111225117B (en) Reminding message issuing method and device
RU2465741C2 (en) Method, system and device for implementing multimedia messaging service
CN113342541A (en) Message consumption method and device, computing equipment and storage medium
US20160112525A1 (en) Distribution control device and method for same, push distribution system, and storage medium
CN112437155A (en) Service data processing method and device and server equipment
CN112910987A (en) Message pushing method, system, device, equipment and storage medium
CN111582996B (en) Service information display method and device
CN113992352A (en) Message pushing method and device, electronic equipment and storage medium
CN111049938B (en) Message notification method and device, electronic equipment and readable storage medium
EP3975598A1 (en) Method, apparatus, and device for subscribing resources in field of internet of things, and storage medium
CN113723942A (en) Aggregated payment method, device, equipment and storage medium
CN112335266B (en) System and method for managing notification requests in a communication network
CN111968293A (en) Bank queuing queue number replacement method, device, storage medium and equipment
CN117478504B (en) Information transmission method, device, terminal equipment and storage medium
CN115115457B (en) Method, system and medium for processing business transaction flow
CN110719315B (en) Method for interacting with server, method for interacting with client, client and server
CN114449035A (en) Method and device for sending notification message for automatic payment
CN114281650A (en) Automatic early warning method and device for connection management platform and related media
CN113965457A (en) Message notification method and device

Legal Events

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