L
L
LS Timer2017-11-13 13:55:08
Java
LS Timer, 2017-11-13 13:55:08

WebSocket or Rest?

Hello Toaster.
There is a feedback form on the site. In it there is a correspondence with the operator. Everything works on HTTP requests, every 3-4 seconds the client sends a GET request to the server to receive new messages.
Is this architecture correct or would it be better to use WebSocket (I don't know how to implement it yet.)
The number of simultaneous connections can be very large. Approximately 10,000 users or even more, this is already more than three thousand requests per second.
DB: MySQL, apatch tomcat, java

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2017-11-13
@light___soul

The current version will be easiest to remake under long polling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question