Skip to main content

From Spaghetti Bowl Pipeline to DLT Efficiency

Summary

  • Legacy Pipeline Modernization: Convert complex Alteryx workflows into clean, simple DLT pipelines built on Apache Spark and Delta Lake for better maintainability.
  • Democratized Data Engineering: DLT simplifies data transformation, validation, and delivery through declarative pipeline definitions instead of complex procedural code.
  • Enterprise Healthcare Scale: Intermountain Healthcare demonstrates migrating large-scale healthcare data workflows to DLT, improving performance and reducing maintenance burden.

From Spaghetti Bowl Pipeline to DLT Efficiency

Watch: From Spaghetti Bowl Pipeline to DLT Efficiency
Talk by Peter Jones, Analytics Engineer, Intermountain Healthcare
In today's data-driven world, the ability to efficiently manage and transform data is crucial for any organization. This presentation will explore the process of converting a complex and messy workflow into a clean and simple DLT pipeline at a large integrated health system, Intermountain Health. Alteryx is a powerful tool for data preparation and blending, but as workflows grow in complexity, they can become difficult to manage and maintain. DLT, on the other hand, offers a more democratized, streamlined and scalable approach to data engineering, leveraging the power of Apache Spark and Delta Lake. We will begin by examining a typical legacy workflow, identifying common pain points such as tangled logic, performance bottlenecks and maintenance challenges. Next, we will demonstrate how to translate this workflow into a DLT pipeline, highlighting key steps such as data transformation, validation and delivery.
Here’s more to explore:
Production ready data pipelines for analytics and AI: https://www.databricks.com/solutions/data-engineering
The Big Book of Data Engineering: https://www.databricks.com/resources/ebook/big-book-data-engineering-2nd-edition
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

FAQs

What problems does DLT solve?

DLT addresses tangled logic, performance bottlenecks, and maintenance challenges in legacy workflows by offering democratized, streamlined, and scalable data pipeline definitions.

How does DLT compare to Alteryx workflows?

While Alteryx is powerful for data preparation and blending, DLT offers better scalability, maintainability, and leverages the power of Apache Spark and Delta Lake for complex transformations.

Is DLT suitable for healthcare data?

Yes. Intermountain Healthcare, a large integrated health system, successfully migrated complex data workflows to DLT, demonstrating applicability to enterprise healthcare scale.

What is the key difference in how DLT works?

DLT uses declarative pipeline definitions—you specify what should happen and the system figures out how, replacing the complexity of procedural ETL code.

Full transcript

Uh, welcome to Spaghettiable Pipelines from Spaghetti Bowl Pipelines to DT Efficiency. I wanted to talk a little bit today about our journey into hardcore addiction to data bricks tools. Um, a little about let's see a little about who we are. There we go. Um, I come from Inter Mountain Health. We're a integrated healthcare system in uh primarily the western region of the US. You can see some of our numbers up there. So, we're largeish, not huge, not small.
Um we have recently expanded into other states so uh growing but and then just an idea of where we're where we operate. Uh you can see we kind of operate from the Sierras to the Rockies just past the Rockies. So kind of inner mountain west region. Um a little bit of history on Inner Mountain. If if you've been in healthcare data for very long you probably know this guy or maybe not and I'll introduce you to him. He's Dr.
He he was a cardiologist at Inter Mountain Health and he was pioneered the use of computers in medicine. So if you think about medical informatics, this guy was one of the first to start using computers in medicine. Um he worked in the basement boiler room of LDS hospital. I used to work in infectious diseases right next to his office and it it was terrible in the summers. It was really hot. Um, but he put computers down in that basement boiler room and was running uh computers and analytics on really old machines.
So, one of the first. So, and he he uh helped do some of the VA some of the early VA medical record systems. So, kind of an interesting bit of history about Inter Mountain Health. So, who am I? So, this is what chat GPT thinks I look like and I'm not going to argue. He's a pretty handsome guy, I think. I don't know. I wish I could meet him. Um I was a librarian for 20 years. Uh got interested in medical informatics at the University of Utah and then moved over to medical librarianship and then got interested in reproducing studies from the literature which got me into data and statistics and computers and informatics and all that good stuff.
So what I do now is analytics engineer in in healthcare. I do data engineering primarily but we do also app development, cloud infrastructure. Um I still dabble in medical informatics. I was in the graduate program at the University of Utah. Still still dabble in that up there. I do serve as the data bricks account admin and I really love chickens. So, uh this is probably a more realistic portrait of what chat GPT thinks I look like.
Um so, and then this is this is actually a really good representation of my chicken. So,. Um, so if you imagine I'm a happy happy little data engineer just building my pipelines, whistling while I work, and an email from the boss comes in. They say, "Hey, supply chain needs a little bit of help converting their workloads workloads over to this shiny new tool that we just bought called data bricks. Uh, do you have a couple of hours to help?"
And so I say, "Hey, this this sounds like a quick win. Sure, I'll do that. um make supply chain happy, make my leaders happy, uh and then I'll get some practice using some of these interesting new tools. And at this time, the gateway drug for us was Delta Live Tables or it might be called LakeFlow Pipelines now. Um I'm pretty sure so those two things are synonymous. Um so I was expecting this to be a couple hours of work and happy people all around and backs slapping.
So I want to pause there. If you're in if you're in healthcare data engineering, what kind of feelings come up when you hear that, oh yeah, it'll just be a couple of hours. It'll be quick win, boredom, hunger, existential dread starting to creep in. Yeah. So, the spaghetti bowl dropped. Um, turns out there were several dozen of these workflow files. We opened them up and they were just like I said, spaghetti bowls. Um, this is probably pretty familiar to anybody who's been working in data engineering for very long.
Very much a legacy click. Well, I won't say legacy. It's a click ops tool. It's great. Um, so you you orchestrate pipelines this way. You configure all these little nodes and you drag your little spaghetti noodles between the nodes and it works. Um it it helps. There were some complications though. So uh one of the things that was bugging us was that we were going to lose a license to our legacy tool in a couple of months.
So there was a deadline on this, right? Um another thing was the ClickOps tool had some eccentricity. So it it handled data, it handled nulls in ways that we didn't expect in non-intuitive ways. Um, and then the sources that sourced the supply chain workflows were being decommissioned onto new onto new sources in fairly short order. So you can imagine, hey, this is a leadership comes and says, hey, this is a couple hours.
And then you find out, oh, we're losing the license in next months. Oh, our sources are being decommissioned. So the pressure starts to build, right? So I'd been dabbling around with Delta Live Tables for some time. And the thought came up, hey, could we use Delta live tables to maybe help us do some of this stuff? And the TLDDR is yes, it works great for redesigning those data pipelines that have kind of accreted over the last 20 years in other tools, right?
So once I picked my jaw up off the floor and looking at those spaghetti bowl workflows, um, yeah. Okay, I already did that slide. Sorry. Um, so this is kind of the legacy tool we were using. A lot of you can probably guess what this is. Um, I won't say the name because uh, no shade to this tool. It I just think about it just doesn't really map with the way I think about things. So the benefits of the legacy tool were it was a click ops interface.
So a lot of people could get onboarded very quickly. People could work in the tool. Um, the configuration was fairly easy. uh it was easy to kind of draw thing like have multiple dependencies upstream and lead those to the downstreams through those kind of spaghetti noodles. So that was pretty cool. But when we moved to Delta live tables, it it brought us a lot of really good things. So one of them was it it moved us into code ops.
So all the benefits that come along with code ops, versioning, CI/CD, um it helped us manage complexity a lot easier. It helped us manage uh collaboration a lot more easily if we could work in GitHub repos and share and share pipelines and code between people much more easily. We could also deploy to multiple different environments very easily where we couldn't do that in our legacy tool and it was version. So the only drawback I really saw when we started implementing Delta live tables was that it was a bit of a steep learning curve.
So people were used to the click ops visual guey tools and configuring their little their little tool nodes um and now they had to actually write code in files in SQL things like that. So that was the only real downside to moving to delta live tables. So I wanted to talk a little bit. One of the things that really helped us was that Delta live tables and Delta job data bricks jobs lakeflow jobs now um was the elegance with which it allowed us to handle complexity.
So if you had a you can have nested DAGs in a in one workflow. So on the left hand side you see that there's a job defined. The job has it basically runs notebooks, Python notebooks in a DAG fashion. So it can have dependencies. So you run this then that then that then that. You can use upstreams into multiple downstream nodes. So you can do things like grab data from upstream sources or APIs. You can uh refresh tokens.
You can do all sorts of stuff. Anything you can do in Python, you can really do with a with a LakeFlow job. And then that middle node is actually one of the pipelines. So the delta live table. And so you can see how complex you could get. You could have multiple pipelines in the same job. And so if you if you think about these spaghetti bowl pipelines, it help it really helped us to kind of manage that complexity because we could move a lot of those sections into individual pipelines and orchestrate and then orchestrate those pipelines in the job together, right?
So we didn't have we didn't have kind of one screen full of nodes that was hard to reason over. It was it was much more easy to reason over that kind of programmatic and simple DAG and nested DAG. Um so I said Delta live tables were our gateway drug. Gateway drugs are great. Uh we we soon got addicted to something else called asset bundles. Um, if you haven't experienced asset bundles, I I hope th this was listed as a beginner talk, so I hope you all don't know this already.
Um, but asset bundles uh have helped us a lot. It's it's a it's a simple concept, but it has allowed a lot of value in our work streams. So, an asset bundle is just a code programmatic definition of a datab bricks object or collection of objects. um it's an end end toend definition of a project in one place. There's source control, there's versioning, it enables CI/CD processes. So whereas before in the legacy tool we had no way to version things to deploy things to multiple environments, suddenly through asset bundles now we had that ability to programmatically deploy to deploy to multiple environments.
A lot of really good things. So, um, that is what a an asset bundle looks like in a in a folder. So, if you've never seen one of those before, really easy to organize files. You have a resource definition that defines all your jobs and your pipelines. And then you have your source, which is all of your your code, your queries, your Python, everything like that. And then there there a couple other things like the data bricks yl, which defines your targets, things like that.
So, kind of three different concepts there. uh really easy to get to kind of wrap your head around and start building these really complex pipelines. So um in case you're not familiar with what CI/CD is, it means continuous deployment, continuous integration. I think I got that backwards. Continuous integration, continuous deployment, continuous delivery. um that I think that has been the biggest benefit that I've seen in my work is the ability to deploy to multiple environments like that in a quick manner and have a lot of the machinery around building pipelines automated away.
So you you kind of it's pain once you build it on the front end and then you get to enjoy the benefits of it all the way along the pipeline. So it's it's a little bit more work up front, a lot less work down the road. And so if there's one thing I would say is the thing we learned that was the most valuable is that it is setting up your CI/CD processes early. Um it took us getting addicted to the gateway drug of Delta live tables to get to this point.
But but Delta live tables were really just the first kind of the first uh entry into these these data bricks tools and it allowed us to start using some of these amazing other things like CI/CD. So this is actually a picture of our CI/CD well our developing CI/CD process. Um, I won't go too far into this because your organizations will will do this yourselves, but just an encouragement that uh just to encourage you to if if you've been hesitant to start using Delta Live Tables and CI/CD and asset bundles, um, if you choose one of them, the Delta Live Tables is an easy one to choose to start converting those legacy workflows into these data bricks tools and then you'll start to go down the road of hardcore addiction into some of these other data bricks. uh some of these other data bricks tools.
So uh just a last slide before I do thank yous. These I I didn't cover all of the benefits that we saw through implementing data bricks tools, but this is just a just a a a little table of some of the other things that we that we experienced and some of the things that data bricks tools in general helped us helped us do. So I did want to thank a couple of people. So my leaders um were willing to try these new tools and let me experiment.
One of the things we learned was it's very valuable to give your people a little bit of breathing room so they can experiment with new tools and new products and things like that. Um we had a great data bricks account team. So I wanted to shout out, Mark Olsen, and. And then my fellow analytics engineers for curiosity and enthusiasm. So, for leadership, um, and then Swatling for being in the trenches. So, thank you for your kind attention.
If you have any questions, I'll be up here.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.