A
A
Abdulla Timershin2020-04-22 17:19:34
JavaScript
Abdulla Timershin, 2020-04-22 17:19:34

How much will load the server every second ajax requests?

Will there be a big difference (load on the server) if instead of using websocket, I send ajax requests from the user every second. Or are Ajax requests harder to accept by the server?)
This request is needed only for one feature, and you don’t want to write a websocket server for it.
What will be more rational? Write a websocket for just one feature? Or send ajax requests every second?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-04-22
@flawlessattila

Without keepAlive, it will take a lot of time to connect, and ssl handshakes can generally take a long time.
With keepAlive, as far as I understand, each server user will select a worker exclusively for himself, which limits the number of simultaneous users.
Need to voice a feature

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question