Chapter 11. JSON for Real-Time and Distributed Data
Until now, we have worked on RESTful http API endpoints as sources of data communication between the client and server. An http request has proved to be the best way to have reliable data availability. The only hurdle can be the response time if there are some issues with network latency. What if we don't want to wait for the server response to be received, or we need the data to be received in real time? Consider the scenario of some simple messaging activity with some product bot, or a screen cast for a presentation that is delivered to workplace staff from home. The only criteria for success in this case is the data availability on time and its correctness. One web technology protocol that provides real-time solutions to such scenarios is WebSocket.
Another important thing we hear a lot about is the distributed system. Once a web application is deployed and live, somewhere down the line we need to scale our network resources for data...