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
Chiharu-Tsuboi
February 15, 2023
Technology
0
180
EventBridgeでEventが発生しないことがある?
Serverless LT初心者向け LT大会 #30の資料です。
Chiharu-Tsuboi
February 15, 2023
Tweet
Share
More Decks by Chiharu-Tsuboi
See All by Chiharu-Tsuboi
AWS公式MCP、全部入れたら便利?精度下がる?
chiharutsuboi
1
440
AWSアカウント74件をバックアップした方法と課題
chiharutsuboi
0
400
新機能!Amazon Aurora Limitless Database とは
chiharutsuboi
0
780
S3の情報漏洩からデータを守るには?CloudFormationで作るS3標準テンプレートのご紹介
chiharutsuboi
0
220
Amazon Aurora徹底比較 Provisioned vs Serverless
chiharutsuboi
0
4.9k
EventBridgeでEventが発生しないことがある?v2
chiharutsuboi
0
1.6k
500万円のサービスを申し込んでしまった
chiharutsuboi
1
1.4k
Other Decks in Technology
See All in Technology
OPENLOGI Company Profile for engineer
hr01
1
61k
RGBに陥らないために -プロダクトの価値を届けるまで-
righttouch
PRO
0
130
Kubernetesの「隠れメモリ消費」によるNode共倒れと、Request適正化という処方箋
g0xu
0
150
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
qa
0
380
来期の評価で変えようと思っていること 〜AI時代に変わること・変わらないこと〜
estie
0
110
スケーリングを封じられたEC2を救いたい
senseofunity129
0
110
データマネジメント戦略Night - 4社のリアルを語る会
ktatsuya
1
430
AI時代のシステム開発者の仕事_20260328
sengtor
0
300
Physical AI on AWS リファレンスアーキテクチャ / Physical AI on AWS Reference Architecture
aws_shota
1
170
MIX AUDIO EN BROADCAST
ralpherick
0
120
JEDAI認定プログラム JEDAI Order 2026 受賞者一覧 / JEDAI Order 2026 Winners
databricksjapan
0
380
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
5
1.2k
Featured
See All Featured
Speed Design
sergeychernyshev
33
1.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
850
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Building the Perfect Custom Keyboard
takai
2
720
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
390
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Producing Creativity
orderedlist
PRO
348
40k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
330
Balancing Empowerment & Direction
lara
5
1k
Fireside Chat
paigeccino
42
3.9k
Writing Fast Ruby
sferik
630
63k
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