a year ago
So, can I just create a mongoDB railway and actually get charged only by usage, unlike mongoDB atlas paid plans? If so, isnt this basically cheaper than mongoDB atlas? (I have never used anything else for mongoDB other than mongoDB atlas)
71 Replies
a year ago
you always only pay for what you use, it depends how much ram, cpu your database are using 😁
right, so its basically saving costs if I barely use it? I was thinking of a project where I would just send some KB each day to the mongoDB, but mongoDB atlas wants to charge me like, per hour and such, like all the time. this is cheaper I believe, for my case at least
Exactly, you only pay for resource usage and not stuff like requests or whatever
I would imagine mongoDB atlas would be the cheapest thing for hosting mongoDB databases, since its their own stuff. But maybe thats why they can also charge more?
a year ago
postgres on top
i mean free version of mongoDB amazing I guess but holy sht, I just checked on railway and 350 mb idle you are right! thats crazy
so I like mongoDB with node because you can use mongoose easy, for creating models directly in the DB right away etc, not have to use this migration sht that I saw on some course, is there a way to do this with PostgreSQL, with some ORM? I love this idea of create db model with mongoose then start server and collections create right away basically
right, I just dont know if this thing is mongoDB specific, or I could do also this in PostgreSQL
I dont even know, you ever done this on Go or C++? where database creates tables automatically based on your code models?
You either depend on proprietary stuff or you learn the tools. Yes, there is no escape
a year ago
Good ones include TypeORM and Prisma. Pick TypeORM if you value performance, Prisma if you value developer experience
a year ago
There's also Drizzle which is its own thing and doesn't use any external stuff. Prisma is annoying because it force ships specific engines for the environment, and TypeORM uses pg under the hood
a year ago
Sqlc on top for go developers >>
a year ago
Cc: @Script
a year ago
Also, I should mention that these ORMS work better with typescript rather than vanilla Js, so if you are currently not using typescript it would be wise to start doing so
nice, well Im mostly now interested in the fact that at least, this is possible
and I was trying to learn Rust so, I wonder if its possible this with Rust
a year ago
There are ORMS for rust too, but truthfully the good ones are only for SQL databases..
well thats how we learn to become better programmers with complicated stuff sometimes
a year ago
I think we’re good to call this thread solved! lmk if I can close
a year ago
@Script forget about TypeORM, its not in a good state for a while.
I would go with Prisma or Drizzle, Prisma is the easiest so I recommend that.
a year ago
!s
Status changed to Solved adam • 12 months ago


