Share to gain more social capita
Written by — Arne Kiaupa, Data Architect
Written by — Arne Kiaupa, Data Architect
Share to gain more social capita
As a quick recap, Databricks is a unified multi-cloud AI and data platform, which currently sees a heavy growth rate; for instance EMEA region is currently experiencing 70% annual growth in partner certifications. The founding members and community have been heavily involved in creating multiple open-source data technologies and other paradigms that have already shaped the data industry substantially; Apache Spark, Delta Lake, Lakehouse, medallion architecture just to name a few, and the Databricks platform is built on top of these paradigms. It’s no surprise therefore that Databricks has on multiple occasions and by multiple references scored highly on rate of innovation and visionary thinking.
As a consumer, the rate of changes and new features in Databricks, can on occasion seem quite overwhelming. At the start of the decade, Databricks was still “only” a big data transformation and machine learning tool, heavily leaning into their proficiency in parallel computing. Slowly but surely (and lately not so slowly), Databricks has ventured into new territories; serverless computing, app development, agentic development, data ingestion & orchestration, data context enrichment and many others.
From Databricks’ perspective, one of the most hyped-up announcements in recent memory has been the arrival of Databricks Lakebase. Databricks promises permanent changes to the way we think about transactional databases, having them co-exist with our analytical data processes. This is a very interesting conversation-opener when we consider the traditional division of labor between operational database operations and data analysis. Core operational databases can have decades of history and often legacy technologies are involved, so the cultural shift in the way of thinking here is certainly a big one. Tearing down the wall between these previously distinct nations is definitely not something that will happen overnight.
Photo: Data Architect Arne Kiaupa working in the office.
In brief, Lakebase is a serverless transactional database (OLTP), based on PostgreSQL, that lives inside the Databricks ecosystem. Compute and data storage are separated, enabling numerous parallel processes and including the possibility to scale compute according to need (as well as scaling to zero). Computes can be scaled up to 128 GB RAM, with a dataset maximum of 16 TB and a connection cap of 4000. One of the interesting aspects of Lakebase is the possibility for data branching: instead of making a physical copy of your production data, you branch out your production environment on a temporary basis and let the Databricks backend handle the rest. This means no more jumping between test and production environments, streamlining things a lot for developers (and potentially business users as well).
Furthermore, Databricks promises that Lakehouse and Lakebase data are tightly integrated, so any outcomes of analytical workflows can be synced to Lakebase rather quickly using a managed Lakeflow pipeline, which is run in the background. And vice versa, any frontend-user data entered to a Databricks app can be used for analytics in the matter of minutes with the use of Change Data Feed (CDF).
But how well does it actually work, and what is the user experience like? We wanted to demonstrate it for ourselves, although it wasn’t feasible to do a full-fledged mock-up of a production environment; rather we wanted to illustrate some of the core features of Lakebase. For the purpose of using actual data, we utilized openly available Digitraffic vessel data as well as ice condition data provided by Finnish Meteorological Institute (FMI) and delivered by EU Copernicus Marine. Then we built a Databricks-based dynamic application that allows us to view icebreaker assignments and dispatch the icebreakers to accompany ships in icebreaking needs in the areas of the Gulf of Finland and Gulf of Bothnia. Furthermore, for the deployment of app, app-related infra and data, we used the Databricks declarative automation bundles (DAB).
We simulated an icebreaker dispatch system, IceBricks, that displays Baltic Sea icebreaker and other vessel locations (for instance freighters and passenger ferries), along with ice layer conditions overlaid onto the map. This was deployed as a Databricks app with a React frontend and a FastAPI backend reading from and writing to Lakebase PostgreSQL.
Image 1: Icebreaker web app built on top of Lakebase.
As the winter season hasn't started properly for this year, condition data from last season was used. For vessel locations, fresh data was used and they were extracted to Lakebase. We simulated features for an end user who dispatches icebreakers to help out other vessels, and the end user could set priorities for the different tasks. Furthermore, in order to simulate the data branching behavior in Lakebase, the fictional dispatch operator was able to set up scenarios for different seafaring circumstances.
Data extraction was done using python scripts in scheduled Lakeflow jobs to pull the data from the respective APIs: vessel locations, port restrictions and ice layer conditions. After data extraction and transformation, the data was then synced into the Lakebase PostgreSQL database.
After setting up the app and related workflow, a stress test was conducted to simulate actual usage. This includes setting up 20 simulated planners (or dispatch operators) that will run simultaneous read/write operations and test scenarios using data branching. Requests were scaled up to about 20 requests per second, several testing branches were created and retired and data syncs and board responsiveness and error-proneness were tested. The entire stress test took about 30 minutes. For a real-life case the simulated numbers might be on the upper end; it might be rare to have a dispatch application with 40,000-80,000 hourly requests. Data syncs contained updates up to 500,000 rows (ice chart).
Image 2: Stress test result visualization.
In brief, the stress test had a relatively low impact on the performance and responsiveness of the application. Furthermore, data syncs seemed to have no measurable and adverse effect whatsoever on the application with ~500,000 updated rows.
All in all, the deployment workflow for setting up a Lakebase, the related data pipelines and any interactive tasks seem straightforward to understand and set up. Data branching is an interesting and seemingly useful feature, and not necessarily only for backend developers: in this example, the simulated dispatchers themselves were using it. Databricks CLI and DAB work smoothly together with agentic workflows.
For a short demonstration, these Databricks features summed together seemed like an encouraging premise. The technology seems ready; however, the mental shift it takes to have business-critical operational workflows and analytics coexist under closely-coupled tools is still there. This is perhaps best approached by starting with a well-selected and scoped use case.
The author is not a web developer, but a Databricks enthusiast.
Bringing operational applications and analytics closer together opens up new possibilities for how businesses put their data to work. However, knowing where to start and which use cases are worth pursuing is key.
Whether you're already running Databricks or exploring its potential for your business, our experts can help you identify the right use cases, validate their feasibility and turn them into production-ready solutions. Contact us today!
Share to gain more social capita
Written by — Arne Kiaupa, Data Architect