How Do I Use AWS EventBridge With My Shopify App Webhooks?
Blog

How Do I Use AWS EventBridge With My Shopify App Webhooks?

April 19th, 2022

Using webhooks is a crucial component of Shopify apps. Developing a connection with AWS EventBridge ensures you'll never lose your data. Watch the video and see how it's done.

Sunrise Integration
  by Sunrise Integration

AWS EventBridge to the Rescue

 

When our Shopify Development Team is working on an app, one of the aspects we have to consider is the volume of webhook traffic. Most of our enterprise clients generate a large amount of event data. Using direct HTTP webhook traffic is often not sufficient to keep up with the flow of information.

 

That begs the question, how can we properly scale an app to meet demand? We use the AWS EventBridge integration to receive Shopify webhooks via an event bus.

 

Integrating with EventBridge lets you send event data to AWS directly, instead of handling that traffic via HTTP.

 

What is a Webhook?

 

Shopify provides webhooks as a way to receive event-data in near real time when it happens on a merchant's store. The webhook is an "alert" sent by the shop when a certain event is triggered. The webhook sends a JSON payload with the relevant event information to a standard HTTP endpoint. As a store obtains more customers and orders, the volume of events grows quickly and begins to overwhelm the payload endpoint. This is when an integration with Amazon EventBridge becomes powerful. EventBridge is a serverless configuration that is highly scalable and resilient with the ability to handle a near limitless amount of web traffic. To make it work though, we have to configure Shopify to work with AWS. Let's review the process for connecting Shopify to EventBridge.

 

Configuring EventBridge

 

Integrating a Shopify app with AWS EventBridge allows us to manage large volumes of notifications without overwhelming or losing data. In order to connect an app to EventBridge, we have to first configure it to point to AWS. The app requires the AWS Account ID, the associated AWS region and a unique name for the source.

 

Configure your Shopify app to connect to Amazon EventBridge

 

Once the AWS details are entered into the Shopify App Setup, the app is ready to connect to Amazon. To complete the integration, the next step is to confirm the Source in EventBridge. This is handled via the Partner Event Sources section in your AWS account.

 

Connect your app to EventBridge from the Partner Sources in AWS

 

The Source Name from the Shopify app will now be available from within the Partner Event Sources. The source will be associated with an Event Bus from within this section. Once the event bus is connected, custom rules can be created to handle the incoming traffic.

 

For more details on connecting Shopify to AWS EventBridge, watch our tutorial video on YouTube:

"How Do I Connect My Shopify App to AWS EventBridge" - Shopify Tutorial

 

Want to take it a step further? Check our blog on how to create rules in AWS For Shopify EventBridge webhooks.

 

We're Shopify and AWS Experts

 

If your business is looking for a development team to get your Shopify app up and running, our team is here for you. With over 20+ years of developing ecommerce applications, we know what it takes to launch enterprise services.

RELATED ARTICLES

Tags:   shopify   aws   webhooks