Pricing Question: Telegram Bot + Postgres Usage Estimate
gokulgs078
FREEOP

25 days ago

I'm currently running a Telegram bot with a Postgres database on Railway's free plan and would like to understand if the $5/month plan would be sufficient for my needs.

Here's my current setup and expected usage:

Current Setup:

- Telegram bot (question-solving bot for students)

- Postgres database

- Currently on the free plan (5 credits for 30 days)

Expected Usage:

- ~1,500 unique users per month

- ~1,500 students actively using the bot each week

- ~15 questions per student per week (roughly 22,500 questions/week)

- All interaction data stored in Postgres

I'm trying to determine:

1. How are credits consumed for this type of workload (bot compute + database storage/queries)?

2. Would the $5 plan be sufficient for these usage levels?

3. Are there any potential cost overruns I should be aware of?
4. How can we be aware of the extra charges if any?

I want to ensure the pricing remains predictable and within our budget.

Could you help clarify how Railway's credit system would apply to my use case?

$10 Bounty

2 Replies

Railway
BOT

25 days 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 Railway 25 days ago


I can't really answer 1 and 2 for sure, but for 3 and 4, the only time you'd be charged extra is if you use more than $5 worth of resources.

To limit this, you can set hard usage limits in Workspace settings > Usage > Usage limits. However, keep in mind that if this limit is reached, all your deployments will be shut down.

If you're able to make your current trial $5 last for a month, then the Hobby plan should be sufficient for you.


25 days ago

To answer your questions:

How Credits Are Consumed

Railway charges for actual resource usage:​

  • CPU: $20/vCPU/month ($0.000463/vCPU/minute)

  • RAM: $10/GB/month ($0.000231/GB/minute)

  • Network egress: $0.05/GB

  • Volume storage: $0.15/GB/month

For a lightweight Telegram bot with Postgres handling ~22,500 questions/week, you'll consume minimal CPU/RAM if your bot is efficient. Database storage costs are low ($0.15/GB/month), so even several GB of interaction data adds negligible cost.​

2.

The $5 Hobby plan should work for your use case, but monitor closely initially.

3. and 4.

Monitoring Overages

Railway Dashboard shows real-time usage throughout your billing cycle. You can set up alerts and see projections before charges occur. If costs approach your budget, optimize queries.

Cost Prediction

If your monthly usage stays under $5, you pay only the $5 subscription. If it exceeds $5 (e.g., $7 usage), you pay $7 total ($5 subscription + $2 overage). The key factor is whether your bot idles efficiently. Railway charges for actual CPU/memory utilization, so idle time costs much less.

Look into attached image of one of my project, after few days running you can see the prediction of the monthly cost.

Attachments


Loading...