discordextremelist / website

The official source code for the website side of DEL!
https://discordextremelist.xyz
GNU Affero General Public License v3.0
75 stars 28 forks source link

Switching from EJS a good idea? Any alternatives? #262

Open carolinaisslaying opened 4 months ago

carolinaisslaying commented 4 months ago

Kia ora,

Just writing this on whether it is a good idea for us to stick with EJS and if not, what alternatives could we move to? I'm not entirely sure so just getting other people's feedback?

Main idea is just keeping in mind performance, since it doesn't look like the site is fairing too well at the moment. I imagine that'll be improved to an extent by the work in #261, but still thought it'd be work opening this up for discussion.

Thanks!

TheAlienKnight commented 4 months ago

The main issue with EJS for a site like this is that it's a lot of server side processing, wheras using something like Vue 3, and Websockets, you can greatly reduce this issue, while ensuring the client side is smooth.

With the site using EJS right now, with as many various database queries and sorting that is done on each page load, it prevents the site from being scalable in a reasonable way

carolinaisslaying commented 4 months ago

I mean that certainly makes a lot of sense. I'm pretty sure this may have been mentioned in passing a long time ago and I know Ice and Advaith, or at least Ice a few years back always questioned the decision to use EJS.

Would Vue be an appropriate alternative to EJS? Or would there be a more suitable alternative? I don't particularly have much experience with much outside of EJS so would be something I could work on playing around a bit with.