Server Side Events

How to Implement Server Side Events Using Python Flask and React

How to Implement Server Side Events Using Python Flask and React

A typical Request Response cycle works such that client sends request to server and server responds to that request. But there are few use cases where we might need to send data from server without request or client is expecting a data that can arrive at anonymous time.There are few mechanisms available to solve this problem.

Server Side Events

Broadly we can classify these  as client pull and server push mechanisms.Websockets is a bi directional mechanism where data is transmitted via full duplex TCP protocol.