Rule execution method and device

An execution method and rule technology, applied in the computer field, can solve the problems of long CPU thread switching time, affecting execution performance, and large amount of thread creation, so as to reduce the number of threads, improve execution efficiency, and save CPU resources.

Pending Publication Date: 2019-11-05
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF9 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the embodiments of the present invention provide a method and device for rule execution, which can at least solve the problem in the prior art that a large amount of threads are created, resulting in too long CPU thread switching time and affecting the overall execution performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Rule execution method and device
  • Rule execution method and device
  • Rule execution method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0038] It should be noted that the purpose of the present invention is to improve the execution efficiency of the rule engine. Therefore, in theory, all scenarios that use the rule engine and have high requirements for execution efficiency are applicable, such as system integration, software system configuration, and fault tolerance. and high-performance computing, the pre...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a rule execution method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of receiving a service request, andobtaining a rule associated with the service request; and judging the rule type of each rule, determining the time sequence of each rule, dividing the rules which are in the same time sequence and have the same rule type into one group, and merging the rules in the same group into the same thread for execution. According to the implementation mode, for the rules capable of being executed in parallel, through reasonable combination, the number of threads can be effectively reduced, the time-consuming proportion of CPU switching threads is reduced, and therefore the execution efficiency of therule engine is improved, and CPU resources are saved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for executing rules. Background technique [0002] With the development of the Internet, real-time rule engines have been widely used in various business scenarios, such as risk control rules, coupon issuance rules, etc. Its advantage is that the core business logic can be modified without re-launching the application. For non-R&D personnel, Business logic planning can also be realized by configuring simple rules. [0003] However, in real-time scenarios, with the development of business, more and more rules need to be executed for a single request. How to make full use of the CPU (Central Processing Unit, central processing unit) multi-core advantage to execute rules concurrently has become a consideration for those in the field. The problem. [0004] Existing technologies mainly adopt a single-rule-thread execution scheme, which usually creates t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F1/329
CPCG06F9/547G06F1/329
Inventor 程夏衍王燕佳王鹏谭磊桂列华
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products