Forum Moderators: buckworks
one important fact is that the user has to wait only once - when doing the very first search. everything is kept in a session later.
so my problem is: speed or quality?
shall we give less and do not ask for waiting?
or give much more than 97% of websites of our type and ask the customer for patience?
thanks
i have a database of items (and their specifications) but the availability and prices change every minute so must always check it to provide real data.
the problem is the connection time between my server and the merchant's one.
This is always going to be slow, it makes much more sense for you to setup a cron to fetch the datafeeds and load them into a local database every minite. Then when the user searches you query your local database for the results.
I cant see why my solution would not work.
You should use database solution, but update your data sparsely, say 1 time per hour/day, and just have a disclaimer that you are trying to provide as accurate data as it goes, but without warranty.
Trust me: you can update your data every second, but there _always_ be an outdated feed -- say just because a hotel has not updated their data timely, or just two reservations come along, or whatever.
It's a real world!
Your market is irrelevant.
This is always going to be slow, it makes much more sense for you to setup a cron to fetch the datafeeds and load them into a local database every minite.
Do the math- this is a HUGE amount of data! Even if an affiliate had their own database that could deal with this, the cost from all the traffic would wipe out profits. And the parent company would never stand for thousands of affiliates dumping the entire database every minute- that would kill THEIR profits!
I cant see why my solution would not work.
[edited by: jatar_k at 5:20 pm (utc) on Jan. 31, 2006]
[edit reason] fixed quote [/edit]
by the way: can anyone sticky me with an URL do a website that is doing this? It would be interesting to see something I do not believe exists.
yes, that is what we are trying to force the user to do. the problem is that whoever comes, wants to see everything that is available first. also, when you ask them to specify their neeeds in a very detailed way, the number of results they get may be discouraging :(
that is why i asked what would you put your money on: speed or features?
Maybe you could return the page to the user quickly but with gaps, then use AJAX to 'fill in' the missing details as they arrive?
[edited by: lorax at 6:47 pm (utc) on Jan. 31, 2006]
[edit reason] removed DN [/edit]