Google Cloud Functions Python QuickStart: Step-by-Step Shopify Example

preview_player
Показать описание
In this video, I'm going to take a simple Python script
that extracts orders from a Shopify store and deploy the script on the Google Cloud Platform using Google Cloud Functions.

We want to do that because it allows us to extract order data needed for analytics continuously without having to run anything locally by setting up scheduled jobs using Google Cloud Scheduler.

If you're new to Google Cloud Functions and Google Cloud Scheduler this video serves as a getting-started guide.

We'll have the cloud scheduler send a message to a pub/sub topic once every 5 min. This message will then trigger a Cloud Function to extract orders from a Shopify store and print out the number of orders to the cloud functions log. This will be a good starting point for writing more advanced ETL pipelines.

How to extract data from Shopify with Python:

▬▬▬▬▬▬ V I D E O C H A P T E R S & T I M E S T A M P S ▬▬▬▬▬▬

0:00 Introduction and video overview

0:39 Cloud Functions on GCP

2:20 Setting up a Google Pub/Sub topic

3:45 Setting up Google Cloud Scheduler

5:14 Configuring the Google Cloud Function

8:27 Deploying the Google Cloud Function
Рекомендации по теме
Комментарии
Автор

Great content here! I think your video helped me understand why pub/sub is important in creating this automation

Cerivitus
Автор

Curious - according to the doc it requires a VPC (serverless) to connect to the postgres instance

JohnFak-un
Автор

Hi
I created cloud function using storage triggers, but I am not able to see print results in logs.

saikumarkodathala
Автор

Can the Shopify webhook trigger the Cloud Function without the intermediary Google Pub/Sub?

the-ok-stuff
Автор

Your channel has many interesting and useful videos. Keep going!

joshuarodriguez
Автор

Thank you for putting up these videos, really helpful for bridging the marketing and data science. Are you running an agency?

mmdigital
Автор

Keep up the good work. Very interesting videos.

DesktopChronicles