TCP Connections Comparison: REST Services vs WebSockets

EffectiveQuartz6848 avatar
EffectiveQuartz6848
·
·
Download

Start Quiz

Study Flashcards

31 Questions

What is a key difference in terms of TCP connections between WebSocket and REST services?

WebSocket involves a single TCP connection for full-duplex communication, while REST services require setting up a new TCP connection for each HTTP request

How do WebSocket and REST services differ in terms of header overhead?

WebSocket involves minimal header overhead after the initial handshake, while REST services carry HTTP headers with each request

Which factor makes scalability easier in REST services compared to WebSocket?

REST services manage requests independently without storing state information on the server

What type of request is sent over HTTP to initiate a WebSocket connection?

Upgrade request

How do WebSocket connections help in reducing network traffic and latency?

By operating in full-duplex mode

Which API is mentioned in the text as a current trending API along with WebSocket?

REST

In terms of services offered, how do REST and WebSocket APIs generally differ?

REST is stateless, while WebSocket is full-duplex

Which statement best describes the nature of REST services?

REST services are stateless, with each request containing all the necessary information to process it.

How do WebSocket services differ from REST services in terms of communication direction?

WebSocket services allow full duplex communication between client and server.

What is a key characteristic that distinguishes WebSocket services from REST services?

WebSocket services allow bi-directional communication between client and server.

Which protocol is commonly used for implementing REST services?

HTTP

Which layer in the OSI model is responsible for TCP communication in IoT systems?

Transport layer

What type of API is commonly used in the home automation example mentioned in the text?

REST API

Which option is defined in the Operational View Specifications phase of IoT design methodology?

Device monitoring services

What computing device is mentioned in the text as part of the Devices aspect in the home automation example?

Raspberry Pi

Which protocol is known for its lightweight messaging and uses a publish-subscribe model?

MQTT

Which protocol is specifically designed for real-time communication and XML data streaming?

XMPP

Which protocol is focused on machine-to-machine communication and uses a data-centric middleware standard?

DDS

Which protocol supports both point-to-point and publish-subscribe models for business messaging?

AMQP

What is one of the key challenges faced by IoT?

Security and Privacy

In the context of IoT, what is meant by 'Things'?

IoT devices capable of remote sensing

What is a common characteristic of IoT devices?

Ability to dynamically discover other devices and describe themselves

Why is interoperability considered a significant challenge in the IoT domain?

It focuses on the ability of IoT devices to work together seamlessly

What can trigger alerts in the cloud-based IoT system if vibration levels exceed a certain threshold?

Analysis components

In the IoT system described, what can the cloud-based application subscribe to for viewing real-time data?

Data feeds from sensors

In terms of IoT levels, which level involves triggering alerts based on specific conditions like vibration levels exceeding thresholds?

IoT level-2

What is a specific functionality of cloud-based IoT systems mentioned in the text?

Real-time data visualization

What are the two main roles that an IoT Service can play?

Sensor and Actuator

What type of functions does the IoT Service Resolution FC provide?

Directory management and Service discovery

What is the purpose of the Virtual Entity Functional Group?

Facilitate interactions between Users and Physical Things

In the context of the text, what does a User query in an IoT system regarding the conference room 'Titan'?

'What is the temperature in the conference room Titan?'

Explore the differences in TCP connections between REST services and WebSockets. Learn about the overhead of HTTP headers in REST services compared to the headerless nature of WebSockets, making the latter more suitable for real-time applications.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

TCP Connection Establishment Quiz
6 questions
TCP Connection Management
9 questions

TCP Connection Management

IntelligentJasper852 avatar
IntelligentJasper852
Use Quizgecko on...
Browser
Browser