Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Shopify Engineering 16 min read Case study mediumAdept

Schematizing Deletion at Scale

Shopify handles PII deletion in a warehouse ingesting tens of billions of events per day by requiring privacy-annotated schemas for every analytical event (4,500+ active schemas) and pseudonymising PII before it lands. A Scrubber on the Kafka pipeline applies irreversible obfuscation, such as masking IPs with geo enrichment or reducing user agents to device and OS families. For data that must stay recoverable, it applies tokenization: a vault issues consistent per-controller, per-subject tokens, so a deletion request only removes the token-to-PII mapping in the vault and never touches the petabyte-scale warehouse. Adoption came from making schematized events the default easy path, proving correctness through reconciliation and stress tests, and adding value like dataset discoverability.

Assumes: Kafka basicsdata warehousesPII and GDPR concepts

Related posts

  • Data logs: The latest evolution in Meta’s access tools

    Meta Engineering mediumAdept

    Meta serves per-user data logs from its Hive data warehouse, which cannot handle per-user point queries, by batching many Download Your Information requests into one full-table scan. A scheduled job collects recent requests into a batch run on the Core Workflow Service. It writes the requester IDs to a Hive table, then runs per-table and per-partition Dataswarm jobs that INNER JOIN against each table's owner column. PySpark splits the results into per-user files, and a Hack post-processing step applies privacy filters and renders readable HTML. Lessons include checkpointing for resilience against out-of-memory and timeout failures, a user-ID verification step added after a Spark partitioning bug nearly returned data to the wrong user, and an experimentation platform for testing workflow changes.

  • How Meta understands data at scale

    Meta Engineering mediumAdept

    Meta's Privacy Aware Infrastructure builds data understanding by schematizing every data asset in a canonical Thrift-based format (DataSchema, covering over 100 million schemas across 100+ systems) and annotating fields with a universal privacy taxonomy of semantic types. Annotation is shifted left into developer workflows. A classification pipeline of scheduling, sampling, scanning, heuristics and ML models predicts labels, auto-assigns them above a confidence threshold, and propagates them along lineage so copies inherit equivalent classifications. A Facebook Dating religious-views walkthrough shows how schema, annotation and OneCatalog inventory let purpose-limitation controls follow sensitive data across heterogeneous systems.

  • Direct Data Sharing using Delta Sharing - Introduction: Our Journey to Empower Partners at Zalando

    Zalando Engineering easyNovice

    Zalando's Partner Tech team replaced a fragmented mix of SFTP, CSV downloads, APIs and S3 handoffs with Databricks-managed Delta Sharing, giving partners zero-copy access to more than 200 analytical datasets, some as large as 200TB. Partners were each spending about 1.5 FTE per month on manual data consolidation, so the team chose a solution that is open, cloud-agnostic and usable from Pandas, Spark and spreadsheets. The setup prepares Delta tables in Unity Catalog, groups them into shares, and issues each partner token-based credentials through an activation link. A proof of concept exposed friction around Unity Catalog permissions and the lack of self-service token APIs. The pilot is now becoming a Zalando-wide recipient-management platform, with OIDC federation under exploration.

  • De-identifying text at scale: How Airbnb protects personal data in AI training

    Airbnb Engineering mediumAdept

    Airbnb de-identifies messages, reviews and support chats before ML training using Presidio, an open-source PII framework, shipped as an in-process Python library and a shared pipeline step whose de-identified dataset tag gates model deployment. The team added Airbnb-specific pattern recognizers with multi-word phrase context scoring, replaced spaCy with the zero-shot GLiNER model for names and street addresses, and resolves overlapping detections in the Anonymizer. Replacement uses realistic custom Faker values seeded from the real value plus a per-run secret, so fakes stay consistent within a run but unlinkable across runs. Structured fields get salted hashing, coordinate truncation and format-preserving encryption for 64-bit IDs. Quality is tracked on recall, precision and throughput per entity and language, with recall prioritized.

  • Branching With or Without PII: The Future of Environments

    Neon easyNovice

    Neon branches can now be created with anonymized data: schema and data are copied from a parent such as production, then masked with the PostgreSQL Anonymizer extension using per-column rules (dummy emails, names, phone numbers, random values) while foreign keys and constraints stay intact. Branching itself relies on separated compute and storage, WAL stored by Safekeepers with LSN markers for point-in-time branches, and copy-on-write layers in the Pageserver, with per-branch compute scaling to zero. The post argues this replaces manually maintained dev, preview, CI and staging databases. The beta uses static masking that runs once at branch creation, leaves the parent untouched, and keeps rules branch-specific.

The quest for software engineering knowledge.

Look:
Layout: