The invention relates to a distributed real-time rule reasoning method and a distributed real-time rule reasoning device oriented to massive
streaming data. The method comprises the following steps: establishing a rule graph corresponding to a rule set; converting the rule graph into a data operation graph; generating reasoning operations according to the data operation graph; setting the priorities of the reasoning operations according to a deadline, and putting the reasoning operations into a reasoning operation ready
queue according to the descending order of the priorities; selecting a reasoning operation with a highest priority, creating a reasoning task, distributing and executing the reasoning task; when the reasoning operation is completed, deleting the reasoning operation from thereasoning operation ready
queue and judging whether the reasoning operation ready
queue is an empty queue or not; if the empty queue is not an empty queue, continuing to execute the above operation;if the empty queue is the empty queue, representing that an input fact is matched with all rules. According to the method,
mass real-
time data can be matched with rules in a distributed environment and the rules can be completed as much as possible before the deadline. The method and the device can be applied to the application of
the internet of things with the time constraint, so that the intelligentization of the real-time application of
the internet of things is improved.