Fellow PHP/AJAX Programmers - How would you do this?

Jeff-DBA

New member
My partner and I are on a quest to code a website that operates almost identical to this one: Auction | Cheap TV laptop ipod auctions - bid & win on Swoopo

I know that the most efficient way to handle a website of this nature is definitely with a Java back-end using Javabeans to keep the client side, server side, and cache variables updated at once. However, we've got no experience with that and the learning curve is unrealistic for our timeline.

Languages: PHP, Javascript, and AJAX.

I'm looking for advice. As a programmer, if you had to code this site, how would you code this bidding and keep it Real-Time without completely slamming the server by pinging a database? The updating would need to be asyncronous.

How could I code this without receiving a bid, storing it, and constantly pinging the database from all client browsers to keep the bids and timestamps constant and updated at all times?

How can I use PHP or Javascript to keep real-time data on the screen for all users in a resource feasible way? If this isn't possible, please don't hesitate to educate me...

Thanks in advance for any ideas or feedback you guys have!
 


Damn, I see they are all over. The best performing one using PHP and AJAX has about a 1 second refresh rate and nowhere near enough capabilities to catch up with swoopo.com who is running a Java Glassfish servlet from hell.

However, this I'm gonna buy this $99 one because its got great reviews and manipulate the template and shit to be the way we need it. It only needs to look good enough to get the investments, then we can pay a java guy to do it right. Thanks a million for that link, for some reason I was under the impression that people didn't already have these coded up.

Maybe a couple months down the road I'll have to contact you to get some, NICHE CRUSHING LINKS FOR JUST $125, for the new site. haha, Thanks again.

square_bike_wheel.jpg
 
ha, sounds good man, good luck!

Damn, I see they are all over. The best performing one using PHP and AJAX has about a 1 second refresh rate and nowhere near enough capabilities to catch up with swoopo.com who is running a Java Glassfish servlet from hell.

However, this I'm gonna buy this $99 one because its got great reviews and manipulate the template and shit to be the way we need it. It only needs to look good enough to get the investments, then we can pay a java guy to do it right. Thanks a million for that link, for some reason I was under the impression that people didn't already have these coded up.

Maybe a couple months down the road I'll have to contact you to get some, NICHE CRUSHING LINKS FOR JUST $125, for the new site. haha, Thanks again.

square_bike_wheel.jpg
 
I would do that in node js, and on the browser side I would use comet and / or web sockets (only supported on the newer browsers).

These are all async meaning you dont poll a database at all, your server pushes updates out to clients on your site as needed.
 
It really wouldn't be hard to write one in PHP that actually worked. 90% (yeah I pulled that number out of my ass) of the clone scripts you'll find are utter shit and preform no near what the original does.
 
Holy shit, someone mentioned node.js! I idle in the #node.js IRC channel all the time. Great potential on that shit.