Service exception alert method and apparatus, and medium

By combining data middleware and pre-set calculation programs with a rule information database, the problem of computational timeliness and stability caused by a short-term influx of data in the e-commerce field has been solved, achieving efficient business anomaly alarms and improved system stability.

WO2025218191A1PCT designated stage Publication Date: 2025-10-23SHANGHAI JUSHUITAN NETWORK TECH CO LTD +1

Patent Information

Application Number
PCT/CN2024/137776
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-15
Filing Date
2024-12-09
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

In the e-commerce field, existing technologies suffer from insufficient computational efficiency and stability when data floods in within a short period, leading to business interruptions and resource exhaustion.

Method used

By accessing the business data stream to be processed through data middleware, and using a preset calculation program to load rule data from the rule information database in real time, the alarm results are determined, reducing the query pressure on the database, and improving the calculation timeliness and stability with the help of open source distributed computing components.

Benefits of technology

It achieves efficient computing and stability under short-term data influx, reduces link pressure, and improves the accuracy of business anomaly alarms and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024137776_23102025_PF_FP_ABST
    Figure CN2024137776_23102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of the Internet, and discloses a service exception alert method and apparatus, and a medium. The method comprises: accessing from a data source, by means of data middleware, a service data stream to be processed, and temporarily storing said service data stream in the data middleware; reading from the data middleware, by means of a pre-designed computational program, any item of service data to be processed, loading corresponding rule data from a rule information base in real time according to said service data, and then determining an alert result on the basis of said service data and the corresponding rule data; and by means of a service party, receiving an alert result sent by the pre-designed computational program, and displaying the alert result to a user. The present application resolves the problem of an inrush of data over a short period of time, and also solves the problems of computation timeliness and stability.
Need to check novelty before this filing date? Find Prior Art

Description

A service exception alarm method and device and medium

[0001] The present application claims priority to the Chinese patent application No. 202410448391.7, filed on April 15, 2024, and entitled "A service exception alarm method and device and medium", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of Internet, in particular to a service exception alarm method and device and medium. BACKGROUND

[0003] In the e-commerce field, with the development of business and the increase of data volume, there are many needs for early warning of abnormal situations, which have high requirements for data calculation timeliness and accuracy. Generally, to achieve these two goals requires high cost and high technical complexity. In some cases, the method used is usually to monitor the application, and to perform data query and rule matching on the obtained stream data in real time. However, this method has two problems: first, the stability of single-point deployment is insufficient, and if a situation such as downtime occurs, the business will be interrupted; second, the conventional program cannot efficiently process a large amount of data, and at any time the application resources may be full, causing service lag or even stop. SUMMARY

[0004] The purpose of the present application is to provide a service exception alarm method and device and medium, which solves the problem of data influx in a short time, and at the same time solves the problems of calculation timeliness and stability.

[0005] To achieve the above purpose, the present application provides the following solutions:

[0006] In a first aspect, the present application provides a service exception alarm method, comprising: accessing a to-be-processed service data stream from a data source through a data middleware, and temporarily storing the to-be-processed service data stream in the data middleware; the to-be-processed service data stream comprises a plurality of to-be-processed service data arranged in time sequence; reading any to-be-processed service data from the data middleware through a pre-designed calculation program, loading corresponding rule data from a rule information library in real time according to the to-be-processed service data, and then determining an alarm result according to the to-be-processed service data and the corresponding rule data; the alarm result is to perform service exception alarm or not to perform service exception alarm; receiving the alarm result issued by the pre-designed calculation program through a business party, and displaying the alarm result to a user.

[0007] In a second aspect, the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the service exception alarm method.

[0008] In a third aspect, the present application provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps of the service exception alarm method. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0010] FIG. 1 is a flowchart of a service exception alarm method according to one or more embodiments.

[0011] FIG. 2 is an internal structure diagram of a computer device. DETAILED DESCRIPTION

[0012] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application.

[0013] The purpose of the present application is to provide a service exception alarm method, device and medium. The problem of data short-time influx is solved by introducing a message middleware. The computing timeliness and stability problem is solved by means of an open-source distributed computing component. Finally, the query pressure on the storage end such as a database is further reduced by combining a caching means, thereby further reducing the link pressure and improving the stability.

[0014] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0015] The service exception alarm method provided by the embodiments of the present application can be applied to the following application environment: a terminal communicates with a server through a network. A data storage system can store data required to be processed by the server. The data storage system can be separately arranged, integrated on the server, placed on a cloud or other servers. That is, the data storage system can store to-be-processed service data streams as a data source, acquire the to-be-processed service data streams via a data middleware, and temporarily store the to-be-processed service data streams in the data middleware; the server reads any to-be-processed service data from the data middleware through a pre-designed computer program, loads corresponding rule data from a rule information library in real time according to the to-be-processed service data, and then determines an alarm result according to the to-be-processed service data and the corresponding rule data and sends the alarm result to the terminal. The terminal receives the alarm result as a service party and displays the alarm result to a user.

[0016] The terminal can be, but is not limited to, various desktop computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device and the like. The server can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.

[0017] In an exemplary embodiment, as shown in FIG. 1, a service exception alarm method is provided, including the following steps 100 to 300.

[0018] Step 100: accessing to-be-processed service data streams from a data source through a data middleware, and temporarily storing the to-be-processed service data streams in the data middleware; the to-be-processed service data streams include a plurality of to-be-processed service data arranged in time sequence; the to-be-processed service data is service change data in the data source; the service change data is order data changed in a business scenario.

[0019] In an embodiment, the data source mainly stores service data such as the order data mentioned above in a relational database, and these data will be updated or added according to the business scenario. The effect of access implementation is to synchronously write the change data of the data source to the data middleware for temporary storage. The data middleware, i.e., the message queue, is used to undertake the function of temporary data storage and support consumption according to a bit point (message ID).

[0020] Step 200: reading any to-be-processed service data from the data middleware through a pre-designed computer program, loading corresponding rule data from a rule information library in real time according to the to-be-processed service data, and then determining an alarm result according to the to-be-processed service data and the corresponding rule data; the alarm result is service exception alarm or no service exception alarm.

[0021] That is, the calculation program consumes the middleware message data, converts and extracts the business information from the message data, queries the rule information from the memory, and calculates whether to alarm and the alarm content according to the business logic of the calculation program, and sends the alarm to the business receiving service. In an embodiment, the calculation program has a data reading function, which connects the data middleware to query and obtain data. As a core module, the calculation program not only has the function of data reading, but also has the function of early warning calculation. By analyzing the read data to extract the effective content and matching and comparing with the rule information, once the comparison is successful, the alarm notification is triggered.

[0022] In an embodiment, according to the to-be-processed business data and the corresponding rule data, the alarm result is determined, specifically including: 1) performing data matching on the to-be-processed business data and the corresponding rule data. 2) When the to-be-processed business data matches the corresponding rule data, it is determined that the alarm result is not to perform business exception alarm. 3) When the to-be-processed business data does not match the corresponding rule data, it is determined that the alarm result is to perform business exception alarm, and an exception handling instruction is generated.

[0023] A specific example is as follows: when the to-be-processed business data includes order delivery time, the corresponding rule data is that the order pickup time limit is 24 hours after order delivery. Since the rule is to alarm if the order is not picked up after 24 hours after delivery, the calculation program obtains the order delivery time and the current time from the to-be-processed business data, and calculates the time length after delivery based on the above two times. If the time length after delivery exceeds 24 hours and the order logistics state is "not picked up", an alarm is triggered, and the alarm result at this time is to perform business exception alarm. Then the pre-designed calculation program sends the alarm result, and the content example is: XX order delivery exceeds YY hours and still not picked up.

[0024] Step 300, receiving the alarm result sent by the pre-designed calculation program through the business side, and displaying the alarm result to the user.

[0025] In a specific example, the method further includes: when the alarm result is to perform business exception alarm, receiving the exception handling instruction sent by the pre-designed calculation program through the business side, and performing the corresponding processing action or business process.

[0026] In summary, the application provides a business exception alarm method, device and medium. The data middleware accesses the to-be-processed business data stream from the data source, thereby solving the problem of data pouring in a short time. The pre-designed computing program reads the to-be-processed business data from the data middleware in real time, and then continuously processes the to-be-processed business data and the corresponding rule data to determine the alarm result. That is, the open source distributed computing program is used to solve the computing timeliness and stability problem. Finally, the business party displays the alarm result to the user. In summary, the application combines the data middleware, the pre-designed computing program, the rule information library and the business party, reduces the query pressure on the storage end such as the database, thereby further reducing the link pressure and improving the stability.

[0027] In another embodiment, the application provides a computer device which can be a database, and an internal structure diagram of the computer device can be as shown in FIG. 2. The computer device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store to-be-processed transactions. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through a network connection. The computer program is executed by the processor to implement a business exception alarm method.

[0028] In another embodiment, a computer device is also provided, which includes a memory, a processor to store a computer program on the memory and run the computer program on the processor, and the processor implements the above business exception alarm method when executing the computer program.

[0029] In another embodiment, a non-transitory computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the above business exception alarm method.

[0030] In another embodiment, a computer program product is provided, which includes a computer program, and the computer program is executed by a processor to implement the above business exception alarm method.

[0031] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of the country and region.

[0032] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiments. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0033] The technical features of the above embodiments can be combined in any way. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present disclosure.

[0034] The principles and implementation manners of the present application are described herein by using specific examples, and the above examples are only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will have changes. In conclusion, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A service anomaly alerting method, wherein, The business exception alarm method comprises: accessing a to-be-processed business data stream from a data source through a data middleware, and storing the to-be-processed business data stream in the data middleware; the to-be-processed business data stream comprises a plurality of to-be-processed business data arranged in time sequence; reading any to-be-processed business data from the data middleware through a pre-designed computing program, loading corresponding rule data from a rule information library in real time according to the to-be-processed business data, and determining an alarm result according to the to-be-processed business data and the corresponding rule data; the alarm result is to perform business exception alarm or not to perform business exception alarm; receiving the alarm result sent by the pre-designed computing program through a business side, and displaying the alarm result to a user.

2. The service anomaly alerting method of claim 1, wherein, The to-be-processed business data is business change data in the data source; the business change data is order data of a business scenario change.

3. The service anomaly alerting method of claim 1, wherein, According to the to-be-processed business data and the corresponding rule data, determining an alarm result comprises: performing data matching on the to-be-processed business data and the corresponding rule data; when the to-be-processed business data matches the corresponding rule data, determining that the alarm result is not to perform business exception alarm; when the to-be-processed business data does not match the corresponding rule data, determining that the alarm result is to perform business exception alarm, and generating an exception processing instruction.

4. The service anomaly alerting method of claim 3, wherein, The business exception alarm method further comprises: when the alarm result is to perform business exception alarm, receiving the exception processing instruction sent by the pre-designed computing program through the business side, and performing a corresponding processing action.

5. The service anomaly alerting method of claim 1, wherein, When the to-be-processed business data comprises order delivery time, the corresponding rule data is that the order pickup time limit is 24 hours after order delivery.

6. A computer apparatus comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the business exception alarm method in any one of claims 1-5.

7. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein, The computer program is executed by the processor to implement the steps of the business exception alarm method in any one of claims 1-5.

Citation Information

Patent Citations

  • Order monitoring method and device, equipment and storage medium

    CN115660775A

  • Monitoring and early warning method, device and equipment for fulfillment node and storage medium

    CN116386829A

  • System and method for configuring logistics product service

    CN116450239A

  • Business exception alarm method and device and medium

    CN118397811A

  • End user defined event rules for ERP applications

    US20060190473A1

Cited By

  • Alarm management method and device, computer equipment, storage medium and program product

    CN122137726A