Back

What/how exactly should I use functions?

  • 0
  • Web
  • Cloud
Ilhan
26 Sep, 2023, 22:06

I want to make a real-time leaderboard and want to reset it daily. I wanted to know if I could handle that with Appwrite cloud's functions. If not, how could I solve this with (or maybe without?) appwrite?

I'm a bit confused on what to use functions for, is it solely to separate the backend of the website from the real backend where bigger and more fine-grained and specific processes run? Since I'm using node for the frontend, website backend (api routes) AND appwrite functions, I sometimes can't decide if something should be on appwrite functions or the api route in the backend of the website. Thank you!

TL;DR
The user is asking for clarification on how and when to use functions. They bring up the example of running OCR/profanity checks and ask if it would be better to do it with Appwrite functions instead of the node backend. They also mention confusion regarding the use of functions when using a front-end framework like node. They also inquire about using Appwrite functions for creating a real-time leaderboard that resets daily. The user is unsure about when to use functions and when to use the API route in the website backend. TL;DR: User is seeking guidance on the use of functions. They want to know if it's better to use App
Drake
26 Sep, 2023, 22:54

Appwrite Functions are used for any sort of custom logic you need

Drake
26 Sep, 2023, 22:55

Most people don't use node. Node typically acts as a server...but Appwrite is able to replace your server. So, people typically just focus on writing their front end app. And since they don't have a server like node, they can use Appwrite functions for any custom logic

Ilhan
27 Sep, 2023, 06:50

But aren't many modern front end frameworks just running on node?

Ilhan
27 Sep, 2023, 06:55

Hmm maybe I want users to submit doodles and want to check for possible inappropriate content, would it be more advisable to run the OCR / profanity check on Appwrite functions instead of the node backend?

Drake
27 Sep, 2023, 21:37

the simplest common form is just static HTML, CSS, and JS. There are a lot of frameworks now that do server side rendering, but i think that stuff just complicates things

Drake
27 Sep, 2023, 21:37

yes, that could be a use case for functions

Ilhan
27 Sep, 2023, 21:38

I see I see, thank you

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more