Schemata Posted June 1, 2009 Share Posted June 1, 2009 So I had an idea. What if (maybe a feature down the road) you included live update. What I mean by this is, when someone posts a new topic it INSTANTLY appears under the last post (if you are currently viewing the post). Similar to what facebook has, it refreshes every so often and if you just sit at your home page for a minute, it will slide down and show "2 new posts" What if it instantly slid down to show the new post instead of refreshing. I think this would help cut down on "Edit: Johnny beat me to it, 2 seconds before me" Any ideas on how this might work? I am not a coder, but I am guessing something like Javascript or JQuery? Link to comment Share on other sites More sharing options...
bfarber Posted June 1, 2009 Share Posted June 1, 2009 It's doable from a programming perspective. The problem is resources. Software as big as IPB is can be resource heavy at times already, and having it query the script every 2 seconds or 5 seconds or whatever to see if there are new posts would multiply the resource usage exponentially. Link to comment Share on other sites More sharing options...
Lee Craven Posted June 2, 2009 Share Posted June 2, 2009 I think speed is a big + for everyone, I think features like this would cause more people to report "slow site" bugs than anything else, and when you browse the forum or refresh the page you get the new posts immediately. Link to comment Share on other sites More sharing options...
Schemata Posted June 2, 2009 Author Share Posted June 2, 2009 It's doable from a programming perspective. The problem is resources. Software as big as IPB is can be resource heavy at times already, and having it query the script every 2 seconds or 5 seconds or whatever to see if there are new posts would multiply the resource usage exponentially. When you say resources are you just talking Bandwith? I think speed is a big + for everyone, I think features like this would cause more people to report "slow site" bugs than anything else, and when you browse the forum or refresh the page you get the new posts immediately. But I want to make it so you don't have to refresh. If you are in the middle of a post, you can't refresh the page without losing your post content. Overall, I think it is a cool idea. I don't know how many "resources" facebook uses, but maybe this can be an option later on down the road if IPB ever get's it's resource fat trimmed. :) Thanks guys Link to comment Share on other sites More sharing options...
Connor T Posted June 2, 2009 Share Posted June 2, 2009 Give it 5 years. The new i7 by Intel could run a 3rd world country. So another 5 years computers and bandwidth streaming will be no problem, thus the upgrade of web pages can begin. I have a 100mb cable feeding into my house for internet, but they cap it at 5mb or something at the modem (Road Runner). With some nasty tweaks and modifying you can release that cap and get an amazing stream of bandwidth (Don't do it though, illegal). Point being, this will come with time as computers are upgraded and server resources are no longer a problem. Link to comment Share on other sites More sharing options...
The Pi Posted June 2, 2009 Share Posted June 2, 2009 When you say resources are you just talking Bandwith? He means anything the server needs to run the PHP script - RAM for the script to load into, CPU to run the script on, network connections for SQL, etc. Link to comment Share on other sites More sharing options...
ᴡᴅツ Posted June 2, 2009 Share Posted June 2, 2009 This could possibly be added as a hook. (I guess) Facebook itself is laggy. Link to comment Share on other sites More sharing options...
Management Matt Posted June 2, 2009 Management Share Posted June 2, 2009 It would be simple to do but would have the effect of everyone refreshing the page every 2 to 4 seconds which would mean certain death for most shared servers. Facebook manage it because they have hundreds of powerful webservers. The average forum admin gets a small slice of one shared server. Link to comment Share on other sites More sharing options...
Alex K. Posted June 2, 2009 Share Posted June 2, 2009 The shoutbox already polls the server every few seconds anyway. Could something similar to that be done? Edit: 5 seconds after posting this, I see it would be way harder than that. <_< Link to comment Share on other sites More sharing options...
Schemata Posted June 2, 2009 Author Share Posted June 2, 2009 It would be simple to do but would have the effect of everyone refreshing the page every 2 to 4 seconds which would mean certain death for most shared servers. Facebook manage it because they have hundreds of powerful webservers. The average forum admin gets a small slice of one shared server. I didn't realize it was such a big resource hog. wow. Thank you though, this fully answers my question. Link to comment Share on other sites More sharing options...
Jmiz9000 Posted June 3, 2009 Share Posted June 3, 2009 Nonetheless, that's was a good idea :P Link to comment Share on other sites More sharing options...
Strike X Posted June 3, 2009 Share Posted June 3, 2009 I think IPB 3 using too many unnecessary classes (php), that is what is slowing down but I could be wrong. Link to comment Share on other sites More sharing options...
bfarber Posted June 4, 2009 Share Posted June 4, 2009 Define unnecessary classes? I mean, if the class is doing something, it wouldn't be unnecessary then now would it? ... Link to comment Share on other sites More sharing options...
Lee Craven Posted June 4, 2009 Share Posted June 4, 2009 Again this is another post where people are trying to join social website ideas with a professional forum. IPB is there to post and read info, not chat (although there is the shoutbox for that). Generally people don't post within a few seconds of a post been made in the same topic, so it's beneficial to save all the resources you can so when someone is on the board it's faster. Link to comment Share on other sites More sharing options...
giggsey Posted June 4, 2009 Share Posted June 4, 2009 Someone watched the Google Wave video :P I have to agree though, it's a waste of resources. Esp if the server has a few thousand visitors :P The shoutbox works, because it's only a few amount of queries. Link to comment Share on other sites More sharing options...
bfarber Posted June 4, 2009 Share Posted June 4, 2009 Shoutbox has been heavily optimized for this sort of thing. It has appropriate caches and it's one (or a small number, can't remember) of "instances". You can easily tell quickly from a timestamp if there are new shouts. A forum with a lot of activity, however, can quickly consume a lot of resources trying to act in the same manner. Link to comment Share on other sites More sharing options...
teraßyte Posted June 4, 2009 Share Posted June 4, 2009 Indeed, a shoutbox is a "small" thing but a forum is completely a different and more "big" thing. Link to comment Share on other sites More sharing options...
bobobo1618 Posted May 5, 2012 Share Posted May 5, 2012 This whole issue is based on the assumption that clients have to poll and that has to be expensive. Maybe a few years ago but no longer. Go check out socket.io. Link to comment Share on other sites More sharing options...
-MM- Posted May 5, 2012 Share Posted May 5, 2012 It would be simple to do but would have the effect of everyone refreshing the page every 2 to 4 seconds which would mean certain death for most shared servers. Facebook manage it because they have hundreds of powerful webservers. The average forum admin gets a small slice of one shared server.No its not that recource intensive as refreshing page and you can set option to enable/disable it. Link to comment Share on other sites More sharing options...
Heyhoe Posted May 5, 2012 Share Posted May 5, 2012 Erm, this topic is 3 years old. And the requested feature is now present... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.