R
Railway9mo ago
lotario

RAM costs of MySQL and Java app compared to a React app.

Hello. I have a project with three services: MySQL DB, Java + Spring Boot back-end, and a React front-end. My app is not being used 99.9% of the time and I noticed the ram memory costs are different between the back-end and DB and the front-end. I've uploaded a screenshot with the costs of the three services. Shouldn't the RAM costs of the DB and Java back-end be similar to that of the React service? Am I missing something or are the base costs of the React service simply lower? Thanks ! Project ID: fccc699b-2959-453f-9818-2fc046a08b12
No description
12 Replies
Percy
Percy9mo ago
Project ID: fccc699b-2959-453f-9818-2fc046a08b12
Brody
Brody9mo ago
how are you running the react app
lotario
lotarioOP9mo ago
I pinpoint to the repo on my github (the same as the java app) and used this guide provided by railway: https://railway.helpkit.so/project-help/f9v3gkPQRy4UShk5SnoPDH/getting-your-create-react-app-running-on-railway/qHRsgxa5n57xLp1yVgk9fP
Railway | Help Center
Getting Your Create-React-App Running on Railway – Railway | Help C...
This is a little guide to help you get your create-react-app up and running smoothly
Brody
Brody9mo ago
haha i wrote that guide, so yes serve is going to use far less memory compared to a java app or a mysql database
lotario
lotarioOP9mo ago
oh haha thanks so much for the guide! very informative and useful! then those costs of the java app or mysql db reflect the base cost itself ? I guess I'll try App Sleep then
Brody
Brody9mo ago
im not sure what you mean by base cost nothing has a base cost, the only thing that could be considered a base cost would be the hobby subscription, other than that all costs are purely based on resource usage, if a service uses less resources, its going to cost less
lotario
lotarioOP9mo ago
by base cost I'm referring to the minimum amount of resources (cpu, ram, etc.) the app needs to stay alive and to function, and those can't really be lower for the mysql db and java app since those are the min resources for them to stay alive/run even with 0 use?
Brody
Brody9mo ago
do you perhaps mean idle usage?
lotario
lotarioOP9mo ago
yes that
Brody
Brody9mo ago
then yes, serve is going to have far less idle usage than java or mysql
lotario
lotarioOP9mo ago
I see, then I understand. Still surprising to see how efficient serve is in comparison to the other two. Thanks for the info Brody!
Brody
Brody9mo ago
no problem!
Want results from more Discord servers?
Add your server