[🎉 2.1.0] Rongo - MongoDB API Wrapper for Roblox (WITH SELF-HOSTING SUPPORT)

Would this be better to use for a larg-scale game rather than an external server? :thinking:

2 Likes

If you’re interested in using an external database, I do highly recommend MongoDB as it’s an easy to use service and requires minimal setup compared to other external databases, however if you’re using it for a large game, you might need to spend a bit of money on it (free tier works great though as long as your game isn’t getting too many players) and either way, MongoDB is pretty affordable for their more advanced tiers.

2 Likes

i’m aware of that, my question was would this be more effective to use than an external database?

2 Likes

Oh, well it really depends on your use-case but for myself, I do find it much easier to use than other external databases. Plus, not a lot of external databases have Roblox modules made for them so you might need to make your own if you want to implement them in Roblox.

2 Likes

Rongo now has an article on the MongoDB developer hub!

Read it here: Storing Roblox Game Data in MongoDB Atlas Using Rongo | MongoDB

3 Likes

Such as? Because I really don’t think you need an external datastore just to run a Roblox game.

1 Like

External Databases can be more reliable than Roblox’s DataStores.

This thread contains many other reasons on the use-cases. Please read it before making decisions such as telling people not to use my module.

2 Likes

I wouldn’t say they are more reliable. In fact I’d vouch Roblox’s datastore are more reliable and more convenient for the following reasons.

  1. You don’t have to worry about data size, costing and hosting.
  2. If Roblox datastores are down (this rarely happens), the chances are that httpservice is down too. (either way no hosting service guarantees 100% uptime)
  3. No need for extra knowledge regarding servers, networking or databases

Point is better avoid external databases unless you necessarily have to use them like in my case.

1 Like

There’s nothing about the use-cases on this thread. Also it’s quite funny how you flagged my post to get it taken down, my post was about the wrapper you made it was nothing off-topic.

Roblox’s datastore API hasn’t gone down in a while, It’s more reliable now and in fact more reliable than an external datastore just like @EatSleepCodeRepeat stated.

2 Likes

I’ve published Rongo to Wally so you can now install it by putting rongo = "starnamics/rongo@1.1.2" into your wally.toml file.

1 Like

Is it possible to retrieve all documents from a collection using this?

I’ve tried using collection:FindMany({}), a bit like what you’d do with the node driver (collection.find({})), however it doesn’t work ([RONGO] Request Failed: HTTP 400 (Bad Request))

I’ve had to set up my own API endpoint which returns all the documents at once, however it’d be nice to cut this middleman out and do it directly through Roblox.

2 Likes

Is it possible to use this API Wrapper with the Community version of MongoDB? I’m not using MongoDB Atlas so it seems I can’t use the Data API, which is what this seems to be using.

1 Like

I believe you can do it by using collection:FindMany({filter: {}}) or something of that sort, you’ll need to check the MongoDB Data API documentation for that.

2 Likes

You was pretty much correct, all you needed to do is collection:FindMany() and it returns them all. Thanks!

2 Likes

Is there a roblox-ts package for this wrapper?

2 Likes

Not at the moment, sorry!

I’ll look into potentially making one.

1 Like

Does this support self-hosted mongodb connections? I’m currently using MongoDB for a discord bot, and was wondering if this library supports self hosted MongoDB connections.

1 Like

For the moment it only supports the MongoDB Data API so you’ll need to create your own API and edit the source for Rongo for it do work with self-hosted instances.

1 Like

[FIXED]:
Solution: In your Data API, copy the URL, and replace the 1 within the Module

Hello, Me and a couple others we’re looking for an External DataStore Service and we decided to use MongoDB, after tinkering for a while I figured out how it worked, except this was all with-in Studio, we’ve been trying to move Data to a different place except when you play the Client version of the game it keeps giving a “HTTP 404 (Not Found)” error, and I have changed the “beta” Variable, but it only seems to work in Studio. Any ideas?

Image: (Client)
image
Image: (Studio)
image

5 Likes

Yeah it happened to me too. I think it’s a bug

1 Like