Live data from Hacker News

Why Rust is taking the data engineering world by storm

kerkour.com

11–20 of 20 posts

Re: Why Rust is taking the data engineering world by storm

#12
I'm not sure about enterprise use cases, but for my project I was able to process 60TB of Common Crawl data with Rust at line rate on a budget server without any issues. Code was easy enough to write and it ran great on second try with resources to spare. I would pick Rust for big data projects again.

Re: Why Rust is taking the data engineering world by storm

#13
post #3

> All the most-impactful projects in the data engineering world are now written in Rust. Is this true? I love Rust and use it daily, yet I often hear from data engineering peers that Rust has too much friction for most data engineering projects, because of the borrow checker, lifetimes, compile times, inability to express functions and traits in some ways, async futures, and ABI/FFI issues with external data processi…

if you mentally rewrite the title to “lower level data systems” instead of “data engineering” i feel like it starts making a bit more sense.

spark et al have massive continuous momentum. they’re not going anyway any time soon.

Re: Why Rust is taking the data engineering world by storm

#14
I wrote a data ingest process, a simple web crawler that parsed and processed data from html pages and inserted to a database. This is a side project for me - no resources to maintain a k8s cluster or batch processing system or orchestration layer. Just a good old unix process running on a cheapo VPS. The process would periodically wake up and get to work, sleep, repeat.

I used Python with polars for the first iteration. It worked but I was plagued by downtime, constantly hitting runtime exceptions that I hadn't considered. I rewrote it in Rust (also using polars) and it wasn't necessarily faster but it was rock solid. Every code path was explicitly handled and it would loop forever; there was literally no way to cause a panic. And it's been running for over 2 years without a single bug.

Rust is the language if you have a well-defined data crunching problem to automate. It's not so great for exploratory work but for production code that needs to be rock solid, consider it. Being able to sleep at night without babysitting your data pipeline is nice!

Re: Why Rust is taking the data engineering world by storm

#16

I wrote a data ingest process, a simple web crawler that parsed and processed data from html pages and inserted to a database. This is a side project for me - no resources to maintain a k8s cluster or batch processing system or orchestration layer. Just a good old unix process running on a cheapo VPS. The process would periodically wake up and get to work, sleep, repeat. I used Python with polars for the first iterat…

This x10.

When working with high variety data there are so many things that can go wrong (esp when working with external data sources), so you want a strongly typed compiled and memory safe language.

I really believe that as data engineers we need to adopt a language like Rust. It helps a lot that it has polars, so we can keep working with the dataframe paradigm.

Re: Why Rust is taking the data engineering world by storm

#17
post #4

Calling PostgreSQL a 'legacy C codebase' is funny.

Indeed. The whole discourse around rust is getting more ideological than technical day after day.

It's like some people are getting irreasonable intolerant to non-rust languages.

It's... Puzzling, to say it politely.

Re: Why Rust is taking the data engineering world by storm

#19
post #18

> Rust has not only a bright future in the data engineering world, it's already the Looks like you accidentally a whole word there

took me a bit to get the joke :)

It's an older meme, sir, but it checks out ;-)

https://knowyourmeme.com/memes/i-accidentally

Post reply on HN