Skip to content
Init is coming / May 19 - 23
Back

Hosting a Static Website via Appwrite Functions: Performance Concerns?

  • 1
  • Self Hosted
  • Functions
  • General
  • Web
Shivanshu Gupta
23 Oct, 2024, 04:52

I'm hosting a small static website (an admin panel with around 3-4 users) on my self-hosted Appwrite server. Instead of creating a separate Docker container for this, I opted to create a Node.js Appwrite function to serve the website, and it works well so far.

However, I'm concerned about potential performance bottlenecks since each request to the website will trigger an Appwrite function execution. I'm also considering the possibility of the user base growing in the future. Will this approach impact server performance very much?

TL;DR
The developer is using a Node.js Appwrite function to host a small static website on a self-hosted server. They are concerned about performance due to potential bottlenecks from triggering the function on each website request. They are also worried about scalability with a growing user base. Solution: Consider caching files in the function to avoid reloading them for future requests, improving performance. Monitor server performance as user base expands to address potential bottlenecks.
Shivanshu Gupta
23 Oct, 2024, 04:54

Also, does the Node.js function restart completely with every new execution, or does it persist in memory, allowing files to remain cached for future requests?

I'm wondering if the function resets after each call or if it stays alive long enough to reuse resources like read files, avoiding the overhead of loading them again.

Shivanshu Gupta
23 Oct, 2024, 04:55

@Raman

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