eurekastreams icon indicating copy to clipboard operation
eurekastreams copied to clipboard

Flip a bit instead of going to server for notifications

Open lmb244 opened this issue 14 years ago • 0 comments

An alternative to checking the server every minute for new notifications, the suggestion is to flip a bit that we need to, then go to the server on mouse-move if that bit is set.
The mouse move would have to only query if it hadn't done so in the last x seconds, otherwise you'd barrage the server when you're actually using the tool. Given a reasonable denounce time (e.g. 1 minute), this would cut down on server load from background browser windows. It would mean that you couldn't leave your browser open on another monitor and watch for notifs w/o interacting w/ it periodically.

The reader has a couple things it does. 1 is for reading articles and removing from your read list. The other would be the total unread articles left. I'm assuming this list isn't moving if you aren't in that tab/window moving a mouse.

Well, rather than toggling a Boolean, the timer could actually setup the mouse-move event, and the event that's fired when the mouse moves could remove it. This would prevent needless traffic from idle users.

I like the idea, the summary point you stated that makes sense is preventing needless traffic from idle users .. that's a good enhancement.

lmb244 avatar Jul 16 '10 17:07 lmb244