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

エッジコンピューティングに向けた分散キャッシュ技術の調査 / edge caching survey

エッジコンピューティングに向けた分散キャッシュ技術の調査 / edge caching survey

Yuuki Tsubouchi (yuuk1)

April 13, 2019
Tweet

More Decks by Yuuki Tsubouchi (yuuk1)

Other Decks in Research

Transcript

  1. ͘͞ΒΠϯλʔωοτ גࣜձࣾ (C) Copyright 1996-2019 SAKURA Internet Inc ͘͞ΒΠϯλʔωοτ ݚڀॴ

    ΤοδίϯϐϡʔςΟϯάʹ޲͚ͨ ෼ࢄΩϟογϡٕज़ͷௐࠪ 2019/04/13 ݚڀһ ௶಺ ༎थ ୈ4ճWebSystemArchitectureݚڀձ@ژ౎ @yuuk1t / id:y_uuki
  2. 4 WebαʔϏεͷϢʔβʔͷମݧͷ޲্ ɾԠ౴଎౓ͷվળʹΑΓɼϢʔβʔͷମݧ͕޲্͢Δ ɾ40%Ҏ্ͷWebαʔϏεͷϢʔβʔ͸ϖʔδͷಡΈࠐΈΛ3ඵҎ্଴ ͯͳ͍ͱ͍͏ௐࠪ݁Ռ͕͋Δ[2] ɾಡΈࠐΈ஗ԆͷཁҼ ɾ(1) Ϋϥ΢υͷσʔληϯλʔ಺Ͱͷॲཧ஗Ԇ ɾ(2) ΤϯυϢʔβʔͱσʔληϯλʔؒͷωοτϫʔΫసૹ஗Ԇ

    ɾ(3) ϒϥ΢β্Ͱͷίϯςϯπදࣔ஗Ԇ ɾ(2)ͷ஗ԆΛ௿ݮ͢Δʹ͸ΤϯυϢʔβʔͷۙ๣Ͱॲཧ͢Δඞཁ͕͋Δ [2]: Forrester Consulting, "eCommerce Web Site Performance Today: An Updated Look At Consumer Reaction To A Poor Online Shopping Experience", 2019.
  3. App Node 14 ૊ΈࠐΈܕͷ෼ࢄΩϟογϡ(Groupcache) ɾෳ਺ͷϊʔυ͕ڠௐͯ͠ҰͭͷΩϟογϡۭؒ Λ࡞੒Մೳ ɾσʔλΛੵۃతʹڞ༗͠ͳ͍ ɾϐΞϊʔυ͸ίϯγεςϯτϋογϡ๏ʹΑΓ બ୒͞ΕΔ ɾϩʔΧϧͰͷΩϟογϡϛε࣌ʹ͢΂ͯͷϐ

    ΞʹϑΥʔϧόοΫ͠ͳͯ͘Α͍ ɾߋ৽ͱ࡟আΛαϙʔτ͓ͯ͠ΒͣɼLRUʹΑΓ Ωϟογϡ͕ഁغ͞Εͳ͍͔͗Γɼීวͷσʔ λΛ֨ೲ͢Δ Cache App Node Cache App Node Cache ᶃ ϩʔΧϧΩϟογϡऔಘ ᶅϩʔΧϧ Ωϟογϡ ʹ֬཰తʹ ॻ͖ࠐΈ ᶄϐΞϊʔυ΁ϑΥʔϧόοΫ ᶄ ᶃ
  4. 20 ϓϩΩγܕΫΤϦΩϟογϡ: DBProxy ɾΤοδ্ʹ഑ஔ͞Ε֤ͨΞϓϦέʔγϣϯαʔό͕தԝͷσʔλ ϕʔεαʔόʹର͢ΔΫΤϦ݁ՌΛΩϟογϡ ɾΫΤϦ݁Ռ͕ଞͷΫΤϦʹΑΓΩϟογϡ͞ΕͨσʔλʹΑΔߏங Ͱ͖ΔͷͰ͋Ε͹ɼະΩϟογϡͷΫΤϦͷ݁ՌΛฦ͢ App Node DB

    Proxy App Node DB Proxy DB Server ɾߋ৽Λߪಡ͠ετϦʔϜͰҰ؏ੑΛอূ ɾதԝूݖతʹҰ؏ੑΛ؅ཧ͢Δ͜ͱʹΑ Γɼ֤Ωϟογϡ͸தԝσʔλϕʔεʹର͠ ͯίώʔϨϯτ ɾΫΤϦΩϟογϡΛར༻͢Δෳ਺ͷεςʔ τϝϯτΛؚΉτϥϯβΫγϣϯʹ͸ରԠͰ ͖ͳ͍ Subscribe Update
  5. 24 ·ͱΊ ɾWebαʔϏεͷϢʔβʔମݧ޲্ͷͨΊʹΤϯυϢʔβʔͷۙ๣Ͱ ཁٻΛॲཧ͍ͨ͠ ɾCDNɼCDN Edge Worker͸ΤοδؒͰσʔλΛڞ༗͢Δͱ͖ʹҰ ؏ੑͷ՝୊Λ΋ͭ ɾಡΈग़͠ੑೳ޲্ͷͨΊͷ෼ࢄΩϟογϡٕज़Λௐࠪ ɾΩϟογϡΛڞ༗ͤͣɼίϯγεςϯτϋογϡ๏΍Groupcacheͷ

    ڠௐΩϟογϯάɼ෼ࢄϋογϡςʔϒϧΛར༻͢Δ͜ͱ͕͋Δ ɾΤοδίϯϐϡʔςΟϯάʹ͓͍ͯ΋ɼ͢΂ͯͷΤοδͰΩϟο γϡΛڞ༗ͤͣʹɼΩϟογϡ͕ঃʑʹඞཁͱ͞ΕΔ৔ॴʹҠಈ͢ ΔΑ͏ͳ࢓૊ΈΛߟ͑ΒΕͳ͍͔