Hi, Is there a good practice for writing function ? It's better to write all ours functions in dart or node or php ? Or it have no impact for performance to have multiple language ?
Hey there 👋 I would say there is no performance impact on using different languages for different function. Might be harder to onboard, but might be beneficial thanks to different libraries availability in different languages.
Regarding performance, all runtimes can execute hello world code in ~1-10ms. Fastest being Dart/Node/Swift, slowest being PHP/Python. Tho it's difference of 9ms so I wouldn't worry too much.
Well but for example, if you connect to mySQL server in Node, first execution (handshake) takes up to 200ms. While same logic in PHP can execute in <50ms. This again depends on library coverage in different runtimes
Here is a bit of reading if you are interested: https://dev.to/appwrite/take-your-serverless-functions-to-new-speeds-with-appwrite-013-5868
Thanks for the complete answer 👌
[SOLVED] Function : One language or multiple language ?
Recommended threads
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- functions domain error
I cannot set up the domain for function I’m trying to add the domain api.example.com I can only use Cloudflare as the DNS provider because my domain provider do...
- Storage Bucket Permissions
Hey folks, when enabling CRUD on the bucket level for the role any, should the bucket be accessible when using a session client?