brandonhilkert / sucker_punch

Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
MIT License
2.65k stars 114 forks source link

Questions about this GEM #101

Closed nicolas-besnard closed 9 years ago

nicolas-besnard commented 9 years ago

Firstly : thank you for this gem, it really works great ! I was looking for a fast and not database dependant : I found it !

Secondly, I have some questions about the gem :

weaksauce commented 9 years ago

How is it working ? As other background jobs gem use database, yours don't. How the queue is manage ?

It uses an in memory threading and concurrency library. when the process controlling things is restarted, the in memory queue is lost. This library is intended to be used for background jobs that immediately run or are not mission critical if they are lost due to server restart.

edit:

Is there any way to do recurrent job ?

not sure, but I don't think so. you'd have to use a gem that is more full featured like sidekiq

brandonhilkert commented 9 years ago

@weaksauce Summed it up well. All answers are accurate. I'll add some context to the README better summarizing these questions.

brandonhilkert commented 9 years ago

Add detail to the README - https://github.com/brandonhilkert/sucker_punch#sucker-punch