ファッションチェックランキングRubyKaigiの裏側 / Fashion check ranking app for RubyKaigi2019

ファッションチェックランキングRubyKaigiの裏側 / Fashion check ranking app for RubyKaigi2019

ファッションチェックランキングRubyKaigiの裏側 / Fashion check ranking app for RubyKaigi2019

3e2285cb3972dc9a48000153aa3a0805?s=128

katsuyan

May 15, 2019
Tweet

Transcript

  1. Copyright © ZOZO Technologies, Inc. All Rights Reserved. "'5&33VCZ,BJHJ גࣜձࣾ;0;0ςΫϊϩδʔζ

    ։ൃ෦43& ాౡࠀ࠸ ϑΝογϣϯνΣοΫϥϯΩϯά 3VCZ,BJHJͷཪଆ
  2. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ϓϩϑΟʔϧ 5XJUUFS!LBUTVZBO

    ೥;0;0ςΫϊϩδʔζ৽ଔೖࣾ ීஈ͸σʔλج൫ɾ഑৴ج൫ͷ։ൃӡ༻Λ͍ͯ͠Δ ޷͖ͳݴޠ͸$MPKVSF͚ͩͲ3VCZ΋޷͖ ;0;0ςΫϊϩδʔζ ։ൃ෦43& ాౡࠀ࠸
  3. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ໨࣍ w

    ϑΝογϣϯνΣοΫϥϯΩϯάʹ͍ͭͯ w ٕज़తߏ੒ w 3VCZ,BJHJࣄ݅฽ w ࣄ݅฽5XJUUFS&SSPS5PP.BOZ3FRVFTUT w ࣄ݅฽5XFFUͯ͘͠Εͳ͍໰୊ w 3VCZ,BJHJͰͷ൓ڹ w ·ͱΊ
  4. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ˓೔ຊ࠷େڃͷϑΝογϣϯγϣοϐϯάαΠτΞϓϦ ˓

    Ҏ্ͷγϣοϓɺ Ҏ্ͷϒϥϯυͷऔΓѻ͍ʢ ೥݄຤࣌఺ʣ ˓ৗ࣌ສ఺Ҏ্ͷ঎඼ΞΠςϜ਺ͱຖ೔ฏۉ ఺Ҏ্ͷ৽ண঎ ඼Λܝࡌ ˓ଈ೔഑ૹαʔϏεΪϑτϥοϐϯάαʔϏεπέ෷͍ͳͲ IUUQT[P[PKQ
  5. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ˓೔ຊ࠷େڃͷϑΝογϣϯίʔσΟωʔτΞϓϦ ˓

    ສμ΢ϯϩʔυಥഁɺίʔσΟωʔτ౤ߘ૯਺͸ສ݅Ҏ ্ʢͱ΋ʹ೥݄຤࣌఺ʣ ˓શੈքʢ"QQ4UPSF(PPHMF1MBZ͕ར༻ՄೳͳશͯͷࠃʣͰμ ΢ϯϩʔυ͕Մೳ ˓ສਓҎ্ͷϑΥϩϫʔΛ࣋ͭϢʔβʔʢ8&"3*45"ʣ΋஀ੜ IUUQTXFBSKQ
  6. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ˓౰͕ࣾಠࣗʹ։ൃͨ͠࠾ੇ༻ϘσΟʔεʔπ ˓શମʹࢪ͞ΕͨυοτϚʔΧʔΛεϚʔτϑΥϯΧϝϥͰ౓ࡱ

    Ө͢Δ͜ͱͰɺମܕσʔλΛܭଌ ˓ܭଌͨ͠ମܕσʔλ͸ɺॠ࣌ʹ%ϞσϧԽ͞Εɺ;0;0508/Ξ ϓϦʹอଘɻ%Ϟσϧ͸͋ΒΏΔ֯౓ʹಈ͔͢͜ͱ͕Ͱ͖ɺମܕΛ ౓νΣοΫ͢Δ͜ͱ͕Մೳ IUUQT[P[PKQ[P[PTVJU
  7. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ˓ʮ;0;046*5ʯͰܭଌͨ͠ମܕσʔλΛ΋ͱʹɺҰਓͻͱΓͷମ ܕʹ߹ͬͨʮ͋ͳͨαΠζʯͷΞΠςϜ

    ˓ʮڀۃͷϑΟοτײʯΛ࣮ݱͨ͠ϕʔγοΫΞΠςϜΛఏڙ άϩʔόϧαΠτʮ;0;0DPNʯͰւ֎ల։ ˓ΞΠςϜ̩γϟπɺσχϜύϯπɺγϟπɺϏδωεεʔπɺ ωΫλΠɺϘʔμʔ̩γϟπɺ௕କΫϧʔωοΫ̩γϟπͳͲ IUUQT[P[PKQNFNCSBOE[P[P
  8. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ϑΝογϣϯνΣοΫϥϯΩϯάΞϓϦʹ͍ͭͯ

  9. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ϑΝογϣϯνΣοΫΞϓϦ ࣸਅࡱӨ

    ͍͍Ͷ਺֬ೝ Tweet w ϑΝογϣϯνΣοΫΞϓϦͱ͸ w %SPJE,BJHJͷ࣌ʹ࡞੒͞ΕͨσϞΞϓϦ w 8&"3ͰԿ͍͍Ͷ͞ΕΔ͔Λ༧ଌ͢ΔΞϓϦέʔγϣϯ
  10. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ϑΝογϣϯνΣοΫϥϯΩϯά 'AccountId':

    katsuyan121 'Score': 70 'TweetUrl': https://… 'ImageUrl': https://… Tweet ৘ใநग़ ϥϯΩϯάදࣔ w ϑΝογϣϯνΣοΫϥϯΩϯάͱ͸ w 3VCZ,BJHJͷͨΊʹ࡞੒ͨ͠ΞϓϦέʔγϣϯ w ϑΝογϣϯνΣοΫΞϓϦ͔Β౤ߘ͞Ε͍͍ͨͶ਺ΛϥϯΩϯάදࣔ
  11. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ٕज़తߏ੒ ALB

    Lambda Lambda DynamoDB ALB S3 CloudFront Twitter Invoke every 10sec By Health checking
  12. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ৄࡉ w

    ϑΝογϣϯνΣοΫΞϓϦ w ςοΫϒϩά IUUQTUFDICMPH[P[PDPNFOUSZ  w ϑΝογϣϯνΣοΫϥϯΩϯά w ৄࡉۙ೔ςοΫϒϩάʹͯެ։ IUUQTUFDICMPH[P[PDPN  w ιʔε(JU)VC IUUQTHJUIVCDPNTUUFDIGBTIJPO@DIFDL@SBOLJOH
  13. Copyright © ZOZO Technologies, Inc. All Rights Reserved. 3VCZ,BJHJࣄ݅฽

  14. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽5XJUUFS&SSPS5PP.BOZ3FRVFTUT

  15. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ͳͥ"-# $MPVE'SPOU

    4 "-# -BNCEB %ZOBNP%# -BNCEB 5XJUUFS "-# *OWPLFFWFSZTFD CZIFBMUIDIFDLJOH w $SBXMස౓ͷཁ݅ w 5XFFUޙʹଈϥϯΩϯάʹ൓ө͍ͨ͠ w ΫϩʔϥʔΛඵ͓͖ʹىಈͨ͠ w -BNCEBͷىಈස౓ͷ੍ݶ w $MPVE8BUDI&WFOUˠ෼ʹճ! w "-#)FBMUI$IFDLˠඵʹճ
  16. Copyright © ZOZO Technologies, Inc. All Rights Reserved. 5XJUUFS&SSPS5PP.BOZ3FRVFTUT RubyKaigiલ೔ૣே

  17. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽5XJUUFS&SSPS5PP.BOZ3FRVFTUT https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html

    w 5XJUUFS4FBSDI"1*ͷϦΫΤετ੍ݶ w SFRVFTUTNJO w ˠඵʹϦΫΤετ·Ͱ w ϦΫΤετ੍ݶΛ௒͑ͨ৔߹ ɾ5XJUUFS&SSPS5PP.BOZ3FRVFTUTൃੜ
  18. Copyright © ZOZO Technologies, Inc. All Rights Reserved. "-#΁֎෦ΞΫηε w

    ݪҼ w ֎෦͔Βͷ"-#΁ͷΞΫηε͕͋ͬͨ w ΞΫηε͞Εͨճ਺͚ͩDSBXMFS͕࡞ಈ w ໰୊ w 8FCͷํͱ͓ͳ͡ηΩϡϦςΟάϧʔϓΛར༻ w ൪ϙʔτ͕શ෦ۭ͍͍ͯͨ $MPVE'SPOU 4 "-# -BNCEB %ZOBNP%# -BNCEB 5XJUUFS "-# 5XJUUFS&SSPS5PP.BOZ3FRVFTUT ✕
  19. Copyright © ZOZO Technologies, Inc. All Rights Reserved. "-#ͷ)FBMUI$IFDLִؒʹ͍ͭͯ w

    )FBMUI$IFDLִؒ w dඵִؒͰ)FBMUI$IFDLՄೳ w )FBMUI$IFDLִؒͷਫ਼౓ w )FBMUI$IFDLִؒ͸ਖ਼֬Ͱ͸ͳ͍ w ͋͘·Ͱ֓ࢉִؒ w ࣮ࡍඵຖʹͯ͠΋5XJUUFSͷΤϥʔ͕ൃੜ
  20. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽ڭ܇ w

    "-#͸ͪΌΜͱΞΫηε੍ݶΛ͢Δ w ඞཁͳϙʔτ͚ͩΛ։͚Δ͜ͱ w 1SPEVDUJPOͰ"-#ΛDSPOʹ࢖Θͳ͍ w )FBMUI$IFDLִؒ͸ਖ਼֬Ͱ͸ͳ͍ w ͦ΋ͦ΋DSPOͷ༻్ͱͯ͠࡞ΒΕ͍ͯͳ͍
  21. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽5XFFUͯ͘͠Εͳ͍

  22. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽5XFFUͯ͘͠Εͳ͍ w

    ೔໨Ͱͷ՝୊ w දࣔ͞ΕΔϥϯΩϯά͕Ґ·Ͱ w ϥϯΩϯάݍ֎ͩͱ5XFFUͯ͘͠Εͳ͍ w ղܾࡦ w දࣔΛྻʹͯ͠Ґ·Ͱදࣔ͠Α͏
  23. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ྻରԠ 1೔໨

    2,3೔໨
  24. Copyright © ZOZO Technologies, Inc. All Rights Reserved. 3VCZ,BJHJ೔໨ேͷ༷ࢠ 502

    Bad Gateway
  25. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ྻରԠ׬ྃޙͷ༷ࢠ 2ྻରԠ׬ྃ

  26. Copyright © ZOZO Technologies, Inc. All Rights Reserved. 5XFFU਺ͷਪҠ 62

    82 66 w ݁Ռ w ॳ೔ϒʔεʹདྷΔਓ͕࠷΋ଟ͔ͬͨʹ͔͔ ΘΒͣ ೔໨ͷ5XFFU਺͕৳ͼͨ
  27. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ࣄ݅฽ڭ܇ w

    ҙ֎ͱΈΜͳ5XFFUͯ͘͠ΕΔ w 5XFFU͢Δͷݏ͔ͳͱࢥ͍͕ͬͯͨଟ͘ͷਓ͕5XFFUͯ͘͠Εͨ w ΧϯϑΝϨϯεதʹ࡞ۀ͕࣌ؒ͋Μ·Γͳ͍ w 3VCZ,BJHJ͸ύʔςΟʔָ͕͍͠ w 3VCZ,BJHJ͕։࠵͞ΕΔ౎ࢢ͸ඒຯ͍͠΋ͷ͕ଟ͍ w ૣΊʹϒʔεاը͸४උ͠·͠ΐ͏ʂʂʂ
  28. Copyright © ZOZO Technologies, Inc. All Rights Reserved. 3VCZ,BJHJͰͷ൓ڹ w

    ߹ܭUXFFU਺ w   5XFFUT w શ೔ͷϥϯΩϯά্ҐείΞ w Ґ Ґ Ґ w ͋͘·σϞΞϓϦͰ͢
  29. Copyright © ZOZO Technologies, Inc. All Rights Reserved. ·ͱΊ w

    ϒʔεاը։ൃ͸ษڧʹͳͬͨ w ৽͍ٕ͠ज़Λੵۃతʹར༻͠஌ݟ͕ཷ·ͬͨ w ͨ͘͞Μਓ͕ू·ͬͯ͘ΕͯΑ͔ͬͨ w ϑΝογϣϯνΣοΫΞϓϦΛ໨తʹདྷͯ͘Εͨਓ΋͍ͨ w 3VCZ,BJHJ͸ָ͍͠ w 3VCZ,BJHJΛΑΓָ͠ΉͨΊʹϒʔεاը͸ૣΊʹ४උ͠·͠ΐ͏
  30. Copyright © ZOZO Technologies, Inc. All Right Reserved. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠