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でAWSとShopifyの統合
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Haruna Oka
December 17, 2020
Technology
6.4k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
EventBridgeでAWSとShopifyの統合
2020/12/17開催のイベント「AWSとReactで始めるShopifyアプリ開発」で話したセッション資料です。
Haruna Oka
December 17, 2020
More Decks by Haruna Oka
See All by Haruna Oka
AWS AppSyncと仲良くするためのTips
okaharuna
1
200
Next.js × AWS App Runner × AWS AppSyncで進めるクライアントファーストのWEB開発
okaharuna
7
6.3k
re:Growth 2020 Serverless
okaharuna
2
1.5k
Serverless SPA development starting with Angular
okaharuna
0
3.4k
serverlessdaysfukuoka_oka.pdf
okaharuna
1
2.3k
SPA×Auth0
okaharuna
5
2.1k
Fargate_Super_Introduction.pdf
okaharuna
2
3.3k
Other Decks in Technology
See All in Technology
MySQL & MySQL HeatWave Report - June 2026
freshdaz
0
300
4人目のSREはAgent
tanimuyk
0
370
From Prompt Engineering to Loop Engineering
shibuiwilliam
1
330
AWS Summit の片隅で、体育座りしながらコミュニティがにぎわう理由を考えた
k_adachi_01
2
340
AWS Summit Japan 2026の振り返りと2027へ向けて / AWS Summit Japan 2026 Recap and Prospects for 2027
kaminashi
1
180
『AIに負けない』より『AIと遊ぶ』」〜ワクワクが最強のテスト・QA学習戦略_公開用
odan611
1
360
AWS Summit 2026で見えたSIerにとっての Amazon Quickの位置づけ
maf_0521
0
160
勉強会企画をアプリで構造化してみた 〜そこで見えた、AIとの付き合い方〜 / I've structured a study group plan using an app.
pauli
0
290
ループエンジニアリングでE2Eテストを実践
noriyukitakei
0
240
アラート調査向けAIエージェントの本番導入とその後/AI Agents for Alert Investigation: Production Deployment and After
taddy_919
1
320
背中から、背中へ /paying forward to community
naitosatoshi
0
210
Keeping applications secure by evolving OAuth 2.0 and OpenID Connect
ahus1
PRO
1
130
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.9k
It's Worth the Effort
3n
188
29k
Building the Perfect Custom Keyboard
takai
2
810
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
2
280
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.1k
Building Applications with DynamoDB
mza
96
7.1k
The Invisible Side of Design
smashingmag
301
52k
Believing is Seeing
oripsolob
1
160
How to Talk to Developers About Accessibility
jct
2
270
Why Our Code Smells
bkeepers
PRO
340
58k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
600
Marketing to machines
jonoalderson
1
5.5k
Transcript
2020/12/17 EventBridgeで AWSとShopifyの統合 Classmethod, Inc. Oka Haruna
プロフィール 岡 春奈 岡 春奈 サーバーレスエンジニア CX事業本部 MADチーム AWSサーバーレスの開発/コンサル 猫の下僕
アジェンダ 統合のための前提知識 統合の前提知識として必要なShopify とEventBridgeの基本的な話をしま す。 ユースケース 統合の頻出するパターンを解説しま す。 Shopifyとの統合手順 具体的な統合ステップを解説します。
まとめ
想定する対象者 AWSは使ったことがあるけど Shopifyを使ったことがない方
EventBridgeのイベントバス Push型で非同期で一度に単一のメッセージを処理する
EventBridgeのイベントバス イベントバスの種類 デフォルト AWSサービス カスタムバス 独自のアプリケーション パートナーバス SaaS
EventBridgeのイベントバス イベントバスの種類 カスタムバス 独自のアプリケーション パートナーバス SaaS デフォルト AWSサービス
マーチャント パートナー →ショップの運営者/販売者 →アプリの開発者 Shopifyのアクター
パブリックアプリ カスタムアプリ プライベートアプリ Shopifyアプリの種類
パブリックアプリ カスタムアプリ プライベートアプリ Shopifyアプリの種類 →販売する時 →1つの店舗で利用 →EventBridgeの統合はできない
ShopifyとEventBridge統合イメージ
構築手順① Shopify パートナー Shopifyアプリを用意する(カスタムアプリ) 一番手軽なのはShopify App CLI
構築手順② Shopify マーチャント ストアにShopifyアプリをインストールする
構築手順③ Shopify パートナー ShopifyアプリからEventBridgeにパートナー イベントソースを作成する Shopifyアプリ設定画面からワンクリックで実 行可能
構築手順④ AWS(EventBridge) 作成されたEventBridgeのイベントソースをイ ベントバスに関連付ける EventBridgeのルールを作成する
構築手順⑤ Shopify パートナー ShopifyのAdmin APIでショップ側の webhookを登録する
EventBridgeのコンソール
Shopifyアプリの設定画面
手順詳細は で
ユースケース 新規注文: 商品の在庫数がN個を切ったら通知する 新規注文: AWS上のポイントシステムに連携する 新規注文: AWS上の配送システムに連携して自動出荷する 商品登録: 商品の画像解析してタグを自動追加する(AWS 公式チュートリアル)
商品の在庫数がN個を切ったら通知
注文が入ったらポイントを付与
登録された商品を画像解析してタグを自動追加(AWS公式) 引⽤元:https://aws.amazon.com/jp/quickstart/eventbridge/shopify-image-processing/
注意点 EventBridgeでは稀にイベントが重複する可能性 があるので、アプリケーション側で重複排除の 処理を実装する必要がある 多少タイムラグが発生するので遅延を許容でき るケースのみ利用する
まとめ ShopifyのイベントをEventBridgeで受け取って コスパ良くAWS上のシステムと連携しよう EventBridgeとの統合のためにはShopifyのカス タムアプリor公開アプリを準備しよう