You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2022/02/14 06:52:10 UTC

[GitHub] [incubator-heron] maosongfu removed a comment on issue #859: collector thread Safe ?

maosongfu removed a comment on issue #859:
URL: https://github.com/apache/incubator-heron/issues/859#issuecomment-265194769


   Hi Kevin,
   
   There is no plan to make collector thread-safe in near future, since we
   expect topology developers would handle the concurrent issues if they
   create more threads by their own.
   
   Alternatively, got any thoughts on doing HTTP posts without this?
   We have higher level framework summingbird (
   https://github.com/twitter/summingbird/) providing the feature you want,
   and it achieves this feature by:
   1. Maintain a thread-safe queue to keep the results of http posts request.
   2. Create a bounded thread-pool: each thread will do the actual post
   request and put the results into the thread-safe queue mentioned above.
   3. Add the tick-frequency for the final bolt and bind with actual work on
   the thread-safe result queue. Then the results can be handled in main
   thread.
   
   Hope it helps.
   
   2016-12-06 4:52 GMT+08:00 Kevin Chen <no...@github.com>:
   
   > Are there any plans to do this in the near future? Alternatively, got any
   > thoughts on doing HTTP posts without this? (mostly on a final bolt,
   > synchronous requests would be undesirable)
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/twitter/heron/issues/859#issuecomment-264973550>, or mute
   > the thread
   > <https://github.com/notifications/unsubscribe-auth/AC422pG3A5wCdnrhGWMO7OgzaE6PF9IUks5rFHmDgaJpZM4Ithfp>
   > .
   >
   
   
   
   -- 
   With my best Regards
   ------------------
   Fu Maosong
   Twitter Inc.
   Mobile: +001-415-244-7520
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@heron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org