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
EventBridgeでEventが発生しないことがある?
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Chiharu-Tsuboi
February 15, 2023
Technology
200
0
Share
EventBridgeでEventが発生しないことがある?
Serverless LT初心者向け LT大会 #30の資料です。
Chiharu-Tsuboi
February 15, 2023
More Decks by Chiharu-Tsuboi
See All by Chiharu-Tsuboi
AWS公式MCP、全部入れたら便利?精度下がる?
chiharutsuboi
1
490
AWSアカウント74件をバックアップした方法と課題
chiharutsuboi
0
410
新機能!Amazon Aurora Limitless Database とは
chiharutsuboi
0
800
S3の情報漏洩からデータを守るには?CloudFormationで作るS3標準テンプレートのご紹介
chiharutsuboi
0
230
Amazon Aurora徹底比較 Provisioned vs Serverless
chiharutsuboi
0
5k
EventBridgeでEventが発生しないことがある?v2
chiharutsuboi
0
1.6k
500万円のサービスを申し込んでしまった
chiharutsuboi
1
1.4k
Other Decks in Technology
See All in Technology
AsyncStreamでマルチブロードキャストを実装する
1mash0
1
180
続 運用改善、不都合な真実 〜 物理制約のない運用改善はほとんど無価値 / 20260518-ssmjp-kaizen-no-value-without-physical-constraints
opelab
2
290
可視化から活用へ — Mesh化・Segmentation・アライメントの研究動向
gpuunite_official
0
240
O'Reilly Infrastructure & Ops Superstream: Platform Engineering for Developers, Architects & the Rest of Us
syntasso
0
320
CARTA HOLDINGS エンジニア向け 採用ピッチ資料 / CARTA-GUIDE-for-Engineers
carta_engineering
0
47k
AWSアップデートから考える継続的な運用改善
toru_kubota
2
320
Claude Code で使える DuckDB Skills を試してみた / DuckDB Skills and Claude Code
masahirokawahara
1
1.9k
ワールドカフェ再び、そしてゴール・ルール・ロール・ツール / World Café Revisited, and the Goals-Rules-Roles-Tools
ks91
PRO
0
190
ラズパイ & Picoで入門:Zephyr(RTOS)の環境構築からビルドまでの紹介
iotengineer22
0
150
RedmineをAIで効率的に使う検証
yoshiokacb
0
160
コーディングエージェントはTypeScriptの 型エラーをどう自己修正しているのか
melonps
3
260
AWS運用におけるAI Agent活用術 / JAWS-UG 神戸 #11 LT大会
genda
1
310
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
460
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
400
GitHub's CSS Performance
jonrohan
1033
470k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
180
Making Projects Easy
brettharned
120
6.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
520
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
280
Transcript
EventBridgeでEventが発 生しないことがある? 2023/2/15 Serverless LT初心者向け LT大会 #30 セゾン情報システムズ 坪井 千春
1
自己紹介 名前: 坪井 千春 所属: 株式会社セゾン情報システムズ 経歴: ・SIerとしてJAVAメインのアプリ担当を19年 ・直近5年程度AWSを利用 ・2022年4月からアプリを離れてAWSエンジニアとして活動
・AWS Top Engineers受賞にチャレンジ
EventBridgeとは? • イベントを使ってアプリケーション同士を接続するサービス • Amazon CloudWatch Eventsの拡張であり、同じAPIやエンドポイン トを使用している • cronのように時刻指定でのスケジューラも可能
ユースケース WAFの検知イベントをトリガーにlambdaでメール通知 3 Amazon EventBridge Event AWS Lambda AWS WAF
注意点 4 AWS公式ドキュメント:https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-troubleshooting.html#eb-delayed-event-delivery • 配信は最大24時間まで • イベント生成はベストエフォート • まれに複数回起動する
注意点1:配信は最大24時間まで • EventBridgeのSLAは99.99%の月間稼働率(月間4分程度の停止) • サービス中断によりイベントを配信できない場合、復旧後にイベ ントは最大24時間再試行さる • 24時間を超えるとイベントは発生せず「FailedInvocations」メ トリクスが記録される 5
AWS公式ドキュメント:https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-troubleshooting.html#eb-delayed-event-delivery
注意点2:イベント生成はベストエフォート • イベントを生成するサービスによって稀にイベントが配信され ない可能性がある • 基本的には「ベストエフォート」 • 一部のみ「保証付き配信」 6 •
AWS Batch • Amazon Braket • AWS CloudFormation • Amazon CloudWatch • AWS CodeArtifact • Amazon Elastic Container Service • AWS Elemental MediaConvert • AWS Elemental MediaStore • Amazon EventBridge のスケジュール されたルール • AWS IoT Analytics • AWS Key Management Service CMK の削除 • Amazon Location Service • AWS OpsWorks • Amazon QLDB • Amazon Redshift • AWS Security Hub • AWS Signer • Amazon Simple Storage Service (Amazon S3) • AWS Storage Gateway • Amazon Translate イベント配信が保証されるサービス AWS公式ドキュメント:https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-service-event.html
注意点3:まれに複数回起動する • 「保証付き配信」で保証されるのは「1回以上」の配信 • まれに、下記のような事象が発生する • 単一のイベントに対して同じルールを複数回トリガーされてしまう • 特定のトリガーされたルールに対して同じターゲットを複数回起動し てしまう
対策 • 複数回起動しても問題無いものに適用 • ターゲット側で複数回起動チェックを実装 7 AWS公式ドキュメント:https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-troubleshooting.html#eb-rule-triggered-more-than-once
まとめ • EventBridgeは簡単にアプリ同士を接続できるサービス • まれに「起動しない」「起動が遅い」「複数回起動する」 • 100%が求められるアプリケーションでの採用は注意が必要 8