Rank 3: Container
Is there any sample for java function with Appwrite Database Read functionality ?
Votes
1
Replies
17
Participants
Unknown
Messages
18
Rank 3: Container
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
Rank 3: Container
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
hmmm.....
Rank 3: Container
any plans for true java sdk ?
What do you mean?
Rank 3: Container
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
Rank 3: Container
ok, got it. Thanks ! Looks like it's better to use kotlin for Appwrite Functions at the moment.
Dart FTW! 😆
Rank 3: Container
Unfortunately there are no firebase admin sdk for dart and so I can't send push notifications with dart functions 😦
Rank 3: Container
looks like it's possible using https://firebase.google.com/docs/cloud-messaging/send-message#rest
Rank 3: Container
so I'll try to do it on dart, because based on experience dart functions are the faster one on Appwrite
Rank 3: Container
Those were python cloud function execution time
Rank 3: Container
And those are exactly same functionality, but written on dart with rest request to firebase cloud messaging
Rank 3: Container
avg time now ~120ms instead of 900ms
Rank 3: Container
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.
Rank 3: Container
Exactly the same impression for me