I
I
Igor Samokhin2015-09-21 20:58:57
Game development
Igor Samokhin, 2015-09-21 20:58:57

What technologies exist for interaction between users in games with rooms?

Hello,
there are popular games where several players sit in a room and interact with each other. They give gifts to each other, spin the bottle, communicate in a general chat.
I looked in the developer console - I saw that there is no interaction with the server. This means that the client part is somehow synchronized with each other without the participation of the server. There are many advantages, and the rapid appearance of messages in the chat and the removal of load from the server.
What is the name of this technology? And I understand that in such games this is the most correct way to organize interaction between users in games with rooms?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2015-09-22
@grigor007

Our social network works through flash.net.Socket and keeps a constant connection with the server. Java server.
In the developer console, this activity is naturally not visible.
Of the benefits, instant response to events and the possibility of feedback (the server itself can send an event to the client), and not wait until the client sends him a request to find out if something happened.
Of the minuses - more load on the server, maybe you have to constantly keep open sockets for each user. And it also makes the development and scaling of the server more difficult.
Not sure about correctness. Now, if you are doing a farm \ hog \ three-in-a-row, then most likely such a server will add a headache to you.
Now we are starting a new project and looking towards the REST style.

C
Curly Brace, 2015-09-21
@stasuss

BaaS - PlayFab. Flox, Swarm, Gamedonia..
Google it)

L
lyeskin, 2015-09-22
@lyeskin

Why, sometimes they write on websockets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question