Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development by Peter Lubbers;Frank Salim;Brian Albers

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development by Peter Lubbers;Frank Salim;Brian Albers

Author:Peter Lubbers;Frank Salim;Brian Albers
Language: eng
Format: mobi
Tags: Html, Computers, Programming Languages
ISBN: 9781430238645
Publisher: Apress
Published: 2011-10-10T04:00:00+00:00


Use case A: 1,000 clients polling every second: Network traffic is (871 × 1,000) = 871,000 bytes = 6,968,000 bits per second (6.6 Mbps)

Use case B: 10,000 clients polling every second: Network traffic is (871 × 10,000) = 8,710,000 bytes = 69,680,000 bits per second (66 Mbps)

Use case C: 100,000 clients polling every 1 second: Network traffic is (871 × 100,000) = 87,100,000 bytes = 696,800,000 bits per second (665 Mbps)

That's an enormous amount of unnecessary network overhead. Consider if we rebuilt the application to use WebSocket, adding an event handler to the web page to asynchronously listen for stock update messages from the message broker (more on that in just a little bit). Each of these messages is a WebSocket frame that has as little as two bytes of overhead (instead of 871). Take a look at how that affects the network overhead in our three use cases.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.