Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Support #106

Open
Zibux opened this issue Mar 20, 2022 · 0 comments
Open

MongoDB Support #106

Zibux opened this issue Mar 20, 2022 · 0 comments

Comments

@Zibux
Copy link

Zibux commented Mar 20, 2022

MongoDB Support
Original owner of plugin said this
`Hello! Author of Factions here. The official Factions plugin do support two different backends. Flatfile is the default and used by most servers. For networks there is the MongoDB option. This is configurable from within MassiveCore. The documentation may be a bit sparse I'm afraid but if you read our MassiveCore documentation on the MassiveCraft website there is some information that will get you started.

The MongoDB backend can be used by multiple servers at the same time. It's actually built with that in mind. It is very well tested and is what we use ourselves on MassiveCraft.

The reason we use MongoDB and not MySQL is becuase MySQL is a table database and thus it's not suitable. MongoDB is a document oriented database which is what we need from a tech perspective. JSON/GSON does not store well in a table.

I should note though that even if you point multiple different Factions servers into using the same database you will not have a 100% complete sharding solution. Messages will for example only be visible on the same server. We have a solution for this that is 80% ready ourselves on MassiveCraft. It works fine but I have not had the time to finish it up for the public yet. Maybe I will try to do so soon. Because with MassiveSharding the plugins functions flawlessly on multiple servers ant once. Teleportation, messages and everything.

Anyhow the basic and most important step that will get you far is simply using MongoDB and point all your servers to the one and same database. You can also use flatfile and point the servers to the same flatfile database if they are all on the same hardware.`

I would like to have MongoDB database and share faction data between multiple server but I don't know how to do it :(. If I don't get help my children will die from hunger. If you can please help me out and tell me how to make this possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant