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

Aerospike を導入してみた話 / Consideration about Aerospike

mats
June 24, 2015

Aerospike を導入してみた話 / Consideration about Aerospike

Aerospike Deep Diveで使用した資料です。

mats

June 24, 2015
Tweet

More Decks by mats

Other Decks in Technology

Transcript

  1. IDSyncαʔϏε ELB API Aerospike γεςϜ • ϑϩϯτ͸ ELB + Nginx

    + uWSGI • όοΫΤϯυʹAerospikeΛ࠾༻ • ฏۉԠ౴଎౓͸1ms • ϐʔΫ࣌Ͱ1000req/sఔ౓ 
  2. IDSyncαʔϏε • ओΩʔ͕ࣗࣾIDɺଞࣾIDͦΕͧΕ ͷςʔϒϧΛੜ੒ ELB API {Aࣾ: hoge} "ࣾ *.

    IPHF  QJZP  *. "ࣾ  IPHF  QJZP Aerospike Set: A_to_IM Set: IM_to_A ※ Set: RDBMSͷςʔϒϧʹ͋ͨΔ 
  3. ଐੑσʔλͷՃ޻ ༷ʑͳଐੑ৘ใΛݸผͷSetͰอ࣋ ͦΕͧΕಠཱͯ͠ߋ৽Λߦ͏͜ͱ͕Մೳ *% ηάϝϯτ     

      *% ΞΫηεݩ*1     *% ϢʔβʔΤʔδΣϯτ  .BD4BGBSJ  8JO$ISPNF *1 ౎ಓ෎ݝ  ౦ژ౎  ๺ւಓ *1 اۀ  *.   *% Ωʔϫʔυ  ԭೄཱྀߦ  Ҿͬӽ͠ Set: segment Set: ua Set: keywords Set: ip Set: address Set: company 
  4. ଐੑσʔλͷՃ޻ δϣΠϯͯ͠ݕࡧΤϯδϯʹ౤ೖͯ͠׆༻ *% ηάϝϯτ ϢʔβʔΤʔδΣϯτ Ωʔϫʔυ ౎ಓ෎ݝ اۀ  

     .BD4BGBSJ ԭೄཱྀߦ ౦ژ౎ *.     8JO$ISPNF Ҿͬӽ͠ ๺ւಓ   Join Server
  5. ·ͱΊʢ͜Ε͔Β࢝ΊΔํ΁ʣ • ຊ౰ʹAerospike͕ඞཁͳέʔε͸͋·Γଟ͘ͳͦ͞͏ɻ ʻϚονͦ͠͏ͳέʔεʼ • σʔλྔͷݟੵ͕೉͍͠৔߹ʢࣄۀͷεέʔϧͳͲʣ • ࣌ؒ͋ͨΓͷϦΫΤετ਺͕๲େͳ৔߹ • Javascriptܦ༝Ͱෆಛఆଟ਺͔ΒAPIΛίʔϧ͞ΕΔ

    • όονॲཧͳͲͰॠؒతʹෛՙΛ͔͚Δʢԯ݅୯ҐͷδϣΠϯʣ • αʔόɺΫϥΠΞϯτڞʹඞཁͱ͞ΕΔϦιʔεͷݟੵ͕೉͍͠ ͷͰɺΫϥ΢υ؀ڥͰࢼͯ͠ΈΔ͜ͱΛΦεεϝ͠·͢ɻ • QueryΛϝΠϯʹαʔϏεΛઃܭͯ͠͸͍͚ͳ͍ɻ