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

月間数千億リクエストをさばく技術 (ArchitectureNight公開用)

Kurochan
June 22, 2018

月間数千億リクエストをさばく技術 (ArchitectureNight公開用)

Kurochan

June 22, 2018
Tweet

More Decks by Kurochan

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ w ࠇ࡚༏ଠ !LVSP@N  w גࣜձࣾαΠόʔΤʔδΣϯτ
 ΞυςΫຊ෦%ZOBMZTUόοΫΤϯυΤϯδχΞ w ೥৽ଔೖࣾ

    w ೖࣾҎདྷ%ZOBMZTUͷೖࡳ ഑৴ ܭଌ ूܭ෦෼ͷ։ൃ ΠϯϑϥΛ୲౰ w ˞ࡱӨ࿥Ի౤ߘېࢭͷϖʔδʹ͸ࠨ্ʹˣͷΞΠίϯΛೖΕͯ͋Γ·͢
  2. 35#ͷ͘͠Έ w ͜ΕΛߴ଎ʹ܁Γฦ͢ 441 %41T "% "% "% ԁ ԁ

    ԁ "% XJO "% औҾ͸NTҎ಺ʹ׬ྃ͠ͳ͚Ε͹ͳΒͳ͍
  3. w "MM"84 w ओཁར༻ίϯϙʔωϯτ %ZOBMZTUͷΞʔΩςΫνϟ Amazon EC2 Amazon ECR Amazon

    ECS AWS Lambda Elastic Load Balancing Amazon S3 Amazon RDS Amazon DynamoDB Amazon ElastiCache Amazon Redshift Amazon CloudFront Amazon Route 53 AWS Direct Connect Amazon VPC Amazon CloudWatch AWS OpsWorks AWS Trusted Advisor IAM AWS Certificate Manager Amazon Athena Amazon EMR Amazon Kinesis AWS Data Pipeline Amazon SQS Amazon SNS Amazon SES Amazon WorkMail
  4. %ZOBMZTUͷΞʔΩςΫνϟ ུ֓ BQOPSUIFBTU VTFBTU ೖࡳ഑৴ܥ ೖࡳ഑৴ܥ ܭଌܥ DBDIFDMVTUFS ूܭܥ DSPTTSFHJPOSFQMJDBUJPO

    DSPTTSFHJPOSFQMJDBUJPO DSPTTSFHJPOSFQMJDBUJPO ؅ཧը໘ DBDIFDMVTUFS όονܥ όονܥ
  5. w DYMBSHF $( Y໿୆ ϐʔΫ 64 +1  w DΠϯελϯε˕

    େྔͷτϥϑΟοΫΛड͚ΔͨΊʹ DBDIF 3%# TMBWF DBDIF 3%# TMBWF BQOPSUIFBTUB BQOPSUIFBTUD ,74 3%# NBTUFS BQOPSUIFBTU
  6. 4DBMBͱ͍͏બ୒ w 4DBMBΛબ୒ͨ͠ཧ༝ w νϟϨϯδ ࠓͱͳͬͯ͸ී௨ʁ  w Մಡੑɺϝϯςφϯεੑ͕ߴ͍ w

    ϋΠύϑΥʔϚϯε w +BWBͷࢿ࢈͕࢖͑Δ w ΞυςΫελδΦ͸4DBMBͷ஌ݟͷմ X
  7. Ϣʔβσʔλͷѻ͍ w ޿ࠂ༻୺຤*% *%'" "EWFSUJTJOH*% ͱϢʔβσʔλͷ૊Έ߹Θͤ w ྫ࠷ޙʹϩάΠϯͨ͠೔࣌ˠະϩάΠϯظ͕ؒΘ͔Δ w ޿ࠂೖࡳ࣌ʹେྔʹSFBE͕͞ΕΔͷͰਫฏεέʔϧͯ͠ཉ͍͠

    w Ϩίʔυ਺਺ඦԯϨίʔυ w αϯϓϧςʔϒϧ ௒؆ུԽ %&7*$&@*% "%7&35*4&3@*% %&7*$&@5:1& -"45@-0(*/@"5 015065@"5 ʜʜ %&7*$&@  "OESPJE  ʜʜ %&7*$&@  "OESPJE  ʜʜ %&7*$&@  J04  ʜʜ %&7*$&@  "OESPJE  ʜʜ
  8. Ϣʔβσʔλͷѻ͍ w ,74ͱͯ͠%ZOBNP%#Λ࠾༻ w )BTI,FZͱ3BOHF,FZΛ૊Έ߹ΘͤΔ w )BTI,FZͰҾ͚͹3BOHF,FZͰιʔτ͞Εͨෳ਺Ϩίʔυ͕ฦΔ %&7*$&@*% "%7&35*4&3@*% %&7*$&@5:1&

    -"45@-0(*/@"5 015065@"5 ʜʜ %&7*$&@  "OESPJE  ʜʜ %&7*$&@  "OESPJE  ʜʜ %&7*$&@  J04  ʜʜ %&7*$&@  "OESPJE  ʜʜ )BTI,FZ 3BOHF,FZ
  9. ϗοτύʔςΟγϣϯ໰୊ w ,74ͷ໋॓ w ಛఆͷύʔςΟγϣϯʹ3FBE8SJUF͕ภΔͱੑೳ͕ग़ͳ͍ w ϗοτσʔλͱίʔϧυσʔλΛࠞͥͳ͍ w ৽͍͠σʔλΞΫηε͞Ε΍͍͢ ݹ͍σʔλΞΫηε͞Εʹ͍͘

    w ରࡦ w σʔλ͕ొ࿥͞Εͨ࣌ظ͝ͱʹςʔϒϧΛ෼͚Δ w ҰఆظؒΞΫηε͞Εͳ͍σʔλ͸࡟আ͢Δ OPEF OPEF OPEF ৽͍͠σʔλ ݹ͍σʔλ ଟ͍ গͳ͍ ී௨ ΞΫηεྔ
  10. %ZOBNP%#ͷΩϟογϡ w Ωϟογϡͷಋೖ w ϨΠςϯγͷ࡟ݮ w %ZOBNP%#3FBE$BQBDJUZͷ࡟ݮ w ϗοτύʔςΟγϣϯ໰୊ͷ؇࿨ w

    &MBTUJ$BDIF NFNDBDIFE Λ࠾༻ w γϯϓϧɾߴ଎ w ϚϧνεϨουͰಈ͘ w SܥΠϯελϯε͸ωοτϫʔΫଳҬ͕(CQT·ͰόʔετՄೳ w IUUQTEFWDMBTTNFUIPEKQDMPVEBXTFDSOFUXPSLJOH %ZOBNP%# NFNDBDIFE BQQ  
  11. w ϦΫΤετΛड͚͚ͨͩͰ͸μϝɺूܭ͕ඞཁ w ϩάͷྔ5#EBZ w "QBDIF4QBSLPO"NB[PO&.3 w ΫϥελίϯϐϡʔςΟϯάϑϨʔϜϫʔΫ w ෼ࢄڞ༗ϝϞϦϞσϧ

    w ϊʔυΛ૿΍͢͜ͱͰεέʔϧ͢Δ w 4QBSL.-JCͱ͍͏ػցֶशϥΠϒϥϦ΋ &.3$MVTUFS .BTUFS 4MBWF 4MBWF 4MBWF 4MBWF ϩάूܭ
  12. ͳͥ৴པੑ͕ٻΊΒΕΔͷ͔ w ҰൠతͳαʔϏε ϝσΟΞ ήʔϜ  w αʔϏεఏڙ͕Ͱ͖ͳ͍ˠϢʔβͷ཭୤ ऩӹ௿Լ w

    ޿ࠂ഑৴αʔϏε w ޿ࠂ͕഑৴Ͱ͖ͳ͍ˠػձଛࣦ ޿ࠂओͷ཭୤ ऩӹ௿Լ w ޿ࠂ͕഑৴͞Εͳͯ͘΋Ϣʔβʹରͯ͠͸Өڹ͕ͳ͍ %ZOBMZTU Ϣʔβ ޿ࠂओ ൃ஫ ഑৴
  13. ϦΫΤετ͕٧·ͬͯ͠·ͬͨ࣌ w Ұ࣌తʹϨεϙϯε͕٧·Δͱʜ w αʔόʹϦΫΤετ͕ཷ·Δ w ಉ࣌ॲཧϦΫΤετ਺͕രൃ͢Δ w εϨουϓʔϧΛա৒ʹ࢖͏ w

    Ϩεϙϯε଎౓ͷେ෯ѱԽ w ॲཧΛ࢝Ί͔ͯΒҰఆ࣌ؒܦաͨ͠ॲཧΛதஅͯ͠ೖࡳ͠ͳ͍ w ೖࡳ͠ͳ͍)551 /P$POUFOU Λฦ͢ w 4DBMBͳΒͦ͏͍͏ॲཧ΋ॻ͖΍͍͢ʂ
  14. ࠓޙ΍͍͖͍ͬͯͨ͜ͱ w 4DIFEVMFE4DBMJOH"VUP4DBMJOH w "LLB)551 w "LLB4USFBNΛར༻ͨ͠ॲཧ #BDL1SFTTVSFͱ͔  w

    Ωϟογϡ %#૚ͷ"VUP4DBMJOH w ϏϧυϦϦʔεͷߴ଎Խ w &&ςετͷಋೖ w ͳͲͳͲʜ