Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails で非同期処理を行う gem の選び方について調べてみた

Ef4ab3dd027538ba100ac9dfe5657b7b?s=47 i4e
September 18, 2018
260

Rails で非同期処理を行う gem の選び方について調べてみた

Ef4ab3dd027538ba100ac9dfe5657b7b?s=128

i4e

September 18, 2018
Tweet

Transcript

  1. Rails   gem      Otemachi.rb

    #9 @i4e_10
  2.  • Twitter: @i4e_10 • Github: i4e •  

    7 OJT • Ruby (Rails ) 2
  3.  ( ) https://nulab-inc.com/ja/blog/nulab/jobqueue-messagequeue/

  4.      gem • DelayedJob • Resque

    • Sidekiq
  5. Q.  !

  6. A. !

  7.      

  8. 2

  9.   RDB  redis  vs

  10.   RDB  redis  • DelayedJob: RDB 

    • RDB  ! • DB " •  • Resque, Sidekiq: redis  •  • redis  
  11. 

  12.    • Resque: fork -7%$=G • VB014JEC 0144

    /+3!08("28 N LDOK • fork *.') TLD9P<;H  •   • Sidekiq: $6')=G • fork /5&-7%$/5&$6')R:LD?> Q I/OOMK9#2,U@A#2,S  • -7%$ 0144 /+3!08("28FI •  
  13.  • ! & #   … redis "

     DelayedJob  Rescue Sidekiq Yes No Yes No
  14.  • ruby  https://gist.github.com/hoco/9764412 • Rails   (Sidekiq,

    Resque, Delayed Job, Active Job" http://jetglass.hatenablog.jp/entry/2015/07/15/181145 • Rails Sidekiq+ActiveJobResque  ! https://qiita.com/zaru/items/8385fdddbd1be25fe37