K
K
Kanslay2019-06-08 14:38:48
Mobile development
Kanslay, 2019-06-08 14:38:48

Is it worth implementing multiplayer based on Realtime Database?

I am developing a card game with simple multiplayer for Android, iOS and Web.
Is it worth it to implement multiplayer by keeping track of each player's data updates in the Realtime Database (Firebase)? Users should be able to play with users of any platform .
It is important that players see the actions of other players as quickly as possible.
I suspect that such a solution may be incorrect (at least because the data update speed will suffer, + perhaps there are already ready-made solutions).
If not, how can this task be accomplished?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
orbit070, 2019-06-08
@orbit070

at least because the data update speed will suffer

What are these fears based on?
Realtime Database is perfect for such tasks, and even more so with something simple like a card game, it will certainly cope) Well, if you need a cross-platform, then all the more I can’t imagine what could be better. When I made the messenger and tested the speed of this very realtime database, then pressing the "Send" button on one phone and the appearance of a message on the other at the visual level occurred at one moment, and sometimes so quickly that even a finger did not have time to tear off the screen of the first phone (in the moment you click Send) as the message is already displayed on other devices. In general, there are definitely no problems with speed)

I
Ivan Yakushenko, 2019-06-08
@kshnkvn

Better use an array to store intermediate data.
If it is important for you to save the result in the database, then after the session, load the array into the database.
I do not think that implementing dynamics on the database is generally the right and reasonable solution.

S
sim3x, 2017-07-12
@sim3x

Google the last line of the error text

A
Aristarkh Deryapa, 2017-07-12
@isisTance

This is a frieze error, hard to fix, almost impossible. And the best solution in my opinion is to switch to Pyinstaller. And so, Pyinstaller is more convenient, but it’s a little more difficult to set up, and it’s also easy to assemble it into one without a console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question