R
Railway•8mo ago
Supamap

Help reducing egress costs, or at least figure out what is the culprit for them.

I am hosting a webpage, front and backend services on railway, and recently ive seen that my Egress costs have ballooned a bit, theyre at about more than 600 GB, and they should not have been as high (considering our scaling). I don't think I should be using as much, but I have no idea where to look to figure out what could be the culprit of the cost. Btw... im not much on an expert, so please be understanding, Thanks!
24 Replies
Brody
Brody•8mo ago
a very common cause of ballooning egress is connecting to the database over the public network instead of the private network
Supamap
Supamap•8mo ago
I dont think this is it, since this is the frontend service and it does not connect directly to our mongo database The backend service does
Brody
Brody•8mo ago
exactly, does your backend connect to the mongo database via the public network?
Supamap
Supamap•8mo ago
And the backend service is not having egress costs The frontend does
Brody
Brody•8mo ago
but the database can have egress costs
Supamap
Supamap•8mo ago
No description
Supamap
Supamap•8mo ago
neither the database nor the backend has any egress costs
Brody
Brody•8mo ago
there's definitely egress on the database and backend, but nothing to worry about
Supamap
Supamap•8mo ago
this is to date, the estimated monthly goes to like 80USD
Brody
Brody•8mo ago
what kind of frontend?
Supamap
Supamap•8mo ago
yep exactly, this is why the one of the frontend worries me um, its a npm web service i thought maybe images, but most of the content is coming from another hosted service and images load from there
Brody
Brody•8mo ago
tech stack?
Supamap
Supamap•8mo ago
I mean, im using react and git, then some other services like sentry.io Im sorry if im not too much of an expert on this
Brody
Brody•8mo ago
client side rendered app?
Supamap
Supamap•8mo ago
yes it should be im using hygraph for storing the images, so stuff like that should not be touching railway and files should be going to AWS S3, not through railway either
Want results from more Discord servers?
Add your server