<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zakariah Siyaji on Medium]]></title>
        <description><![CDATA[Stories by Zakariah Siyaji on Medium]]></description>
        <link>https://medium.com/@zaki.siyaji?source=rss-ad47324fb55f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uTmKtq0Fme4NFT_47FNLJQ.jpeg</url>
            <title>Stories by Zakariah Siyaji on Medium</title>
            <link>https://medium.com/@zaki.siyaji?source=rss-ad47324fb55f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:21:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zaki.siyaji/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data Quality at Petabyte Scale: Building Trust in the Data Lifecycle]]></title>
            <link>https://medium.com/glassdoor-engineering/data-quality-at-petabyte-scale-building-trust-in-the-data-lifecycle-7052361307a4?source=rss-ad47324fb55f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7052361307a4</guid>
            <category><![CDATA[data-platform-engineering]]></category>
            <category><![CDATA[data-patterns]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[gable]]></category>
            <dc:creator><![CDATA[Zakariah Siyaji]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 15:52:43 GMT</pubDate>
            <atom:updated>2025-02-14T15:52:43.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q_3rzWk2bbrNSQG0" /><figcaption>The data Lifecycle with Data Quality Checks at Glassdoor</figcaption></figure><h3>Motivation</h3><p>Glassdoor has transformed from an employee review site to a community for workplace conversations [1]. As our platform evolves to support content creators, facilitate discussions, and offer rich content, it has become more apparent than ever that adopting a data-driven culture is essential. Businesses rely on accurate, high-quality data to understand their operations and assess strategic outcomes. Flawed or incomplete data results in misguided decisions and undermines trust. Recognizing this risk, we made data quality a foundational principle of our data-driven transformation.</p><p>Although every company defines data quality differently, there is a universal expectation that data used for decision-making must be trustworthy. Additionally, data quality challenges are not solely technical; a psychological component is closely linked to trust in data. Airbnb recognized this and sought to develop a scoring system that acknowledges the belief that data quality is a multivariate issue, encompassing accuracy, reliability, stewardship, and usability, along with more detailed dimensions within each of these categories [2]. On the other hand, Netflix employs a more technically centered approach to quality: data is initially written to a temporary staging area, audited, and then published to the production location upon passing quality checks [3]. Ultimately, Glassdoor drew inspiration from these lessons and aimed to reinforce trust through a cultural shift and a series of technical solutions. This article demonstrates how a proactive, trust-centered approach that connects data producers and consumers establishes a foundation for more rigorous data quality methods, ultimately bolstering a strong company-wide strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bQULeXmmceX2xKWq" /><figcaption><strong>Figure 1. Enhancing quality guards at the application code layer.</strong></figcaption></figure><h3>Culture Shift: Reactive to Proactive</h3><p>Historically, Glassdoor’s data engineering teams have been reactive, learning about issues only after they disrupt downstream systems. This challenge is compounded by the fact that the data engineering team often serves as the first line of defense against all data failures, even when the root cause lies in upstream data quality issues. Consequently, this scenario results in wasted time, duplicated efforts, increased costs, and a loss of trust in the data as teams rush to fix problems that could have been addressed earlier in the pipeline.</p><p>Recognizing this inefficiency, we concentrated on reshaping our culture around data quality by adopting a <strong>proactive “shift-left” approach </strong>[4]<strong>.</strong> The core of this strategy is simple: the responsibility for ensuring data quality begins not with downstream data consumers or data engineering teams but at the point of data production — with product engineering teams (i.e., data-producing applications). Just as engineering teams adopt a secure-by-design mindset, we’ve initiated a similar cultural shift towards data quality-by-design within our engineering organization.</p><h4>The Benefits of Shifting Left</h4><p>This approach offers many benefits, but the top four we’ve observed are:</p><ul><li><strong>Data</strong> <strong>Quality</strong> <strong>by</strong> <strong>Design</strong>: Incorporating data quality checks early in the lifecycle helps prevent bad data from entering production systems.</li><li><strong>Fewer</strong> <strong>Downstream</strong> <strong>Breakages</strong>: By resolving potential issues closer to the source, the entire data pipeline becomes more resilient and less susceptible to cascading failures.</li><li><strong>Stronger</strong> <strong>Collaboration</strong>: Equipping product engineers with tools, frameworks, and guidelines to generate high-quality data nurtures a closer partnership between data producers and consumers.</li><li><strong>Cost</strong> <strong>&amp;</strong> <strong>Time</strong> <strong>Efficiency</strong>: Preventing bad data is significantly cheaper than diagnosing and fixing it after propagating across multiple systems.</li></ul><p>These were the foundational principles upon which our motivation for shifting left was achieved.</p><h3>How We Implemented Proactive Data Quality</h3><p>We made several critical changes across our systems and processes to operationalize this shift, including introducing data contracts, static code analysis (SCA), and a large language model (LLM). These functions are foundational to adopting the shift-left mentality.</p><h4>1. Data Contracts</h4><p>Data contracts formalize the agreement between <strong>data producers</strong> (e.g., product engineering teams) and <strong>data consumers</strong> (e.g., analysts, marketing, business operations, finance, and data scientists) [5]. These contracts define:</p><ul><li>Schema requirements (fields, data types, formats).</li><li>Constraints (e.g., mandatory fields, expected ranges, or distributions).</li><li>Versioning and backward compatibility expectations.</li></ul><p>By incorporating data contracts into our development workflows, we created clear accountability for data quality and ensured that changes in upstream systems would not unintentionally disrupt downstream pipelines.</p><h4>2. Static Code Analysis in CI/CD</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*byWlVs4R5roNnod3" /><figcaption><strong>Figure 2. Slack-based alert for data contract violations. PR = Pull Request; eid = Employer ID;</strong></figcaption></figure><p>We integrated static code analysis for our data-producing Java, TypeScript, and Kotlin applications into the GitLab CI and Bitrise pipelines to enforce data contracts. We achieved this by leveraging <a href="http://gable.ai/">Gable.ai</a>, a product that specializes in statically analyzing code to surface potentially breaking data changes and contract violations early on, thereby reducing the blast radius of a single pull request (PR). Gable allows us to determine the level of scrutiny for a change — whether it entails raising an alert or warning or blocking the deployment entirely until the data-consuming team approves it. This approach makes schema compliance a first-class citizen in our development process, ensuring teams identify issues long before they reach production.</p><p><strong>Figure</strong> <strong>2</strong> illustrates an example alert triggered by Gable.ai’s SCA during an automated PR review in the CI/CD process. A frontend modification would have eliminated the eid field in this case, leading to data inconsistencies in various downstream pipelines and systems. The root cause is readily identified and addressed before it reaches production. The advantage of this tool is its applicability across a wide array of data-producing applications, from frontend and backend services to mobile app code. Additionally, this system shifts the responsibility of data quality to data producers, ultimately reducing data failures within the data engineering ecosystem.</p><h4>3. Business Logic Validation with LLMs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f1-yZ-YF_65ZMyY7" /><figcaption><em>Example image of a data contract violation and semantic change caught by Gable.ai’s LLM</em></figcaption></figure><p>Despite SCA’s extensive capabilities, some scenarios fall outside its scope. For example, an unintended code change might not technically breach any contract yet still lead to significant issues — like unintentionally swapping first and last name fields. In these instances, a thorough human review has traditionally been the only safeguard against introducing errors into production. To lessen this dependency on manual oversight, the Gable team fine-tuned an LLM to identify these business logic violations, thus preventing downstream data system disruptions.</p><h4>Future State with Gable.ai</h4><p>With comprehensive static code analysis coverage and firm data contracts established, Gable.ai will become the backbone of our data supply chain. It generates essential metadata that captures data assets, schemas, and the intricate connections between data producers, pipelines, and consumers to provide complete end-to-end lineage. This extensive visibility transforms our data lifecycle into a transparent, proactive ecosystem where quality is embedded from the outset.</p><p>Gable.ai’s integration into every phase of the data journey empowers our teams to identify anomalies early and uphold strict data contracts. It will also serve as an automated gatekeeper for sensitive information by identifying and classifying Personally Identifiable Information (PII) and ensuring that any changes comply with GDPR and CCPA requirements. This dual emphasis on quality and compliance ensures that every codebase update is robust and secure, ready for regulatory scrutiny.</p><p>Ultimately, Gable.ai will unify data quality, observability, and compliance into a single, resilient framework — ensuring our entire data supply chain is transparent, secure, and optimized for innovation and trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1oGRZsYMQvsuuMjr" /><figcaption><strong>Figure 3. Data ingestion on the Confluent platform with Kafka and the Schema Registry.</strong></figcaption></figure><h3>The Gateway to the Data World</h3><p>At Glassdoor, the transition from product engineering or transactional systems to analytics occurs at the ingestion point — through Confluent-managed Kafka clusters. Equally important is Confluent’s Schema Registry, which acts as a proactive quality gate at the ingestion point. Validating telemetry against established contracts ensures that only compliant data flows through. Any records that breach the contract are diverted to a dead-letter queue, preventing invalid data from reaching downstream systems. This process happens automatically when using Confluent’s managed connectors. This strategy blocks bad data at the source and promotes a culture of proactive data quality — identifying and containing issues before they can affect critical analytics pipelines downstream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ph3RD8Zz0aVUvZVF" /><figcaption><strong>Figure 4. Real-time monitoring of a Kafka topic surfaces a warning.</strong></figcaption></figure><p>Glassdoor utilizes real-time monitoring with DataDog to provide continuous, topic-level visibility into potential anomalies in our data ingestion mechanisms using Kafka. Even after implementing proactive safeguards with schema and data contract validations, unexpected shifts in data volume or patterns can still occur.</p><p>Continuous monitoring throughout the entire data flow offers teams a comprehensive view of pipeline health. This level of visibility helps link events with specific changes, such as deployments, schema updates, or infrastructure modifications. Overall, integrating real-time monitoring enables Glassdoor to quickly identify, isolate, and resolve issues, ensuring optimal data quality and reliability when unexpected events or unusual volume changes arise.</p><h3>Hard vs Soft Data Quality Checks</h3><p>Not every brow-raising phenomenon requires a pipeline-halting intervention. In some situations, more information is needed to determine the best action. At Glassdoor, we refer to this as the distinction between hard and soft checks. Hard checks serve as quality gates that stop the pipeline to minimize the potential blast radius. In contrast, soft checks inform data engineering teams and data consumers about potential external events that could affect the data (i.e., cause data drift). For instance, job seeker activity tends to drop during holidays, so a sudden decrease in data volume shouldn’t disrupt pipelines. Instead, employing a longer lookback window can help contextualize these predictable fluctuations.</p><h4>Blue-Green Deployments for Data</h4><p>The Blue-green deployment methodology is a software deployment strategy that minimizes downtime and risk by maintaining two separate environments: live (blue) and staged (green). Updates are deployed to the green environment, thoroughly tested, and validated. Afterward, traffic is seamlessly redirected from blue to green, ensuring uninterrupted service while allowing for quick rollbacks if issues arise.</p><p>We apply a similar strategy in data engineering. Maintaining two distinct environments — one live and one staged — works equally well for data pipelines. However, the direction in which things flow may differ:</p><ul><li><strong>Software:</strong> You deploy new changes to the Green environment. Once validated, you route traffic from Blue to Green (the new environment becomes “live”).</li><li><strong>Data:</strong> You can ingest data into the Green (staging) environment, audit it, and publish or promote it to Blue (the trusted production environment).</li></ul><p>For this reason, blue-green data engineering deployments are often called the write-audit-publish (WAP) paradigm. Nonetheless, the underlying principle remains identical:</p><ol><li>Keep the stable production environment intact.</li><li>Isolate changes to data/software in a staging environment.</li><li>Promote or switch to the validated environment once confidence is achieved.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-GvgT-cpnfAzeD_XCwVGA.png" /></figure><p><strong>Table</strong> <strong>1</strong> highlights the similarities between blue-green deployment methodologies in data engineering and software development. Essentially, while the software example transfers traffic from Blue to Green, the data example typically moves the data itself from Green to Blue. The key takeaway is that one environment remains safe and stable while the other is utilized for testing and validation before it becomes the new “source of truth.”</p><h4>Anomaly Detection Algorithms</h4><p>Glassdoor has implemented an anomaly detection platform drawing on methodologies similar to those described in the paper <em>Automatic Anomaly Detection in the Cloud via Statistical Learning</em>, which discusses the Seasonal Hybrid Extreme Studentized Deviate (S-H-ESD) model [6]. The ESD method (Extreme Studentized Deviate) determines whether the most extreme value in the list you provide is a significant outlier compared to the others. This model improves upon the generalized ESD test by integrating seasonal decomposition and robust statistical metrics, enabling effective detection of global and local anomalies in time-series data.</p><p>We have operationalized the utility of the algorithms into a platform where users can schedule anomaly detectors and receive email reports with images of potential anomalies, facilitating swift communication with stakeholders. The scheduling architecture, modeled after Apache Airflow, enables efficient orchestration of tasks, ensuring timely detection and reporting. Additionally, this system expands its monitoring capabilities to infrastructure, providing alerts on potential issues and maintaining system reliability and performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YwWnD2XWxSlOk5Fr" /><figcaption><strong>Figure 5. Data quality embedded in the data lifecycle starting from the application code layer through data ingestion and subsequently the medallion architecture.</strong></figcaption></figure><h3>Bringing It All Together</h3><p>Data quality is complex, and there is no one-size-fits-all solution. While technical details often take center stage, the psychological elements of trust and ownership are equally critical for ensuring data remains reliable at every step.</p><p>Proactive data quality isn’t about imposing rules at the last minute; it’s about instilling confidence in both the producers and consumers of data — an approach we’ve integrated throughout the data lifecycle (<strong>Figure</strong> <strong>5</strong>). At Glassdoor, this begins with data contracts that include clear definitions for fields, types, and constraints. This provides product engineers with accountability for the quality of what they produce. Static code analysis with <a href="http://gable.ai/">Gable.ai</a> seamlessly integrates with GitLab/GitHub and Bitrise, catching and blocking problematic changes before they escalate downstream. Since not all errors manifest as contract violations, we incorporate LLMs to identify subtler issues (like swapped field names), highlighting that trust relies on protection against the unexpected.</p><p>On the ingestion side, we utilize Confluent’s Schema Registry to screen incoming events and direct invalid data to dead-letter queues, ensuring pipelines remain clean from the outset. We also depend on real-time monitoring via DataDog for continuous feedback loops and adopt a Write-Audit-Publish (WAP) or blue-green approach so each batch of data passes through a staging area before promotion to production. These combined measures help us detect issues early and isolate risks while fostering a culture where every stakeholder, from product engineers to data scientists, has confidence in the data.</p><p>By addressing the psychological dimension of trust through shared responsibility, transparent validation, and confidence-building checks, we’re scaling to petabytes without compromising our data’s essential sense of faith. Ultimately, this combination of technical rigor and cultural awareness empowers us to build resilient, trustworthy data systems — one contract, one check, and one validation at a time.</p><h3>References</h3><ol><li>Glassdoor’s Future: A Community for Workplace Conversations. (2023, January 26). <em>Glassdoor</em>. Retrieved from<a href="https://www.glassdoor.com/blog/glassdoors-future-a-community-for-workplace-conversations/"> https://www.glassdoor.com/blog/glassdoors-future-a-community-for-workplace-conversations/</a></li><li><em>Data Quality Score: The Next Chapter of Data Quality at Airbnb</em>. (2019, September 16). <em>Airbnb Engineering &amp; Data Science</em>. Retrieved from<a href="https://medium.com/airbnb-engineering/data-quality-score-the-next-chapter-of-data-quality-at-airbnb-851dccda19c3"> https://medium.com/airbnb-engineering/data-quality-score-the-next-chapter-of-data-quality-at-airbnb-851dccda19c3</a></li><li>Netflix Data Engineering Tech Talks — The Netflix Data Engineering Stack. (2017, October 10). <em>YouTube</em>. Retrieved from<a href="https://www.youtube.com/watch?v=QxaOlmv79ls"> https://www.youtube.com/watch?v=QxaOlmv79ls</a></li><li>Magowan, K. (2024, October 30). <em>Shift Left Testing in Software Development</em>. <em>BMC Software Blogs</em>. Retrieved from<a href="https://www.bmc.com/blogs/what-is-shift-left-shift-left-testing-explained/"> https://www.bmc.com/blogs/what-is-shift-left-shift-left-testing-explained/</a></li><li>Sanderson, C. (2024, November 5). <em>3 Data Contract Types and Examples</em>. <em>Gable Blog</em>. Retrieved from<a href="https://www.gable.ai/blog/data-contract-example"> https://www.gable.ai/blog/data-contract-example</a></li><li>Hochenbaum, J., Vallis, O. S., &amp; Kejariwal, A. (2017). <em>Automatic Anomaly Detection in the Cloud via Statistical Learning</em>. <em>arXiv preprint arXiv:1704.07706</em>. Retrieved from<a href="https://arxiv.org/pdf/1704.07706"> https://arxiv.org/pdf/1704.07706</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7052361307a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/glassdoor-engineering/data-quality-at-petabyte-scale-building-trust-in-the-data-lifecycle-7052361307a4">Data Quality at Petabyte Scale: Building Trust in the Data Lifecycle</a> was originally published in <a href="https://medium.com/glassdoor-engineering">Glassdoor Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>