DB pricing question
andres-vr
FREEOP

9 months ago

I was wondering if it's cheaper to use Atlas for mongoDB and upstash for redis or moving both to railway. Upstash pricing is extremely cheap and atlas has a free tier, how does railway compare to that?

Solved

8 Replies

andres-vr
FREEOP

9 months ago

N/A


9 months ago

Hey, depending on your usage, using an external database with a free tier is going to be cheaper if your usage is minimal, as you will only pay for the egress to communicate with your external database.

However, for production workloads, it is recommended to host all your databases within Railway. As it will decrease latency and omit egress completely, as long as you are utilizing Railway's private networking. In addition, the pricing is more predictable/straight forward due to the nature of usage based pricing as opposed to pricing per million read/write operations.


andres-vr
FREEOP

9 months ago

Totally get that, but say my usage is around 100 monthly users, each doing 150 read/write operations to redis and about 10 mongodb queries per month, would that exceed the $20 per month? Because that would be free on external platforms

If possible, I'm kinda looking for an estimate on how operations relate to price, like 1k redis read/writes is $x or 100 mongo queries is $x


9 months ago

Totally get that, but say my usage is around 100 monthly users, each doing 150 read/write operations to redis and about 10 mongodb queries per month, would that exceed the $20 per month? Because that would be free on external platforms

I would consider this light usage, as it's just 15k redis operations and 1k mongo queries per month. The databases' usage will most likely be well within $20.

If possible, I'm kinda looking for an estimate on how operations relate to price, like 1k redis read/writes is $x or 100 mongo queries is $x

Unfortunately, there is no estimation, as Railway charges for usage. Since a single query does not have a fixed cost. A query returning several thousands of entries can't be compared to a query that only returns a few entries.


9 months ago

The best way to get an estimate is to try it out, for example try to replicate your databases on Railway and query them as if you are using them in a real environment.


andres-vr
FREEOP

9 months ago

Okay, thank you!


9 months ago

You are welcome! I'll mark this thread as solved if you don't have any further questions.


9 months ago

!s


Status changed to Solved uxuz 9 months ago


Loading...