<?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 Duy Tran on Medium]]></title>
        <description><![CDATA[Stories by Duy Tran on Medium]]></description>
        <link>https://medium.com/@duyttran?source=rss-599e67ddc783------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I3SnDH4Y7iZ6L3qhmiHUUw.jpeg</url>
            <title>Stories by Duy Tran on Medium</title>
            <link>https://medium.com/@duyttran?source=rss-599e67ddc783------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:32:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@duyttran/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[Why you should start a technical reading group]]></title>
            <link>https://medium.com/motive-eng/why-you-should-start-a-technical-reading-group-53db2860f2c9?source=rss-599e67ddc783------2</link>
            <guid isPermaLink="false">https://medium.com/p/53db2860f2c9</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[reading-groups]]></category>
            <category><![CDATA[working-remotely]]></category>
            <dc:creator><![CDATA[Duy Tran]]></dc:creator>
            <pubDate>Wed, 03 May 2023 15:43:27 GMT</pubDate>
            <atom:updated>2023-05-04T23:16:54.395Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why You Should Start a Technical Reading Group</h3><p>In this post, I’m going to convince you why you should start a technical reading group with your team by recounting our own experience at Motive. Technical reading groups can be a core thread that builds your team’s cohesion and technical growth.</p><p>Here’s what technical reading groups can provide:</p><ul><li>Motivate free-form discussion and curiosity</li><li>Drive personal technical growth</li><li>Build shared understanding of technologies, terminologies and best practices for your team</li><li>Help build a shared understanding of your infrastructure</li><li>Provide a low-friction and low-risk environment for practicing team building and leadership</li></ul><p>Alongside the many great resources about technical reading groups, I hope this reading adds another perspective.</p><h4>Growing the team</h4><p>2022 was a year for Motive to mature our Data Engineering organization. We had hundreds of data pipelines driving customer-critical products and internal analytics, a <a href="https://medium.com/motive-eng/how-metadata-saved-our-data-organization-cab3335eb4ae">complex data ecosystem</a>, and a rich roadmap for innovation and improvement of our data technologies.</p><p>Our team was also diverse in technical experience and domain expertise. We had fresh grad engineers who had just joined alongside tenured engineers who have accumulated lots of Motive domain knowledge.</p><p>In finding new ways to mesh together, here’s what we noticed:</p><ul><li>There was a lot of knowledge on which we had different levels of views</li><li>There were new technologies we needed to read up on</li><li>There was a lack of team building; it had fallen in the shadow of our execution-focused, remote-first work environment</li></ul><p>Now was the time for us to lay the technical foundation to continue to grow. This is what drove us to start our technical reading group!</p><h3>Our format</h3><p>We started with open reading groups. Any topic could be presented in the form of a blog, video, or technical deep dive. While open reading groups are useful, here is where we found challenges:</p><ul><li>It was difficult to get team members to curate interesting topics for discussion on a regular cadence.</li><li>The discussions weren’t always relevant to our current work. While this can be stimulating, there were context-switching costs when each meeting introduced a brand new topic.</li></ul><p>This is where we pivoted. A member of our team suggested following a book or class in order to stay aligned. A book helps provide both default structure and relevance for us to build on week by week. We started this reading group based on a single book and then made decisions about the group’s format.</p><p>Following are the decisions that come up when starting a group.</p><h4>Choose a book and a meeting frequency</h4><p>We chose <a href="https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063/">Designing Data-Intensive Applications by Martin Kleppmann</a>. This book covers design patterns and technologies that were relevant to our Data Platform work. Focusing on a single book gave the group the consistency we needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*Un57CEf2VvE0Ums2moH01g.png" /><figcaption><a href="https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063/">Designing Data-Intensive Applications by Martin Kleppmann</a></figcaption></figure><p>Each month, we met for an hour to discuss one chapter from the 12-chapter book. For this book, we opened it up to our engineering team, but team attendance was mandatory for our data platform team. A core group is important to have month over month, to keep the momentum of the discussion going.</p><h4>Assign official roles and tasks</h4><p>We created two administrative roles to keep the meetings going:</p><ul><li>A <strong>facilitator</strong> to set meeting invites, send reminders, and keep the discussion moving during our meetings.</li><li>A <strong>note-taker</strong> to help document discussions and learnings.</li></ul><p>Facilitators properly read the material, make sure there are prompts to discuss, and encourage meeting attendance; this role requires preparation before the meetings. We decided that facilitator or note-taker would be a rotating role between members to help share the responsibility.</p><p>Everyone else contributes to the discussions and actively engages. We expected that attendees read the material, but even when they did not, there were other ways to engage during the meeting.</p><p>Prompts for discussion covered the material and how it possibly related to Motive. For example, here is a list of some prompts collected for Chapter Two of the book. This chapter covers data models and query languages.</p><ul><li>Which ORM frameworks do we use at Motive?</li><li>When have we used SQL vs NoSQL at Motive?</li><li>What are some cases when you use schema on read vs. schema on write?</li><li>How is downtime handled for schema migrations in the different data stores that we use?</li></ul><p>Here are some useful resources on facilitating:</p><ul><li><a href="http://www.wucathy.com/blog/wp-content/uploads/2016/07/2012-How-to-lead-a-technical-reading-group-Cathy-Wu.pdf">[Cathy Wu 2012] How to Lead a Technical Reading Group</a></li><li><a href="http://muratbuffalo.blogspot.com/2015/05/how-to-run-effective-paper-reading.html">[Murat Demirbas 2015] How to Run Effective Paper Reading Groups</a></li></ul><h4>Set the meeting agenda</h4><p>For us to have a successful meeting, we set a meeting agenda that allowed us to gain shared context in the beginning and have open-ended discussions the remainder of the time. Meetings started with a<strong> 15-minute summary video</strong> for any team members who were unable to read the chapter assigned that month. To help guide us, we found multiple options for chapter summary videos on YouTube. Discussion consumed the rest of the meeting.</p><p><strong>Discussion format:</strong></p><ul><li>We started with initial impressions from every attendee.</li><li>We then followed question prompts. Prompts were gathered before the meeting, but could be added during the meeting. Anyone could chime in, popcorn-style. Prompts were based on the content of the material directly and how it relates to architecture / design in our current Motive engineering architecture</li><li>Facilitator helped keep the discussion going between prompts and engaged different members.</li></ul><p>The discussion format above was important because we wanted everyone to be able to participate and engage. Our approach was:</p><ul><li><strong>Forced minimum engagement:</strong> We agreed that everyone speaks at least once about their initial impressions, even if only to say “no thoughts”.</li><li><strong>Provided multiple ways to engage:</strong> Attendees could engage with the reading, the video, and the prompt questions. Discussion was based on the reading, on personal experience, and on the Motive technical stack.</li></ul><p>We were mindful not to burden people so much that it would deter them from joining. We found that not everyone participates at a high level or is able to finish the reading every time. That is OK. Sometimes listening is all someone can actively contribute (and they still can benefit). I like the <a href="http://www.wucathy.com/blog/wp-content/uploads/2016/07/2012-How-to-lead-a-technical-reading-group-Cathy-Wu.pdf">breakdown here</a>, stating that 50% people actively participate, 20% people sometimes participate, 30% never participate apart from listening.</p><p>We used the final minutes of the meeting to summarize possible follow-ups to which we may circle back in project planning and architecture discussions.</p><h3>Outcome</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1BfltKsMjtYuTxUh1UcjA.png" /><figcaption><em>Photograph: 12 months of learning and sharing together 😀</em></figcaption></figure><h4>Challenges</h4><p><strong>Consistent attendance from optional invitees</strong></p><p>Consistent attendance outside of the core data platform team was hard. Even with a strong push by facilitators to organize the format and discussion every week, people are busy, it is an optional meeting, and folks do not always join. Scheduling is hard across time zones as well.</p><p>Without a diverse set of consistent attendees, sometimes our conversations hit a dead end. We hit some questions where we were missing a DBA or product person to give their perspective.</p><p>Retrospectively, we wondered about offering the same reading group multiple times, to see if it revealed different discussions. Different groups might engage the material in different ways. Some outside advice suggests to run a book reading multiple times <a href="https://zendesk.engineering/recipes-for-running-a-successful-technical-book-club-at-work-4a7f18ffab42">[Bob Raman 2018] Recipes for Running a Successful Technical Book Club at Work</a></p><p><strong>Fostering active engagement</strong></p><p>Engaging folks on the content had its ups and downs. Some chapters were more interesting than others. The video summaries we chose were not that comprehensive. But the video summaries did offer some context for folks to engage without reading. We rarely went page by page in the book as suggested by some outside advice <a href="https://msail.github.io/post/presenting_reading_group/">[Nikhil Devraj 2021]</a>. The video and the book offered a balance; we could always call out the text to dive into a section if needed.</p><p>Some outside advice also recommended preparing tailored context and summary for a reading group, but we did not have the bandwidth to do this. <a href="https://msail.github.io/post/presenting_reading_group/">[Nikhil Devraj 2021] Presenting in a Reading Group</a>. Bringing other outside material and deeper context would have been an interesting tip for us to try <a href="https://zendesk.engineering/recipes-for-running-a-successful-technical-book-club-at-work-4a7f18ffab42">[Bob Raman 2018]</a>.</p><p>Retrospectively, we wondered about other ways to foster engagement. Some attendees may prefer async communication to speaking up in person. For example, starting a discussion on a chat-based collaboration tool could have enabled more engagement.</p><h4>Benefits</h4><p><strong>New perspectives</strong></p><p>When folks cross-team did join, there were some great conversations, experience sharing (even outside of current job and work), and perspective building. The technical reading group provided a context outside of project execution to have technical discussions. We listened to production war stories and outside job experiences that might not have been shared in another context. Much knowledge and expertise sharing was fostered in the context of a reading group but not in the context of a project.</p><p><strong>Flexing new muscles</strong></p><p>We also had room for teammates to practice facilitating and note taking outside of project execution.<strong> </strong>We often have to facilitate and take notes for post-mortems, incidents, and design reviews, but technical reading groups offer another place for different teammates to practice this. Opportunities like this foster growth from different team members in a lower stake environment.</p><p><strong>Skill enhancement</strong></p><p>When we went back to our project work, we referred back to what we learned in the reading group. The discussions we have in the reading group become part of our identity. We built a shared technical understanding for the team. This technical understanding became the baseline for how we think about our architecture as a team. We all get to engage together with the topic and carry it together through our work.</p><p><strong>Culture enhancement</strong></p><p>We were building an engineering culture of learning. There was an actual sense of accomplishment in finishing and being part of the reading group. In addition to a technical achievement, it was a culture building activity. These activities help signal what’s important to our team internally and externally. We all loved the chance to learn and grow together. It also allowed us to connect with our teammates in our remote work environment. Together, we were building an environment for discussion and learning across teammates.</p><h3>Go start a technical reading group!</h3><p>Technical reading groups can foster growth, learning, and social building. It has been fun get one started at Motive. We hope you find this insightful. Feel free to share with us your own experiences with technical reading groups.</p><h3>Come Join Us!</h3><p>We love building things and having fun while doing it. Motive is hiring! Check out the latest Motive opportunities on our <a href="https://gomotive.com/company/careers/">Careers</a> page to join our rad engineering team!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53db2860f2c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motive-eng/why-you-should-start-a-technical-reading-group-53db2860f2c9">Why you should start a technical reading group</a> was originally published in <a href="https://medium.com/motive-eng">motive-eng</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Standardized Tooling and Metadata Saved Our Data Organization]]></title>
            <link>https://medium.com/motive-eng/how-metadata-saved-our-data-organization-cab3335eb4ae?source=rss-599e67ddc783------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab3335eb4ae</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Duy Tran]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 17:03:02 GMT</pubDate>
            <atom:updated>2021-12-13T17:03:02.601Z</atom:updated>
            <content:encoded><![CDATA[<p>At KeepTruckin, data is at the center of how we operate. It powers all of our customer-facing products, such as our fleet management platform, AI dashcams, fuel optimization and more. Data drives how we execute internally as a team, driving sales, marketing, growth and financial analytics.</p><p>Our data has exponentially increased with the growth of our company. Accordingly, we must scale our internal processes, tooling and best practices. In this blog, we discuss the data challenges we face at KeepTruckin and how the Data Platform team has tackled them by <strong>building standardized tooling that exposes powerful metadata we can leverage to scale our data organization.</strong></p><p>We’ll dive into how we use standardized tooling to populate data catalogs, release bug fixes and feature enhancements across all data pipelines, and grow our data ecosystem while remaining operationally stable.</p><h3>What’s So Difficult About Data Processing at KeepTruckin?</h3><p>Any data organization will face some of the challenges below. But there are a few nuances that make them an even more fun and challenging endeavor at KeepTruckin.</p><h4>Diverse Data Sources</h4><p><strong>We have a diverse data ecosystem that requires us to support a wide variety of data pipelines and customizations.</strong> We are a software company powered by custom-made hardware, selling multiple integrated products that work closely together. KeepTruckin sells vehicle gateways to track commercial vehicles, asset gateway devices to track trailers and other heavy equipment, and dashcams that provide our customers with road and driver facing videos. We’ve built software products for tracking, load matching, fuel management, fleet management, driver coaching, and more. We also ingest data from third-party sources and vendors to augment and enhance our products and internal analytics.</p><p>Data from multiple sources are ingested into KeepTruckin’s internal data ecosystem as both structured and unstructured data — in all types of sizes and volumes:</p><ul><li>IoT data (<a href="https://aws.amazon.com/iot/">AWS IoT</a>)</li><li>Dashcam data (videos)</li><li>KeepTruckin Application data (stored in <a href="https://www.postgresql.org/">PostgreSQL</a> / <a href="https://kafka.apache.org/">Kafka</a> / <a href="https://aws.amazon.com/s3/">AWS S3</a>)</li><li>Third-party data (<a href="https://www.salesforce.com/">Salesforce</a> / <a href="https://www.pendo.io/">Pendo</a> / <a href="https://mixpanel.com/">Mixpanel</a> / etc…)</li><li>Adhoc data (CSV uploads / Google Sheets)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7t4niRKcSSx9QIr8nQINg.png" /><figcaption>KeepTruckin’s diverse data sources</figcaption></figure><p>Each piece of data can present its own unique challenge and may require specialized technologies and solutions. For example, IoT data generally comes in many small files and must be compressed first; otherwise, Spark pipelines cannot efficiently read all of the small files. In addition, diagnostic data constantly changes schema as we add more logging and parameters, which requires a solution able to store evolving semi-structured data or blobs. When building a data platform, we have to consider how we can scalably support different types of data pipelines and customizations.</p><h4>Large Volume of Data</h4><p>While our company is growing at a very fast pace, our data is growing even faster. <strong>Our data growth requires us to build systems that can support large amounts of storage and processing.</strong></p><p>As of the time of this blog (December 2021), we’re working with:</p><ul><li>100s of TB of data</li><li>Raw data: 3k+ tables</li><li>Derived data: 700+ tables</li><li>Complex dependency graphs between all of these tables</li></ul><h4>Reliable, Fresh, and Accessible Data</h4><p>To be useful, <strong>data must be reliable, fresh and accessible. </strong>It is not enough to simply hoard tons of data. Customers, internal and external, must be able to trust and rely on the data so that they can build great products.</p><p>For a data engineer, building a data pipeline may be the first step to providing insights to our customers and building data-driven products. But how will people know the data is correct? What happens when the data pipeline breaks? When was the data last updated? These are some questions that we have to answer in order to build trust in the data products we are managing at KeepTruckin.</p><p>If we have done our job right, customers will be able to trust and rely on our data products and data insights.</p><h3>Big Data Tooling Is Not Enough</h3><p>There’s a lot of data engineering challenges presented above. Over the last 10–20 years, different technical systems have solved different parts of the problem, enabling us to democratize data and data pipelines across organizations.</p><p>For example, <a href="https://hadoop.apache.org/">Hadoop</a> solved our big data storage challenge, allowing us to store large amounts of data in distributed file systems like <a href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html">HDFS</a> with query engines and database layers on top of HDFS like <a href="https://hive.apache.org/">Hive</a> / <a href="https://hbase.apache.org/">HBase</a>. Big data processing tools like <a href="https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html">MapReduce</a> and <a href="https://spark.apache.org/">Spark</a> allowed us to run complex analytics over terabytes of data. And technologies like <a href="https://oozie.apache.org/">Oozie</a>, <a href="https://airflow.apache.org/">Airflow</a> and <a href="https://github.com/spotify/luigi">Luigi</a> enabled us to orchestrate complex data engineering workflows. Visualization tools like <a href="https://redash.io/">Redash</a> and <a href="https://superset.apache.org/">Superset</a> help us build insights from the data, and the newer area of data catalogs, such as <a href="https://www.amundsen.io/">Amundsen</a>, <a href="https://datahubproject.io/">Datahub</a> and <a href="https://marquezproject.github.io/marquez/">Marquez</a>, allow us to understand the context of the data better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o6OfRHpTUYoIYOxT" /><figcaption>Some of the big data tools in a complex ecosystem</figcaption></figure><p>At KeepTruckin, <strong>we use the types of tools mentioned above and still risk ending up with an unmanageable data ecosystem.</strong> To demonstrate why, let us look at an example in the next section.</p><h4>Avoiding a Data Jungle Within an Organization</h4><p>Imagine we have three teams within a small organization.</p><ul><li>Say you start with a single pipeline, syncing one table from the production database to the data warehouse to create the first data artifact. The team building it is mostly business analysts who work with <a href="https://en.wikipedia.org/wiki/SQL">SQL</a>. They might use <a href="https://www.getdbt.com/">DBT</a> and <strong>SQL to build the table transformation.</strong></li><li>Then let’s say you have a data science team, working with <a href="https://pandas.pydata.org/">Pandas</a> and <a href="https://www.python.org/">Python</a> notebooks every day. They want to use the data artifact from the first team and build a <strong>pandas transformation </strong>that will create a second data artifact.</li><li>Finally, let’s say a third team has a large dataset they want to join with the second data artifact. Their data is in s3 and they need to perform distributed processing. So, they code up the <strong>transformation job in Spark</strong> to create a third data artifact.</li></ul><p>The data pipelines within this example can <strong>quickly span multiple technologies, storages and (possibly) multiple teams</strong>. Now, imagine the organization isn’t limited to three data artifacts, but hundreds or thousands of data artifacts across multiple teams, as depicted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*-U6uCHXZr8c75DQd" /><figcaption>The data jungle that can grow if allowed</figcaption></figure><p>This is no longer simply an issue of how you can store big data, process big data or orchestrate multiple pipelines. As the number of data artifacts increases, the complexity of understanding and managing all of the data pipelines and data artifacts also increases. <strong>Stakeholders and developers end up unable to trust the data quality or understand the data context and </strong><a href="https://en.wikipedia.org/wiki/Data_lineage"><strong>data lineage</strong></a><strong> within a complex data ecosystem.</strong></p><h4>The Solution: Standardization</h4><p>We took a platform approach to managing the complex data ecosystem through the following steps:</p><ul><li>Build interfaces / APIs around design patterns (<a href="https://en.wikipedia.org/wiki/Extract,_transform,_load">ETL</a>)</li><li>Promote best practices through these standardized APIs and tooling:<br>- Documentation / dependency lineage<br>- Ownership / alerting<br>- Testing / quality</li><li>Standardizing the tooling around common patterns <strong>standardizes data pipeline metadata</strong></li></ul><p>We focused on standardizing how data moves through our system, building a layer around all our transformations and how those transformations are orchestrated. We avoided being too prescriptive about the actual underlying technologies, letting authors continue to build Spark, SQL or Pandas and store their data in different storage technologies.</p><p>Through this layer, we then have control over all types of transformations and data moving through our data ecosystem. By leveraging our standardized tooling, we can promote best practices and continuously push improvements across all of the data pipelines at KeepTruckin. We can ensure all pipelines are documented and have dependencies defined so data context and data lineage can be easily understood. We also make sure owners and alerts are added so questions and issues can be routed to the right people. And we also help make sure there are data tests added to ensure data quality.</p><p>Finally, standardizing our tooling generates powerful metadata we can use for data discovery, data lineage, monitoring and insights.</p><p>In the next section, we’ll introduce the TableAPI and Pipeline frameworks built at KeepTruckin that help scale our data organization.</p><h4>TableAPI and Pipelines at KeepTruckin</h4><p>TableAPI builds a layer around how transformations are built. Pipelines build a layer around how those transformations are orchestrated and scheduled. We’ll take a look at an example of building a new data artifact for fleet management: tracking how much distance a driver has driven in a given week.</p><p>First, the data engineer will need to define a Schema for the data artifact that is being created. In the example below, we have three fields with data types and comments defined. Under the hood, we can deploy this schema to different data sources with database <a href="https://en.wikipedia.org/wiki/Data_definition_language">DDL</a> statements. You can see here we encourage data engineers to write descriptive comments about the table and the columns upfront.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73086d553553bc95dec156608577afc7/href">https://medium.com/media/73086d553553bc95dec156608577afc7/href</a></iframe><p>Then, data engineers can define their transformation function in their language of choice. They can write raw SQL, or code against Pandas or Spark <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/dsintro.html#dataframe">DataFrames</a>. In this example, the transformation will need to sum up the distance traveled, grouped by driver and week, so we can easily implement it in either SQL or using a DataFrame as seen below. When operating on DataFrames, the TableAPI framework will automatically fetch the dependent tables to be used directly in the implemented function.</p><p>Example: SQL Transformation</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c9bf97df512f735ed8bea2410fe331f/href">https://medium.com/media/1c9bf97df512f735ed8bea2410fe331f/href</a></iframe><p>Example: Spark Transformation</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e5c376fcf52a35e879b0a2d0bf91e53/href">https://medium.com/media/8e5c376fcf52a35e879b0a2d0bf91e53/href</a></iframe><p>Next, the engineer will tie the transformation function and the schema together in a Table definition, which will define other information like dependencies (which is how the DataFrames above are auto-injected into the function call), what storage(s) to deploy this table to, and a table level comment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06456b65c4b34bf69c15b15142d95d3b/href">https://medium.com/media/06456b65c4b34bf69c15b15142d95d3b/href</a></iframe><p>Finally, we can schedule this table transformation by attaching it to a Pipeline and attaching a <a href="https://en.wikipedia.org/wiki/Cron">cron</a> schedule to it. Here we can force the data engineer to define owners and add alerts, which is an extra push for best practices. Under the hood, this can deploy the pipeline on Airflow and the transformations to run on scalable infrastructure, whether it is <a href="https://kubernetes.io/">Kubernetes</a> or Spark. This layer gives us control over the infrastructure and the orchestration of the actual code and pipelines. The data platform can help optimize the infrastructure that runs all of the data pipelines. Then, data engineers can focus on the business logic without having to write Airflow pipelines or knowing how to package up their code to be able to run on Kubernetes or Spark.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe5b18238a46b3c52840c4eb80e04ca4/href">https://medium.com/media/fe5b18238a46b3c52840c4eb80e04ca4/href</a></iframe><h3>TableAPI Successfully Scales Our Data Ecosystem</h3><p>In this section, we’ll describe the many benefits of standardizing how data pipelines are developed.</p><h4>Improving Platform and Infrastructure Development</h4><p>TableAPI gives us a central way to push out improvements across all pipelines. In the last year, we’ve been able to deploy:</p><ul><li>Data store migrations (<a href="https://www.snowflake.com/">Snowflake</a> / Hive)</li><li>Bug fixes (Airflow scheduling bugs / Spark configurations / performance optimizations)</li><li>Environment agnostic pipelines (production / staging / development environments using same code)</li><li>Automatic schema evolution for tables</li><li>Data testing frameworks across all pipelines (<a href="https://greatexpectations.io/">Great Expectations</a> integrated with existing pipelines)</li></ul><p>These types of changes would not have been possible without a central way to manage all of the different data pipelines and data artifacts that we are building at KeepTruckin. Data platform plans to continue and make new and bold changes to improve our infrastructure. TableAPI helps hide the complexity of the infrastructure, so data engineers can concentrate on the business logic while the platform team can concentrate on improving the infrastructure.</p><h4>Standardizing Data Pipeline Metadata</h4><p>As mentioned earlier, standardizing our tooling allowed us to standardize our data pipeline metadata across all of our data pipelines, which allowed us to better monitor our data ecosystem. We can now look across the whole data landscape and help identify pipelines that are failing abnormally or missing tests. We can also grade different data pipelines on their health based on whether they are adhering to the latest recommendations, documentation, alerting, and tests to help push data engineers to build better data pipelines. This metadata helps us plan on what to work on next, which pipelines might need more support, or which best practices to promote across the organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*juU2HYzvK8xTqLX6" /><figcaption>TableAPI dashboards powered by metadata</figcaption></figure><p>Standardized metadata gives us lineage and documentation tooling. Most lineage tooling has to gather this by inferring it from SQL queries or Spark jobs with complex logic and profiling. We get this explicitly from our pipelines at a level that is higher quality and consistent, even when we have 100s of tables and data pipelines deployed. We’re able to use data catalogs and input richer metadata for data discovery and exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mrZxO_b8TKC6vQrv" /><figcaption>Data catalog populated with TableAPI metadata</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/0*Eo-NLFmhnFCOnoue" /><figcaption>Lineage information generated from TableAPI metadata</figcaption></figure><h4>Growing the Data Ecosystem</h4><p>During the last year, we’ve seen the number of data artifacts and pipelines double at KeepTruckin! Investing in TableAPI and Pipeline tooling allowed us to support this growth and remain operationally stable.</p><p>Below is the number of derived tables created from TableAPI during the last year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*wHZ2k4fsOBfcAt56" /><figcaption>TableAPI growth</figcaption></figure><h3>Final Thoughts</h3><p>KeepTruckin has a complex data ecosystem because we collect and process a large amount of diverse data for our many products. As a Data Platform team, it is our job to create trust in our data. The TableAPI and Pipeline tools we have built allow us to maintain high quality data pipelines and promote best practices. This framework also helps our team scale by allowing the Data Platform team to make continuous updates to our data infrastructure across all data pipelines. This framework also exposes rich metadata that can be used for monitoring and data discovery to help us continuously enrich our data ecosystem.</p><p>We built TableAPI internally to solve the growing number of ETL pipelines that we were building and subsequently found a lot of success. We hope this helps teams consider how they might scale data engineering with similar principles. We’re looking forward to seeing how the data engineering ecosystem changes toward standardization and core principles.</p><p>Finally, many thanks to the awesome KeepTruckin engineers and specifically our current Data Platform team (would like to call out Tianyao Zhang, Tina Bu, Angelica Heeney, Cynthia Xin) for helping scale KeepTruckin data engineering efforts as our data grows!</p><h3>Come Join Us!</h3><p>Check out our latest KeepTruckin opportunities on our <a href="https://keeptruckin.com/careers">Careers</a> page and visit our <a href="https://www.beforeyouapply.com/team/engineering-at-keeptruckin">Before You Apply</a> page to learn more about our engineering team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab3335eb4ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motive-eng/how-metadata-saved-our-data-organization-cab3335eb4ae">How Standardized Tooling and Metadata Saved Our Data Organization</a> was originally published in <a href="https://medium.com/motive-eng">motive-eng</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>