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

技術的負債にどう挑むか? / SMS Tech Casual Talks 2017.04

技術的負債にどう挑むか? / SMS Tech Casual Talks 2017.04

『SMS Tech Casual Talks 2017.04』で講演した『技術的負債にどう挑むか?』

changeworld

April 18, 2017
Tweet

More Decks by changeworld

Other Decks in Technology

Transcript

  1. © 2017 Takashi Takebayashi The first publication of a writing

    اը: தଜ͞Μ ෺ޠpart: ۲ా͞Μ, ੴਆ͞Μ, ஛ྛ ٕज़part: ُ઒͞Μ, ਗ਼ਫ͞Μ
  2. © 2017 Takashi Takebayashi ࣮ફ1: ୤NFS Step2 Architecture উͬͨο!ୈ3෦׬! sxnaxtਆʮʯ->

    http://checkmate-blog.com/wp-content/uploads/2016/11/a00567-1.jpg
  3. © 2017 Takashi Takebayashi ࣗ෼ͷίϯτϩʔϧʹ͋Δ৔߹͸ɺ௚͢ʂ Өڹ͕͋ͬͯखʹෛ͑ͳ͍৔߹͸ɺڞ௨ͷ໨ඪʹ͢Δ ࣗ෼ͷίϯτϩʔϧ֎ʹ͋Δ৔߹͸ɺӨڹΛ఻͑Δ ୤NFS͸ґཔ͞ΕͨͷͰࣗ෼ͷίϯτϩʔϧʹ͋ΔͱࢥͬͨͷͰ௚͠ʹ औΓֻ͔ͬͨ(͕ɺ) ৭ʑ՝୊Λࢦఠ͞Εɺ೔ʑແࣄࢮ๢ͭͭ͠΋ɺલਐ͍ͯͨ͠(͕ɺ)

    AWSͷRedis(Amazon ElastiCache)ͷར༻ඞਢʹํ਑స׵͕͋ͬͨ(ͨΊɺ) ݱࡏ͸ࣗ෼ͷίϯτϩʔϧ֎(←Amazon ElastiCacheʹ͸AWS͔Β͔͠ΞΫη εͰ͖ͳ੍͍ݶ͕͋ΔͨΊ) ࣮ફ1: ୤NFS Step2 ແࣄࢮ๢ େࣄͳ͜ͱͳͷͰ(ry ແࣄࢮ๢
  4. © 2017 Takashi Takebayashi ঱ঢ়Λݟ͚ͭΔ Sticky Session͕ઃఆ͞Ε͓ͯΓɺ͏·͘ෛՙ͕෼ࢄ͞Εͳ͍՝୊༗ “ͳͥͦΕ͕ىͬͨ͜ͷ͔ʁ”ɺ“ͳʹ͕ݪҼ͔ʁ”Λࣗ໰͢Δɻ ࠜຊݪҼʹͨͲΓͭ͘·Ͱ“ͳͥʁ”Λ܁Γฦ͢ ηογϣϯͷγϦΞϥΠζԽΛ஌Βͳ͔͔ͬͨΒ?

    αʔό͕JBoss, GlassFishͰ޷·͍͠γϦΞϥΠζԽ͕Ͱ͖ͳ͔͔ͬͨΒ? [֬ఆ]ϦϦʔε࣌ʹJBossͩͱΤϥʔʹͳͬͨͷͰɺٸᬎBP͸GlassFishʹͨ͠ ͔Β? ͦͷޙɺΤϥʔͷݪҼಛఆΛ͠ͳ͔͔ͬͨΒ? ࣮ફ2: ୤Sticky Session Step1
  5. © 2017 Takashi Takebayashi ࣗ෼ͷίϯτϩʔϧʹ͋Δ৔߹͸ɺ௚͢ʂ Өڹ͕͋ͬͯखʹෛ͑ͳ͍৔߹͸ɺڞ௨ͷ໨ඪʹ͢Δ ࣗ෼ͷίϯτϩʔϧ֎ʹ͋Δ৔߹͸ɺӨڹΛ఻͑Δ ୤Sticky Session͸ґཔ͞ΕͨͷͰࣗ෼ͷίϯτϩʔϧʹ͋ΔͱࢥͬͨͷͰ௚͠ʹऔΓֻ͔ͬͨ JBoss,

    GlassFishͰ͸୤Sticky Session͸ௐࠪͷ݁Ռɺඇৗʹ೉͍͠ -> Tomcatʹมߋͯ͠ྑ͍ͱڐՄ΋Β͍ɺଓߦ Tomcatʹม͑ͯ΋γϦΞϥΠζԽͰΤϥʔɺҎԼௐࠪͯ͠΋Βͬͨ݁Ռ Hibernate, Log4Jͷόά(॥؀ࢀর) HibernateΛόάղফ൛·ͰόʔδϣϯΞοϓͯ͠΋Log4JͷͨΊʹղফ͕೉͍͠(Өڹൣғଟ͖ա͗Δ) γϦΞϥΠζ௨Βͳ͘ͳΔͷΛ։ൃ͠ͳ͕Βݕ஌Ͱ͖ΔΑ͏ͳঢ়ଶʹͳ͍ͱɺͭ·Γ࠷ॳظͷϛ χϚϜ͔࣌Βηογϣϯ֎෦Խ͞Εͯͳ͍ͱ͜Ε͸ͳ͔ͳ͔࣮ݱ೉͍͠ͷͰ͸ͳ͍͔ ͜ΕΛ࣮ݱ͠Α͏ͱࢥͬͨΒΞʔΩςΫνϟ৽͘͢͠ΔͳΓͯ͠ɺSpringSession ͱ͔Λ࢖͍ͬͯ͘ͷ ͕Α͍ͷͰ͸ͳ͍͔ ݱࡏ͸ࣗ෼ͷίϯτϩʔϧ֎(←ΞʔΩςΫνϟ࡮৽ͰӨڹൣғେ͖ա͗Δ) ࣮ફ2: ୤Sticky Session Step2
  6. © 2017 Takashi Takebayashi ࣗ෼ͷίϯτϩʔϧʹ͋Δ৔߹͸ɺ௚͢ʂ Өڹ͕͋ͬͯखʹෛ͑ͳ͍৔߹͸ɺڞ௨ͷ໨ඪʹ͢Δ ࣗ෼ͷίϯτϩʔϧ֎ʹ͋Δ৔߹͸ɺӨڹΛ఻͑Δ ୤NFS͸ґཔ͞ΕͨͷͰࣗ෼ͷίϯτϩʔϧʹ͋ΔͱࢥͬͨͷͰ௚͠ʹ औΓֻ͔ͬͨ(͕ɺ) ৭ʑ՝୊Λࢦఠ͞Εɺ೔ʑແࣄࢮ๢ͭͭ͠΋ɺલਐ͍ͯͨ͠(͕ɺ)

    AWSͷRedis(Amazon ElastiCache)ͷར༻ඞਢʹํ਑స׵͕͋ͬͨ(ͨΊɺ) ݱࡏ͸ࣗ෼ͷίϯτϩʔϧ֎(←Amazon ElastiCacheʹ͸AWS͔Β͔͠ΞΫη εͰ͖ͳ੍͍ݶ͕͋ΔͨΊ) ࣮ફ2: ୤Sticky Session Step2 ແࣄࢮ๢ େࣄͳ͜ͱͳͷͰ(ry ແࣄࢮ๢
  7. © 2017 Takashi Takebayashi ࣗ෼ͷίϯτϩʔϧʹ͋Δ৔߹͸ɺ௚͢ʂ Өڹ͕͋ͬͯखʹෛ͑ͳ͍৔߹͸ɺڞ௨ͷ໨ඪʹ͢Δ ࣗ෼ͷίϯτϩʔϧ֎ʹ͋Δ৔߹͸ɺӨڹΛ఻͑Δ ୤NFS͸ґཔ͞ΕͨͷͰࣗ෼ͷίϯτϩʔϧʹ͋ΔͱࢥͬͨͷͰ௚͠ʹ औΓֻ͔ͬͨ(͕ɺ) ৭ʑ՝୊Λࢦఠ͞Εɺ೔ʑແࣄࢮ๢ͭͭ͠΋ɺલਐ͍ͯͨ͠(͕ɺ)

    AWSͷRedis(Amazon ElastiCache)ͷར༻ඞਢʹํ਑స׵͕͋ͬͨ(ͨΊɺ) ݱࡏ͸ࣗ෼ͷίϯτϩʔϧ֎(←Amazon ElastiCacheʹ͸AWS͔Β͔͠ΞΫη εͰ͖ͳ੍͍ݶ͕͋ΔͨΊ) ݁࿦ʂʂ લआΓɺμϝઈରʂ େࣄͳ͜ͱͳͷͰ(ry લआΓɺμϝઈରʂ