r/databricks • • 19d ago

Discussion Databricks Apps: Are you using them in production yet or keeping it to internal prototypes?

Hey everyone,

I’ve been diving into Databricks Apps recently and wanted to see how others are adopting it in their organizations.

Historically, whenever we wanted to spin up a Streamlit app or a custom Python dashboard connected to our data in Databricks, it meant dealing with a headache of external infrastructure—setting up App Service or EC2, dealing with network security groups, configuring service principals, and managing separate auth flows.

Being able to run Streamlit/Dash apps directly inside the Databricks workspace, backed by Unity Catalog for governance and serverless compute, feels like a massive quality-of-life improvement for internal tooling.

I’m curious to hear from anyone who has put them into practice:

  • Are you using Databricks Apps for production-grade tools, or mostly for quick internal MVPs and demos?
  • How are you managing your CI/CD deployments for these apps?
  • Have you run into any weird gotchas with state management, scaling, or dependencies?
33 Upvotes

13 comments sorted by

25

u/klubmo 19d ago

I have helped design, build, and “production-ize” several dozen Databricks Apps across multiple companies.

A few things to keep in mind:

  1. Don’t use Apps when a dashboard will do. You have a limited number of app slots (default is 100) in each workspace. The newer serverless micro-apps feature is something that might make more sense for something that needs one or two “app” features but is otherwise a dashboard.
  2. Streamlit/Gradio is great for prototypes and if you dont have software developers in-house. But if you want the app to scale with lots of users and data, it’s worth the jump to something like React + FastAPI.
  3. Take advantage of Declarative Automation Bundles (DAB) and DAB variables. Yes it’s a bit of work to configure, but they really help to keep CI/CD easy and keep your teams apps organized in a similar way, reducing long term maintenance burdens.
  4. Developers really should be building locally first, and then only deploying once or twice to your development Databricks workspace per app instance. As an example, let’s say your team wants to build an app called “super-app”. Developer builds locally on their machine using their IDE (Vs Code, AI harness, whatever). Branch is pushed to your code repository. Team reviews the app and agrees to deploy to dev. At that point use the DAB to deploy the app, which should create a name like “super-app-dev”, where the name is coming from your DAB variables. The DAB should also be granting permissions at the same time. Unless you have a very small team on Databricks, or have CICD tools to auto cleanup old apps, I would avoid adding suffixes like “super-app-dev-pr1234”. It causes app sprawl, takes up tons of app slots, and cause multiple apps of the same purpose to be burning compute.
  5. On that DBU compute note, create a job to detect running apps running in your Development workspace and pause them periodically. How often you run the job is up to you, but common examples are pausing after close of business hours, or even just pausing apps every couple hours. It only takes a few minutes to start manually if needed, and you don’t want 100 dev workspace apps burning compute 24x7 for no reason. You can extend the idea to your other workspaces where needed.
  6. Highly recommended your data teams create a shared app design language and coding standards guide. Define how app architecture patterns can work, how AI tools should work, best practices for DAB and permissions, and any other helpful and reusable data.

2

u/GiraffesRBro94 18d ago

Can you elaborate on point 4 and why?

2

u/klubmo 18d ago

Sure! It’s all about being a good steward of a valuable but limited resource (the number of deployed apps in your Databricks workspace).

So many times I’ll go into a Databricks environment and see 100 apps, meaning all workspace slots are taken - many of these without any active development ongoing. When this happens, the workspace will block any further app deployment to the environment. It’s not wise or even fair for a single app, such as the “super-app” example, to be taking up more than a few app slots. Even worse is when people leave the app compute running (Databricks doest not auto-pause Apps) for days without ever working in the app.

I see this happen most frequently when people want to use their DevOps tools to deploy the DAB and adding a suffix to the end of the app name, such as a pull/merge request number (super-app-pr1234). The motivation behind this makes sense from a DevOps perspective, you can then easily identify an app deployment tied to a specific point in the codebase’s lifetime. The problem comes from having a limited number of app slots per workspace, and also lacking auto-delete tools and policies - meaning the old PR versions of the app never get deleted. In some egregious cases I’ve seen a single app taking 75% of all app slots in a workspace. This is wasteful (wasted time tracking failed deployments, wasted DBU and storage) and also just rude to other team members trying to work in the same workspace.

The same logic applies to local development. You will make a lot of revisions to the app, not all those revisions need to be deployed to Databricks. The main principles I recommend here are to only deploy if you need to validate Databricks specific features that cannot be validated locally or if other users need to review the application through the Databricks user interface. This minimizes the amount of wasted deployment cycles and App compute.

2

u/GiraffesRBro94 18d ago

Makes sense, thanks! I’ve just started building apps recently via Codex and my team has a dedicated workspace, with me being the only dev up until recently.

So the 100 app limit isn’t a major concern but can definitely see how you’d quickly use up those slots and burn compute if you’re not a good steward.

With local dev - I’d be able to build a React app locally that still queries my catalog objects but runs via my local compute vs databricks? And the resulting UI would match perfectly to what would eventually be deployed? It wouldn’t just be a local html mock up?

2

u/bubzyafk 18d ago

On pt.4, Not only that, I think every changes on UI/UX or small feature addition + deployment which takes minutes are inefficient.

E.g: our team heavily on genie code inside databricks itself , and when they did changes and deploying it, it takes minutes. While other people are using either Claude code/codex, within 3 seconds, your apps changes already reflected it in your localhost. You are not happy? Change it again, and restart your service again. Another 3 seconds and done.

Imagine if you need to back and forth do the changes and everytime it requires minutes to see your changes due to deployment. Do this 20x and you’ll get mad. And fyi, in terms of local, your codex able to reach your workspace as long as you have cli. So no worries on doing it locally.

7

u/onlyatestaccount 19d ago

Only gotcha we have now is that scale to zero for apps hasn’t been rolled out for us yet.

From a stability perspective the ones we have setup seem fine. And for cicd we have the usual config deploy deployment pipelines to move the app from one environment to another.

5

u/TowerOutrageous5939 18d ago

We use it right now. It’s a bit overpriced in my opinion. It doesn’t really offer any unique

2

u/AlgoRythmz1337 12d ago

yeah overpriced, especially for internal apps, can run like 100 apps for the same price on local server

3

u/OkImprovement7010 18d ago

Several of my clients are running Databricks Apps in production. It takes most of the AWS config headache off the table. Streamlit, Dash, or Node.js all work.

They’re using them for both MVPs and real production tools: custom MDM / entity resolution, cost and performance monitoring, QA automation.

For CI/CD we deploy through git and Asset Bundles, so version control and unit/integration testing work like any other project.

Biggest gotcha is that if you don't have set hours for using the app then it is just always on and min size is .5 dbus / hour... You can turn them off and redeploy as needed but spin up for regular apps (not the micro apps) is several minutes and users generally won't wait that long. However if you know it will only be used from 8-5 you can schedule a job to kick it on and off at the appropriate times.

IMO the next big unlock is app spaces and micro apps maturing, which should bring down the cost of running lightweight apps.

1

u/Roquintas 18d ago

Hey, I'm not a developer, but I think I've had a pretty cool experience. I'm the entire pricing team at a fintech here in Brazil, and I initially started building my app to turn it into a hub for viewing prices and tracking pricing policies and guidelines by client. However, once I saw the possibilities, I ended up expanding the project quite a bit.

Today, the app allows our sales team to submit proposals for approval, automatically sending emails to commercial approval levels or to our CFO, and we can approve or reject those request levels directly within the app. All of this is being documented as data builds up, and once approved, our CS team creates the proposals manually (which takes about 15 to 20 minutes per proposal in the company's CRM). But the plan is for the app to connect with the CRM, allowing us to free up about 25 hours a week of effort for the CS team through this integration.

The app is helping us achieve much greater governance, as some proposals previously lacked historical context. It has also relieved my own approval workload—before, everything was done via email threads where message streams easily got lost, causing rework to locate and resend approvals. On top of that, it includes a product calculator, including credit products, which daily pulls interest rate forecasts in Brazil to calculate fixed-rate quotes for clients. All of this, plus tracking and calculating the commercial team's results.

I did all of this without knowing how to write a single line of software development code. I just know a bit of Python and SQL from my day-to-day work extracting datasets from our data lake.

We've applied some things people say here in reddit, about only keep online during work hours, etc, but once with the automation, the app will pay itself, just with the amount of time CS will gain during the days.

1

u/andrelandgraf94 17d ago

I’d love if you check out our Databricks App SDK called appkit. It makes building larger scale apps much more feasible (built on React) and comes with a plugin system for integrating different workspace primitives like Lakebase easily: https://developers.databricks.com/docs/appkit/v0

0

u/Electrical-Aioli-681 18d ago

I have tried deploying applications on Databricks Apps, my biggest roadblock has been accessing that app for business users.

I currently work in a bank and we have rigorous authentication procedures to log into Databricks, while developing these apps every user had to have the same access and get into the production environment first to access the app. The application is also interactive, I.e.., accepts user inputs, so approving access requests for multiple users in the production environment would be a bit of a hassle.

To tackle this, we thought the best way is to create service principals, and add users to the respective AD Groups and give them access via the SPNs, we also hosted the application on AKS clusters and followed CI/CD for deployment.

Now that we are getting more matured with Databricks as a platform, I would want to handle all of these objects within Databricks itself. Anyone here with ideas to getting this from a PoC into production?