Help with Costs
vitorulhoa
PROOP

3 months ago

I have an API running that's consuming a lot of data. I've searched extensively and haven't found anything in the code that could be using up my credits. Can you help me?

$10 Bounty

2 Replies

3 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open itsrems 3 months ago


jqcktalks
FREE

3 months ago

Railway charges based on actual resource usage, so for every second your services are running, it'll bill based on factors such as CPU, memory, network egress etc.

So, even if your API is idle but is still deployed and running, that's going to consume credits. Railway also gives you a set amount of credits first when you have a plan, once those are used, your usage will start counting up.

You can check your usage at https://railway.com/workspace/usage and find more about resource usage pricing at https://docs.railway.com/reference/pricing/plans#resource-usage-pricing.

Hope this helps!


kzarzour
HOBBY

3 months ago

Hey, consider turning on serverless for your app if you can, that way the app will sleep and only come up if there are requests to your API. That will save you the resource cost while the app ks not being used.

Alternatively you can reduce how much CPU and Memory your app is using to also achieve some savings if your app can handle running with less resources.

Off the top of my head these are the two things that I can think of. Feel free to provide more information.


Loading...