#Which sdk to use from your exeprience ?

1 messages · Page 1 of 1 (latest)

rose kraken
#

Hey everyone,

I'm an experienced Python developer exploring Dagger SDK and looking for insights on its UX, specifically regarding build and run speed. If you've used Dagger, which SDK (Python, Go, etc.) have you found to be the fastest and most efficient in real-world workflows?

Would love to hear about your experience—any optimizations or pitfalls to watch out for?

My pipeline will use k3s, docker, test fastapi, etc
So mainly Python. But I can learn rust for exemple if build and runtime are faster
Thanks in advance!

celest girder
#

Welp. Go is definitely much faster than the TypeScript SDK. Like 20-30x faster. I've only used those two though.

old cedar
rose kraken
#

I am sure you do 🙂 thanks for the feedback. Interested in some benchmark if relevant.

old cedar
# rose kraken I am sure you do 🙂 thanks for the feedback. Interested in some benchmark if re...

I was just looking
https://github.com/dagger/dagger/actions/workflows/benchmark.yml
Here you can see a very basic benchmark for running
dagger init (to create the Dagger module with the default layout and example functions) and then dagger functions (to list the available functions) a few times (first uncached, then cached, then after modifying source code).

So here, you can see the differences in startup times I was mentioning. I'll ensure there is an issue for benchmarking the "running" of some functions that represent a more real-world pipeline workload as well so we can compare.

We'd like the DX of module creation and use to be snappy and fun, thus there are efforts underway around more caching and other optimizations. All the SDKs work consistently and interoperably (you can import/use any language SDK's module in any other), now to make them all pleasingly fast to use from the command line! 🚀

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

rose kraken
#

Okay. I will try go. It doesn't seems to be that hard for this job. And with autocomplete it should be Ok. Thanks !