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

VICOLLEのAPI層のモデル設計

Yuya Hirayama
February 22, 2017

 VICOLLEのAPI層のモデル設計

Yuya Hirayama

February 22, 2017
Tweet

More Decks by Yuya Hirayama

Other Decks in Technology

Transcript

  1. 7*$0--&ΞϓϦͷ"1*૚ͷ
    Ϟσϧઃܭ
    4QFFF$BGF.FFUVQ
    !IJSBHSBN

    View full-size slide


  2. w ฏࢁ༟໵
    w !IJSBHSBN
    w ೥໨
    w $.ࣄۀ෦ɹ7*$0--&
    J04ΞϓϦΤϯδχΞ

    View full-size slide

  3. ࠓ೔
    w νʔϜͷ։ൃϑϩʔͷ࿩Λ͠·͢
    w ͦΕͧΕͷ޻ఔͰ΍ͬͯΔ͜ͱΛ؆୯ʹ࿩͠·
    ͢
    w ΞϓϦͷίʔυϕʔεͷதͰ"1*͕ͲͷΑ͏ʹఆ
    ٛ͞Ε͍ͯΔ͔ͷ࿩Λ͠·͢

    View full-size slide

  4. νʔϜͷ։ൃϑϩʔ

    View full-size slide

  5. +40/4DIFNBͰ"1*ఆٛ
    ϞοΫαʔόࣗಈੜ੒
    .BSLEPXOυΩϡϝϯτࣗಈੜ੒
    "1*ͱσʔλΦϒδΣΫτ
    ఆٛͷίʔυࣗಈੜ੒
    45(؀ڥ"1*։ൃ
    45(؀ڥ݁߹ςετ
    2"ɺຊ൪ςετ
    ΞϓϦ։ൃ

    View full-size slide

  6. Α͍ͱ͜Ζ
    w "1*ͷ࣮૷׬ྃΛ଴ͨͣʹJ04ଆΛฒߦͯ͠։ൃ
    Ͱ͖ͯΑ͍
    w TDIFNBΛઈରʹਖ਼ͱ͢ΔͷͰෆ۩߹ͷݪҼ͕αʔ
    όଆͳͷ͔ΞϓϦଆͳͷ͔Θ͔Γ΍ͯ͘͢Α͍
    w TDIFNB௨Γʹฦͯ͠ΔͳΒΞϓϦͷ໰୊ͬΆ
    ͍ɺTDIFNBʹ߹Θͳ͍Ϩεϙϯεฦͯ͠Δͳ
    ΒαʔόଆͬΆ͍

    View full-size slide

  7. ͳΜͱ͔͍ͨ͠ͱ͜Ζ
    w +40/4DIFNBࣗମͷϨϏϡʔ͕݁ߏͭΒ͍
    w ੜͷKTPO͸ਓ͕ಡΉ΋ͷͰ͸ͳ͍͠ɺNBSLEPXO
    ͷυΩϡϝϯτݟͯ΋ύϥϝʔλͷ࿙Εͱ͔ͳ
    ͔ͳ͔ؾ͖ͮʹ͍͘
    w ·͋ɺ+40/4DIFNB࠾༻ʹΑΔϝϦοτͷ΄
    ͏͕໌Β͔ʹେ͖͍͔Β͍͍͔ͳʜ

    View full-size slide

  8. ͦΕͧΕͷ޻ఔΛ؆୯ʹ

    View full-size slide

  9. +40/4DIFNBͰ"1*ఆٛ
    w KTPO@XPSME SLBNVSBKTPO@XPSME
    ͰεΩʔϚΛੜ

    w ಉ࣌ʹɺੜ੒͞ΕͨεΩʔϚΛݩʹQSNE JOUFSBHFOU
    QSNE
    Ͱ.BSLEPXOυΩϡϝϯτΛੜ੒
    w +40/4DIFNB༻ͷϦϙδτϦͰϨϏϡʔ αʔόαΠ
    υɺΞϓϦ྆ਓ

    w ྑ͚Ε͹NBTUFSʹϚʔδ

    View full-size slide

  10. ϞοΫαʔό্ཱͪ͛
    w TDIFNB͕NBTUFSʹϚʔδ͞ΕΔͱɺͦΕΛ΋
    ͱʹ$PNNJUUFF JOUFSBHFOUDPNNJUUFF
    Λ
    ࢖ͬͨϞοΫ͕ੜ੒͞ΕΔɻ

    View full-size slide

  11. ίʔυδΣωϨʔλ࣮ߦ
    w ͖ͬ͞Ϛʔδͨ͠TDIFNB༻ϦϙδτϦͷ
    $JSDMF$*͕ɺJ04༻ͷίʔυδΣωϨʔλ͕৐ͬ
    ͯΔ5SBWJT$*ΛΩοΫ͢Δ
    w TDIFNBΛղऍ֤ͯ͠ΤϯυϙΠϯτͱσʔλΦ
    ϒδΣΫτͷίʔυΛੜ੒
    w 044ͱͯ͠ެ։

    TQFFFKTPOTDIFNBTXJGU

    View full-size slide

  12. 4XJGUଆͷ"1*ఆٛ

    View full-size slide

  13. جຊࢥ૝
    w "1*ϦΫΤετͱͦͷϨεϙϯε͸3Y4XJGUͷ
    0CTFSWBCMFͰந৅Խͯ͠ѻ͏
    w Ωϟετͱ͔Ξϯϥοϓͱ͔ɺͳΔ΂ͨ͘͘͠ͳ
    ͍
    w ܕਪ࿦͍ͨ͠
    w ؔ࿈ܕ BTTPDJBUFEUZQF
    Λ࢖͏ͨΊʹɺΤϯ
    υϙΠϯτͭͷܕͱͯ͠ఆٛͨ͠

    View full-size slide

  14. "1*ར༻ଆ͕౉͢ඞཁͷ͋ΔύϥϝʔλΛ౉ͯ͠Ϧ
    ΫΤετʹؔ͢ΔσʔλΛΠϯελϯεԽ͢Δ

    View full-size slide

  15. 4JOHMF3FTQPOTF5IFNF&OUJUZ
    5IFNF&OUJUZ͕ݸฦͬͯ͘Δ͜ͱΛࣔ͢ɻଞʹ
    "SSBZ3FTQPOTF)PHF&OUJUZɺ
    /P$POUFOU3FTQPOTFͳͲ͕͋Δɻ

    View full-size slide

  16. ݺͼग़͠ଆ͸͜Μͳײ͡
    w $MJQ5IFNF3FTQPOTF ͭ·Γ
    4JOHMF3FTQPOTF5IFNF&OUJUZ
    Ͱܕਪ࿦͞Εͯ
    ετϦʔϜͷܕ͕0CTFSWBCMF5IFNF&OUJUZʹ
    ܾ·Δ
    w 4JOHMF3FTQPOTF5IFNF&OUJUZJOJU KTPO
    ͕
    KTPOEJDUJPOBSZΛ5IFNF&OUJUZʹϚοϓͯ͠Πϯ
    ελϯεԽ

    View full-size slide

  17. ௨৴࣌ʹΫϥογϡ͠͏Δͷ͸͚ͩ͜͜

    View full-size slide