Is there any sample for java function with Appwrite Database Read functionality ?
Our docs have java examples š§
https://appwrite.io/docs/server/databases?sdk=kotlin-java#databasesList
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
hmmm.....
any plans for true java sdk ?
What do you mean?
I mean right now it's more like emulation of kotlin behaviour in java sdk. There are no corotuines in java š
No plans at the moment
ok, got it. Thanks ! Looks like it's better to use kotlin for Appwrite Functions at the moment.
Dart FTW! š
Unfortunately there are no firebase admin sdk for dart and so I can't send push notifications with dart functions š¦
looks like it's possible using https://firebase.google.com/docs/cloud-messaging/send-message#rest
so I'll try to do it on dart, because based on experience dart functions are the faster one on Appwrite
Those were python cloud function execution time
And those are exactly same functionality, but written on dart with rest request to firebase cloud messaging
avg time now ~120ms instead of 900ms
dart is really fast
I believe Dart was the fastest runtime the last time I checked š„ Alonside Swift, but Swift takes REALLY LONG time compared to Dart. So overall, Dart is currently winner for serverless functions. In my eyes, at least.
Exactly the same impression for me
Recommended threads
- Hi, I'm getting this error while deployi...
ā Error ⢠search (6937cb70002c2e9c1a97) ⢠Fai ā Error: Deployment of search has failed. Check at https://cloud.appwrite.io/console/project-693...
- Timed out waiting for runtime. Error Cod...
After setting up my ML project that uses deepface and tensorflow in appwrite functions I get the `Timed out waiting for runtime. Error Code: 400. ` error. I am...
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...