Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Go x AWSによるシンプルなサーバーレス実装
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yukpiz
March 27, 2019
Technology
130
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Go x AWSによるシンプルなサーバーレス実装
シューマイGo編の発表資料です。
登壇用とは別に読みやすいように間のスライドを省きました。
yukpiz
March 27, 2019
More Decks by yukpiz
See All by yukpiz
Go x AWSによるシンプルなサーバーレス実装
yukpiz
1
590
Golang Beginners!
yukpiz
0
130
Go言語と事例で学ぶAWS Lambda
yukpiz
3
1.1k
Other Decks in Technology
See All in Technology
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
480
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
300
【視聴者参加型!】AWSセキュリティアンチパターンクイズ
syoshie
1
490
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
25k
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
160
Sigmaユーザーのための有用リソース一挙公開 & Sigmaで使えるMCP #sigma_ucj /useful-resources-for-sigma-computing-users-and-mcps-with-sigma
shinyaa31
0
180
DEFCON34-Write-up_HYCu-MYCu
daikiokazaki
0
140
10分で知る最近のOmarchy
komagata
0
230
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
350
20260912_スクフェス三河
kgnkhkr
0
250
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
3
930
omasushiというライブラリを作った
polidog
PRO
0
190
Featured
See All Featured
Test your architecture with Archunit
thirion
2
2.4k
A Tale of Four Properties
chriscoyier
163
24k
Technical Leadership for Architectural Decision Making
baasie
3
560
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
290
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
420
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
820
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
970
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
190
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
It's Worth the Effort
3n
188
29k
Building Applications with DynamoDB
mza
96
7.2k
The Curse of the Amulet
leimatthew05
2
14k
Transcript
Go x AWSによる シンプルなサーバーレス実装 Written by @yukpiz Mar 27, 2019
#shuuumai #golang
Who? Yuuki Zayasu(@yukpiz) リディッシュ株式会社 テックリード #golang #aws #engineers_lt(エンジニアの登壇を応援する会) 釣り スノボ
小型船舶操縦士1級 第二種電気工事士 生コン打設 養鶏 野菜栽培
Who? Please follow me! @yukpiz https://labo.yukpiz.me
Go言語への入り口 Go言語 触ったことありますか?
Go言語への入り口 Go言語に興味を持っている、もしくは普段使っている皆さんに 少しでも知らなかった事を知って欲しい AWSと簡単に組み合わせて 様々な使い方ができる事を知ってほしい 是非、持ち帰って自分でGo言語を触ってみるキッカケにして欲しい
Go言語への入り口 コマンドラインツールを作る(urfave/cli等) A Tour of Goをやる(https://go-tour-jp.appspot.com/) Webフレームワークを使ってWebサイトを作る(gin, echo等) AWSを組み合わせてサービスを作ってみる(New!) DynamoDB,
Lambda, SQS, API Gateway, ECS/EKS, EC2, etc...
Go言語への入り口 AWS Lambda
Go言語への入り口 機能を実装してクラウド上で実行可能(FaaS) Go言語(1.x Runtime)が使える 様々なAWSの各種サービスと連携が可能 API Gateway AWS IoT Alexa
Skills Kit Alexa Smart Home Application Load Balancer CloudWatch Events CloudWatch Logs CodeCommit Cognito Sync Trigger DynamoDB Kinesis S3 SNS SQS + Invoke Lambda
活用事例
活用事例 サービス内メッセージの一斉配信サービス レストランに関連するデータの収集サービス SendGridを使ったメール配信サービス ...etc
活用事例 配信予定時刻に処理を開始 SQSで一定速度でLambdaに排出 配信処理を担うLambda ユーザーの端末へ 処理に失敗した配信レコード
活用事例 各種サービスの制限について サービスごとに制限項目がある Lambdaなら実行時間や同時実行数など 他のサービスと連携させる場合、その考慮も必要 詳細は各種サービスのドキュメントに記載がある 以下はLambdaの制限事項ドキュメント https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/limits.html
Go × Lambdaへの入り口 デプロイツールの選定(Apex, Lamvery, Serverless Framework) 実装したLambda関数をツールを使ってアップロードする LambdaはApex、それ以外のサービスはterraformに一元化 関数の実装
Go × Lambdaへの入り口 必要なのは2パッケージ Lambda実行時に呼び出される関数 発火元から受け取るイベント引数 処理結果を返す errorインターフェース型
Go × Lambdaへの入り口 デプロイツールの選定(Apex, Lamvery, Serverless Framework) 実装したLambda関数をツールを使ってアップロードする LambdaはApex、それ以外のサービスはterraformに一元化 関数の実装
Handlerの引数で受け取れるイベントはgodocで確認できる https://godoc.org/github.com/aws/aws-lambda-go/events AWSの各種サービスとの連携
Go × Lambdaへの入り口 Lambdaの発火元
その他の用途 BOTを作ってみよう! Slack BOTやTwitter BOTで遊んでみる API Gatewayと連携して、Webhook駆動のBOT Cloudwatchと連携して、定期実行するBOT
最後に Go言語入門の選択肢にAWS Lambdaを! 連携できるサービスを組み合わせて、簡単に作ろう 仕事じゃなくても、まずはプライベートの簡単なツールから! こういうのも作れそうとか面白いアイデア、是非教えてください
Written by @yukpiz Mar 27, 2019 #shuuumai #golang Slides Policy
The Go gopher was designed by Renée French. #f3f3f3 #434343 #da6272