Best Practices

Streamline Data Processes with the Data Engineering Lifecycle | Census

Nicole Mitich
Nicole Mitich November 29, 2022

Nicole Mitich is the content marketing manager @ Census. She's carried a love for reading and writing since childhood, but her particular focus is on streamlining technical communication through writing. She loves seeing (and helping) technical folks share their wisdom. San Diego, California, United States

Somewhere along the line, folks began defining data engineers as people who worked in specific technologies like Hadoop or Spark. From there, they gained a reputation for being super complex and technical.

While they can be both of those 👆 things, that doesn’t mean analysts and business users should just ignore everything data engineering-related. Sure, technology changes, but the goal of data engineers remains the same: To turn raw, messy, complex data into high-quality information other teams can use. And because engineering makes the whole data machine run, understanding the lifecycle data moves through makes you a better data collaborator – regardless of your role.

What is a data engineering lifecycle?

The data engineering lifecycle is a method for overseeing data engineering processes including data acquisition, integration, storage, processing, and analysis. This lifecycle incorporates structured and interconnected stages aimed at consistently delivering high-quality data engineering projects. The main objective is to assist data engineers in creating reliable, high-quality data sets that are suitable for their intended use and can aid in business decision-making.

To help folks better understand the data engineering lifecycle, Matt Housley – co-founder of Ternary Data and co-author of the book Fundamentals of Data Engineering – broke it down during his Summer Community Days session titled, How Understanding the Data Engineering Lifecycle Helps Us All Work Better with Data Engineers.

In his talk, Matt split the data engineering lifecycle problems into 🔑 stages (generation, storage, ingestion, transformation, and serving). Plus, as a teaser (if you haven’t read this 💎 already), he discussed concepts from the Fundamentals of Data Engineering to introduce these stages to data practitioners of all flavors, to help them better collaborate with data engineers to deliver outstanding data products.

Data engineering challenges

Matt started out by tackling the two biggest challenges currently facing data engineers: Communication and holistic thinking.

For starters, communication needs to flow both ways. ↔️ Engineers need to clearly express what’s happening to data, and stakeholders need to clearly express what raw data is or what finished data should look like. 🗣

“We need communication to make sure data engineers understand what the data is before they turn it into a useful product, and to make sure those products are the right things,” Matt explained. “If you can become a better communicator as a stakeholder or as an engineer, you’ll be way more successful in delivering results.”

Holistic thinking, on the other hand, means getting past the technology and considering the big picture. That’s where understanding the data engineering lifecycle comes in clutch. 🔁

“We need to think about where data starts, where it ends up, how it flows through the pipeline, and how we maintain quality as it moves,” Matt said. “That’s what a ‘holistic view of data’ means.”

The data engineering lifecycle

In “Fundamentals of Data Engineering,” Matt and his co-author, Joe Reis, introduced the lifecycle concept. Essentially, the lifecycle breaks the data pipeline we all know and love into its critical pieces to see where data starts and how we maintain quality as it moves to the end.

Diagram of data engineering lifecycle
Source: Fundamentals of Data Engineering by Joe Reis, Matt Housley

Generation

In the first stage of the lifecycle, data is born. 🐣 It’s created in a variety of platforms, and data engineers rarely have control over any of them. The engineers need to communicate with app developers and platform experts to understand what’s being created.

At this stage, the data “works” only within its source platform. It’s not yet ready for consumption by operational analytics, BI, machine learning, reverse ETL, or any other application.

Ingestion

In the next stage, the raw data moves into the engineer’s pipeline. It’s still messy, but now it’s in a place where we can clean it up. 🧼

Transformation

In the transformation stage, data engineers start working with the data. It gets modeled, filtered, and joined. Depending on the desired result, engineers might start working with statistics and aggregations. Our homely little data caterpillar is quickly becoming a butterfly. 🦋

Serving

In the final stage of the data engineering lifecycle, the data – transformed into useful information – gets served up to the end user. 🍽️ It might be delivered to a dashboard, a data science team, or a BI platform.

Undercurrents flow across lifecycle stages

Six foundational data engineering concepts flow across the stages of the lifecycle. Engineers need to keep these undercurrents in mind no matter what stage of the pipeline they’re working with.

  1. Security. As data pros, we can never forget the importance of security. At every stage of the data engineering lifecycle, we need to keep private data private and protected from misuse.
  2. Data management. Matt defines this as best practices like governance, maintaining data quality, and keeping track of what data is collected and where it’s stored.
  3. DataOps. DataOps is the integrated approach that takes concepts from DevOps and applies them to data.
  4. Data architecture. We’re not just talking about individual technologies that come and go. This is the big picture of how data gets processed and flows through systems.
  5. Orchestration. Orchestrating data means coordinating all the moving parts of the lifecycle.
  6. Software engineering. OK, yes, data engineers aren’t defined by their tools, but they do need to be proficient in the pipeline’s technology.

You don’t get data science without data engineering

A few years back, Monica Rogati proposed the data science hierarchy of needs, which has since been cited all over the Internet. Up at the top are functions like AI and deep learning – the glamorous things that keep data scientists on those “sexiest jobs” lists.

Data science hierarchy diagram
Monica Rogati’s infamous data science hierarchy of needs illustration

But you can’t get there without a solid foundation of less-sexy layers like instrumentation, infrastructure, and anomaly detection.

“Everyone wants to deliver a really awesome dashboard or a model to transcribe speech or a live operational analytics dashboard for situational awareness,” Matt said. “But to do that, you have to have these layers underneath and you have to have communication between the different layers.”

Even if you have every layer of the pyramid in place, Matt said, if the data engineers in the basement don’t communicate the awesome things they’re doing with the analysts halfway up, and the analysts don’t tell the engineers what kind of insights they want to create, you won’t successfully execute the functions at the top.

So, despite its reputation, data engineering is not a mystical art. 🪄 Nor is it simply being really, really good at Airflow. It’s the mechanism that allows data science to produce the amazing insights we’re all aiming for.

And the better analysts and other stakeholders understand how data engineering works, the better they’ll work with engineers and get the results they’re after.

Want to learn more? Check out Matt’s full presentation on the data engineering lifecycle from our Summer Community Days here. 👈

✨ Then head over to the Operational Analytics Club to share your view and join the conversation.

Related articles

Customer Stories
Built With Census Embedded: Labelbox Becomes Data Warehouse-Native
Built With Census Embedded: Labelbox Becomes Data Warehouse-Native

Every business’s best source of truth is in their cloud data warehouse. If you’re a SaaS provider, your customer’s best data is in their cloud data warehouse, too.

Best Practices
Keeping Data Private with the Composable CDP
Keeping Data Private with the Composable CDP

One of the benefits of composing your Customer Data Platform on your data warehouse is enforcing and maintaining strong controls over how, where, and to whom your data is exposed.

Product News
Sync data 100x faster on Snowflake with Census Live Syncs
Sync data 100x faster on Snowflake with Census Live Syncs

For years, working with high-quality data in real time was an elusive goal for data teams. Two hurdles blocked real-time data activation on Snowflake from becoming a reality: Lack of low-latency data flows and transformation pipelines The compute cost of running queries at high frequency in order to provide real-time insights Today, we’re solving both of those challenges by partnering with Snowflake to support our real-time Live Syncs, which can be 100 times faster and 100 times cheaper to operate than traditional Reverse ETL. You can create a Live Sync using any Snowflake table (including Dynamic Tables) as a source, and sync data to over 200 business tools within seconds. We’re proud to offer the fastest Reverse ETL platform on the planet, and the only one capable of real-time activation with Snowflake. 👉 Luke Ambrosetti discusses Live Sync architecture in-depth on Snowflake’s Medium blog here. Real-Time Composable CDP with Snowflake Developed alongside Snowflake’s product team, we’re excited to enable the fastest-ever data activation on Snowflake. Today marks a massive paradigm shift in how quickly companies can leverage their first-party data to stay ahead of their competition. In the past, businesses had to implement their real-time use cases outside their Data Cloud by building a separate fast path, through hosted custom infrastructure and event buses, or piles of if-this-then-that no-code hacks — all with painful limitations such as lack of scalability, data silos, and low adaptability. Census Live Syncs were born to tear down the latency barrier that previously prevented companies from centralizing these integrations with all of their others. Census Live Syncs and Snowflake now combine to offer real-time CDP capabilities without having to abandon the Data Cloud. This Composable CDP approach transforms the Data Cloud infrastructure that companies already have into an engine that drives business growth and revenue, delivering huge cost savings and data-driven decisions without complex engineering. Together we’re enabling marketing and business teams to interact with customers at the moment of intent, deliver the most personalized recommendations, and update AI models with the freshest insights. Doing the Math: 100x Faster and 100x Cheaper There are two primary ways to use Census Live Syncs — through Snowflake Dynamic Tables, or directly through Snowflake Streams. Near real time: Dynamic Tables have a target lag of minimum 1 minute (as of March 2024). Real time: Live Syncs can operate off a Snowflake Stream directly to achieve true real-time activation in single-digit seconds. Using a real-world example, one of our customers was looking for real-time activation to personalize in-app content immediately. They replaced their previous hourly process with Census Live Syncs, achieving an end-to-end latency of <1 minute. They observed that Live Syncs are 144 times cheaper and 150 times faster than their previous Reverse ETL process. It’s rare to offer customers multiple orders of magnitude of improvement as part of a product release, but we did the math. Continuous Syncs (traditional Reverse ETL) Census Live Syncs Improvement Cost 24 hours = 24 Snowflake credits. 24 * $2 * 30 = $1440/month ⅙ of a credit per day. ⅙ * $2 * 30 = $10/month 144x Speed Transformation hourly job + 15 minutes for ETL = 75 minutes on average 30 seconds on average 150x Cost The previous method of lowest latency Reverse ETL, called Continuous Syncs, required a Snowflake compute platform to be live 24/7 in order to continuously detect changes. This was expensive and also wasteful for datasets that don’t change often. Assuming that one Snowflake credit is on average $2, traditional Reverse ETL costs 24 credits * $2 * 30 days = $1440 per month. Using Snowflake’s Streams to detect changes offers a huge saving in credits to detect changes, just 1/6th of a single credit in equivalent cost, lowering the cost to $10 per month. Speed Real-time activation also requires ETL and transformation workflows to be low latency. In this example, our customer needed real-time activation of an event that occurs 10 times per day. First, we reduced their ETL processing time to 1 second with our HTTP Request source. On the activation side, Live Syncs activate data with subsecond latency. 1 second HTTP Live Sync + 1 minute Dynamic Table refresh + 1 second Census Snowflake Live Sync = 1 minute end-to-end latency. This process can be even faster when using Live Syncs with a Snowflake Stream. For this customer, using Census Live Syncs on Snowflake was 144x cheaper and 150x faster than their previous Reverse ETL process How Live Syncs work It’s easy to set up a real-time workflow with Snowflake as a source in three steps: