Push and Stream concepts
There’s a technique called Polling which continually examines a particular device to see if it has data to transfer. What it really does is monitoring and keep in touch with the system always and continuously take the measurement.
There's a disadvantage of this technique also which is you have to do this very often. But it's totally fine because you have a small bandwidth.But there is a problem. When you send the request sometimes it doesn't give the result instantly. Therefore within this time period system can change and now the result is not accurate.
Therefore we have a few solutions techniques for this.
1. Push
It sends the upgrade request. It upgrades the web server. Here you maintain a tunnel between the client and the server. The advantage is whenever the client or the server needs to send a message it can do it. Instant messaging and synchronized conferencing are classic instances of push services. Pushing files is a feature that is supported by both decentralized peer-to-peer systems and centralized programs.
As soon as the messaging service receives chat messages, it pushes them to the user, along with files on occasion. In HTTP you have to wait for the request for the response. here you don't have to do it as this is real-time.
examples of push systems
- SMTP
- PointCast Network
- Netscape
- Microsoft
2. Stream
Get Supuni Gallege’s stories in your inbox
Join Medium for free to get updates from this writer.
This is a structure and a technique where elements are designed to ingest and process significant amounts of streaming data from many sources.
A streaming data architecture consumes data instantly as it is generated, persists it in storage, and may include various additional components per use case, such as tools for real-time processing, data manipulation, and analytics.
Traditional data solutions focused on writing and reading data in batches.
Requests are streaming the current coordination and your application listens to the stream and takes the coordination and put it in the relevant place.
Advantages of Stream
- Able to deal with never-ending streams of events
- Real-time or near-real-time processing
- Detecting patterns in time-series data
- Easy data scalability
If it is okay to have intervals you can use polling. If you need either side to initiate the message then you can go with the push. If you need one-way communication which means you need updates from the other side you can use the stream





