CN110750366A - Message processing method and device, computer equipment and storage medium - Google Patents

Message processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110750366A
CN110750366A CN201910919094.5A CN201910919094A CN110750366A CN 110750366 A CN110750366 A CN 110750366A CN 201910919094 A CN201910919094 A CN 201910919094A CN 110750366 A CN110750366 A CN 110750366A
Authority
CN
China
Prior art keywords
message
content
change
database
standard
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.)
Pending
Application number
CN201910919094.5A
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.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201910919094.5A priority Critical patent/CN110750366A/en
Publication of CN110750366A publication Critical patent/CN110750366A/en
Pending 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The application relates to a message processing method, a message processing device, computer equipment and a storage medium. The method comprises the following steps: when a database of a service system is changed, generating a corresponding change message according to the changed content of the database; detecting the content of the change message in real time; and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode, so that the change condition of the service system database can be rapidly obtained, and meanwhile, if the operation is found to be wrong, technicians can also rapidly repair the change operation, thereby greatly improving the efficiency of database operation repair.

Description

Message processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a message processing method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, business systems adopted by enterprises are more and more complex, and misoperation and other situations are likely to occur when data operation is performed on databases of the business systems. In the conventional technology, after a database of a business system is operated, whether the operation of the database meets a standard or expectation is checked, and after the operation is checked and determined to be correct, the operation of the database is stored, the database can be updated, and the updated data can enter the next operation, such as generating a corresponding message and sending the message to a consumer system.
However, this method is slow in strain, and cannot quickly know the change condition of the database, and if there is an error in operation, the problem of process modification such as development and test is also required to be released to the production environment.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a message processing method, device, computer device and storage medium capable of quickly learning and solving the database change problem.
A method of message processing, the method comprising:
when a database of a service system is changed, generating a corresponding change message according to the changed content of the database;
detecting the content of the change message in real time;
and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
As an implementation manner, before generating a corresponding change message according to the content of the database change when the database of the business system is changed, the method further includes:
configuring the change message through a configuration interface;
and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message theme, a consumer identifier and a message label.
As an implementation manner, when a database of a business system is changed, generating a corresponding change message according to the changed content of the database includes:
when a database of a service system is changed, acquiring a standard message parameter corresponding to a change message;
and executing a message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameter.
As an implementation manner, the detecting the content of the change message in real time includes:
acquiring real-time message parameters contained in the change message;
acquiring standard message parameters corresponding to the change message;
and comparing the real-time message parameter with the standard message parameter, and judging that the content of the change message does not accord with a preset message standard when the real-time message parameter is inconsistent with the standard message parameter.
As an implementation manner, when it is detected that the content of the change message does not meet the preset message standard, the initiating an alarm mode includes:
when the content of the change message is detected to be not in accordance with the preset message standard, calling a preset alarm method function;
determining alarm content according to the change message;
and taking the alarm content as a parameter of the preset alarm method function to generate a corresponding alarm notice.
As an implementation manner, when it is detected that the content of the change message does not meet the preset message standard, the initiating an alarm mode includes:
and when the content of the change message is detected to be not in accordance with the preset message standard, executing an alarm script code and sending an alarm notice to a corresponding administrator.
As an implementable manner, after the initiating of the alert mode, the method further comprises:
and repairing the changed operation of the database in real time according to the alarm prompt.
A message processing apparatus, the apparatus comprising:
the message generating module is used for generating a corresponding change message according to the changed content of the database when the database of the service system is changed;
the message detection module is used for detecting the content of the change message in real time;
and the alarm module is used for starting an alarm mode when detecting that the content of the change message does not accord with the preset message standard.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when a database of a service system is changed, generating a corresponding change message according to the changed content of the database;
detecting the content of the change message in real time;
and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a database of a service system is changed, generating a corresponding change message according to the changed content of the database;
detecting the content of the change message in real time;
and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
According to the message processing method, the message processing device, the computer equipment and the storage medium, when the database of the business system is changed, the corresponding change message is generated according to the changed content of the database, the server detects the content of the change message in real time, if the content of the change message is detected to be not in accordance with the preset message standard, the alarm mode is started, so that corresponding managers can repair the change operation of the database immediately according to the alarm prompt, the change condition of the business system database can be obtained quickly through the method, and meanwhile, if the operation is found to be wrong, technicians can repair the change operation quickly, and the efficiency of repairing the database operation is greatly improved.
Drawings
FIG. 1 is a flow diagram illustrating a message processing method according to one embodiment;
FIG. 2 is a diagram of a message processing method in one embodiment;
FIG. 3 is a block diagram showing the structure of a message processing apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a message processing method, including the steps of:
and 102, when the database of the service system is changed, generating a corresponding change message according to the changed content of the database.
And 104, detecting the content of the change message in real time.
And 106, when the content of the change message is detected not to meet the preset message standard, starting an alarm mode.
The service system is a system integrated with various required services, and a large amount of data related to the services are stored in a database of the service system, so that the database of the service system can be used by multiple parties, and the data can be modified at any time. Aiming at the change operation of the service system database, the change operation of the database can be monitored in an MQ message mode, and if the change operation of the database is abnormal, the change operation can be repaired in time. The database change operation includes operation behaviors such as addition, deletion, modification and check, that is, an operation for changing data in the database may be regarded as a database change operation.
MQ (message queue) is a message queue. When the database of the service system is changed, the server may generate a corresponding change message, i.e., a corresponding MQ message, according to the content of the change of the database. The change message may include the change content of the database, the user identifier of the change operation, and other configuration information, and the information specifically included in the change message may be configured by user.
In one embodiment, before generating a corresponding change message according to the changed content of the database when a change operation occurs to the database of the business system, the method further includes: configuring the change message through a configuration interface; and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message theme, a consumer identifier and a message label.
The MQ messages may be custom configured. Technical personnel can configure the change message through the configuration interface, and when the configuration is carried out, the message type of the change message can be determined firstly, and then the corresponding standard information parameters are configured respectively according to the message type of the change message. The standard information parameter refers to a parameter that should be included in the predefined MQ message, and the standard information parameter may include a message subject, a consumer identifier, a message tag, and the like, or further parameters may be added according to a service requirement. The message TOPIC, TOPIC, can be used to classify messages. The consumption end can subscribe the message theme by itself, and after subscribing the message theme, the production end can transmit the consumption theme corresponding to the consumption end, so that the consumption end can consume the message. The consumer identifier is an identifier corresponding to the consumer end, the consumer end corresponding to the consumer identifier can be determined according to the consumer identifier, and the consumption tag can be used for further distinguishing message classification under a certain message topic, namely, MQ messages containing a plurality of consumption tags under each message topic. The message producer, also known as a message publisher, is responsible for producing and sending messages. The message consumption end, also called a message subscriber, is responsible for receiving and consuming messages.
After the MQ messages are configured in a relevant manner through the configuration interface, the change messages can be generated according to the content of the preconfigured MQ messages, i.e., the server can determine the representation of the change messages according to the preconfigured relevant parameters.
In one embodiment, when a database of a business system is changed, generating a corresponding change message according to the changed content of the database, including: when a database of a service system is changed, acquiring a standard message parameter corresponding to a change message; and executing the message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameters.
When the database of the service system is changed, the server can generate a corresponding change message according to the changed content of the database. Specifically, the server acquires standard information parameters configured for the change message in advance, executes script codes generated by the message, and generates a corresponding change message according to various parameters specifically contained in the standard information parameters and change content generated by the database.
In one embodiment, the detecting the content of the change message in real time includes: acquiring real-time message parameters contained in the change message; acquiring standard message parameters corresponding to the change messages; and comparing the real-time message parameters with the standard message parameters, and judging that the content of the change message does not meet the preset message standard when the real-time message parameters are not consistent with the standard message parameters.
When the server detects the content of the change message in real time, the server firstly obtains the real-time message parameters contained in the change message and simultaneously obtains the standard message parameters corresponding to the change message, then the real-time message parameters are compared with the pre-configured standard message parameters, and if the two parameters are not consistent, the content of the change message can be judged to be not in accordance with the preset message standard.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: when the content of the change message is detected to be not in accordance with the preset message standard, calling a preset alarm method function; determining alarm content according to the change message; and taking the alarm content as a parameter of a preset alarm method function to generate a corresponding alarm notice.
When the server detects that the content of the change message does not meet the preset message standard, a preset alarm method function can be called to start the alarm mode. Specifically, the preset alarm method function may be an alarm method function. The server can obtain the specific content of the change message, determine the alarm content required to be carried in the alarm notification according to the specific content of the change message, and take the alarm content as the parameter of the alarm function, so that the corresponding alarm notification can be generated. For example, when the mobile phone number format in the change message is incorrect, the call to the call function may be performed in the following manner:
hang phone ═ content.get ("content"). get ("phone"); // content is the message content; matches ("[ 1] [3,4,5,7,8] [0-9] {9} $"); if (! success) { alarm ("wrong handset number format" + handphone: "); // call alarm method function call }.
That is, when the mobile phone number format is wrong, the specific content of the change message may be set as "mobile phone number format is wrong", and the wrong mobile phone number is simultaneously used as a parameter of the alarm function, so as to generate a corresponding alarm notification and send the alarm notification to the manager. When the corresponding manager receives the corresponding alarm notification, the problem can be quickly determined according to the alarm content carried in the alarm notification, so that the problem can be quickly solved.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: initiating an alert mode when it is detected that the content of the change message does not comply with at least one of the following conditions: when the mobile phone number contained in the change message is empty or the format is incorrect; when the ID card number contained in the change message is empty or the format is incorrect; when the consumer identifier contained in the change message is empty or the format is incorrect; when the order mark contained in the change message is empty or the format is incorrect; and when the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state.
When the server detects that the content of the change message does not meet the preset message criteria, an alert mode is initiated. Specifically, there are various situations for determining that the content of the change message does not meet the preset message standard, and different determination standards can be performed according to different service requirements of the service system or configuration messages of the MQ message. For example, the content of the change message may be determined not to meet the preset message criteria when the following several conditions occur.
The first condition is as follows: when the mobile phone number contained in the change message is empty or the format is incorrect.
Case two: when the ID number contained in the change message is empty or the format is incorrect.
Case three: when the consumer identification contained in the change message is empty or the format is incorrect.
Case four: when the order identification contained in the change message is empty or the format is incorrect.
Case five: and when the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state.
When the server detects that the mobile phone number corresponding to the mobile phone parameter in the change message is empty or the format of the mobile phone number is incorrect, or when the server detects that the identity card number corresponding to the identity card parameter in the change message is empty or the format of the identity card number is incorrect, the content of the change message can be judged to be not in accordance with the preset message standard. The change message also contains a consumer identifier, which is used for determining to send the change message to a consumption end corresponding to the consumer identifier. The content of the altered message may also be determined to not meet the preset message criteria when the consumer identification appears empty or is in an incorrect format. When the business system has an order demand, the related information of the order can be checked, and the related information of the order can include an order identifier, a merchant identifier, a user identifier and the like.
The order identifier is an identifier corresponding to each order, the merchant identifier is an identifier of a service merchant of the order, and the user identifier is an identifier of a consuming user of the order. When the order identifier contained in the change message is empty or the format is incorrect, or the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state, or the user identifier contained in the change message is empty or the format is incorrect, the content of the change message can be judged to be not in accordance with the preset message standard.
When determining whether the merchant identifier meets the preset standard, the method may adjust according to the business requirement, for example, when there is an ongoing order, but the merchant corresponding to the merchant identifier is in an off-business state, or when the order is in a state that the merchant is closed because the merchant is not open business, but the merchant is in a normal business state, the method may trigger that the content of the change message does not meet the preset message standard, thereby starting the alarm mode. When the service requirement is related to the vehicle order, whether the city where the vehicle is located is wrong or whether the contact person of the vehicle is empty or the like contained in the change message can be judged, and if the service requirement is not consistent with the predefined format, the content of the change message can be judged not to be in accordance with the preset message standard, so that an alarm mode is started.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: and when the content of the change message is detected to be not in accordance with the preset message standard, executing an alarm script code, and sending an alarm notice to a corresponding administrator.
In one embodiment, after initiating the alert mode, the method further comprises: and repairing the changed operation of the database in real time according to the alarm prompt.
When the server detects that the content of the change message does not meet the preset message standard, the system executes the alarm script code and sends an alarm notice to a corresponding administrator. The alarm notification can be a mail notification, a telephone notification, a short message notification or an alarm bell prompt, or a preset social account can be bound, and the alarm notification is sent to the social account bound in advance to prompt a corresponding administrator, so that the administrator can repair the change operation of the database in real time according to the alarm prompt. The warning prompt can contain the detailed content of the change operation of the database, so that an administrator can quickly know specific problems when receiving the warning prompt and can quickly carry out operation repair.
In one embodiment, as shown in fig. 2, there are multiple service systems, such as service system 1 and service system 2, and MQ, i.e. non-change message generated without changing the database of service system 1 is directly sent to corresponding consuming end 1 for consumption. When data change operation occurs in the database of the service system 1, a change message is generated, the generated change message is firstly detected in real time by the message processing method, if the content of the change message is determined to be not in accordance with the preset message standard after detection, an alarm mode is started, and a corresponding alarm prompt is sent to an administrator. If the database is not changed but the directly generated MQ message is directly sent to the corresponding consumption end 2 for consumption, if the database of the service system 2 is subjected to data change operation, the generated change message is firstly detected in real time by the message processing method, and if the content of the change message is determined to be not in accordance with the preset message standard, an alarm mode is started; if the content of the change message is determined to be in accordance with the preset message standard, the content can be sent to the corresponding consuming terminal for message consumption.
In the message processing method, when the database of the service system is changed, the corresponding change message is generated according to the changed content of the database, the server detects the content of the change message in real time, if the content of the change message is detected to be not in accordance with the preset message standard, the alarm mode is started, so that the corresponding manager can repair the change operation of the database immediately according to the alarm prompt, the change condition of the database of the service system can be rapidly known through the mode, and meanwhile, if the operation is found to be wrong, a technician can also rapidly repair the change operation, thereby greatly improving the efficiency of repairing the database operation.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a message processing apparatus including: the device comprises a message generation module, a message detection module and an alarm module, wherein:
the message generating module 302 is configured to generate a corresponding change message according to the changed content of the database when a database of the service system is changed.
And a message detection module 304, configured to detect content of the change message in real time.
An alert module 306 for initiating an alert mode when the content of the change message is detected to be not compliant with the preset message criteria.
In one embodiment, the apparatus further includes a configuration module (not shown in the figure) configured to configure the change message through a configuration interface; and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message subject, a consumer identifier and a message label.
In an embodiment, the message generating module 302 is further configured to obtain a standard message parameter corresponding to a change message when a database of the service system is changed; and executing the message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameters.
In one embodiment, the message detection module 304 is further configured to obtain real-time message parameters included in the modification message; acquiring standard message parameters corresponding to the change messages; and comparing the real-time message parameters with the standard message parameters, and judging that the content of the changed message does not accord with the preset message standard when the real-time message parameters are not consistent with the standard message parameters.
In one embodiment, the alarm module 306 is further configured to call a preset alarm method function when detecting that the content of the change message does not meet the preset message standard; determining alarm content according to the change message; and taking the alarm content as a parameter of a preset alarm method function to generate a corresponding alarm notice.
In one embodiment, the alert module 306 is further configured to initiate an alert mode when detecting that the content of the change message does not meet at least one of the following conditions: when the mobile phone number contained in the change message is empty or the format is incorrect; when the ID card number contained in the change message is empty or the format is incorrect; when the consumer identifier contained in the change message is empty or the format is incorrect; when the order mark contained in the change message is empty or the format is incorrect; and when the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state.
In one embodiment, the alarm module 306 is further configured to execute the alarm script code and send the alarm notification to the corresponding administrator when detecting that the content of the change message does not meet the preset message standard.
In one embodiment, the apparatus further includes a repair module (not shown in the figure) for repairing the changed operation of the database in real time according to the alarm prompt.
For the specific definition of the message processing device, reference may be made to the above definition of the message processing method, which is not described herein again. The respective modules in the message processing apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing relevant data of message processing. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a message processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: when the database of the service system is changed, generating a corresponding change message according to the changed content of the database; detecting the content of the change message in real time; and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
In one embodiment, before generating a corresponding change message according to the changed content of the database when a change operation occurs in the database of the business system, the processor executes the computer program to further implement the following steps: configuring the change message through a configuration interface; and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message subject, a consumer identifier and a message label.
In one embodiment, when a database of a business system is changed, generating a corresponding change message according to the changed content of the database, including: when a database of a service system is changed, acquiring a standard message parameter corresponding to a change message; and executing the message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameters.
In one embodiment, the detecting the content of the change message in real time includes: acquiring real-time message parameters contained in the change message; acquiring standard message parameters corresponding to the change messages; and comparing the real-time message parameters with the standard message parameters, and judging that the content of the changed message does not accord with the preset message standard when the real-time message parameters are not consistent with the standard message parameters.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: when the content of the change message is detected to be not in accordance with the preset message standard, calling a preset alarm method function; determining alarm content according to the change message; and taking the alarm content as a parameter of a preset alarm method function to generate a corresponding alarm notice.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: initiating an alert mode when it is detected that the content of the change message does not comply with at least one of the following conditions: when the mobile phone number contained in the change message is empty or the format is incorrect; when the ID card number contained in the change message is empty or the format is incorrect; when the consumer identifier contained in the change message is empty or the format is incorrect; when the order mark contained in the change message is empty or the format is incorrect; and when the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: and when the content of the change message is detected to be not in accordance with the preset message standard, executing an alarm script code, and sending an alarm notice to a corresponding administrator.
In one embodiment, after initiating the alert mode, the computer program when executed by the processor further performs the steps of: and repairing the changed operation of the database in real time according to the alarm prompt.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: when the database of the service system is changed, generating a corresponding change message according to the changed content of the database; detecting the content of the change message in real time; and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
In one embodiment, before generating a corresponding change message according to the changed content of the database when a change operation occurs in the database of the business system, the computer program further implements the following steps when executed by the processor: configuring the change message through a configuration interface; and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message subject, a consumer identifier and a message label.
In one embodiment, when a database of a business system is changed, generating a corresponding change message according to the changed content of the database, including: when a database of a service system is changed, acquiring a standard message parameter corresponding to a change message; and executing the message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameters.
In one embodiment, the detecting the content of the change message in real time includes: acquiring real-time message parameters contained in the change message; acquiring standard message parameters corresponding to the change messages; and comparing the real-time message parameters with the standard message parameters, and judging that the content of the changed message does not accord with the preset message standard when the real-time message parameters are not consistent with the standard message parameters.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: when the content of the change message is detected to be not in accordance with the preset message standard, calling a preset alarm method function; determining alarm content according to the change message; and taking the alarm content as a parameter of a preset alarm method function to generate a corresponding alarm notice.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: initiating an alert mode when it is detected that the content of the change message does not comply with at least one of the following conditions: when the mobile phone number contained in the change message is empty or the format is incorrect; when the ID card number contained in the change message is empty or the format is incorrect; when the consumer identifier contained in the change message is empty or the format is incorrect; when the order mark contained in the change message is empty or the format is incorrect; and when the merchant corresponding to the merchant identifier contained in the change message is not in the preset business state.
In one embodiment, when it is detected that the content of the altered message does not comply with the preset message criteria, an alert mode is initiated, comprising: and when the content of the change message is detected to be not in accordance with the preset message standard, executing an alarm script code, and sending an alarm notice to a corresponding administrator.
In one embodiment, after initiating the alert mode, the computer program when executed by the processor further performs the steps of: and repairing the changed operation of the database in real time according to the alarm prompt.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of message processing, the method comprising:
when a database of a service system is changed, generating a corresponding change message according to the changed content of the database;
detecting the content of the change message in real time;
and when the content of the change message is detected to be not in accordance with the preset message standard, starting an alarm mode.
2. The method according to claim 1, wherein before generating a corresponding change message according to the changed content of the database when a change operation occurs to the database of the business system, the method further comprises:
configuring the change message through a configuration interface;
and respectively configuring corresponding standard message parameters for each type of change message according to the message type of the change message, wherein the standard message parameters comprise a message theme, a consumer identifier and a message label.
3. The method according to claim 2, wherein when a database of the business system is changed, generating a corresponding change message according to the changed content of the database comprises:
when a database of a service system is changed, acquiring a standard message parameter corresponding to a change message;
and executing a message generation script code, and generating a corresponding change message according to the changed content of the database and the standard message parameter.
4. The method of claim 2, wherein the detecting the content of the change message in real time comprises:
acquiring real-time message parameters contained in the change message;
acquiring standard message parameters corresponding to the change message;
and comparing the real-time message parameter with the standard message parameter, and judging that the content of the change message does not accord with a preset message standard when the real-time message parameter is inconsistent with the standard message parameter.
5. The method of claim 1, wherein initiating an alert mode upon detecting that the content of the altered message does not meet preset message criteria comprises:
when the content of the change message is detected to be not in accordance with the preset message standard, calling a preset alarm method function;
determining alarm content according to the change message;
and taking the alarm content as a parameter of the preset alarm method function to generate a corresponding alarm notice.
6. The method of claim 1, wherein initiating an alert mode upon detecting that the content of the altered message does not meet preset message criteria comprises:
and when the content of the change message is detected to be not in accordance with the preset message standard, executing an alarm script code and sending an alarm notice to a corresponding administrator.
7. The method of claim 1, wherein after the initiating the alert mode, the method further comprises:
and repairing the changed operation of the database in real time according to the alarm prompt.
8. A message processing apparatus, characterized in that the apparatus comprises:
the message generating module is used for generating a corresponding change message according to the changed content of the database when the database of the service system is changed;
the message detection module is used for detecting the content of the change message in real time;
and the alarm module is used for starting an alarm mode when detecting that the content of the change message does not accord with the preset message standard.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A 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 of any one of claims 1 to 7.
CN201910919094.5A 2019-09-26 2019-09-26 Message processing method and device, computer equipment and storage medium Pending CN110750366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910919094.5A CN110750366A (en) 2019-09-26 2019-09-26 Message processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910919094.5A CN110750366A (en) 2019-09-26 2019-09-26 Message processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110750366A true CN110750366A (en) 2020-02-04

Family

ID=69277182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910919094.5A Pending CN110750366A (en) 2019-09-26 2019-09-26 Message processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110750366A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400294A (en) * 2020-03-12 2020-07-10 时时同云科技(成都)有限责任公司 Data anomaly monitoring method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158347A (en) * 2010-12-27 2011-08-17 畅捷通软件有限公司 Data protection method and device and server
CN106210021A (en) * 2016-07-05 2016-12-07 中国银行股份有限公司 The method for real-time monitoring of financial application system online business and supervising device
CN106778033A (en) * 2017-01-10 2017-05-31 南京邮电大学 A kind of Spark Streaming abnormal temperature data alarm methods based on Spark platforms
CN107124299A (en) * 2017-03-31 2017-09-01 北京奇艺世纪科技有限公司 Resource method for early warning and system based on resource topology
CN108234199A (en) * 2017-12-20 2018-06-29 中国联合网络通信集团有限公司 Monitoring method, apparatus and system based on Kafka
CN108537544A (en) * 2018-04-04 2018-09-14 中南大学 A kind of transaction system method for real-time monitoring and its monitoring system
CN109284312A (en) * 2018-08-27 2019-01-29 山东威尔数据股份有限公司 A kind of heterogeneous database change real-time informing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158347A (en) * 2010-12-27 2011-08-17 畅捷通软件有限公司 Data protection method and device and server
CN106210021A (en) * 2016-07-05 2016-12-07 中国银行股份有限公司 The method for real-time monitoring of financial application system online business and supervising device
CN106778033A (en) * 2017-01-10 2017-05-31 南京邮电大学 A kind of Spark Streaming abnormal temperature data alarm methods based on Spark platforms
CN107124299A (en) * 2017-03-31 2017-09-01 北京奇艺世纪科技有限公司 Resource method for early warning and system based on resource topology
CN108234199A (en) * 2017-12-20 2018-06-29 中国联合网络通信集团有限公司 Monitoring method, apparatus and system based on Kafka
CN108537544A (en) * 2018-04-04 2018-09-14 中南大学 A kind of transaction system method for real-time monitoring and its monitoring system
CN109284312A (en) * 2018-08-27 2019-01-29 山东威尔数据股份有限公司 A kind of heterogeneous database change real-time informing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400294A (en) * 2020-03-12 2020-07-10 时时同云科技(成都)有限责任公司 Data anomaly monitoring method, device and system

Similar Documents

Publication Publication Date Title
CN108491301B (en) Electronic device, abnormality early warning method based on redis and storage medium
US20190027018A1 (en) Artificial intelligence based service control and home monitoring
CN110224855B (en) Registration method and device of micro service instance, computer equipment and storage medium
CN110636106B (en) Information pushing method and device, computer equipment and storage medium
CN110175465A (en) Log desensitization method, device, computer equipment and computer readable storage medium
CN110555769A (en) Block chain transaction data processing method and device, computer equipment and storage medium
CN110717156A (en) Identity authentication method, system, computer device and storage medium
CN111385123A (en) WEB service distributed intelligent monitoring method, device, computer equipment and storage medium
CN108845916B (en) Platform monitoring and alarming method, device, equipment and computer readable storage medium
CN111552942B (en) Identity authentication method, system, device and computer storage medium
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN108920357A (en) Operation system detection method, device, computer equipment and storage medium
CN113672475B (en) Alarm processing method and device, computer equipment and storage medium
CN111382976B (en) Early warning data processing method and device, computer equipment and storage medium
CN110750366A (en) Message processing method and device, computer equipment and storage medium
CN111371581A (en) Method, device, equipment and medium for detecting business abnormity of Internet of things card
CN111294347B (en) Safety management method and system for industrial control equipment
CN112070585A (en) Order state unified management method and device, computer equipment and storage medium
CN111367934A (en) Data consistency checking method, device, server and medium
CN113271337B (en) Method and device for subscribing computer message
CN113504969A (en) Container event alarm method and device and electronic equipment
CN113535449A (en) Abnormal event repairing processing method and device, computer equipment and storage medium
CN111966515A (en) Business abnormal data processing method and device, computer equipment and storage medium
CN111258860A (en) Data alarm method, device, computer equipment and storage medium
CN110969430A (en) Method and device for identifying suspicious user, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204