R
Railway•10mo ago
Wukong

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
Percy
Percy•10mo ago
Project ID: 330924c6-f27a-45c6-a607-8a0bb0d88515
Wukong
Wukong•10mo ago
330924c6-f27a-45c6-a607-8a0bb0d88515 ^ this is the service I'm referring to
Brody
Brody•10mo ago
just visit the account usage page https://railway.app/account/usage
Wukong
Wukong•10mo ago
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?
Adam
Adam•10mo ago
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
Wukong
Wukong•10mo ago
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?
Adam
Adam•10mo ago
I don't believe it would be faster, but using the internal IP eliminates network charges entirely
Brody
Brody•10mo ago
(it is faster) (dont use ips, use the internal domains)
Wukong
Wukong•10mo ago
No description
Wukong
Wukong•10mo ago
this one?
Adam
Adam•10mo ago
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
Wukong
Wukong•10mo ago
ok awesome is it same for connecting to postgres db? and redis?
Adam
Adam•10mo ago
Yes
Wukong
Wukong•10mo ago
they have private URLs ok awesome
Adam
Adam•10mo ago
As long as the DB is on Railway, yes
Want results from more Discord servers?
Add your server