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
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...