Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
280
About AWS Lambda and kintone
youyo
October 04, 2017
Tweet
Share
More Decks by youyo
See All by youyo
家の快適度を計測してみた
youyo
1
210
Get started AWS CDK
youyo
0
130
Tried to create a deployment pipeline of AutoML Vision.
youyo
0
94
API GatewayのWebSocket対応について
youyo
0
870
GCRと脆弱性検査
youyo
0
220
goodbye-ec2
youyo
0
740
それでも僕はzabbixと生きていく
youyo
1
490
TerraformとWerckerとAWS Organizationsで始めるステージング・開発環境構築 / terraform-wercker-aws-organizations
youyo
1
34k
ServerlessのおさらいとIronFunctionsについて
youyo
0
470
Other Decks in Technology
See All in Technology
信頼性が求められる業務のAIAgentのアーキテクチャ設計の勘所と課題
miyatakoji
0
190
雲勉LT_Amazon Bedrock AgentCoreを知りAIエージェントに入門しよう!
ymae
2
230
その意思決定、まだ続けるんですか? ~痛みを超えて未来を作る、AI時代の撤退とピボットの技術~
applism118
44
24k
Eight Engineering Unit 紹介資料
sansan33
PRO
0
5.6k
Kill the Vibe?Architecture in the age of AI
stoth
1
120
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
15k
機械学習を「社会実装」するということ 2025年冬版 / Social Implementation of Machine Learning November 2025 Version
moepy_stats
4
830
AI時代のインシデント対応 〜時代を切り抜ける、組織アーキテクチャ〜
jacopen
4
170
type-challenges を全問解いたのでエッセンスと推し問題を紹介してみる
kworkdev
PRO
0
130
翻訳・対話・越境で強いチームワークを作ろう! / Building Strong Teamwork through Interpretation, Dialogue, and Border-Crossing
ar_tama
0
180
Bedrock のコスト監視設計
fohte
2
250
AWS re:Invent 2025 で頻出の 生成 AI サービスをおさらい
komakichi
3
250
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Building Adaptive Systems
keathley
44
2.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Git: the NoSQL Database
bkeepers
PRO
432
66k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Thoughts on Productivity
jonyablonski
73
4.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.6k
Producing Creativity
orderedlist
PRO
348
40k
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