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

画面に合わせたAPI設計をしたら残業が死ぬほど増えた話

 画面に合わせたAPI設計をしたら残業が死ぬほど増えた話

kinocoboy

March 08, 2022
Tweet

More Decks by kinocoboy

Other Decks in Programming

Transcript

  1. ը໘ʹ߹ΘͤͨAPIઃܭΛͨ͠Β
    ࢒ۀ͕ࢮ͵΄Ͳ૿͑ͨ࿩
    KINOCOBOY

    View full-size slide

  2. Hiroki Kinoshita


    Peacock Engineer Group


    ओ࠵


    גࣜձࣾKUNO


    ϑϩϯτΤϯδχΞ(gcp, aws, angular, nuxt)


    Twitter


    @kinocoboy2
    SELF INTRODUCTION

    View full-size slide

  3. Hiroki Kinoshita


    Peacock Engineer Group


    ओ࠵


    גࣜձࣾKUNO


    ϑϩϯτΤϯδχΞ(gcp, aws, angular, nuxt)


    Twitter


    @kinocoboy2
    SELF INTRODUCTION
    Ϋϥ΢υ × ϩέʔγϣϯϑϦʔ × ஍ํҠॅ


    Ͱൃ৴தʂ

    View full-size slide

  4. όουϊ΢ϋ΢

    View full-size slide

  5. ࢒ۀ͸Ϋι
    ·ͣɺ݁࿦

    View full-size slide

  6. ࢒ۀ͸Ϋι


    ୯ҰAPIͰNݸͷޮՌΛ࣋ͨͤΔͳ
    ·ͣɺ݁࿦

    View full-size slide

  7. ࢒ۀ͸Ϋι


    ୯ҰAPIͰNݸͷޮՌΛ࣋ͨͤΔͳ


    ը໘߲໨͚ͩʹ஫ҙͯ͠ςʔϒϧఆٛΛܾΊΔͳ
    ·ͣɺ݁࿦

    View full-size slide

  8. ࢒ۀ͸Ϋι


    ୯ҰAPIͰNݸͷޮՌΛ࣋ͨͤΔͳ


    ը໘߲໨͚ͩʹ஫ҙͯ͠ςʔϒϧఆٛΛܾΊΔͳ


    ֎෦APIΛ࢖͏ͳΒɺຊ౰ʹجૅ͸େࣄͩ
    ·ͣɺ݁࿦

    View full-size slide

  9. ͋Μ·Γڭ͑ͯ͸͘Εͳ͍҉໧஌
    ͦΜͳ΋Μ͋ͬͨΓ·͑Ͱ͠ΐ…ͳ࿩ͳΜ͚ͩͲɺͦͷཧ༝Λ஌͍ͬͯΔਓ͸ҙ֎ͱগͳ͍ɻ

    View full-size slide

  10. ͋Μ·Γڭ͑ͯ͸͘Εͳ͍҉໧஌
    ͦΜͳ΋Μ͋ͬͨΓ·͑Ͱ͠ΐ…ͳ࿩ͳΜ͚ͩͲɺͦͷཧ༝Λ஌͍ͬͯΔਓ͸ҙ֎ͱগͳ͍ɻ


    ͜ͷجຊΛԡ͑ͣ͞ʹ࡞ΓࠐΜͰ͠·ͬͯɺൿ఻ͷλϨΛ࿉੒͍ͯ͠Δݱ৔͸ଟ͍

    View full-size slide

  11. ͋Μ·Γڭ͑ͯ͸͘Εͳ͍҉໧஌
    ͦΜͳ΋Μ͋ͬͨΓ·͑Ͱ͠ΐ…ͳ࿩ͳΜ͚ͩͲɺͦͷཧ༝Λ஌͍ͬͯΔਓ͸ҙ֎ͱগͳ͍ɻ


    ͜ͷجຊΛԡ͑ͣ͞ʹ࡞ΓࠐΜͰ͠·ͬͯɺൿ఻ͷλϨΛ࿉੒͍ͯ͠Δݱ৔͸ଟ͍


    ಛʹ֎෦APIΛར༻͢ΔͳΒɺΑΓجૅ͕େࣄʹͳΔɻ

    View full-size slide

  12. ͋Μ·Γڭ͑ͯ͸͘Εͳ͍҉໧஌
    ͦΜͳ΋Μ͋ͬͨΓ·͑Ͱ͠ΐ…ͳ࿩ͳΜ͚ͩͲɺͦͷཧ༝Λ஌͍ͬͯΔਓ͸ҙ֎ͱগͳ͍ɻ


    ͜ͷجຊΛԡ͑ͣ͞ʹ࡞ΓࠐΜͰ͠·ͬͯɺൿ఻ͷλϨΛ࿉੒͍ͯ͠Δݱ৔͸ଟ͍


    ಛʹ֎෦APIΛར༻͢ΔͳΒɺΑΓجૅ͕େࣄʹͳΔɻ


    ൿ఻ͷλϨ๾໓ӡಈͰ͢ɻ

    View full-size slide

  13. ୯ҰAPIͰNݸͷޮՌΛ࣋ͨͤΔͳ

    View full-size slide

  14. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    View full-size slide

  15. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    ɾGETϝιουͷॲཧͳͷʹԿނ͔σʔλͷߋ৽ֻ͕͔Δɻ


    View full-size slide

  16. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    ɾGETϝιουͷॲཧͳͷʹԿނ͔σʔλͷߋ৽ֻ͕͔Δɻ


    ɾߋ৽ͱڞʹԿ͔ͷσʔλ͕௥Ճ͞ΕΔɻ


    View full-size slide

  17. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    ɾGETϝιουͷॲཧͳͷʹԿނ͔σʔλͷߋ৽ֻ͕͔Δɻ


    ɾߋ৽ͱڞʹԿ͔ͷσʔλ͕௥Ճ͞ΕΔɻ


    ϑΣΠϯτ


    ͍ͬͺ͍ೖΕͪΌ͏

    View full-size slide

  18. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    ɾGETϝιουͷॲཧͳͷʹԿނ͔σʔλͷߋ৽ֻ͕͔Δɻ


    ɾߋ৽ͱڞʹԿ͔ͷσʔλ͕௥Ճ͞ΕΔɻ


    ϑΣΠϯτ


    ͍ͬͺ͍ೖΕͪΌ͏
    ਖ਼͍͠ಈ͖Λ


    ௐࠪ͠ͳ͍ͱ

    View full-size slide

  19. ୯ҰAPIͰෳ਺ͷڍಈ
    ྫ͑͹ɺ


    ɾGETϝιουͷॲཧͳͷʹԿނ͔σʔλͷߋ৽ֻ͕͔Δɻ


    ɾߋ৽ͱڞʹԿ͔ͷσʔλ͕௥Ճ͞ΕΔɻ


    ϑΣΠϯτ


    ͍ͬͺ͍ೖΕͪΌ͏
    ਖ਼͍͠ಈ͖Λ


    ௐࠪ͠ͳ͍ͱ

    View full-size slide

  20. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ

    View full-size slide

  21. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ


    ݁Ռͱͯ͠

    View full-size slide

  22. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ


    ݁Ռͱͯ͠


    ௐࠪʹ৴͡ΒΕͳ͍࣌ؒ΋͔͔Δ

    View full-size slide

  23. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ


    ݁Ռͱͯ͠


    ௐࠪʹ৴͡ΒΕͳ͍࣌ؒ΋͔͔Δ


    ಈ࡞֬ೝͷ೉қ౓΋্͕Δ

    View full-size slide

  24. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ


    ݁Ռͱͯ͠


    ௐࠪʹ৴͡ΒΕͳ͍࣌ؒ΋͔͔Δ


    ಈ࡞֬ೝͷ೉қ౓΋্͕Δ


    ίʔυ΋εύήοςΟʔίʔυނɺίʔυௐࠪ΋Ωπ͍

    View full-size slide

  25. ୯ҰAPIͰෳ਺ͷڍಈ
    ୯ҰAPIͰ૝ఆ֎ͷڍಈ͕ೖͬͯ͘ΔͱɺAPI໊ʹରͯ͠ڍಈ͕ࣗ໌͡Όͳ͘ͳΔɻ


    ݁Ռͱͯ͠


    ௐࠪʹ৴͡ΒΕͳ͍࣌ؒ΋͔͔Δ


    ಈ࡞֬ೝͷ೉қ౓΋্͕Δ


    ίʔυ΋εύήοςΟʔίʔυނɺίʔυௐࠪ΋Ωπ͍


    ࠷ऴతʹɺଐਓԽ → ແବͳ޻਺͕ര্͕Γ → ͦͷ݁Ռ…

    View full-size slide

  26. ݟࣄ ࢒ۀ ֬ఆ!!

    View full-size slide

  27. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    View full-size slide

  28. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    ༨ܭͳڍಈ͸ೖΕͳ͍ʂ


    View full-size slide

  29. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    ༨ܭͳڍಈ͸ೖΕͳ͍ʂ


    GET͸औಘɺPOST͸ొ࿥ɺPUT͸ߋ৽ɺDELETE͸࡟আ͚ͩʂ


    View full-size slide

  30. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    ༨ܭͳڍಈ͸ೖΕͳ͍ʂ


    GET͸औಘɺPOST͸ొ࿥ɺPUT͸ߋ৽ɺDELETE͸࡟আ͚ͩʂ


    ॲཧ͸ࣗ໌ʹʂ

    View full-size slide

  31. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    ༨ܭͳڍಈ͸ೖΕͳ͍ʂ


    GET͸औಘɺPOST͸ొ࿥ɺPUT͸ߋ৽ɺDELETE͸࡟আ͚ͩʂ


    ݪҼՕॴ͕໌Β͔
    ॲཧ͸ࣗ໌ʹʂ

    View full-size slide

  32. ୯ҰAPIͰෳ਺ͷڍಈ
    ղܾํ๏͸ɺ୯७໌շɻ


    ༨ܭͳڍಈ͸ೖΕͳ͍ʂ


    GET͸औಘɺPOST͸ొ࿥ɺPUT͸ߋ৽ɺDELETE͸࡟আ͚ͩʂ


    ݪҼՕॴ͕໌Β͔
    ଐਓճආ
    ॲཧ͸ࣗ໌ʹʂ

    View full-size slide

  33. جૅͦͷೋ

    View full-size slide

  34. ը໘߲໨͚ͩʹ஫ҙͯ͠


    ςʔϒϧఆٛΛܾΊΔͳ

    View full-size slide

  35. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ը໘ʹදࣔ͞ΕΔ΋ͷΛDatabaseʹอଘ͓͚ͯ͠͹OK!

    View full-size slide

  36. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ը໘ʹදࣔ͞ΕΔ΋ͷΛDatabaseʹอଘ͓͚ͯ͠͹OK!


    ͱ͍͏ൃ૝͔Β҆қʹը໘ઌߦͰ։ൃ͕ਐΉέʔε͕·ͩ·ͩଟ͍ɻ

    View full-size slide

  37. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ը໘ʹදࣔ͞ΕΔ΋ͷΛDatabaseʹอଘ͓͚ͯ͠͹OK!


    ͱ͍͏ൃ૝͔Β҆қʹը໘ઌߦͰ։ൃ͕ਐΉέʔε͕·ͩ·ͩଟ͍ɻ

    ʢΘ͔ͬͯͳ͍σβΠφʔ͞Μ͕ओಋ͢Δͱͦ͏ͳΓ͕ͪʣ


    ֎෦APIΛ૊ΜͩΓ͢ΔͳΒɺΑΓը໘ʹҾͬுΒΕͯ͸͍͚ͳ͍ɻ

    View full-size slide

  38. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText

    View full-size slide

  39. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ߲໨Λฏ໘తʹଊ͑Δͱɺ


    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText

    View full-size slide

  40. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ߲໨Λฏ໘తʹଊ͑Δͱɺ


    λΠτϧ 1 : 1
    ೔෇ 1 : 1
    ৄࡉςΩετ 1 : 1
    ͍͍Ͷ਺ 1 : N
    λά 1 : N


    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText

    View full-size slide

  41. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ߲໨Λฏ໘తʹଊ͑Δͱɺ


    λΠτϧ 1 : 1
    ೔෇ 1 : 1
    ৄࡉςΩετ 1 : 1
    ͍͍Ͷ਺ 1 : N
    λά 1 : N


    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText

    View full-size slide

  42. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ߲໨Λฏ໘తʹଊ͑Δͱɺ


    λΠτϧ 1 : 1
    ೔෇ 1 : 1
    ৄࡉςΩετ 1 : 1
    ͍͍Ͷ਺ 1 : N
    λά 1 : N


    ྫྷ੩ʹݟͨΒɺ


    ੑ࣭͕ҧ͏͜ͱ͕Θ͔Δ
    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText

    View full-size slide

  43. ը໘ઌߦͰߟ͑Δͱʁ
    Instagramతͳը໘ΛΠϝʔδͯ͠Έ·͠ΐ͏


    ߲໨Λฏ໘తʹଊ͑Δͱɺ


    Ͱ΋͜ͷ··ٙ໰Λ࣋ͨͣʹAPIԽ͢Δͱ…?
    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText
    λΠτϧ 1 : 1
    ೔෇ 1 : 1
    ৄࡉςΩετ 1 : 1
    ͍͍Ͷ਺ 1 : N
    λά 1 : N


    ྫྷ੩ʹݟͨΒɺ


    ੑ࣭͕ҧ͏͜ͱ͕Θ͔Δ

    View full-size slide

  44. ը໘ઌߦͰߟ͑Δͱʁ
    API ΠϯλʔϑΣʔε͸ɺ


    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText
    Request: {


    Title: string,


    Created: timestamp,


    detailText: text,


    Likes: number,


    Tags: string[],


    }

    View full-size slide

  45. ը໘ઌߦͰߟ͑Δͱʁ
    API ΠϯλʔϑΣʔε͸ɺ


    ͦͯ͠ςʔϒϧ͸ɺ
    ೔෇
    ͍͍Ͷ਺
    Tags
    λΠτϧ
    ৄࡉText
    Request: {


    Title: string,


    Created: timestamp,


    detailText: text,


    Likes: number,


    Tags: string[],


    }
    ౤ߘςʔϒϧ: {


    Title: string,


    Created: timestamp,


    detailText: text,


    Likes: number,


    Tags: string[],


    }

    View full-size slide

  46. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ౤ߘ ʹରͯ͠ ͍͍ͶΛ௥Ճͨ͠Γɺ TagΛ௥Ճ͠Α͏ͱ͢Δͱɺ

    ඞͣ ౤ߘςʔϒϧࣗମʹߋ৽Λ͔͚ଓ͚ΔࣄʹͳΔɻ


    ಉҰςʔϒϧΛಉ࣌ଟൃతʹฤूૢ࡞͠Α͏ͱ͢ΔͱɺςʔϒϧϩοΫֻ͕͔Δɻ


    ςʔϒϧϩοΫ͕ੵΈॏͳΔͱɺγεςϜͷϘτϧωοΫʹɻ


    γεςϜςετ࣌ʹ͜Ε͕໌Β͔ʹͳͬͯɺશ໘తʹෛՙվળʹ৐Γग़͢ͱΠϯύΫτେɻ

    View full-size slide

  47. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ౤ߘ ʹରͯ͠ ͍͍ͶΛ௥Ճͨ͠Γɺ TagΛ௥Ճ͠Α͏ͱ͢Δͱɺ

    ඞͣ ౤ߘςʔϒϧࣗମʹߋ৽Λ͔͚ଓ͚ΔࣄʹͳΔɻ


    ಉҰςʔϒϧΛಉ࣌ଟൃతʹฤूૢ࡞͠Α͏ͱ͢ΔͱɺςʔϒϧϩοΫֻ͕͔Δɻ


    ςʔϒϧϩοΫ͕ੵΈॏͳΔͱɺγεςϜͷϘτϧωοΫʹɻ


    γεςϜςετ࣌ʹ͜Ε͕໌Β͔ʹͳͬͯɺશ໘తʹෛՙվળʹ৐Γग़͢ͱΠϯύΫτେɻ

    View full-size slide

  48. ը໘ʹදࣔ͞ΕΔ΋ͷ͔͠ߟ͑ͳ͍
    ౤ߘ ʹରͯ͠ ͍͍ͶΛ௥Ճͨ͠Γɺ TagΛ௥Ճ͠Α͏ͱ͢Δͱɺ

    ඞͣ ౤ߘςʔϒϧࣗମʹߋ৽Λ͔͚ଓ͚ΔࣄʹͳΔɻ


    ಉҰςʔϒϧΛಉ࣌ଟൃతʹฤूૢ࡞͠Α͏ͱ͢ΔͱɺςʔϒϧϩοΫֻ͕͔Δɻ


    ςʔϒϧϩοΫ͕ੵΈॏͳΔͱɺγεςϜͷϘτϧωοΫʹɻ


    γεςϜςετ࣌ʹ͜Ε͕໌Β͔ʹͳͬͯɺશ໘తʹෛՙվળʹ৐Γग़͢ͱΠϯύΫτେɻ


    ͦͷ݁Ռ…

    View full-size slide

  49. ղܾํ๏
    ը໘Ͱ߲໨Λચ͍ग़͢ͷ͸ѱ͍͜ͱͰ͸ͳ͍ɻΉ͠Ζඞཁɻ

    View full-size slide

  50. ղܾํ๏
    ը໘Ͱ߲໨Λચ͍ग़͢ͷ͸ѱ͍͜ͱͰ͸ͳ͍ɻΉ͠Ζඞཁɻ


    Ͱ΋ɺ͚ͦͩ͜஫ҙͯ͠ςʔϒϧߏ଄·Ͱ࡞Γ࢝Ίͯ͠·͏ͱNG.

    View full-size slide

  51. ղܾํ๏
    ը໘Ͱ߲໨Λચ͍ग़͢ͷ͸ѱ͍͜ͱͰ͸ͳ͍ɻΉ͠Ζඞཁɻ


    Ͱ΋ɺ͚ͦͩ͜஫ҙͯ͠ςʔϒϧߏ଄·Ͱ࡞Γ࢝Ίͯ͠·͏ͱNG.


    ͖ͪΜͱը໘Λ࢖͏ಈػɾಋઢɺσʔλͷੑ࣭΋ߟྀʹೖΕͯςʔϒϧఆٛ΍APIΛઃܭ͢Δ͜
    ͱ͕େࣄɻ

    View full-size slide

  52. ղܾํ๏
    ը໘Ͱ߲໨Λચ͍ग़͢ͷ͸ѱ͍͜ͱͰ͸ͳ͍ɻΉ͠Ζඞཁɻ


    Ͱ΋ɺ͚ͦͩ͜஫ҙͯ͠ςʔϒϧߏ଄·Ͱ࡞Γ࢝Ίͯ͠·͏ͱNG.


    ͖ͪΜͱը໘Λ࢖͏ಈػɾಋઢɺσʔλͷੑ࣭΋ߟྀʹೖΕͯςʔϒϧఆٛ΍APIΛઃܭ͢Δ͜
    ͱ͕େࣄɻ


    ͦͷͨΊͷٕज़΍ߟ͑ํ͕ɺDDD΍ICONIXͳͲͷυϝΠϯۦಈઃܭ΍Ϣʔεέʔεۦಈઃܭʹ
    ֘౰͢Δɻ

    View full-size slide

  53. ղܾํ๏
    ࠓճͷ৔߹ͰࢲͩͬͨΒɺςʔϒϧΛ̏ͭ
    ʹ෼͚Δɻ


    ౤ߘςʔϒϧ: {


    postId: string,


    Title: string,


    Created: timestamp,


    detailText: text,


    }
    ͍͍Ͷ਺: {


    likeId: string,


    postId: string,


    }
    λά: {


    tagId: string


    Name: string


    }

    View full-size slide

  54. ղܾํ๏
    ࠓճͷ৔߹ͰࢲͩͬͨΒɺςʔϒϧΛ̏ͭʹ
    ෼͚Δɻ


    ͜ΕͰߋ৽λΠϛϯά΍ର৅ςʔϒϧ΋͹Β
    ͚ΔͷͰɺσουϩοΫͷස౓͕Լ͕Δ͸
    ͣɻ


    ౤ߘςʔϒϧ: {


    postId: string,


    Title: string,


    Created: timestamp,


    detailText: text,


    }
    ͍͍Ͷ਺: {


    likeId: string,


    postId: string,


    }
    λά: {


    tagId: string


    Name: string


    }

    View full-size slide

  55. ղܾํ๏
    ࠓճͷ৔߹ͰࢲͩͬͨΒɺςʔϒϧΛ̏ͭʹ෼
    ͚Δɻ


    ͜ΕͰߋ৽λΠϛϯά΍ର৅ςʔϒϧ΋͹Β͚
    ΔͷͰɺσουϩοΫͷස౓͕Լ͕Δ͸ͣɻ


    ࠓճ͸͜ͷΑ͏ʹΘ͔Γ΍͍͢ྫ͕ͩɺຊ౰͸
    ΋ͬͱೖΓ૊ΜͰ͍ΔͷͰ͔ͬ͠Γ෼ղ͕ඞཁ
    ʹͳΔɻ


    ౤ߘςʔϒϧ: {


    postId: string,


    Title: string,


    Created: timestamp,


    detailText: text,


    }
    ͍͍Ͷ਺: {


    likeId: string,


    postId: string,


    }
    λά: {


    tagId: string


    Name: string


    }

    View full-size slide

  56. • API͸ࣗ໌Ͱ͋Δ͜ͱΛҡ࣋͢Δ͜ͱ


    • ௐࠪΛ؆ུʹɻ


    • ࢖༻ײΛ໌Β͔ʹɻ
    ݁࿦

    View full-size slide

  57. • API͸ࣗ໌Ͱ͋Δ͜ͱΛҡ࣋͢Δ͜ͱ


    • ௐࠪΛ؆ུʹɻ


    • ࢖༻ײΛ໌Β͔ʹɻ


    • σʔλͷੑ࣭΍ߏ଄Λ͔ͬ͠ΓਪᏏ͢Δ͜ͱ


    • ϞσϦϯά΍DDD, Iconix ͸༗ޮɻ
    ݁࿦

    View full-size slide

  58. • API͸ࣗ໌Ͱ͋Δ͜ͱΛҡ࣋͢Δ͜ͱ


    • ௐࠪΛ؆ུʹɻ


    • ࢖༻ײΛ໌Β͔ʹɻ


    • σʔλͷੑ࣭΍ߏ଄Λ͔ͬ͠ΓਪᏏ͢Δ͜ͱ


    • ϞσϦϯά΍DDD, Iconix ͸༗ޮɻ


    • WebAPIΛ࢖͏ͳΒɺͦͷੑ࣭Λ೺Ѳ্ͨ͠Ͱ
    ࢖͓͏ɻ
    ݁࿦

    View full-size slide

  59. • API͸ࣗ໌Ͱ͋Δ͜ͱΛҡ࣋͢Δ͜ͱ


    • ௐࠪΛ؆ུʹɻ


    • ࢖༻ײΛ໌Β͔ʹɻ


    • σʔλͷੑ࣭΍ߏ଄Λ͔ͬ͠ΓਪᏏ͢Δ͜ͱ


    • ϞσϦϯά΍DDD, Iconix ͸༗ޮɻ


    • WebAPIΛ࢖͏ͳΒɺͦͷੑ࣭Λ೺Ѳ্ͨ͠Ͱ࢖
    ͓͏ɻ


    ͜Ε͕ແࢹ͞ΕΔͱɺ࢒ۀ͕૿͑ΔΑɻ
    ݁࿦

    View full-size slide

  60. Peacock Engineer Group
    • ڌ఺


    • ৽ׁݝ௕Ԭࢢ


    • PEGͷ໨త


    • ஍Ҭ΍ձࣾɾࣾձਓ΍ֶੜͳͲͷ֞ࠜΛ௒͑ͯɺࣗ
    ༝ʹٕज़ྗΛߴΊ߹͑ΔίϛϡχςΟʹ!!


    • PEG͕औΓѻ͏ςʔϚ


    • ໌೔͔Β࢖͑ΔTips!!


    • ӡӦελοϑਵ࣌ืूத!!

    View full-size slide

  61. PEACOCK 03
    ࿩୊ͷઃܭΛʮॳ৺ऀ޲͚ʯʹʮѹ౗త࢖͍΍͢͞Ͱ໌೔͔
    ΒಋೖͰ͖Δʯ࿩Λ͢Δ໷͕͋ͬͯ΋͍͍Μ͡Όͳ͍͔ʁ


    4/12 19:00 - 21:00 ΦϯϥΠϯ։࠵ʢCONNPASS )

    View full-size slide

  62. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠

    View full-size slide