APPLICATION LAYER
CLIENT SERVER PARADIGM
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Provides a persistent, bi-directional real-time communication channel between client and server
|
|
Is an example of a modern API used for communication
|
|
Typical uses are online gaming and instant messaging
|
|
Increases data usage
|
Detailed explanation-1: -Drawbacks or disadvantages of Websockets ➨Websockets has no success functions like AJAX. ➨Intermediary/Edge caching is not possible with websockets unlike HTTP. ➨To build even simple protocol of your own, one can not be able to use friendly HTTP statuses, body etc.
Detailed explanation-2: -Once established, a websocket connection does not have to send headers with its messages so we can expect the total data transfer per message to be less than an equivalent HTTP request. Establishing a Socket.io connection takes 1 HTTP request ( 230 bytes) and one 86 byte websocket frame.
Detailed explanation-3: -WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011. The current API specification allowing web applications to use this protocol is known as WebSockets.