[fpc-pascal] CustHttpApp and HP httperf tool

Michael Van Canneyt michael at freepascal.org
Tue Jun 10 11:47:54 CEST 2014



On Tue, 10 Jun 2014, Michael Schnell wrote:

> On 06/10/2014 10:38 AM, Michael Van Canneyt wrote:
>> 
>> Websockets are good when the server needs to push similar data at high 
>> speed, no more, no less.
>> 
> Hmm.
> I understand that websocket is a TCP/IP protocol that (after being opened due 
> to commands communicated via HTTP) stays open and hence provides a  pipe that 
> both sites can push data in.

More or less, yes.

>
> This potentially might be suitable to allow the server (i.e. the fast-cgi 
> program) to send state-messages to the browser (e.g.in order to create a 
> web-GUI).

Check e.g. the "leap motion" device.

It uses a websocket to stream the skeleton tracking data to whoever wants it.
This I consider a good example of the use of a websocket.

IMO a web-gui that needs a stateful server part is suicide (it doesn't scale at all),
and therefor I consider that a bad example.

Michael.



More information about the fpc-pascal mailing list