Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
About AWS Lambda and kintone
Search
youyo
October 04, 2017
Technology
1
240
About AWS Lambda and kintone
youyo
October 04, 2017
Tweet
Share
More Decks by youyo
See All by youyo
家の快適度を計測してみた
youyo
1
180
Get started AWS CDK
youyo
0
93
Tried to create a deployment pipeline of AutoML Vision.
youyo
0
60
API GatewayのWebSocket対応について
youyo
0
720
GCRと脆弱性検査
youyo
0
180
goodbye-ec2
youyo
0
590
それでも僕はzabbixと生きていく
youyo
1
460
TerraformとWerckerとAWS Organizationsで始めるステージング・開発環境構築 / terraform-wercker-aws-organizations
youyo
1
34k
ServerlessのおさらいとIronFunctionsについて
youyo
0
430
Other Decks in Technology
See All in Technology
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
19
18k
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
230
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
KubeCon NA 2024 Recap / Running WebAssembly (Wasm) Workloads Side-by-Side with Container Workloads
z63d
1
250
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.5k
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
コンテナセキュリティのためのLandlock入門
nullpo_head
2
320
DevFest 2024 Incheon / Songdo - Compose UI 조합 심화
wisemuji
0
120
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
kargoの魅力について伝える
magisystem0408
0
210
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
590
Featured
See All Featured
Making Projects Easy
brettharned
116
5.9k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Unsuck your backbone
ammeep
669
57k
Navigating Team Friction
lara
183
15k
Transcript
AWS Lambdaͱ kintoneʹ͍ͭͯ
ࣗݾհ • ੴᖒਓ(Naoto Ishizawa) • twitter: @youyo_ • Cloud Architect
• I love golang, python, ruby
ձࣾ֓ཁ ໊ࣾ גࣜձࣾϔϓλΰϯ IFQUBHPOJOD ද ཱՖ ڌ ੨ݝࡾࢢɺٶݝઋࢢ ۀ ݄̓
ࣄۀ Ϋϥυಋೖʹؔ͢ΔίϯαϧςΟϯά Ϋϥυͷߏஙอकӡ༻ ΫϥυͷΤϯδχΞ͚ڭҭ ࢿ֨ "1/ίϯαϧςΟϯάύʔτφʔ Ұൠୈೋछిؾ௨৴ࣄۀऀ ౦ຊࣾͰ།Ұͷ AWSίϯαϧςΟϯάύʔτφʔ
Πϯϑϥߏங/Ҡઃ ͓٬༷ʹ߹ΘͤͯΦʔμʔϝΠυͰAWSڥΛ͝༻ҙ͠·͢ɻ ίϯςϯπΛΞοϓϩʔυ͢Δ͚ͩͰαʔϏεΛ։࢝Ͱ͖·͢ɻ ઃܭ ߏங ༧ࢉ ೲظ ηΩϡϦςΟ Ҡઃ ੑ
νϡʔχ ϯά
ӡ༻ϑϧϚωʔδυ ͓٬༷ ίϯςϯπ੍࡞αʔϏεͷӡ༻͚ͩʹ ͝ྗ͍ͩ͘͞ɻ ࢹ ো ରԠ ࢧ εέʔϧ Ξοϓ
ηΩϡϦςΟ όοΫ Ξοϓ αϙʔτ ࡞ۀߦ
AWSΛҙࣝͤͣʹ AWSͷϝϦοτΛʂ
౦Ͱͷ͓٬༷
౦Ͱͷ͓٬༷ Λ͑Δ ౦ͷαʔϏεɺϓϩδΣΫτΛ Ϋϥυ্ͰՔಇ
࠷ۙͰAIIoTͷ ϓϩδΣΫτ૿͖͍͑ͯͯ·͢
https://www.youtube.com/watch?v=M_ErTEE9ZcM
None
AWS Lambda
AWS Lambdaͷ֓ཁ “AWS Lambda αʔόʔΛϓϩϏδϣχϯάͨ͠ Γཧ͠ͳͯ͘ίʔυΛ࣮ߦͰ͖ΔίϯϐϡʔςΟ ϯάαʔϏεͰ͢ɻAWS Lambda …” http://docs.aws.amazon.com/ja_jp/lambda/latest/dg/welcome.html
AWS Lambdaͷ֓ཁ ͬ͘͟Γݴ͏ͱɺ ϑΝϯΫγϣϯ(ίʔυ)ΛΞοϓϩʔυ͠ɺԿΒ͔ ͷΠϕϯτ(τϦΨʔ)ʹԠͯͦ͠ͷϑΝϯΫγϣ ϯΛ࣮ߦͯ͘͠ΕΔΈɻ Πϕϯτ Fn ϑΝϯΫγϣϯ
Կ͕خ͍͠ͷ͔ʁ
AWS Lambdaͷ֓ཁ • αʔόʔΛཧ͢Δඞཁ͕ͳ͍ • ༻ྉۚϑΝϯΫγϣϯ(ίʔυ)ͷ࣮ߦʹ͔ ͔͚ͬͨ࣌ؒͩ • AWSͷ֤छαʔϏεͱ࿈ܞͰ͖Δ
࠷ߴ͡Όͳ͍͔ʂ
શ෦͜ΕͰ࡞Ε͍͍ ͡Όͳ͍͔ʂʂ
ݱ࣮͘ͳ͍
దࡐదॴ
ϚΠΫϩαʔϏε αʔόʔϨε
monolithic architecture vs micro services • ϞϊϦγοΫͳΞϓϦέʔγϣϯ • ୯ҰͷΞϓϦʹෳͷػೳΛ࣋ͭγεςϜ •
Α͋͘ΔWEBΞϓϦ w 3&45"1* w ೝূػೳ w Ϣʔβʔཧ w ʜ
monolithic architecture vs micro services • ϚΠΫϩαʔϏε • ୯ҰͷػೳΛͦΕͧΕখ͞ͳαʔϏεͱͯ͠ Γग़͠ɺͦΕͧΕͷখ͞ͳαʔϏεΛ࿈ܞͤ͞
ͯҰͭͷγεςϜΛߏ͢Δ w 3&45"1* w ೝূػೳ w Ϣʔβʔཧ w 1SPYZ
monolithic architecture vs micro services .POPMJUI .JDSPTFSWJDFT εέʔϥϏϦςΟ ͯ͢ͷػೳ͕εέʔϥϒϧͳઃ ܭͰ͋Δඞཁ͕͋Δ
ػೳ αʔϏε ୯ҐͰεέʔϥ ϒϧͰ͋Εྑ͍ ։ൃ ̍ػೳͷվम͕ଞػೳʹӨڹΛ༩ ͑ΔՄೳੑ͕͋Δ ͯ͢ͷػೳΛಉҰͷٕज़ελο ΫͰ։ൃ͢Δඞཁ͕͋Δ ػೳ αʔϏε ୯ҐͰ։ൃΛਐ ΊΔ͜ͱ͕Ͱ͖Δ ػೳ͝ͱʹҟͳΔٕज़ελοΫ ͷ࠾༻Մೳ ӡ༻ τϥϒϧ࣌ɺ̍ΞϓϦͰ݁͠ ͍ͯΔͷͰ༰қ τϥϒϧ࣌ɺෳαʔϏε͕࿈ ܞ͍ͯ͠ΔͷͰ͕ࠔͳ ߹͋Δ
αʔόʔϨε
Serverless Architecture • ϚΠΫϩαʔϏεͷͻͱͭ • Faas(Function as a service) •
ؔΛϑϧϚωʔδυͯ͘͠ΕΔ • AWS Lambda • Google cloud functions • Azure Functions • Functional Saas • ϑϧϚωʔδυαʔϏεͰɺ ؔΛݺͼग़͢Α͏ʹར༻Ͱ͖ΔSaas • Amazon Cognito • Auth0 • Firebase Micro Services Monolithic Architecture Serverless Architecture Another Saas, Paas… Faas FSaas
AWS Lambdaৄࡉ • Function as a service • ίʔυΛΞοϓϩʔυ͢Δ͚ͩͰར༻Մೳ •
S3CloudWatchEventsͳͲଞͷαʔϏεͱ࿈ܞ • ݴޠ: nodejs, python, java, C# • ैྔ՝ۚɻίʔυ࣮ߦʹ͔͔ͬͨ࣌ؒͰ՝ۚɻ100ms୯Ґɻ • ϝϞϦׂྔΛௐઅ͢Δ͜ͱͰɺॲཧೳྗΛมߋͰ͖Δ • Dead letter queue, lambda@edge…
͖ɾෆ͖ͳΞʔΩςΫνϟ • ͍ͯΔͷ • ΠϕϯτυϦϒϯͳγεςϜ • εςʔτϨεͳΞϓϦέʔγϣϯ • ͍ͯͳ͍ͷ •
ಉظతͳॲཧϦΞϧλΠϜੑΛॏࢹ͢Δͷ • εςʔτϑϧͳΞϓϦέʔγϣϯ
දతͳྫ • S3ʹΞοϓϩʔυ͞Εͨը૾ͷαϜωΠϧΛ࡞͢Δ
දతͳྫ • webhookΛAPI-GatewayͰड͚औΓɺAWS LambdaͰॲཧΛߦ͏ • HTTPϦΫΤετҰͭͷΠϕϯτͱͯ͠ѻ͏
ฐࣾࣄྫ
kintone+Lambda
ͳͥkintone+Lambdaͳͷ͔ʁ • jsҎ֎ͷݴޠͰϩδοΫॲཧ͕ॻ͚Δ • αʔόαΠυͰͷॲཧ͕࣮Ͱ͖Δ • ֎෦αʔϏεͱͷ࿈ܞ͕͍͢͠ • kintoneͰະఏڙͷػೳΛlambdaͰ࣮ •
ॲཧ͚ͨ࣌ؒͩ͠ͷैྔ՝ۚ(ͦ͏ͦ͏՝ۚ͞Εͳ ͍) • େྔσʔλͷొkintoneۤखͳͷͰɺΫϥυ ଆʹҰ୴อଘͯ͠ɺLambdaͰΏͬ͘Γอଘ͢Δ • Lambda(AWS)ʹσʔλΛಡΈॻ͖͢ΔUI͕ͳ͍
͓ޓ͍ʹۤखͳ෦Λ ิͰ͖Δʂ
Ͳ͏͍͏έʔεͰ͑Δ͔ʁ • ֎෦αʔϏεͷσʔλͷૹड৴ • σʔλͷՃϩδοΫॲཧʢAIܥαʔ Ϗεͱͷ࿈ܞͱ͔ʣ • ఆظδϣϒ • αʔόαΠυͷॲཧͷՄࢹԽɺWEBͰͷ
σʔλཧ
ฐࣾࣄྫ (ͬͯΈͨϨϕϧͰ͢ ͕…)
ϥΠηϯεཧ • ͓٬༷ͷϥΠηϯεཧ ฐࣾͷۀͰSSLυϝΠϯͳͲ༗ޮظݶͷ͋ΔϥΠηϯεΛ ཧ͠దʹߋ৽͢Δඞཁ͕͋Δɻ ߋ৽͠ΕΔͱେมͳ͜ͱʹ…. • Έ σʔλͷೖྗkintoneͰߦ͏ LambdaͰ̍̍ճΞϓϦΛಡΈࠐΈɺظݶ·Ͱಛఆͷͩͬͨ
ΒslackͱϝʔϧͰ௨͢Δ (1ϲ݄લɺ2िؒલɺ1िؒલ….)
AWS Lambda Amazon CloudWatch σʔλೖྗ ظݶνΣοΫ ىಈ slack௨ ϝʔϧ௨
kintoneը໘ Slackͷ௨
সإ࠾ήʔϜ • ࣸਅΛղੳ͠ɺ୭͕Ұ൪সإ͔ͩͬͨΛڝ͏ • Έ S3্ͷΞοϓϩʔυ͞ΕͨࣗຫͷࣸਅΛɺLambdaܦ༝ͰAmazon rekognitionͰղੳ ݁ՌΛKintoneͰՄࢹԽ
সإ࠾ήʔϜ
সإ࠾ήʔϜ
·ͱΊ • KitoneͱAWS, ͓ޓ͍ͷॴΛ׆͔͠ॴΛิ͏ • దࡐదॴͰΑΓྑ͍γεςϜΛ
None