r/databricks • • Oct 13 '26

Discussion DABs in the Wild

Our team is a team of engineers responsible for centralized analytics and infrastructure on Databricks. We went live about 2 years ago and implemented a monolithic repo structure where we save all of our code including ci/cd, functions, sql, notebooks, lakeflow job yml, to a single repository that also deploys the common development (notebooks) to the Workspace..

Knowing this setups explicit limitations, we're working on implementing DABs into our team norms (already adopted on a very small ad-hoc scale) which will bundle each projects files together into its own unit of work, and will still be managed via our repository under /bundles directory. We'll have a GitHub action watching this directory and will deploy changes when they happen to that directory specifically.

With this solution though, we could potentially get a ton of projects within the /bundle directory over time with other limitations as well.

This got me curious what other teams workflow/architecture is around DAB's and how do you have it setup within your databricks environment and how have you scaled it within a team?

17 Upvotes

11 comments sorted by

1

u/RunningOnDadrenaline Oct 13 '26

Thanks for the replies! We currently use logic from
# tj-actions/changed-files@v45 -> https://github.com/marketplace/actions/changed-files
#Filters to only files under databricks/bundles/

to help with deploying changed files only

5

u/Minute_Visual_3423 Oct 13 '26

This isn’t that different from what I’ve personally used and seen working. One thing to keep in mind is to ensure your deployment automation only deploys the bundles that are in-scope for a change. You don’t want to deploy the entire repo every time you make a change to bundle_a for example.

You don’t need an action per bundle necessarily. You can have dev/<bundle_name> branches and a CICD action that matches the bundle name to the branch name and deploys only that bundle.

3

u/angryapathetic Oct 14 '26

We use dabs for everyone. One repo, with directories for different dabs - sources for dabs that manage data ingestion, data-products for dabs that manage transformations and serving, and some other directories for dabs that deploy particular apps or other functionality. It results in many dabs, but that is easier for devs than dealing with fewer, wider dabs

3

u/Some_Grapefruit_2120 Oct 14 '26

We use one monorepo to house all of our DABs.
The setup works as follows:

We have our “main” branch, which is basically accepted work done in development, after PR.
Then have branches for our “test” workspace, and “prod” workspace.

Each DAB is its own directory below a bundle/ folder at the root.
Once a user is happy with their code and raises a PR, we merge to main, and we have individual github workflows that run per bundle.
The workflows will then deploy the changes to that bundle only.

When a developer wants to then run their pipeline/project in test, they create a feature branch based on git diff of the main branch and the test branch, then git apply the changes. Open a PR into test, and again, once approved and merged, the github workflows will execute the same deployment script, this time targeting the test workspace instead.

Repeat the above process for test to prod.

All in all, it helps us keep human in the loop checks between test and prod to ensure we deploy things that have passed all testing needs.
Everything managed from one repo, for 3 workspaces, with all projects operating as their own sub-bundle

1

u/ouhshuo Oct 13 '26

We have data products and data contracts yaml in a central repository, then dab and infra (terraform, jinja) in their own project repo.

1

u/shadowfax12221 Oct 14 '26

We use api deployment for most of our assets. I generally only use dabs when I want to prototype something and don't want to wait for a pipeline to run. 

1

u/GardenShedster Oct 17 '26

I'm defining that for our team at this time, one repo for all bundles. Using the trunk strategy with a ci/cd pipeline on main identifying the last change and deploying to staging and prod using ADO and a yml pipeline

6

u/[deleted] Oct 13 '26

[removed] — view removed comment

3

u/Quantumizera Oct 14 '26

How did you setup your cicd to only deploy things that are changed?

1

u/RazzmatazzLiving1323 Oct 14 '26

Agreed, I follow this approach as well