Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Mar 12, 2019 at 11:06 AM by tormentoarmagedoom for the following reason:

Question is off-topic or not relevant

avatar image
0
Question by Eco-Editor · Mar 12, 2019 at 09:42 AM · multiplayerserverdatabaseclientrealtime

Using a database for unity multiplayer project

Hello all,

Which is the best database tool for using with unity for multiplayer game?

Anyone experienced with MongoDB ot SQL? Which is better?

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0

Answer by Bunny83 · Mar 12, 2019 at 09:54 AM

This is off topic and too unspecific. "Multiplayer game" is a way too broad term. FPS games don't really need any backend DB. So lager scale games (MMOs, etc.) generally have a completely seperated server architecture. Unity is mainly for the frontend and in many cases not suited for the backend (though it depends on the game).


A database generally is just a place to store data in a structured manner. It's like asking if it's better to use a HDD, SSD, USB mem stick, floppy disk or a tape drive. It entirely depends on the usage and the requirements. Tape drives are still used today to do backups since they are more reliable in the long term. SSDs and mem sticks have limited write cycles, floppies are slow as hell.


Without knowing the usecase, which data needs to be stored, how that data needs to be queried, how frequently you access that data, what interface you want to use to access the data, ... it's impossible to tell which system may better fit. None is generally better than the other. It's like comparing a ferrari against an excavator. Both are good in their fields.


Apart from all that unspecificity this is not a Unity related question. Server side database systems is a general programming field and the design of a database a whole topic on its own.


Unity Answers is for specific unity related questions that can be answered. Any sort of discussions, opinion, feedback, recommendations should be handled on the Forums.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eco-Editor · Mar 12, 2019 at 10:43 AM 0
Share

thank you for your feedback @Bunny83 It's my first time as a full stack developer and I'm only experienced with using UNET so far. In this case I'll specify my needs: 1. Connect the player (email registration /login) 2. send simple stream of bytes, as simple as : if user A picked red cube -> then user B see yellow cube in her scene.

$$anonymous$$y plan is to use $$anonymous$$ySQL for the database (registration / login), first local when developing and maybe set to the cloud in the future, and simple TCP connection between the two players (only two players now)

As you can see its not even a FPS, I don't need to update the transform or animation of the players, but to enable and disable objects once player A or B completed their task.

It seems fairly simple to me and yet feels complicated and I start learning about dedicated servers and creating a local database.

Also I think it's related to Unity because I'm not accustomed to writing c# outside unity and to me the integration is very important. For example there is a unity package for SQLlite... that I thought is good, but after checking further I realized it's really pretty much the same: table of content which can be transformed between databases.

Follow this Question

Answers Answers and Comments

173 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

Multiplayer push object error. 0 Answers

Do i need to have 2 seperate apps communicating for server/client relationship? 2 Answers

How to test Unity's new networking layer in separate game instances? 0 Answers

Missing line renderer in multiplayer? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges