H
H
HMR2015-10-27 00:47:39
JavaScript
HMR, 2015-10-27 00:47:39

How to send data from the browser with minimal traffic costs?

How to send data from the browser with minimal traffic costs?
The string can be sent 10 or more times per second:
prm=1...
Server response is not needed.
As a result, the header is more overlaid than the data. Interests, whether there is an opportunity to send heading, and further on keep-alive to send the data.
I heard about websocket. How to attach a script to Apache, preferably without running a php script as a daemon.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2015-10-27
@nirvimel

To begin with, no typical php hosting (shared hosting) can withstand such packet bombardment. Each EULA contains a clause on which a ban follows for this. Here you need at least a good vds.
Further, if there is vds, then there is nginx on it (Apache was created for other tasks). Nginx can handle packet bombardment and can filter and proxy websocket .
Further, behind the back of nginx, you can put any websocket server in any language, even in PHP - although this is not the best choice for serious workloads, its developers clearly did not count on a stream of > 10 packets per second from each client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question