[Answer]-Create a Dynamically Updating Blog

1👍

“Another user on the main user site needs to see that new post instantly”: Not generally possible, within normal usage of the HTTP spec.

You can poll every 30 seconds or 60 seconds, to see if something’s changed, however.. Make sure the ‘polling’ request & processing are very inexpensive, especially in the case nothing’s changed.

(There are workarounds to the first statement.. I used one successfully once. But it relies on keeping the connection open & the server waiting, until an event happens or the polling period, 10s, times out.

On Tomcat this would tie threads up, but for our small number of required users it worked fine. Almost certainly not applicable to you, with an open public userbase, though.)

Leave a comment