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

インフラエンジニアが触るJavaScriptのはなし

Kohei Ota
August 21, 2018

 インフラエンジニアが触るJavaScriptのはなし

Kohei Ota

August 21, 2018
Tweet

More Decks by Kohei Ota

Other Decks in Technology

Transcript

  1. Who am I? • inductor(@_inductor_) • Cloud(AWS)/DevOps Engineer
 @ Start

    Today Technologies, Inc. • Admin @ Πϯϑϥษڧձ • DevOps / Containeriation / CI/CD Pipelines
  2. ͕͜͜Πέͯͳ͍Αʂ ࠓ·ͰͷCloudFront • ͱʹ͔͘ࡉ͔͍ઃఆ͕΍Γʹ͍͘ʂ • ҰൠతͳWebαʔόʔʹ͋Δઃఆ߲໨͕ͳ͍(Firebaseͱൺ΂ͯ΋ऑ͍) • ΩϟογϡɾHTTPϨεϙϯεϔομͷࡉ͔ͳઃఆͱ͔ • (WAFແ͠ͷ)IPΞυϨε੍ݶɺUser-AgentΛ࢖ͬͨৼΓ෼͚ͳͲ͕Ͱ͖ͳ͍

    • Botͱ͔ɺͩ͘Βͳ͍ϦΫΤετΛϦʔνͤͨ͘͞ͳ͍ • SPAΛαʔόʔϨεʹ࡞Γ͍ͨͱ͖ʹΫϩʔϥʔͱͷ૬ੑ͕ѱ͍ • SSRΛೖΕΔ͜ͱ΋ݕ౼த(Ͱ΋Ҡߦ͢Δίετͱεέδϡʔϧ͕ɾɾɾ)
  3. Lambda@Edgeͷ ͍͍ͱ͜ΖɺΫιͳͱ͜Ζ • ͍͍ͱ͜Ζ • ϧʔςΟϯάָ͕ʹ࣮ݱͰ͖Δ • ͍ΘΏΔҰൠతͳURIͷύλʔϯϚονͳॻ͖ํͰͰ͖ΔͷͰָ • ΫϥΠΞϯτͷΤοδϩέʔγϣϯͰ࣮ߦ͞ΕΔͷͰ݁ߏ଎͍

    • Ϋιͳͱ͜Ζ • Lamdaͷϩά͕Τοδϩέʔγϣϯ͝ͱʹ֤ϦʔδϣϯʹࢄΒ͹ͬͯ͠·͏ • όʔδϣϯΞοϓͷ௥ै͕ී௨ͷLambdaΑΓগ͠஗͍͔΋ʁ • ͦ΋ͦ΋JavaScriptཧղͯ͠ΔΠϯϑϥΤϯδχΞͲΕ͚͍ͩΔͷ