Polling and Streaming

So far we have seen systems where client request some peice of information from the server and the server responds with the data. What if we are building a systems where the client will be able to monitor the temperature outside, the temperate is going to change a lot, and the client should be able to view these changes. Similarly we are buiding a system with a chat app where client that are meant to communicate with each other in real time. How can build a system to reflect the regularly updated peices of data. This is where polling and streaming comes handy.

Polling

Streaming

back