Case study · Wines & spirits

From Azure to Google Cloud:
a data infrastructure rebuilt as code.

For the analytics team of a wine and spirits group, we ran several data projects from 2018. We then built, on Google Cloud, the infrastructure that carries them, replacing Azure.

Wines & spiritsGoogle CloudBigQueryAirflowPower BI
3data projects carried by the same infrastructure
3environments: development, staging, production
2018start of the collaboration

THE CONTEXT

A group focused on professionals, growing its direct sales.

The group sells mostly to professionals, from bars to large retail. It is also growing direct sales to consumers, with an e-commerce site.

Its analytics team centralised the data needs. We worked with it on three subjects: the e-commerce site, the brands’ media performance and sell-out data. Our role: provide prepared, well-structured data, ready to feed the dashboards.

These projects ran on Azure. A new infrastructure was then built on Google Cloud to replace it, with all the projects moved across. It is a classic case when you need to modernise your data platform.

WHAT WAS IN THE WAY

Three subjects, three kinds of data.

  • A split by large project: on Azure, each big subject sat in a single Python project. The new infrastructure had to allow a finer split.
  • Costly, scattered sell-out data: bought or obtained from panel providers, it has to be reconciled before it can be read.
  • Media performance to read across all brands: posts, advertising spend, website traffic by country and by source.

WHAT WE BUILT

Three projects, then the foundation that carries them.

01

The e-commerce site’s analytics stack.

Orders and returns arrive from the e-commerce platform through a messaging service. Site traffic is loaded by Fivetran. Together they feed the reports on products, sales and discount codes. The stack was built for a first country, then extended to others.

02

Media performance tracking.

Social and advertising data for all the brands is collected in one place, for a cross-brand view, by region for example.

03

Sell-out reconciliation.

Sell-out data, what distributors actually sell, is retrieved, aggregated, then exposed in analysis-ready views, by product in particular.

04

The new infrastructure.

It is described as infrastructure as code, with three environments, one project per transformation, Airflow for orchestration and automated deployment from the code repository.

THE STACK

Google Cloud, from ingestion to dashboard.

Ingestion
Pub/SubFivetran
Data warehouse
Orchestration
Deployment
Infrastructure as codeGitLab CI/CD
Reporting

WHAT IT CHANGES

An infrastructure you can read.

  • The infrastructure is written as code: it can be reviewed, versioned and recreated, instead of depending on settings made by hand.
  • Three separate environments: a change goes through development and staging before production.
  • A finer split: one project per transformation, where there used to be one project per large subject.
  • A common foundation: e-commerce, media and sell-out share the same infrastructure and the same practices.
  • Dashboards fed by prepared data, read in Power BI.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project