Hello Rob, Ape will definitely help you to take the load off. You need to adopt a convention so that you use a optimum mix of ape and php 1. You can configure a site channel and let all user join that channel so you will have user join notification sent to all users. You can capture the event and display appropriate messages 2. Friends online. I suggest you load the friends list when the page loads. You can use php to retrieve the list from the database once and store in JSON or in any hiden div in the page. Once the new user notification is received just check against the friends list and then you can update the no of friends online or may be names 3. Similarly you can do for the messages load the existing messages from database at page reload and when the new message is sent you can define an event and broadcast the message to that user on his pipe at the same time store the message in database using ApeServer.
This is just an idea there are many more ways to do thing you need to evaluate what suits the best. Cheers On Jun 30, 9:26 pm, RobDiablo <[email protected]> wrote: > Hello, > > I am new to APE and first want to thank everyone for bringing such a > great project to the rest of us. My first project using APE involves > my dating site. The site is custom built using PHP/AJAX/jQuery/ > MySQL. When a user is logged in, at the top of the window sits a > status bar with information about the number of new messages they > have, the amount of members currently online, the amount of friends > currently online, etc... > > Currently, I am using jQuery.periodicalupdater to query a php script > and return the relevant data and update the status bar. Two things > that we do not like about this: 1. For some reason, the browser begins > to use more and more memory as time goes along. Is there a memory leak > using this jQuery plug in? Not sure, only one other person has > reported a similar problem but nobody has addressed it. 2. Each > client has to query the script and the script sends mysql commands for > each user thus using more resources it seems. > > With APE, it seems like I could offload more of this to the APE Server > and possibly eliminate the memory leak if there is one and use less > calls from the browser by using the server instead. > > Am I right? > > If so, I am trying to plan all of this in my head but could use some > basic direction on how to go about all this. Obviously, the client > would need to send to the server information about themselves for the > server to process status info such as new messages and friends online. > Any ideas? > > Thanks in advance, > > Rob -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
