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

mysql casual talks vol7

mysql casual talks vol7

Cd07d1d30d4edcc5d5c5fbdd21eb45af?s=128

Ryoichi SEKIGUCHI

December 12, 2014
Tweet

Transcript

  1. Ruby(Rails)͔Β ΧδϡΞϧʹ Q4M Λ ࢖͑ΔԿ͔Λ࡞͓ͬͨ࿩ ؔޱ྄Ұ ! ryopeko " ryopeko

    .Z42-DBTVBMUBMLTWPM
  2. ؔޱ ྄Ұ # ryopeko " ryopeko • ύʔϑΣΫτRuby ڞஶऀ •

    σϒαϛ2014εϐʔΧʔ • ϕετεϐʔΧʔ৆ 2Ґड৆ • ࠷ۙਓ͔ؒͨͪΒ͸ෳ਺DBͱݺ ͹Ε͍ͯΔ
  3. None
  4. ΈΜͳେ޷͖ ΩϡʔϑΥʔΤϜʂʂ̍

  5. ϧϏʔͰ࢖͏ʹ͸ ͪΐͬͱͭΒ͍…

  6. ϧϏʔͷੈքͰ͸ Redis ࢖ͬͯΔΑ

  7. None
  8. shinq # SZPQFLPTIJOR

  9. None
  10. shinq ͸ ActiveJob ͷ ΠϯλʔϑΣʔεΛ࢖ͬͨϥΠϒϥϦ

  11. ActiveJobʁ

  12. None
  13. ActiveJob • Rails4.2 ͔ΒೖΔ༧ఆͷΩϡʔΞμϓλʔ • ΩϡʔϥΠϒϥϦΛࠩ͠ସ͑͠΍͍͢Α ͏ʹ͢Δ΋ͷ • daemon ࣮ߦ͸֤ࣗؤுͬͯ

  14. shinq ͷ࢖͍ํ

  15. queue table Λ࡞Δ

  16. None
  17. Worker Class Λ࡞Δ

  18. None
  19. generator ΋͋ΔΑʂ

  20. None
  21. None
  22. enqueue ͢Δ

  23. None
  24. dequeue ͢Δ

  25. None
  26. ίϚϯυϥΠϯΦϓγϣϯ

  27. ίϚϯυϥΠϯΦϓγϣϯ • —worker ࣮ߦ͢Δ worker name • —process fork ͢Δϓϩηε਺

    • —queue-timeout queue_wait ͰλΠϜ Ξ΢τ͢Δඵ਺ • -d, —daemon daemon ͱ࣮ͯ͠ߦ • etc…
  28. ·ͱΊ

  29. ·ͱΊ • Ruby(Rails) Ͱ Q4M ΛΧδϡΞϧʹ ѻ͏Կ͔Λ࡞ͬͨΑ • ϞμϯͳΠϯλʔϑΣʔεͩΑ •

    Ϟμϯ͗ͯ͢4.2͡Όͳ͍ͱ࢖͑ͳ͍ Α(ࠓRC2) • # ryopeko/shinq ͩΑ