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
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
UI State設計とテスト方針
rmakiyama
2
440
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
190
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
260
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
120
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
150
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.2k
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
190
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
550
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
MLOps の現場から
asei
6
630
継続的にアウトカムを生み出し ビジネスにつなげる、 戦略と運営に対するタイミーのQUEST(探求)
zigorou
0
520
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Building an army of robots
kneath
302
44k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
A designer walks into a library…
pauljervisheath
204
24k
Optimizing for Happiness
mojombo
376
70k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Navigating Team Friction
lara
183
15k
Unsuck your backbone
ammeep
669
57k
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