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
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` Iโm encounter...
- Issues with executor in Appwrite 1.9.0
Hi, Iโve recently did a fresh install of appwrite 1.9.0 self hosted and when I run a function, it just waits indefinite This is the error from the log: [Er...