Retail Analytics
Introduction
This gHack will take you through replicating and processing operational data from an Oracle database into Google Cloud in real time. You’ll also figure out how to forecast future demand, and how to visualize this forecast data as it arrives.
This tutorial uses a fictitious retail store named FastFresh to help demonstrate the concepts we’ll be dealing with. FastFresh specializes in selling fresh produce, and wants to minimize food waste and optimize stock levels across all stores. You will use fictitious sales transactions from FastFresh as the operational data in this tutorial.

The above diagram showcases the flow of operational data through Google Cloud, which is as follows:
- Incoming data from an Oracle source is captured and replicated into Cloud Storage through Datastream.
- This data is processed and enriched by Dataflow templates, and is then sent to BigQuery.
- BigQuery ML is used to forecast demand for your data, which is then visualized in Looker.
Learning Objectives
- Replicate and process data from Oracle into BigQuery in real time.
- Run demand forecasting against data that has been replicated and processed from Oracle in BigQuery.
- Learn how to visualize forecasted demand and operational data in real time in Looker.
You’ll be using a variety of Google Cloud offerings to achieve this including:
- Oracle
- BigQuery
- Datastream
- Dataflow
- BigQuery ML
- Looker
Challenges
Prerequisites
- Your own GCP project with Owner IAM role.
- gCloud CLI
- Visual Studio Code
- Successfully complete the following FastStarts:
Repository Contents
../student/assets
- Various initial files needed for students
../coach/assets/lectures.pdf
- Slides for Lectures on topics covered in this gHack
Contributors
- Carlos Augusto
- Gino Filicetti
- Murat Eken