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
Go言語と事例で学ぶAWS Lambda
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yukpiz
October 17, 2018
Technology
3
1.1k
Go言語と事例で学ぶAWS Lambda
JAWS-UG 初心者支部#14「AWS Night school & LT」
での発表資料です!
https://jawsug-bgnr.connpass.com/event/101789/
yukpiz
October 17, 2018
Tweet
Share
More Decks by yukpiz
See All by yukpiz
Go x AWSによるシンプルなサーバーレス実装
yukpiz
1
580
Go x AWSによるシンプルなサーバーレス実装
yukpiz
1
120
Golang Beginners!
yukpiz
0
120
Other Decks in Technology
See All in Technology
作りっぱなしで終わらせない! 価値を出し続ける AI エージェントのための「信頼性」設計 / Designing Reliability for AI Agents that Deliver Continuous Value
aoto
PRO
1
220
非情報系研究者へ送る Transformer入門
rishiyama
3
1.8k
楽しく学ぼう!ネットワーク入門
shotashiratori
0
300
vLLM Community Meetup Tokyo #3 オープニングトーク
jpishikawa
0
210
AIエージェント・エコノミーの幕開け 〜 オープンプロトコルが変えるビジネスの未来 〜
shukob
0
110
EMからVPoEを経てCTOへ:マネジメントキャリアパスにおける葛藤と成長
kakehashi
PRO
9
1.3k
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
0
280
マネージャー版 "提案のレベル" を上げる
konifar
21
14k
型を書かないRuby開発への挑戦
riseshia
0
200
わたしがセキュアにAWSを使えるわけないじゃん、ムリムリ!(※ムリじゃなかった!?)
cmusudakeisuke
1
430
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
8
7.1k
Agentic Software Modernization - Back to the Roots (Zürich Agentic Coding and Architectures, März 2026)
feststelltaste
1
220
Featured
See All Featured
How to make the Groovebox
asonas
2
2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
280
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
How to Ace a Technical Interview
jacobian
281
24k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
140
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
150
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
How to build a perfect <img>
jonoalderson
1
5.2k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
660
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.8k
Optimizing for Happiness
mojombo
378
71k
Transcript
Go言語と事例で学ぶAWS Lambda Written by @yukpiz(redish Inc engineer) Oct 17, 2018
AWS Night School & LT
Agenda //\\\\\\ What’s AWS Lambda? //\\\\\\\ What’s golang? //\\\\\\\\ How
to use? //\\\\\\\\\ Example //\\\\\\\\\\ Exit
What’s AWS Lambda? //\\\\\\ サーバーレス/FaaSのワードで取り上げられる //\\\\\\\ 単体動作できる関数を実行できるサービス //\\\\\\\\ 関数は様々なイベントに発火して実行できる //\\\\\\\\\
CrowdWatch, SQS, API Gateway, DynamoDB //\\\\\\\\\\ apexやlamveryを使って簡単デプロイ! //\\\\\\\\\\\ Go, Node.js, Java, C#, Python
Agenda //\\\\\\ What’s AWS Lambda? //\\\\\\\ What’s golang? //\\\\\\\\ How
to use? //\\\\\\\\\ Example //\\\\\\\\\\ Exit
What’s golang? //\\\ 2012年にv1.0リリース(現在v1.11、go2のドラフト発表) //\\\\ 静的型付け言語、並列実行に強い、シンプルな構文 //\\\\\ コマンドラインツール、WebAPI、バッチ処理 //\\\\\\ AWS
Lambda、GAE/Go、Cloud Function(Coming soon!)
What’s golang? mainパッケージだとコマンドライン実行可能 標準で言語に含まれるパッケージでも、 利用するときはimportする mainパッケージの場合、 実行時にmain関数が呼び出される
Agenda //\\\\\\ What’s AWS Lambda? //\\\\\\\ What’s golang? //\\\\\\\\ How
to use? //\\\\\\\\\ Example //\\\\\\\\\\ Exit
How to use? Lambdaが実行されると呼び出されます Lambdaが実行されると呼び出される関数を指定
How to use? ハンドラは引数にコンテキストとイベントソースを受けられる
How to use? //\\\\\\ context.Context //\\\\\\\ Lambda関数の実行に関する情報 //\\\\\\\\ - タイムアウトの残り時間
//\\\\\\\\\ - 実行時のメモリ制限 //\\\\\\\\\\ - 実行時の関数名 //\\\\\\\\\\\ - etc
How to use? //\\\\\\ events.* //\\\\\\\ 関数が発火したイベントの情報 //\\\\\\\\ - DynamoDBに登録されたデータオブジェクト
//\\\\\\\\\ - API Gatewayが呼び出された時のリクエスト //\\\\\\\\\\ - S3で発生したイベント、ファイルの情報等 //\\\\\\\\\\\ - etc
Agenda //\\\\\\ What’s AWS Lambda? //\\\\\\\ What’s golang? //\\\\\\\\ How
to use? //\\\\\\\\\ Example //\\\\\\\\\\ Exit
Agenda - DynamoDBに配信時間になるまで格納 - 時間になったら最初のLambdaが発火 - SQSで分散して配信を処理 - 失敗した配信はキューに数日間残す -
数千〜数万ユーザーへの一斉配信を数分で実行
Agenda //\\\\\\ What’s AWS Lambda? //\\\\\\\ What’s golang? //\\\\\\\\ How
to use? //\\\\\\\\\ Example1 //\\\\\\\\\\ Exit
Exit //\\\\\\ Lambdaめっちゃ便利! //\\\\\\\ サーバーは用意せずに何かを動かしたい //\\\\\\\\ 個人用途だとSlack BOTやクローラーに使ってます //\\\\\\\\\ 是非、皆さんも使ってみてください!
Exit - エンジニアの登壇を応援する会 - 10月26日(金) - 執筆の技術を勉強する会 - https://techplay.jp/event/700825
Exit Thank you! Written by @yukpiz Special Thanks! The Go
gopher was designed by Renée French. Free gophers: https://github.com/egonelbre/gophers