The invention provides a parallel data reflow method oriented for real-time
streaming computation. The method comprises the steps that step 1, initialization of three queues; step 2, initialization of a
piping Data
Queue; step 3, read requests are initiated by Spout of Topology to the Data
Queue; step 4, data in the three queues is read by Data
Queue; step 5, whether or not the
queue pointed by ToP is empty is determined, if the
queue is empty, step 6 is proceeded; if the
queue is not empty, step 7 is proceeded; step 6, the data in the From queue is copied to the To queue, and the From queue is cleared; 7, data in the Data Queue is obtained by Topology, a Tuple is sent by current Task to downstream; step 8, the feedback of Tuple awaits for being sent by current Task, if the sending fails or times out and the feedback is not sent, the Tuple is opted to reflow; 9, whether or not the Topology can be stopped is determined, and if the Topology cannot be stopped, then step 4 is proceeded, otherwise, the steps are ended. By the parallel data reflow method oriented for real-time
streaming computation, the data is stateless and has fault-tolerance, data computation latency is reduced,
system response is increased, and the reflowed data is processed by priority at the first possible chance.