REST is arguably the most widely used architectural style across the Web and the IoT, but there are many other technologies, protocols, and architectural styles available to use for web services and single page web application data exchange.
As mentioned earlier, TCP is the transport layer protocol upon which HTTP travels to the application layer. Some of the beneficial attributes of TCP connections are that they are reliable, serial, and checked for errors while sending information. These benefits, however, can sometimes lead to undesirable latency:
The Internet Protocol Suite includes many other protocols alongside TCP. One of these protocols is User Datagram Protocol (UDP). UDP is also a core member of the transport layer of TCP/IP. The primary difference between UDP and TCP is that UDP is connectionless. This means that individual units of data are transmitted with self-identifying information and the receiving end of that information has no prior knowledge...