DEV Community

Discussion on: How would you tackle this? Multiple screens showing the same user generated content in real time.

Collapse
 
kallmanation profile image
Nathan Kallman

If I'm limited to just HTTP (so no websockets, server push schemes, or custom protocols) then I would just have the "Big Screen" regularly poll (aka cron) for a new image (maybe 10 seconds?).

If we can use websockets or similar, then that opens the door for fun things of the server notifying screens that new images are available (but then the screen would still make the "request" to get that new image so that it always goes through the same consistent process)