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

claudius10
HOBBY

a year ago

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

0 Replies

a year ago

how are you running the react app


claudius10
HOBBY

a year 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


a year 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


claudius10
HOBBY

a year 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


a year ago

im not sure what you mean by base cost


a year ago

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


claudius10
HOBBY

a year 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?


a year ago

do you perhaps mean idle usage?


claudius10
HOBBY

a year ago

yes that


a year ago

then yes, serve is going to have far less idle usage than java or mysql


claudius10
HOBBY

a year 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!


a year ago

no problem!


RAM costs of MySQL and Java app compared to a React app. - Railway Help Station