Its doable, You would need a many to many relational database to associate the users with the stock channels.
I've read users having problems with APE's MySQL solution but since you are planning on using PHP inlinepush you could do all your queries in PHP. Even better, you could have all your logic in PHP and just push the changes to the APE server. The way i would do it is make a channel per stock: Stock1 Stock2 Stock3 Stock4 Stock5 And then join the users to their corresponding stock channel. Lets say user UserA is following the stock 1, 3 and 5 and UserB follows 2, 4 and 5: UserA joins channel Stock1, Stock3 and Stock5 UserB joins channel Stock2, Stock4 and Stock5 Admin updates Stock1, only UserA gets the update Admin updates Stock5, both UserA and UserB get the update. ProTip: append a channel name with an * to make it a readonly channel, so users won't be able to send anything through this channel. Ex: *Stock1 Sent from my iPhone On Mar 27, 2012, at 1:30 PM, Mangozee <[email protected]> wrote: > Hi Pablo, > > Many thanks for sharing this, great use of the technology. > > To use the stock analogy, user A's portfolio will have different > stocks to those in user B's portfolio. There could be hundreds of > users. > So, although we may push out all prices, each user's view should only > show the changes in the price for the stocks in their portfolio. Do > you think that is do-able with APE? > > Kind regards, > MZ > > On Mar 25, 7:28 pm, Pablo <[email protected]> wrote: >> Hi, >> >> I once created demonstration stockTicker which generated random data, here >> is the live linkhttp://crustid.com/stockTicker/ >> >> You may download the source here, may not apply directly to your case but >> you could find valuable information in >> ithttp://crustid.com/stockTicker/APE_stockTicker.zip >> >> >> >> >> >> >> >> On Thursday, March 22, 2012 2:14:20 PM UTC-4, Mangozee wrote: >> >>> Hi, >> >>> I would like to develop something similar to a stock ticker, but one >>> that instead displays items and stock level, using PHP and the push >>> paradigm, and was wondering if APE would be suitable; requirements >>> follow: >> >>> * >10,000 unique items (products) >>> * approx 1,000 concurrent client browsers (users) >>> * each client would be interested in only certain products (<10) >>> * whenever the database is updated with the latest available quantity >>> for a certain item, this data is pushed out, but should only update >>> those clients that are interested in the stock level for that item. >> >>> Any advice would be gratefully accepted. >>> Thanks! > > -- > 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/ -- 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/
