r/DuckDB • • 29d ago

Duckstring - Pull-orchestrated data pipelines on DuckDB

https://duckstring.com

This is Duckstring, an open source data engineering platform, using DuckDB as the engine. I've built it to address some of the main frustrations I've had in my years as a data engineer: modularising logic so that it can grow in complexity over time, methods for upgrading components without breaking everything, and implying the DAG through dependencies so that I don't have to manage it.

I posted recently about DuckDB performance vs some of the big engines (write up here). I'm convinced DuckDB is the only engine needed to cover most real-world data pipelines.

Some specific features of Duckstring:

- Data transformations are treated like software packages, allowing the DAG to be implied by dependencies

- A pull-based orchestration system, throttling every process both upstream and downstream of the bottleneck so that nothing runs if it can't be consumed

- An incremental framework based on DBSP that handles updates and deletes efficiently

- CLI-first, so that you can point your own AI agents at the platform rather than relying on a janky integration

I've made a Playground app to help get a feel for the orchestration method:

Playground

You can also just go straight to the project on GitHub:

Duckstring GitHub

It's pre-1.0, though has been in active development since January, and is ready to try on real pipelines. I'd love to hear your feedback!

16 Upvotes

4 comments sorted by

4

u/monsieurus 29d ago

Sounds cool. Some practical challenges. Some data sources take couple hours to finish the load even for incremental loads so if each client pulls the data on demand is the expectation that the user just waits for the data to refresh?

1

u/isaac-harvey 28d ago

Normally if a client can't tolerate having old data when it requests it after a long period of inactivity, you'd just set a minimum freshness and the pipeline would run at that frequency. The main advantage of pull there being that it could be at a different rate to other paths.

For refresh on request, mostly the idea is:

  • Say one outlet is on a daily schedule, making its sources run at that rate

  • The step set to refresh on request has its sources satsified already by the other path, so it runs just the last (quick) part of the chain

So, I'd recommend the refresh on request for "topping up" some minimum freshness, or for the tail ends of the pipeline operating off the more expensive core.

1

u/Serengade26 27d ago

Is this just not like a batch feature store sort of?

1

u/isaac-harvey 27d ago

It could be used for that, yes. I think any "as-of" time travel mechanism could? That's more a result of the freshness stamping than the pull orchestration though.