Friday 15 February 2013

ruby on rails - Rails4 : live or faye or polling - Reload page when background job is finished -



ruby on rails - Rails4 : live or faye or polling - Reload page when background job is finished -

i have background job (sidekiq) generate pdf , save on s3 paperclip. during process, nowadays "waiting page" user.

i'm wondering how auto-reload waiting page pdf 1 time background job completed. know how nowadays pdf inline when exists (when background job finished). know how check if exist on page load, need auto check presence till success.

i did homework , checked possible solutions :

polling - seems outdated solution, not efficient one activerecord::live::sse - seems interesting complex new knowledge on "livestreaming". , not compatible ie (even it's not blocker, still con) faye , websocket - still, have difficulties understand how implement regarding need.

could please help me on best technique, , proper way implement it? (mostly timeout part on poll, , reload part live::sse , faye). examples show chat apps, create me wonder if i'm on right track.

ruby-on-rails live long-polling sidekiq

No comments:

Post a Comment