CN111400062A - Information notification method, device, system and computer readable storage medium - Google Patents

Information notification method, device, system and computer readable storage medium Download PDF

Info

Publication number
CN111400062A
CN111400062A CN202010171699.3A CN202010171699A CN111400062A CN 111400062 A CN111400062 A CN 111400062A CN 202010171699 A CN202010171699 A CN 202010171699A CN 111400062 A CN111400062 A CN 111400062A
Authority
CN
China
Prior art keywords
notification
message
sent
information notification
module
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.)
Withdrawn
Application number
CN202010171699.3A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010171699.3A priority Critical patent/CN111400062A/en
Publication of CN111400062A publication Critical patent/CN111400062A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The application discloses an information notification method, an information notification device, an information notification system and a computer-readable storage medium. The system comprises a task notification platform, a notification service interface, a plurality of information notification service modules and a plurality of groups of module interfaces corresponding to the information notification service modules; the task notification platform is used for matching a corresponding target information notification service module for a to-be-sent notification message which is received through the notification service interface and accords with a preset message format, and distributing the to-be-sent notification message to the target information notification service module by calling the corresponding module interface; each information notification service module is used for executing one type of information notification service process, and each module interface predefines a calling function connected with the corresponding information notification service module. The method and the device can effectively utilize various message notification modes to reduce the delay caused by the notification among the nodes, can also greatly reduce the maintenance work of the notification service, and improve the completion efficiency of the whole information notification process.

Description

Information notification method, device, system and computer readable storage medium
Technical Field
The present application relates to the field of automated information system maintenance technologies, and in particular, to an information notification method, apparatus, system, and computer-readable storage medium.
Background
An automated Information System (iHDIS) is a detailed design specification of a functional module after a specific project of a Hardware Development Information System is established, and is used for developing products in a Development stage. When a new task is generated in the process, the system needs to send a notification to a corresponding task responsible person to confirm that the process task can be smoothly performed. At present, there are many different types of modules capable of providing notification methods, in order to improve the flexibility of the system, the information notification module of the automated information system can be provided with a plurality of different types of information notification methods, such as e-mail, mobile phone short message and mobile phone push, and the purpose of notification can be achieved by selecting a proper module.
It can be understood that the usage and operation flow of each type of information notification method are not exactly the same, but the functional modules implementing different information notification methods all have their required formats and execution flows, when the system needs to support multiple notification methods, different modules need to be maintained and set, and the notification methods of their own roles increase the difficulty of system maintenance and are not easily changed when the module methods need to be changed.
Therefore, how to solve the problem that in the related art, when a system uses a plurality of functional modules for implementing different information notification methods to execute notification services, new interfaces need to be established or old interfaces need to be modified, so that each functional module needs to be maintained separately and is not easy to change is a problem that needs to be solved by a person skilled in the art.
Disclosure of Invention
The application provides an information notification method, an information notification device, an information notification system and a computer readable storage medium, which solve the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, and a new interface needs to be established or an old interface needs to be modified when a notification service is executed, so that the functional modules need to be maintained respectively and are not easy to change.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
the embodiment of the invention provides an information notification system on one hand, which comprises a task notification platform, a notification service interface, an information notification service module group and a module interface set;
the task notification platform is used for matching a corresponding target information notification service module for a to-be-sent notification message which is received through the notification service interface and accords with a preset message format, and distributing the to-be-sent notification message to the target information notification service module by calling a corresponding module interface;
the information notification service module group comprises a plurality of information notification service modules, each information notification service module is used for executing one type of information notification service process, and each information notification service module corresponds to a module interface in the module interface set one by one; each module interface of the module interface set predefines a calling function for connecting corresponding information notification service modules.
Optionally, the task notification platform is configured to invoke a multithread message processing program to perform the following steps:
when a plurality of notification messages to be sent issued by an upper layer system are received through the notification service interface, and each notification message to be sent conforms to a preset message format;
and calling a plurality of threads to simultaneously match corresponding target information notification service modules for each notification message to be sent, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces.
Optionally, the task notification platform is configured to invoke a single-thread message processing program to execute the following steps:
when a plurality of notification messages to be sent issued by an upper layer are received through the notification service interface; each notification message to be sent conforms to a preset message format and carries a priority value;
and matching corresponding target information notification service modules for each notification message to be sent in sequence from top to bottom according to the priority value, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces.
Optionally, the information notification service module group includes an Email service module, an SMS service module, and a mobile phone push service module;
the Email service module is used for issuing the notification message to be sent to a pre-bound client according to a mail message notification service flow;
the SMS service module is used for issuing the notification message to be sent to a pre-bound client according to a short message notification service flow;
the mobile phone push service module is used for issuing the notification message to be sent to the pre-bound client according to a push message notification service flow.
Optionally, the task notification platform is further configured to invoke a tag setting program to perform the following steps:
after receiving the notification message to be sent, setting a message processing tag for the notification message to be sent, and meanwhile, putting the notification message to be sent into a message processing queue;
and after receiving feedback information which is sent by the target information notification service module and is successfully issued, setting a message completion label for the notification message to be sent, and removing the notification message to be sent from the message processing queue.
Optionally, the task notification platform is configured to invoke a message retrieval program to perform the following steps:
inquiring whether a tag is a to-be-sent notification message which is processed by the message from the message processing queue;
if a plurality of tags exist in the message processing queue as to-be-sent notification messages which are processed by the messages, selecting one to-be-sent notification message from the message processing queue according to a preset message selection rule for processing; if a to-be-sent notification message with a label being processed by the message exists in the message processing queue, extracting the to-be-sent notification message from the message processing queue and processing the to-be-sent notification message;
and if the notification message to be sent with the tag being the message in processing does not exist in the message processing queue, sending feedback information of the processed message to an upper layer.
Another aspect of the embodiments of the present invention provides an information notification method, including:
when a to-be-sent notification message which accords with a preset message format is received through a notification service interface, matching a corresponding information notification service module for the to-be-sent notification message;
distributing the notification message to be sent to the information notification service module by calling a corresponding module interface;
the information notification service module is used for executing one type of information notification service process, and the information notification service module corresponds to the module interface, and the module interface predefines a calling function connected with the information notification service module.
Optionally, the preset message format includes a message title, a message content, an email box, a mobile phone number, a message notification mode, and a type of a required information notification service module.
An embodiment of the present invention further provides an information notification apparatus, including a processor, where the processor is configured to implement the steps of the information notification method according to any one of the foregoing items when executing a computer program stored in a memory.
An embodiment of the present invention finally provides a computer-readable storage medium, where an information notification program is stored on the computer-readable storage medium, and when executed by a processor, the information notification program implements the steps of the information notification method according to any one of the foregoing items.
The technical scheme provided by the application has the advantages that the notification service interface receives notification messages needing to be transmitted by an upper layer, the task notification platform determines which information notification method is used for implementing the notification according to the format of the incoming notification messages, and each notification message implementation mode is connected with the information notification service module required by the notification message implementation mode through the function of the corresponding module interface, so that various information notification service modules can be integrated in the system, the system can implement efficient task notification through various notification modes, and the delay time generated by notification among all nodes is saved; the information notification service module can be replaced by an information notification service module with different message notification modes according to requirements under the condition that the system is not influenced, the problems that in the related technology, the system comprises a plurality of functional modules which realize different information notification modes, new interfaces need to be established or old interfaces need to be modified when the notification service is executed, and therefore all the functional modules need to be maintained respectively and are not easy to change are solved, the system is easier to maintain and has higher flexibility in modification, the maintenance work of the notification service can be greatly reduced, and the completion efficiency of the whole message notification process is improved.
In addition, the embodiment of the invention also provides a corresponding implementation method, a corresponding implementation device and a corresponding computer-readable storage medium for the information notification system, so that the system is more feasible, and the method, the device and the computer-readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a structural diagram of an embodiment of an information notification system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an implementation of an information notification system provided in an illustrative example according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a task notification flow provided in one illustrative example according to an embodiment of the invention;
FIG. 4 is a diagram illustrating a code implementation process of an information notification system according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an information notification method according to an embodiment of the present invention;
fig. 6 is a structural diagram of an embodiment of an information notification apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of another specific implementation of an information notification apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring first to fig. 1, fig. 1 is a schematic structural framework diagram of an information notification system according to an embodiment, which may include the following:
the information notification system may include a task notification platform 1, a notification service interface 2, a set of information notification service modules 3, and a set of module interfaces 4. The notification service interface 2 is arranged on the task notification platform 1; the information notification service module group 3 includes a plurality of information notification service modules, the module interface set 4 includes a plurality of module interfaces, the total number of the information notification service modules in the information notification service module group 3 is the same as the number of the module interfaces in the module interface set 4, and the information notification service modules in the information notification service module group 3 are uniquely corresponding to the module interfaces in the module interface set 4, that is, one information notification service module is uniquely corresponding to one group of module interfaces.
In the present application, the notification service interface 2 serves as an interface for receiving external input information by the information notification system, and the upper layer system can transmit the notification message to be issued to the task notification platform 1 through the notification service interface 2. Then, the task notification platform 1 can match the to-be-sent notification message conforming to the preset message format with the corresponding target information notification service module, and distribute the to-be-sent notification message to the target information notification service module by calling the corresponding module interface. The target information notification service module may be an information notification service module in the information notification service module group 3, where the type of the information notification service process executed by the target information notification service module is consistent with the information notification service process corresponding to the to-be-sent notification message, for example, if the to-be-sent notification message is a short message notification message, the target information notification service module executes the short message notification service process. When analyzing a target information notification service module required by a notification message to be sent, the task notification platform 1 may obtain the target information notification service module by analyzing a preset message format, where the preset message format may include, for example, a message title, a message content, an email box, a mobile phone number, a message notification mode, and a type of the required information notification service module. The method for the task notification platform 1 to analyze the preset message format of the notification message to be sent is consistent with the preset message format. If the notification message to be sent received through the notification service interface does not conform to the preset message format, the task notification platform 1 cannot analyze the notification message, naturally cannot match a corresponding information notification service module for the notification message, can directly report an error, or feed back the feedback information with an unsatisfactory message format to an upper layer, or directly ignore the notification message.
The information notification service module group 3 may include a plurality of information notification service modules, each information notification service module is configured to execute one type of information notification service process, and each information notification service module corresponds to a module interface in the module interface set 4 one to one; each module interface of the module interface set 4 defines a calling function for connecting the corresponding information notification service module in advance. Each interface can self-define the necessary functions of the self notification process, corresponding information notification services are used for implementing the notification process method according to the interface definition through Java or other high-level cross-platform statements, and the task notification platform determines which method is used for implementing the notification according to the transmitted notification message to be sent, so that various notification module methods can be integrated, and the module used by the notification can be selected according to the system requirements.
In the technical solution provided in the embodiment of the present invention, a notification service interface receives notification messages that need to be transmitted by an upper layer, a task notification platform determines which information notification method is to be used to implement notification according to the format of the incoming notification messages, and each notification message implementation manner is connected to an information notification service module that is required by the notification message implementation manner through a function of a corresponding module interface, so that integration of multiple information notification service modules can be implemented in a system, and thus the system can implement efficient task notification through multiple notification manners, so as to save delay time generated by notification among nodes; the information notification service module can be replaced by an information notification service module with different message notification modes according to requirements under the condition that the system is not influenced, the problems that in the related technology, the system comprises a plurality of functional modules which realize different information notification modes, new interfaces need to be established or old interfaces need to be modified when the notification service is executed, and therefore all the functional modules need to be maintained respectively and are not easy to change are solved, the system is easier to maintain and has higher flexibility in modification, the maintenance work of the notification service can be greatly reduced, and the completion efficiency of the whole message notification process is improved.
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, with reference to fig. 2, fig. 3 and fig. 4, the present application explains the technical solutions of the present application by taking the example that the information notification service module group 3 includes an Email service module, an SMS service module and a mobile phone push service module, and may include the following contents:
a set of task notification platform is established in a system, the notification platform provides a notification service interface, a shared function method needing to be called is set, a set of message formats transmitted to the system is formulated, three notification services, namely Email service, SMS service and mobile phone push service, are established, each notification service corresponds to a set of module interfaces, each module interface can customize a necessary function method of a notification flow, a corresponding information notification service module implements the notification information method according to interface definition through Java or other high-level cross-platform statements, and the specific code implementation process can be seen in fig. 4. The information notification service module group 3 can comprise a plurality of Email service modules, a plurality of SMS service modules and a plurality of mobile phone push service modules, and one module can execute a message to be sent; certainly, each module may include multiple sub-modules, and each sub-module is responsible for executing one message to be sent, so that the information notification service module group 3 may execute multiple messages to be sent at the same time, thereby improving the message processing efficiency. The Email service module is used for issuing the notification message to be sent to the pre-bound client according to the mail message notification service process; the SMS service module is used for sending the notification message to be sent to the pre-bound client according to the short message notification service flow; the mobile phone push service module is used for issuing the notification message to be sent to the pre-bound client according to the push message notification service process. A plurality of implementation methods can be set up for each module interface, and the services of three notification modes need to be individually connected with the notification method to be adopted, as shown in fig. 3, the Email service uses Email method 1, SMS service connection SMS method 1, and push service connection push method 2.
Therefore, the embodiment of the invention solves the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, a new interface needs to be established or an old interface needs to be modified when executing the notification service, so that each functional module needs to be maintained and is not easy to change.
As an alternative embodiment, in order to improve the message processing efficiency of the system, the task notification platform 1 may be further configured to invoke a multi-thread message processing program to perform the following steps:
when a plurality of notification messages to be sent issued by an upper layer system are received through a notification service interface, and each notification message to be sent conforms to a preset message format;
and calling a plurality of threads to simultaneously match corresponding target information notification service modules for each notification message to be sent, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces.
As another optional implementation manner, if the task notification platform 1 cannot support multi-thread processing, and for an application scenario with a large number of notification messages to be sent, single-thread processing efficiency is not high, and in order to quickly and effectively process an urgent message, the task notification platform 1 may further be configured to invoke a single-thread message processing program to perform the following steps:
when a plurality of notification messages to be sent issued by an upper layer are received through a notification service interface; each notification message to be sent conforms to a preset message format and carries a priority value;
and matching corresponding target information notification service modules for each notification message to be sent in sequence from top to bottom according to the priority value, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces. The higher the priority value is, the more advanced the processing sequence is, the user can set the priority value of the emergency processing message to be the highest, and after the system finishes processing the current notification message to be sent, the system can select the message with the highest priority value from the current notification messages to be sent as the next notification message to be sent for processing.
For the upper layer system to send a large amount of notification messages to be sent in a group, in order to improve the message processing efficiency and avoid omission, the task notification platform 1 may be further configured to invoke a tag setting program to execute the following steps:
after receiving a notification message to be sent, setting a message processing tag for the notification message to be sent, and meanwhile, putting the notification message to be sent into a pre-constructed message processing queue;
and after receiving feedback information which is sent by the target information notification service module and is successfully issued, setting a message completion label for the notification message to be sent, and removing the notification message to be sent from the message processing queue.
In the embodiment of the present invention, the task notification platform 1 is further configured to invoke the message retrieval program to perform the following steps:
inquiring whether a to-be-sent notification message with a label being processed for the message exists in the message processing queue;
if a plurality of tags exist in the message processing queue as to-be-sent notification messages which are processed by the messages, selecting one to-be-sent notification message from the message processing queue according to a preset message selection rule for processing; if a to-be-sent notification message with a label being processed by the message exists in the message processing queue, extracting the to-be-sent notification message from the message processing queue and processing the to-be-sent notification message;
and if the notification message to be sent with the tag being the message in processing does not exist in the message processing queue, sending feedback information of the processed message to an upper layer.
The preset message selection rule may be, for example, to select a notification message to be sent from high to low according to the priority value, or may also be to select a band to send a notification message from front to back according to the receiving time, or of course, may be other selection rules, which is not limited in this application.
The embodiment of the invention can ensure that each message is processed in time without being missed by setting the label for the message, and can also ensure that the processed message is not repeatedly processed for the second time, thereby improving the message processing efficiency.
The embodiment of the invention also provides a corresponding implementation method for the information notification system, so that the system is more feasible. In the following, the information notification method provided by the embodiment of the present invention is introduced, and the information notification method described below and the information notification system described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic flow chart of an information notification method according to an embodiment of the present invention, where an execution subject according to the embodiment of the present invention may be a task notification platform, and the embodiment of the present invention may include the following:
s501: and when a to-be-sent notification message which accords with a preset message format is received through the notification service interface, matching the to-be-sent notification message with a corresponding information notification service module.
S502: and distributing the notification message to be sent to the information notification service module by calling a corresponding module interface.
The information notification service module can be used for executing one type of information notification service process, and the information notification service module corresponds to the module interface, and the module interface predefines a calling function for connecting the information notification service module. The preset message format comprises a message title, message contents, an email box, a mobile phone number, a message notification mode and a required information notification service module type.
The implementation process of each step in the embodiment of the present invention may refer to the function implementation of each function module in the system embodiment, and specific contents may refer to the description in the system embodiment, which is not described herein again.
Therefore, the embodiment of the invention solves the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, a new interface needs to be established or an old interface needs to be modified when executing the notification service, so that each functional module needs to be maintained and is not easy to change.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 2, fig. 3, and fig. 5 are only schematic manners, and do not represent that only such an execution order is available.
The embodiment of the invention also provides a corresponding device for the information notification method, thereby further ensuring that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the information notification apparatus provided by the embodiment of the present invention is introduced, and the information notification apparatus described below and the information notification method described above may be referred to correspondingly.
Based on the angle of the function module, referring to fig. 6, fig. 6 is a structural diagram of an information notification apparatus according to an embodiment of the present invention, in a specific implementation manner, where the apparatus may include:
the type matching module 601 is configured to match a corresponding information notification service module for a to-be-sent notification message when the to-be-sent notification message conforming to a preset message format is received through the notification service interface.
A message sending module 602, configured to distribute a notification message to be sent to an information notification service module by calling a corresponding module interface; the information notification service module is used for executing one type of information notification service process, and the information notification service module corresponds to the module interface, and the module interface predefines a calling function for connecting the information notification service module.
The functions of the functional modules of the information notification apparatus according to the embodiments of the present invention may be specifically implemented according to the method in the foregoing method embodiments, and the specific implementation process may refer to the description related to the foregoing method embodiments, which is not described herein again.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the embodiment of the present invention, specific contents may be referred to the description in the embodiment of the present invention, and thus, the details are not repeated here.
Therefore, the embodiment of the invention solves the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, a new interface needs to be established or an old interface needs to be modified when executing the notification service, so that each functional module needs to be maintained and is not easy to change.
The above-mentioned information notifying apparatus is described from the perspective of a functional module, and further, the present application also provides an information notifying apparatus described from the perspective of hardware. Fig. 7 is a structural diagram of another information notification apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus comprises a memory 70 for storing a computer program;
a processor 71, configured to implement the steps of the information notification method as mentioned in the above embodiments when executing the computer program.
The processor 71 may also include a main processor, which is a processor for Processing data in a wake-up state, also called a CPU (Central Processing Unit), and a coprocessor, which is a low power consumption processor for Processing data in a standby state, the processor 71 may, in some embodiments, be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content to be displayed on a display screen, and the processor 71 may further include an AI (intelligent processor) for performing an AI operation related to learning of Artificial Intelligence (AI) Processing.
The memory 70 may comprise one or more computer-readable storage media, which may be non-transitory, the memory 70 may further comprise a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, a flash memory storage device, in the present embodiment, the memory 70 is at least used for storing a computer program 701, wherein the computer program is loaded and executed by the processor 71, and is capable of implementing the relevant steps of the information notification method disclosed in any of the foregoing embodiments.
In some embodiments, the information notification apparatus may further include a display 72, an input/output interface 73, a communication interface 74, a power source 75, and a communication bus 76.
Those skilled in the art will appreciate that the configuration shown in fig. 7 does not constitute a limitation of the information notification apparatus and may include more or fewer components than those shown, such as sensor 77.
The functions of the functional modules of the information notification apparatus according to the embodiments of the present invention may be specifically implemented according to the method in the foregoing method embodiments, and the specific implementation process may refer to the description related to the foregoing method embodiments, which is not described herein again.
Because the information interaction, execution process, and other contents between the units in the embodiment of the present invention are based on the same concept as the system embodiment, specific contents may refer to the description in the system embodiment, and are not described herein again.
Therefore, the embodiment of the invention solves the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, a new interface needs to be established or an old interface needs to be modified when executing the notification service, so that each functional module needs to be maintained and is not easy to change.
It is to be understood that, if the information notifying method in the above-described embodiments is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a computer-readable storage medium, which stores an information notification program, where the information notification program is executed by a processor, and the steps of the information notification method according to any one of the above embodiments are provided.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention solves the problem that in the related art, a system comprises a plurality of functional modules for realizing different information notification modes, a new interface needs to be established or an old interface needs to be modified when executing the notification service, so that each functional module needs to be maintained and is not easy to change.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The detailed description of the information notification method, apparatus, system and computer-readable storage medium provided in the present application is provided above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. An information notification system is characterized by comprising a task notification platform, a notification service interface, an information notification service module group and a module interface set;
the task notification platform is used for matching a corresponding target information notification service module for a to-be-sent notification message which is received through the notification service interface and accords with a preset message format, and distributing the to-be-sent notification message to the target information notification service module by calling a corresponding module interface;
the information notification service module group comprises a plurality of information notification service modules, each information notification service module is used for executing one type of information notification service process, and each information notification service module corresponds to a module interface in the module interface set one by one; each module interface of the module interface set predefines a calling function for connecting corresponding information notification service modules.
2. The information notification system of claim 1, wherein the task notification platform is configured to invoke a multi-threaded message processing program to perform the steps of:
when a plurality of notification messages to be sent issued by an upper layer system are received through the notification service interface, and each notification message to be sent conforms to a preset message format;
and calling a plurality of threads to simultaneously match corresponding target information notification service modules for each notification message to be sent, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces.
3. The information notification system of claim 1, wherein the task notification platform is configured to invoke a single threaded message processing program to perform the following steps:
when a plurality of notification messages to be sent issued by an upper layer are received through the notification service interface; each notification message to be sent conforms to a preset message format and carries a priority value;
and matching corresponding target information notification service modules for each notification message to be sent in sequence from top to bottom according to the priority value, and simultaneously distributing each image message to be sent to the corresponding target information notification service modules by calling corresponding module interfaces.
4. The information notification system according to claim 1, wherein said information notification service module group includes an Email service module, an SMS service module, and a mobile push service module;
the Email service module is used for issuing the notification message to be sent to a pre-bound client according to a mail message notification service flow;
the SMS service module is used for issuing the notification message to be sent to a pre-bound client according to a short message notification service flow;
the mobile phone push service module is used for issuing the notification message to be sent to the pre-bound client according to a push message notification service flow.
5. The information notification system according to any one of claims 1 to 4, wherein the task notification platform is further configured to invoke a tag setting program to perform the following steps:
after receiving the notification message to be sent, setting a message processing tag for the notification message to be sent, and meanwhile, putting the notification message to be sent into a message processing queue;
and after receiving feedback information which is sent by the target information notification service module and is successfully issued, setting a message completion label for the notification message to be sent, and removing the notification message to be sent from the message processing queue.
6. The information notification system of claim 5, wherein the task notification platform is configured to invoke a message retrieval program to perform the following steps:
inquiring whether a tag is a to-be-sent notification message which is processed by the message from the message processing queue;
if a plurality of tags exist in the message processing queue as to-be-sent notification messages which are processed by the messages, selecting one to-be-sent notification message from the message processing queue according to a preset message selection rule for processing; if a to-be-sent notification message with a label being processed by the message exists in the message processing queue, extracting the to-be-sent notification message from the message processing queue and processing the to-be-sent notification message;
and if the notification message to be sent with the tag being the message in processing does not exist in the message processing queue, sending feedback information of the processed message to an upper layer.
7. An information notification method, comprising:
when a to-be-sent notification message which accords with a preset message format is received through a notification service interface, matching a corresponding information notification service module for the to-be-sent notification message;
distributing the notification message to be sent to the information notification service module by calling a corresponding module interface;
the information notification service module is used for executing one type of information notification service process, and the information notification service module corresponds to the module interface, and the module interface predefines a calling function connected with the information notification service module.
8. The information notification method according to claim 7, wherein the predetermined message format includes a message title, a message content, an email box, a mobile phone number, a message notification manner, and a required information notification service module type.
9. An information notification apparatus comprising a processor for implementing the steps of the information notification method according to claim 7 or 8 when executing a computer program stored in a memory.
10. A computer-readable storage medium, having stored thereon an information notification program which, when executed by a processor, implements the steps of the information notification method of claim 7 or 8.
CN202010171699.3A 2020-03-12 2020-03-12 Information notification method, device, system and computer readable storage medium Withdrawn CN111400062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171699.3A CN111400062A (en) 2020-03-12 2020-03-12 Information notification method, device, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171699.3A CN111400062A (en) 2020-03-12 2020-03-12 Information notification method, device, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111400062A true CN111400062A (en) 2020-07-10

Family

ID=71430748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171699.3A Withdrawn CN111400062A (en) 2020-03-12 2020-03-12 Information notification method, device, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111400062A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822247A (en) * 2020-12-31 2021-05-18 新奥数能科技有限公司 System asynchronous communication method, device, electronic equipment and computer readable medium
CN113225699A (en) * 2021-04-30 2021-08-06 西安热工研究院有限公司 Message sending system and method based on alarm platform, and medium and equipment of storage method
CN113704004A (en) * 2021-08-30 2021-11-26 北京百度网讯科技有限公司 Notification service implementation method, device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822247A (en) * 2020-12-31 2021-05-18 新奥数能科技有限公司 System asynchronous communication method, device, electronic equipment and computer readable medium
CN112822247B (en) * 2020-12-31 2023-04-07 新奥数能科技有限公司 System asynchronous communication method, device, electronic equipment and computer readable medium
CN113225699A (en) * 2021-04-30 2021-08-06 西安热工研究院有限公司 Message sending system and method based on alarm platform, and medium and equipment of storage method
CN113225699B (en) * 2021-04-30 2022-07-01 西安热工研究院有限公司 Message sending system and method based on alarm platform, and medium and equipment of storage method
CN113704004A (en) * 2021-08-30 2021-11-26 北京百度网讯科技有限公司 Notification service implementation method, device, equipment and storage medium
CN113704004B (en) * 2021-08-30 2023-09-29 北京百度网讯科技有限公司 Method, device, equipment and storage medium for realizing notification service

Similar Documents

Publication Publication Date Title
CN111400062A (en) Information notification method, device, system and computer readable storage medium
CN109347934B (en) Message pushing method and system, server, storage medium and electronic device
CN109901920A (en) Method for scheduling task and device, electric terminal
CN107133064B (en) Page hot updating method and device for native application
CN110427252A (en) Method for scheduling task, device and the storage medium of task based access control dependence
CN105975351A (en) User behavior message reporting method and apparatus
CN109102264B (en) Electronic red packet detection method and device and terminal equipment
CN108089915B (en) Method and system for business control processing based on message queue
CN108008950B (en) Method and device for realizing user interface updating
CN109214741B (en) Early warning method and early warning system for monitoring indexes
CN110781180B (en) Data screening method and data screening device
CN110688236A (en) Information touch method, system and terminal equipment
CN111125604A (en) Page management method and device, terminal equipment and storage medium
CN112733511A (en) Form processing method, system, electronic equipment and computer readable storage medium
CN113033814A (en) Method, apparatus and storage medium for training machine learning model
CN111464352A (en) Call link data processing method and device
CN109445954A (en) A kind of execution method, terminal device and the storage medium of timed task
CN106951227B (en) Method and device for updating navigation bar
CN102333280A (en) Business secret key renewing method and system and business processing server
CN108460570B (en) Reusable service management configuration method, device, system and storage medium
CN107888677B (en) Communication implementation method, control terminal, intelligent device and system
CN109190969A (en) Weighing-appliance management-control method, system, weighing-appliance management middleware and medium
CN115776486A (en) Electronic file exchange method and system based on exchange node hierarchical grouping
CN113760403A (en) State machine linkage method and device
CN110928876A (en) Credit data storage 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200710