Need help with estimating possible service cost on Railway
We made a nodejs application that sends out emails to a lot of users (like 300k - 400k) using sendgrid api. While I'm excited to keep using Railway as hosting platform for our projects, I'm very concerned how much Railway would charge us for possible network bandwidth/RAM/CPU usage.
We don't want to end up in situations like Railway charging us $10k (like crazy AWS bills 😄 ).. so if you can help us estimate the possible cost in the scenario like our application. Thanks in advance!
42 Replies
Project ID:
330924c6-f27a-45c6-a607-8a0bb0d88515
330924c6-f27a-45c6-a607-8a0bb0d88515
^ this is the service I'm referring to
just visit the account usage page https://railway.app/account/usage
yeah i usually check that
but can you let me know how to estimate that for some scale of users?
e.g. let's say we want to do with 1k users first, then how can I check the usage of bandwidth/cpu/memory?
The estimated usage of your app is adaptive according to the usage you put through it. I would incrementally increase the amount of traffic you put through it, fake or real. Increase that every 2 days so you get an accurate representation.
Once you have 4 or 5 data points you'll be able to graph a decent estimation
Ok makes sense, will do so, thanks
@Adam
I also have another Q; it's about general usage of internal networks between projects.
We have 2 services deployed; one is REST API, and the other is node.js script, api consumer. I believe using internal network IP of REST API would cost less bandwidth, and be faster because using the external host goes through the internet (also DNS requests) etc?
I don't believe it would be faster, but using the internal IP eliminates network charges entirely
(it is faster)
(dont use ips, use the internal domains)
![No description](https://cdn.answeroverflow.com/1184190164206104586/image.png)
this one?
Yep agreed, missed that part of your question. Railway uses dynamic IPs, so you can't connect to an app through its IP. Use the private networking url
Yes
ok awesome
is it same for connecting to postgres db?
and redis?
Yes
they have private URLs
ok awesome
As long as the DB is on Railway, yes