Back

Help me decide - Client, Server or SSR

  • 0
  • Databases
  • Auth
  • Cloud
Mr English
9 Jun, 2024, 10:36

I am confused by which approach to use and I think this is causing me some difficulty: Should I use Client, Server or SSR? This is an important question to resolve from the beginning but, having searched the documentation, I can see how to select the approach.

Please would you read the descriptions below. They are two simple projects. Tell me which of Client, Server and SSR I should work with. In both projects, I am NOT using front-end frameworks. They are both simple Bootstrap CSS and possible some Ajax fetch for a bit of interactivity.

Project 1 - Presentation of statistical data This application is built in nodejs / expressjs and uses Pug view engine. It uses node fs to import data which is then written into the AppWrite database. The web pages, which contain the data, are rendered on the server and pushed to the browser.

I will use some filtering of the data on the webpage, which will require an Ajax call, to fetch the data.

Project 2 - Blogging platform AppWrite User has an admin panel where they can create blog posts. There will be more than one AppWrite User - there are three different websites. The website displays web pages and the blog posts. The website has a web form. The web form data is to be stored in AppWrite.

Thanks.

TL;DR
For the statistical data presentation project, Server-side rendering (SSR) would be suitable since pages are rendered on the server and pushed to the browser. For the blogging platform project, using both Client and Server would be effective, as users can interact with the blog posts while the server manages data storage and retrieval.
darShan
9 Jun, 2024, 10:42

Client SDK with correct permissions on Collections/Documents would suffice too.

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