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
91
Tried to create a deployment pipeline of AutoML Vision.
youyo
0
58
API GatewayのWebSocket対応について
youyo
0
690
GCRと脆弱性検査
youyo
0
180
goodbye-ec2
youyo
0
570
それでも僕はzabbixと生きていく
youyo
1
450
TerraformとWerckerとAWS Organizationsで始めるステージング・開発環境構築 / terraform-wercker-aws-organizations
youyo
1
34k
ServerlessのおさらいとIronFunctionsについて
youyo
0
430
Other Decks in Technology
See All in Technology
組織成長を加速させるオンボーディングの取り組み
sudoakiy
2
220
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
100
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
220
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
13k
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
6
670
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
230
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
880
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
CDCL による厳密解法を採用した MILP ソルバー
imai448
3
160
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
440
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Designing for humans not robots
tammielis
250
25k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Designing Experiences People Love
moore
138
23k
GraphQLとの向き合い方2022年版
quramy
43
13k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
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