A can send a message to B: “I am ready!”
B only trigger A when A is ready.

On 2014年3月7日, at 下午5:35, Klausen Schaefersinho <[email protected]> 
wrote:

> Hi,
> 
> I have an topology where I have a really long running task in one bolt, lets 
> call it A. This bolt is triggered by some other bolt B every 100k events or 
> so. However the processing can take very long, so I would not want B to 
> trigger A if it is not done.  Is there any best practice to synchronize the 
> bolts?
> 
> As an Alternative I could image Bolt A sleeping for some time and then doing 
> his work and sleeping again. Is there any confy way how I could build this in 
> storm without relying on Threads and sleeps?
> 
> Cheers,
> 
> KLaus

Reply via email to