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/GAE + Pub/Subで 非同期タスクシステム作った
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
munaita_
October 24, 2017
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GO/GAE + Pub/Subで 非同期タスクシステム作った
munaita_
October 24, 2017
More Decks by munaita_
See All by munaita_
SpinAppを支えるデータ収集基盤
munaita_
1
890
Tensorflowで"お姉さん"なのか"おばさん"なのかはっきりさせる
munaita_
1
910
請求書から見るAWSとGCPの比較.pdf
munaita_
0
980
Featured
See All Featured
Practical Orchestrator
shlominoach
191
12k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
370
From π to Pie charts
rasagy
0
360
Site-Speed That Sticks
csswizardry
13
1.5k
Utilizing Notion as your number one productivity tool
mfonobong
4
570
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
230
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Building Adaptive Systems
keathley
44
3.2k
Transcript
GO/GAE + Pub/Subで 非同期タスクシステム作った GoビギナーズLT大会 2017/10/24 Suzuki Shogo(@munaita_)
自己紹介: 鈴木省吾 - 所属: フリーランス - 仕事: アドテク(サーバーサイド、インフラ) - Ruby,
GCP - 渋谷 -> 市ヶ谷 - 特技: 筋トレ、重いクエリは筋力で通す - twitter, qiita: @munaita_ - GOとの出会い: ログ収集基盤 - 保守メンテでちょっと触る程度
※なんだかGCPの話が多くなってしまいました。 申し訳ありません。
GAE Task Queue GAE request GCS Dataflow Pub Sub GAE
Big Query send request 動機: ログ収集基盤をざっくりと New!! GAE Pub Sub request Dataflow GAE Big Query send request こう変えたい
実現したいこと - 突然のピークに耐えきる - 5000qpsくらい - メッセージをPublishし、複数のサブスク リプションで受け取る - 非同期タスク成功したらキューから消す
- タスク失敗したら再実行
作ったもの GAE Pub/ Sub GAE GAE Slack msg1 msg2 request
CH2 CH1
デモ https://github.com/shogo807/go-gae-pubsub
苦労したこと - パッケージ管理 - Vendor管理(Dep, Glide)でGAEデプロイコケる - 同じパッケージを複数ファイル分割にした場合 - 独自パッケージを作った場合
- Slack投げすぎて止まる - ポインタの使い所なれない - GAEでのロギングなれない - 5000qpsの負荷試験できず(Mac + ABの限界)
今後やりたいこと - Pub/Sub -> Dataflow -> BQのストリーミング処理 - サービスでテスト運用 -
体脂肪率を落とす