What is the best way to implement a website where users can interact with each other

I am creating a website where users can chat and send files to each other through a browser. I use GWT for the user interface and sleep mode using gilead to connect to the mysql database backend.

What would be the best strategy to use so that users can interact together?

+3
source share
3 answers

I would say that you are looking for a comet / AJAX | Server push / etc. See my previous answer on this for some pointers. Basically, you simulate inverting the connection between the server and the client - this is the server that initiates the connection here, because it wants, for example, to inform the user that his / her friend just went to the Internet, etc.

Implementations of this technique change quite quickly, so I won’t make any final recommendations - choose the one that best suits your needs :)

+2
source

COMET - , -. , , keep-alive. . GWT. , Servlet 3.0 ( )

+2

COMET , ! ( COMET) - . .

Stackoverflow - , . , . COMET - .

COMET , . , ( "Advanced IO" ), (, HTTPS Glassfish v3 - ), Apache ...

, . , .

So, you have to weigh the options for your specific situation.

+1
source

Source: https://habr.com/ru/post/1741365/