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
EventBridgeでEventが発生しないことがある?
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Chiharu-Tsuboi
February 15, 2023
Technology
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
620
AWSアカウント74件をバックアップした方法と課題
chiharutsuboi
0
450
新機能!Amazon Aurora Limitless Database とは
chiharutsuboi
0
870
S3の情報漏洩からデータを守るには?CloudFormationで作るS3標準テンプレートのご紹介
chiharutsuboi
0
250
Amazon Aurora徹底比較 Provisioned vs Serverless
chiharutsuboi
0
5.3k
EventBridgeでEventが発生しないことがある?v2
chiharutsuboi
0
1.8k
500万円のサービスを申し込んでしまった
chiharutsuboi
1
1.4k
Other Decks in Technology
See All in Technology
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
300
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
180
S3 Filesで挑む! 八戸せんべい汁の食べ頃問題
usanchuu
0
120
How to Design Configuration for Rails Applications
willnet
1
850
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
170
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
200
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
360
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
310
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
310
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
680
SharedWorkerを使ったキャッシュでネイティブアプリに負けないユーザー体験を目指す
kakehashi
PRO
1
100
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
330
4 Signs Your Business is Dying
shpigford
187
23k
Discover your Explorer Soul
emna__ayadi
2
1.3k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
It's Worth the Effort
3n
188
29k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Leo the Paperboy
mayatellez
10
2.4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Optimizing for Happiness
mojombo
378
71k
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