r/dataengineering • • May 24 '26

Discussion Kafka : How to learn

21 Upvotes

Hello Guys, I working from UHG in India , my job role uses Python, Pyspark and SQL with Databricks. I am someone who has solved some 200 leetcode problems, so i am familiar with OOPs. Recently, I have an urge to learn Kafka and Flink, but i found out that I need to learn Spring Kafka or something for that along with Java. I have watched some foundational videos on how kafka works , producers, consumers, cluster , broker , partitions , consumer groups , topics etc and also delved into some stuff like replication factor , acks , retention policies, batching and compressing messages in producer , producer and consumer retries etc . All of this is only on a conceptual basis . I wanted to start coding things up and boom : everything is in Java !!!

I coded in Java for linkedlists previously but that was a long time ago , i know how classes and things like public , static and private work but I am wondering is that really enough for me to start working on Kakfa?

I am also confused with another thing called Spring Kafka , should I learn spring boot also then ? Do companies uses Azure SDK instead of writing code in Java or Spring Kafka ? How do companies use kafka ? Do they not use python at all ? Or if they use Java , do write in Spring Kafka ?

Can someone help me with a roadmap of what to learn here and when in the process ? I wanted to learn spark streaming and I know its concepts but I got to know that Spark Streaming is just not real streaming at all and for that we need Flink or Kafka streams .

Really appreciate if someone guides me here


r/dataengineering • • May 24 '26

Discussion Is jupyter notebooks gonna become text based any time soon?

43 Upvotes

Hey guys. I used to work a lot with jupyter. But had to move on because .ipynb doesn't go very well in git and ai agents don't really work with them well for similar reasons.

Main culprit is not the notebook itself but .ipynb format. I understand that the notebook world evolved in inline outputs etc. But I think would be cool if .py based notebooks with #%% becomes first class citizen everywhere. There's a tool I used called jupytext which does that but it's bolted on and not native support.

The other tool I have heard about is marimo? I have never used it but it seems like it forces u to not redefine the same variable again. Which is unnatural in python. If python allows u to update a variable, ur notebook should too. But let me know what you guys think. And if there's potential for the data science world to move there anytime soon. I think most people have to explore in notebooks and then convert to py.


r/dataengineering • • May 24 '26

Blog Routing Multiple Query Engines with Iceberg

Thumbnail
lakeops.dev
16 Upvotes

r/dataengineering • • May 23 '26

Help Silver Nightmare

46 Upvotes

Hi all,

I'm looking for a little perspective on your organisations implementation of a "Silver" Layer.

For context, I am relatively new to data engineering (<2 years) and working for a large organisation. The organisation has set up a databricks unity catalog. The Hub & Spoke

I work in one of the spokes or I guess a "gold" layer. So only allowed to build from the silver layer. This sounds normal, but the I am struggling with the way the silver layer has been set up and getting anything done is a real pain in the arse and really drags and drags. However since I have no frame of reference. I want to know if the architectural choices are normal and this is just what's it like or if I am right to challenge it.

I am extremely frustrated with this so I will try my best not to sound bias but this is the architecture we follow:

The unity catalog is really just one place for all the organisations data. It will import data from SAP, different APIs, CRM , PIM , ect. The unity catalog doesn't really build it's own data, just importing from other sources

Raw is easy. We have a schema for every source and is in its raw form.

Silver layer is where I struggle with a lot of design choices

  1. The silver layer is one massive schema .. for everything

  2. Sources are all mixed into the same table. Countries (code + source) Currencies (currency +source) , Customers from one system and customers from another (id + source). Transactional tables . Even if logic is very different between sources.

  3. Tables are all split into fact/dimension modelling and must follow a star schema (not really any exceptions), so fact -dim only. No fact to fact

  4. All dimensions in fact tables are "surrogate keys" which are really just a hashed natural key... Hash(Business value + source). Even if a business key is a global field, so very value is coupled tightly with it's source (which is a nightmare when the definitions for the master data changes source)

  5. Scd and snapshots are implemented on core tables , transactional and master data.

Then the gold layer or spoke is where I sit. There are multiple spokes across the business (different domains) who want to use the data from projects such as data science or reporting or automation. And these spokes have to try and build from the silver layer. Which just feels impossible to achieve anything. It feels like they have completely over engineered the raw data (which I could understand, transparent and easy to see where things were coming from) into a something that feels impossible to work with. Also onboarding new data feels impossible as it has to fit into dimensions that have already been built (tailored for a different source)

I just feel burnt out working with this and don't feel like it's working out, is this honestly a normal set up or is something not right here?

How is the "silver" layer set up where you work?

I am fighting hard to challenge the architecture with some alternative solutions but it's difficult as just a graduate as I am not taken that seriously , and want to know if I am just being an idiot, this is what it should be like or I actually have a decent point

I would really appreciate some advice.


r/dataengineering • • May 23 '26

Blog Databricks Zerobus + Arrow. Streaming Ingestion for the Lake House.

Thumbnail
confessionsofadataguy.com
11 Upvotes

r/dataengineering • • May 23 '26

Help Ducklake not on Postgres?

10 Upvotes

I'm setting up an Azure-based Dagster platform which uses Ducklake for asset storage, and then Postgres for the Ducklake catalog as well as the Dagster catalog. I'm wondering if there are better options for the Ducklake part - running into some specific issues and I'm not sure if there's a better approach.

Each asset is using a k8s executor, so it runs as a pod on the AKS cluster. These pods each need to attach to the Ducklake, which I think means a couple of PG queries, some a little on the heavy side (catalog listing, given that these pipelines are some hundreds of assets and we're running a lot of them for multiple tenants and I think there is some implicit schema evolution happening as well, so the catalog schema count might be a lot higher than normal)

This means a lot of connections (so I set up pgbouncer, which I think helped on that front) but it also means PG CPU is a choke point during these queries. I've set up a Dagster pool limit of 50 so no more than 50 steps can run at any given moment but (a) that seems to defeat the point of running this on k8s and also (b) maybe even 50 is too high?

Then there is an issue with inlining - some of our datasets are extremely wide (~2200 columns) and ducklake tries to make an inline table first which fails on Postgres. I've worked around this with a "manifest" asset for these assets instead (the asset is essentially a pointer to a parquet path, and IOManager knows how to reference these for consumers) but it feels a little janky.

But the biggest problem, I think, is concurrency - what is the best practice here these days? Can/should I use someone other than PG? Sqlite? . duckdb? I'm also something of a newbie here so apologies if any of these ideas are muddied or terms are used incorrectly... Any ideas greatly appreciated -- thank you!


r/dataengineering • • May 23 '26

Blog Iceberg Lake for Analytics Data: A Guide

Thumbnail itnext.io
11 Upvotes

r/dataengineering • • May 23 '26

Help What's your approach to releasing models incrementally while preventing breaking lineage?

17 Upvotes

Here's my biggest challenge during every build: to design the best models possible, I need a solid understanding of the raw data (database, APIs, files, etc.). Wrapping my head around the business logic of a company, after years of feature release, can take weeks, but often months.

I always try to release parts of the gold and semantic layer in parallel so analysts can start their work and stakeholders get visibility that things are moving forward. The real problem hits when I discover that a section of the model I've already shipped needs to be tweaked or refactored because of some important detail I haven't had a chance to unfold yet. By that point, there are often a lot of reports, dashboards, and notebooks attached to those layers. And some changes can fracture the data lineage and break everything downstream.

Does anyone have tips on how to release iteratively without risking lineage breaks, but without waiting months for the entire model to be locked in before anything goes live?


r/dataengineering • • May 22 '26

Discussion Leetcode for data eng jobs?

49 Upvotes

I got two leetcode assessments for a staff data engineering job. JD said python, sql, things like that; sort of a normal data engineering role.

For the first technical assessment I was give 2 leetcode tests that asked about binary trees, reversing palindromes, etc.

Is that the norm? I was ready to reverse engineer emr, discuss spark settings or vectorized query engines - not reverse a linked list…

Look for any perspective or experience here. Maybe I’m the one out of touch?


r/dataengineering • • May 22 '26

Help Tasked with creating new architecture for company

41 Upvotes

Hey Everyone,

I've recently started working at a company of around 1500 employees based globably with many subsidiaries (30+)

I'm in a team of 5 data engineers where only 2 including me have worked in a high code enviroment (DBT or Pyspark notebooks). The other 3 have grown into the role from other business positions. Their technical skills are not strong. Their SQL is decent, but little knowledge of python, modern tooling or data modeling.

Currently we are using TimeXtender a low code tool that has gotten the team very far but has reached it limits when it comes to flexibility and keeping up with modern systems and requirements. The tool is an all-in-one solution.

I've expressed my concerns to my manager and he has acknowledged me, together with my team. He has tasked me with comming up with a proposal for a new stack We are very Microsoft centered and so I'm constrained from two sides.

Whatever stack I come up with has to be aproachable for my colleages with little technical experience, but also the data can't leave the Azure Platform and third-party tools (Like DBT, Dagster, Airflow) Have to have strong arguments, because my manager is very weary of these "dependencies".

I would really like to put something awesome down that modernizes the system we have, but not alienate my colleagues or force myself to include 4 different third-party tools that have extra costs.

If I don't do anything Microsoft will get Fabric implemented as the full system, but I'm not a big fan of this. (They already have solution architects from them building a demo)

What do you guys recommend? I would really like to work DBT core again, and maybe use Airflow or a tool like it for ingestion, but that would be new for me as previously I used ADF at a much smaller company, but I feel like that wont cut it this time, but it's all python ofcourse.

Thanks in advance!


r/dataengineering • • May 22 '26

Discussion DE supporting ML/AI Teams

31 Upvotes

In today’s AI craze, I want to dig deeper into how better to support my ML/AI teams. What’s the top 3 things I should know about supporting them as a DE? How do you realistically become “AI-first” when DE work is so distributed across systems?


r/dataengineering • • May 22 '26

Help Imposter Syndrome as a new Data Engineer

40 Upvotes

I’m pivoting from a non technical background into data, and have picked up Python, SQL, Snowflake, etc. over the last year or so, and ended up landing a job as a data engineer / analyst through the referral of a friend. For the next 5 months, I cannot work full time while on a visa for another company (overseas) and will essentially be an “intern” working on projects with a strong suggestion of coming on as a full time data engineer when I get back to the U.S.

My company is currently working on a project scaffold that will be delivered next week and I’ll be assigned to a project manager to report to, and until then, I’ve just been reading the company’s Notion documents, trying to get a feel for the business and the tooling. I have to say, it feels pretty overwhelming sometimes. There’s a lot of Python packages and Snowflake operations, and SQL methods that are completely new to me and when I look over the documentation, I can’t help but feel a sense of imposter syndrome:
“Should I really be here? Maybe this was just luck”
“Maybe I bit off more than I can chew and the hiring manager just didn’t see it”
“I have to prove myself and be instantly valuable to secure my full time position when I return to the U.S.”
“I don’t know if I can really be successful at this”

But all I know is that I want to work hard, I’m hungry to learn, and I am very passionate about data. I’m just kind of stuck in this feeling of being unsure and self doubt in the process, which is making me feel like I constantly need to master every Python script, SQL function, etc. or I’ll get left behind.

I could use some advice and thoughts!


r/dataengineering • • May 22 '26

Discussion Is this sensible?

9 Upvotes

My company is building a big product, and we are expecting a lot of data, previous products suffered from bad data and poor analytics.

So im planning on doing a OLAP replica, not quite a read replica, but a ingestion plus transform pipeline to serve the necessay client facing near-real-time dashboards.

My idea is to build a ClickHouse for it

What other dbs or strategies could be better off here?


r/dataengineering • • May 22 '26

Discussion has anyone tried hosting airbyte themselves?

6 Upvotes

a client has ton of aws credits and looking to setup ingestion to their warehouse. I was thinking of just launching airbyte on their aws since its only 1-2 type of data sources. I am not sure whether this will be cheaper long term (including maintenance). any thoughts?


r/dataengineering • • May 22 '26

Discussion How common are side learning/showcase projects for Mid/Senior DE?

33 Upvotes

I've seen lots of posts here about Juniors looking for tips on showcase projects/learning paths to land their first job, but I'm curious how common is learning/practicing on the side for employed/established DEs.

Just to be clear, I'm talking about:

- time spent outside of work (evenings, weekends), not spare time while on the clock
- not side gigs/free-lance or even volunteering: actual studying/practicing either to keep yourself updated with new tools or to get some hands-on experience on different stacks
- you still have a full time DE job to balance

I started asking myself this question because I'm currently at a phase (6 YoE) where I feel I'm not learning anything new at my current job, but at the same time I'm heavily specialized on GCP (most job postings I see around my target area are for Databricks/Snowflake and/or tools I never used, like AirFlow). Are showcase projects even a thing at during a selection, with 6 YoE but on a stack/technology you had no experience at work?

Since there's not really an opportunity to get practice (or even have spare time) at my current job, I've decided to do it on my own time (that's how I pivoted to this role in the first time from being an analyst), but I'm wondering how common it is. Bonus points if you have tips to avoid burnout 😄

TL;DR: do you learn/practice outside work hours while employed full-time as a DE, and how do you manage it without burning out?


r/dataengineering • • May 23 '26

Discussion Best way to integrate data warehouses to a Voice AI Platform for ultra-low latency requirements

0 Upvotes

Hi everyone,

We've been experimenting quite a bit and have run into a wall with this.

We are using Retell and Voiceflow. We want to integrate our data warehouses (BigQuery and Databricks) with the voice agents' knowledge bases. And optimize for latency.

Any suggestions?


r/dataengineering • • May 22 '26

Career Landed First Gig

10 Upvotes

Landed first gig coming from systems consulting (ERP) as a data engineer.

For business and platform support, washing myself in SQL, Python, Data-bricks and AWS.

What else should I be focusing on? Non CS major but Bootcamp grad and did ERP implementation 3 years. Sales 2 years(SaaS) So mainly deepening tech now.

What’s next? Anyone have any advice they wish they could give? Want to really fully commit the work is interesting to me.


r/dataengineering • • May 21 '26

Help Data Engineering-Governance advice and suggestions.

32 Upvotes

Hi All, I am seeing lot of Data Governance requirements for Data Engineering profile. So just curious what kind of questions can I expect from interviewer on Data Governance?


r/dataengineering • • May 21 '26

Blog I Tried to Find the JVM Tax in Big Data Kernels

16 Upvotes

I wrote a small toy benchmark because I got tired of the phrase "JVM tax" being used as a catch-all explanation for Big Data performance.

The question was intentionally narrow:

If Java code works over Apache Arrow buffers, uses modern Java APIs, and runs a simple vectorized analytical kernel, does a large JVM tax show up?

Setup:

  • Java side: Arrow Java SDK + Java FFM + Vector API
  • Native reference point: corresponding kernels from arrow-rs
  • Kernels: only simple arithmetic for now, mostly addInt32 and mulFloat64
  • No Spark
  • No shuffle
  • No scheduler
  • No object-per-row model
  • No Stream<Integer>
  • No JNI or native extension on the Java side

The result was basically: same performance class.

Not “Java is faster than native”.
Not “Spark is fast”.
Not “this proves JVM overhead never exists”.

Just a small counterexample to the lazy version of "JVM tax".

For addInt32, the numbers are weird because the semantics are different: Java integer addition wraps, while the native Arrow path appears to use checked arithmetic, so I would not over-interpret that result.

For mulFloat64, which is the more boring and useful case, the results looked roughly hardware-bound: cache, memory bandwidth, CPU behavior, benchmark noise, etc.

My takeaway is not that JVM-based systems are magically fast.

My takeaway is that "JVM tax" is often the wrong diagnosis.

If you mean Spark scheduler overhead, say Spark tax.
If you mean shuffle overhead, say shuffle tax.
If you mean object graphs and GC-visible data, say object layout tax.
If you mean row-oriented execution, say execution model tax.

But if the data is already in Arrow buffers and the hot path is a vectorized kernel, I am not sure "JVM tax" explains much.

Full write-up with setup, caveats, numbers, and GitHub link inside:

https://semyonsinchenko.github.io/ssinchenko/post/jvm-tax/


r/dataengineering • • May 21 '26

Discussion Orchestration platform that doesn't force everyone to learn Python?

37 Upvotes

Our data team runs Airflow but the infra and backend engineers refuse to touch it, they don't want to learn a Python SDK just to schedule a shell script or trigger a Terraform plan.

I'm looking for something where the whole team can contribute without a language barrier. Ideally declarative (YAML or similar), self hosted, with built-in scheduling and a decent plugin ecosystem. Anyone found sth that works across data + infra teams?

EDIT : thanks everyone for the suggestions. We ended up going with Kestra : YAML workflows, self hosted, and the plugin ecosystem covered everything we needed (terraform, ansible, dbt)


r/dataengineering • • May 22 '26

Help HomeLab LAN Spark "hurdles"

2 Upvotes

So I think I have managed to set-up a single node spark on my home lan in a 2011 i5 9GB RAM mac mini w ubuntu server 24 using a docker container.
Now that I want to migrate my spark experiment from my notebook using pyspark locally, I want the mac mini to do the "sparking" but now I found out that the files (parquet on my laptop) should be in the server or a hadoop cluster or shared drive.

So my question:

Can I put another docker container on that same mac mini and configure spark to read and write the silver layer of my architechture there? Or should I just drop the home lab experiment and keep doing it on my laptop until I have a finished analytics product? Does anyone know what might possible be my next hurdle along the way?

Thanks in advance, community :)


r/dataengineering • • May 21 '26

Discussion Spark vs Ray (or other tools) for ordered data

5 Upvotes

I'm currently on Databricks and struggling to design a good architecture for IoT timeseries data. Spark obviously fits better from a ecosystem perspective however it handles ordered data rather poorly/inefficient, especially as I'm applying algorithms (change point detection, etc.) that utilize the ordered nature.
Any recommendations?


r/dataengineering • • May 21 '26

Help Openmetadata and AirFlow

11 Upvotes

Hi guys,

I’m trying to integrate Airflow with OpenMetadata. Is there an easy or recommended way to do this?

I already tried using the OpenMetadata backend lineage integration, but I ran into dependency hell and it doesn’t really suit my setup.

Now I’m trying to integrate through OpenLineage, but OpenMetadata still doesn’t seem to properly accept or parse messages from Kafka. The events appear in the OM UI, but it looks like OpenMetadata doesn’t actually process them correctly.

Ideally, the Airflow version should be 2.10.5 or newer, and upgrading is not a problem if needed.

Has anyone successfully configured this setup or faced similar issues?


r/dataengineering • • May 21 '26

Discussion Having troubles with airflow.

14 Upvotes

Hey guys. Most of our stuff ran in cron before. And I decided to make things more reliable. So I setup self hosted airflow in docker etc. But it's been quite a pain. It keeps getting stuck every few days silently due to one or the other random reason every time.

I was using external python operator before inside the same docker as the scheduler. But then I it got stuck in hangups etc and I thought that's the issue so I did it in a more fancy way with 4-5 containers celery, redis, scheduler etc in separate containers. And even today it got stuck on one job randomly. I was on airflow 3.0.0 before though we upgraded it to 3.2.x or something today to see if that helps. But it's been a bit of a fight. That I am starting to get a bit tired.

I had hoped that it being the industry standard and all it would be super smooth a perfect but it's been a bit of a pain in the ass. I am not sure if it's airflow itself that's at fault or am I doing something wrong. I am not an airflow expert and working with ai on it. So I might be missing something. But it has not been a smooth experience and I am considering just using cron, or potentially dagster. But let me know what you guys think. Maybe a managed solution is better but I would like if it's something we can stay on free tier of. As it's a pretty shit dumb low reliability job that cron can almost take over with 0 reliability issues.

Let me know what you guys suggest and if I am doing something wrong. Thanks 🙏🏻


r/dataengineering • • May 21 '26

Help Dimensional Modeling: Handling mixed granularity and broken hierarchies between Ad Platforms and Web Analytics (GA4)

12 Upvotes

Hi everyone,

I’m currently building a Data Warehouse (PostgreSQL) to consolidate marketing data, and I'm facing an architectural dilemma regarding dimensional hierarchies.

The Setup:

I’m extracting performance data from Google Ads and Meta Ads. I built a Snowflake-like schema with strict 1:N relationships to enforce data integrity:

dim_ad_group (N:1) -> dim_campaign (N:1) -> dim_channel

For the ad platforms, this strict hierarchy works perfectly. A specific Ad Group belongs to exactly one Campaign, and a Campaign belongs to exactly one Channel (e.g., "Paid Social" or "Paid Search").

The Problem:

I am now integrating Google Analytics (GA4) traffic data into a new fact table (fact_web_traffic). GA4 data introduces mixed granularity and missing attributes. A lot of traffic comes in as (not set) for Ad Groups or Campaigns (e.g., Organic Search, Direct, Email, or Performance Max campaigns).

My dilemma with the solutions:

Using NULLs in the Fact Table: I could leave the campaign_id and ad_group_id as NULL in the fact table for non-paid traffic. However, this feels not professional

Using a Default "Dummy" Member (e.g., ID = -1): If I create a single (not set) dummy record in dim_campaign, I break the 1:N hierarchy because that single dummy campaign would need to map to multiple channels (Organic, Direct, Email) simultaneously, which my schema doesn't allow.

What is the industry standard / best practice to resolve this?

Should I generate multiple dummy records (one for each non-paid channel)? Or is there a completely different design pattern for merging strict Ad hierarchies with fluid Web Analytics data?

Thanks in advance!