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
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
940
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
170
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
SREによる隣接領域への越境とその先の信頼性
shonansurvivors
2
520
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
170
【若手エンジニア応援LT会】ソフトウェアを学んできた私がインフラエンジニアを目指した理由
kazushi_ohata
0
150
The Rise of LLMOps
asei
7
1.4k
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
170
Evangelismo técnico: ¿qué, cómo y por qué?
trishagee
0
360
Featured
See All Featured
Six Lessons from altMBA
skipperchong
27
3.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
KATA
mclloyd
29
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Agile that works and the tools we love
rasmusluckow
327
21k
Facilitating Awesome Meetings
lara
50
6.1k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Site-Speed That Sticks
csswizardry
0
23
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