Solved

PUSH the status of product on webpage, need high performance

Posted on 2008-10-18
4
264 Views
Last Modified: 2013-11-19
I'm creating a website offering users to view status of products, that can change every second (with about hundrets of products and even more listening users). It's important for user to know about the change how fast as possible so I thought about creating a persistent connection from Flash to a "unknown" server, that would PUSH status change to all listening clients when in happens.

Thing is that I have no idea of a server that is available, tested and offering a high performance. What I need is something like an IRC server - there must be separate rooms for single products so users listening would receive information only about watched ones. I don't mind how data would be PUSHed - this question is only about what server to use.

Do you have any experience with that kind of problem?
Thanks!
0
Comment
Question by:Lukasz Lach
  • 3
4 Comments
 
LVL 5

Author Comment

by:Lukasz Lach
ID: 22749172
points increased to 500
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22749687
That is a lot of effort and expense to go to.  Why not simply refresh the pages every 3 minutes for the user?  This takes the load (and expense) off you, and spreads it among all user's browsers.  Sure there are page refreshes, but all you have to do us set your webserver to cache the pages for a short time.

In the head of each page, put this --  <meta http-equiv="refresh" content="180">

You can also use that same command to do a page redirect after so many seconds, if that is of help --
<meta http-equiv="refresh" content="300; url=http:www.yoursite.com/products">
0
 
LVL 5

Author Comment

by:Lukasz Lach
ID: 22751480
I am not to refresh the whole page, only the product's price and bidding users, sent by JSON or XML. The product page is static, cached as you mentioned. But because of the need to have these data updated at realtime i thought it is a bad idea to PULL then every second and insted - have them PUSHed via Flash socket.
The only problem is that I have no idea about the backend - server that will do the PUSH. I am watching ar IRC and XMPP servers, but don't know the topic and the best choice. Or maybe there is another, simple one, that will do the job?
0
 
LVL 5

Accepted Solution

by:
Lukasz Lach earned 0 total points
ID: 22751945
Ever used ActiveMQ? I see it fits my needs. Basicly ActiveMQ + authorization.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question