Design a Logging Schema Registry With Data Quality Gates
Last updated: November 29, 2026
Quick Overview
Design the system that lets product engineers define structured logging events in Meta apps, validates events against their schemas at ingestion, and stops bad data from reaching analytics tables.
Meta
November 29, 20260
0
0 solved
Design the system that lets product engineers define structured logging events in Meta apps, validates events against their schemas at ingestion, and stops bad data from reaching analytics tables.
Meta's apps emit huge volumes of typed log events that feed experiments and dashboards. Interviewers use this to see whether a candidate thinks about contracts between producers and consumers, compatibility rules, and quality checks that fail loudly.
What the Interviewer Expects
- Define schemas in code with versioning
- Enforce backward-compatible evolution
- Validate at ingestion with sampling and quarantine
- Add data quality checks on landed tables
- Assign ownership and alerting
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- What happens when a client on an old app version sends an old schema?
- How would you catch a silent drop in event volume?
- How do you handle PII fields?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: engineers declare event schemas; client SDKs generate typed loggers; ingestion validates; landed tables match schemas; quality checks run on each partition.
Non-functional: millio...
High-Level Design
- Schemas live in a registry (code-reviewed definitions with owner, fields, types, PII tags).
- Build tooling generates typed logging functions for iOS, Android, and web, so most errors are caug...