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

Laravel Job Queueで バッチ運用した話

Laravel Job Queueで バッチ運用した話

Laravel Job Queueでバッチ運用した話

Takayuki

June 07, 2019
Tweet

More Decks by Takayuki

Other Decks in Programming

Transcript

  1. Copyright Re:Build.inc All Rights Reserved. 1.ձࣾ঺հ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝԭೄࢢதԝ̍ஸ໨̍̒−̕

    ◆ࣄۀ಺༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 5໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪ঑ͯ͠·͢ʂ
  2. 8 2 Job Queueͱ͸ δϣϒΩϡʔͱ͸δϣϒΛΩϡʔͰ؅ཧ͢ Δ΋ͷͰ͢ɻ Ωϡʔͱ͸FIFO(First In First Out)Λ࣮ݱ

    ͢Δσʔλߏ଄Ͱ͢ɻ Ωϡʔʹొ࿥͞ΕͨϞϊ͸ɺΩϡʔʹొ ࿥ͨ͠ॱʹॲཧ͞Ε·͢ɻ http://tech.voyagegroup.com/archives/495474.html
  3. 9

  4. 1 0

  5. 11

  6. cronͰຖே9࣌ʹ όον࣮ߦ Google ϫʔΧʔͰॱ࣮࣍ߦ εΫϨΠϐϯά ॲཧ GASͷAPIΛ࣮ߦ εΫϨΠϐϯά ͨ͠৘ใΛGASͷ ύϥϝʔλʹ֨ೲ

    Job εΫϨΠϐϯά ॲཧ GASͷAPIΛ࣮ߦ εΫϨΠϐϯά ͨ͠৘ใΛGASͷ ύϥϝʔλʹ֨ೲ Job Queue εΫϨΠϐϯά ॲཧ GASͷAPIΛ࣮ߦ εΫϨΠϐϯά ͨ͠৘ใΛGASͷ ύϥϝʔλʹ֨ೲ Job ϫʔΧʔ ࣮ߦ݁Ռͷ εςʔλε Λฦ٫ GASͷAPI Λ࣮ߦ εϓϨου γʔτॻ͖ ग़͠ Supervisor ϫʔΧʔ͕ࢮΜͩΒ ্ཱͪ͛௚͢ શମߏ੒ δϣϒΛ3ͭ࡞੒͠ ͨ৔߹