Case study · Beauty & cosmetics

Nearly 30 sources brought together
in a single platform.

A cosmetics brand sells on its website and in its shops. Since 2022, we have been building and running the platform that brings its data together, from e-commerce to customer service.

Beauty & cosmeticsBigQuerydbtAirflowPython
Nearly 30sources centralised in the data warehouse
5families of data: e-commerce, ERP, CRM, advertising, customer service
3separate environments: sandbox, staging, production

THE CONTEXT

A website, shops, and data everywhere.

The brand sells its cosmetics on its website and in its own shops. Each activity has its own tool: the e-commerce platform, the ERP, the CRM, the advertising networks, customer service. Each produces its own figures, in its own format, at its own pace.

To read the business at a glance, it needed a common base: a data warehouse where all these sources arrive, get cleaned and can be combined. It is the starting point for any company that wants to get its data platform off the ground.

We arrived in 2022 and we are still there. The platform has grown source by source, until it now counts nearly thirty.

WHAT WAS IN THE WAY

Three difficulties, as soon as sources multiply.

01

Sources with no off-the-shelf connector.

The advertising networks and the e-mailing tool plug in with a market connector. Internal databases, the ERP and some spreadsheets do not: the ingestion has to be written.

02

A failure must not stop everything.

With nearly 30 sources, an incident on one of them must not block the refresh of the others. That is decided in the architecture, not after the fact.

03

A change must not go out unchecked.

The figures are used every day. A modified transformation has to be tested somewhere other than production, and reviewed by someone other than its author.

WHAT WE BUILT

One source, one flow, one container.

01

Ingestion, source by source.

Each source has its own ingestion program, written in Python and run in its own container. Where a market connector exists, as with the advertising networks, we use it: that is the role of Fivetran.

02

A BigQuery data warehouse.

Data lands directly in BigQuery. Three separate environments (sandbox, staging, production) make it possible to try a change without touching the live figures.

03

Reviewed dbt transformations.

The SQL models are written with dbt. Every change goes through an automatic formatting check, then a review by a second engineer, before it is merged.

04

Orchestration that raises the alarm.

Airflow schedules each flow, one per source. When one fails, the team receives an e-mail and knows which one to rerun.

THE STACK

Standard tools, on Google Cloud.

Ingestion
Python connectorsFivetran
Data warehouse
Transformation
dbtSQL
Orchestration
AirflowCloud ComposerKubernetes
Continuous integration
GitHubCloud Build

WHAT IT CHANGES

One place to look.

  • The data can be combined: online sales, ERP, CRM, advertising and customer service land in the same data warehouse.
  • A source is added without touching the others: a new flow, its container, its models.
  • An incident stays local: the failed flow is flagged by e-mail, the others keep running.
  • Teams find their data in their own spreadsheets, fed by automatic exports.
  • A foundation for AI: the brand’s AI tools for SEO and e-commerce plugged into this platform.

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