What this layer controls
- Identity resolution: which events and records belong to one person
- The unified profile and its consent state
- Which downstream tools receive which fields
- Data retention and deletion across every sink
What it looks like when it is wrong
These are the symptoms that show up in a marketing report or a Monday meeting. Each one has a technical cause in this layer, and each is cheaper to fix before it has a quarter of history behind it.
- The same customer is three contacts, three segments and two orders
- A deletion request requires six manual exports
- Every team has its own definition of ‘active customer’
- PII is copied into tools that were never meant to hold it
- Nobody can trace a profile field back to its source system
An open-source stack for this layer
Every project below is open source and self-hostable, with the licence the project publishes today. This is a reference build, not a recommendation to run all of it: pick the layers your stack is missing.
| Layer | Project | Licence | What it does |
|---|---|---|---|
| Warehouse | PostgreSQL or ClickHouse | PostgreSQL / Apache-2.0 | The single store for events, orders and profiles. |
| Ingestion | Meltano | Apache-2.0 | Scheduled extraction from platforms, storefront and CRM. |
| Identity model | dbt-core | Apache-2.0 | Deterministic identity graph as SQL, with tests and lineage. |
| Reverse ETL | Your own sync + platform APIs | n/a | Push segments outward with an idempotency key per record. |
| Governance | A data dictionary in git | n/a | Every field, its source, its owner and its retention rule. |
Evaluation checklist
Answer each of these about your current stack. A ‘no’ is a work item, and the count is a fair summary of the layer’s health.
- Is the identity resolution rule written down and tested on known duplicates?
- Does every profile field trace to a source system and a timestamp?
- Is consent stored per purpose, not per person?
- Can you execute a deletion across every sink from one request?
- Is PII minimised before it reaches analytics and activation tools?
- Is there a documented retention window enforced by a job?
What to instrument
Numbers that make the layer’s health visible before a customer complains.
- Identity match rate across sources
- Duplicate profiles per 1,000 customers
- Deletion request time to completion
- Fields with a missing owner (target: zero)
Where this fits
Scope. This page describes the category and an open-source way to build it. It does not publish 5 Kings’ internal method, client data or vendor terms, and it is not an endorsement of every project listed: check the licence and the maintenance activity against your own constraints before you adopt one.