R
Railwayβ€’16mo ago
z3r0j

Deploy my app on Railway (Cost)

Hello, Actually I have an API made with Nodejs + Express about Real Estate so I wanna recommendation about how much gonna cost me put my API in Railway so my API have Image support as well and I have to create a mysql database as well but I have to create to my client a Budget but I don't understand so much about pricing and stuff. Can someone help me?
21 Replies
Percy
Percyβ€’16mo ago
Project ID: N/A
z3r0j
z3r0jOPβ€’16mo ago
N/A
Brody
Brodyβ€’16mo ago
pricing is usage based, its not a fixed cost the only fixed cost is the 5$ fee you can see your estimated bill in the usage account page https://railway.app/account/usage
z3r0j
z3r0jOPβ€’16mo ago
Okay so it's recommend to put my API and test how much consume in Railway for 1 day/
Brody
Brodyβ€’16mo ago
id say a week min for a good number but maybe you push some new code with an unknown memory leak, your costs would increase railway sents you reasouse usage alerts, but your costs would still go up just a bit if you dont catch it
z3r0j
z3r0jOPβ€’16mo ago
Okay but i'm little bit confuse with the database for example if i have a table with 14k register and another one with 160 register it's cost a lot in mysql. ?? That table use sensible data for the existing project for example all the Sector and cities in the based country.
Brody
Brodyβ€’16mo ago
well databases are subject to the same cost calculation as services are, cost is not based on tables or amount of sql queries, they are based on cpu and mem usage the same as services are database costs would be included in the estimated cost number
z3r0j
z3r0jOPβ€’16mo ago
Thanks so I'm going to close this issue. I was confused..
Brody
Brodyβ€’16mo ago
no worries, i hope i cleared your confusion? (side note, we dont really close posts, we just mark them as solved)
z3r0j
z3r0jOPβ€’16mo ago
Maybe so I'm gonna test it for a month like you said and after that I'll tell you.
Brody
Brodyβ€’16mo ago
sounds good!
z3r0j
z3r0jOPβ€’16mo ago
@Brody I have a doubt, after i deploy the API for example if i create a new endpoint and I have like image uploaded in the server because my API use multer so it's gonna delete all or no and it's possible make backup of your data in the server?
Brody
Brodyβ€’16mo ago
you will want to use a storage volume for that as the containers storage is empherial
z3r0j
z3r0jOPβ€’16mo ago
How i can do that
z3r0j
z3r0jOPβ€’16mo ago
So my API i have to mount in a Volume? Or create another API which return the URL of the file back before upload it?
Brody
Brodyβ€’16mo ago
please read the docs, and see my example code
z3r0j
z3r0jOPβ€’16mo ago
Now i got... If i have a folder called public so i have to link the volume to that folder.. πŸ€©πŸ™πŸ½
Brody
Brodyβ€’16mo ago
mount to something like /data
z3r0j
z3r0jOPβ€’16mo ago
Thanks now i got much clearly...
Brody
Brodyβ€’16mo ago
no problem!
Want results from more Discord servers?
Add your server