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
12 Replies
Project ID:
fccc699b-2959-453f-9818-2fc046a08b12
how are you running the react app
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
haha i wrote that guide, so yes
serve
is going to use far less memory compared to a java app or a mysql databaseoh 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
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
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?
do you perhaps mean idle usage?
yes that
then yes,
serve
is going to have far less idle usage than java or mysqlI see, then I understand. Still surprising to see how efficient serve is in comparison to the other two. Thanks for the info Brody!
no problem!