Function in Python or Typescript?

With the recent announcement that you can now write functions in Foundry with Python, I am wondering whether I should continue using TypeScript or switch to Python for future functions. Can someone advise me on this?

We want you to build in your preferred language so we’ll continue to support both. We’re burning down the gaps b/w Python & Typescript so I’d check our docs & see what suits your use case.

If you want to re-use the same code in pipelines and frontends I’d lean on Python - useful where you want to pre-compute some of your data but also be able to interact with user inputs on the fly.

1 Like

TypeScript functions are Serverless, in the sense that they do not have to be deployed and are executed/spin-up on demand.

Python functions have to be deployed to be used in Workshop, which means a constant cost for each deployed function.

I was wondering if there are plans or a timeline when Python functions will be truly Serverless as well?

1 Like

Hey @nicornk - we’ve got a serverless implementation in the works so you will get true serverless in some months time!

Short term, our recommendation is generally to have one repository for all your python functions so the cost of the deployment is amortized. We create one deployment per repo so doing this will help keep costs down overall.

Thanks, sounds promising. I would recommend that you add this answer to the public docs.