Very good topic! I'm working on a RIA using Flex that
deals with a similar situation for an online ticketing system. Imagine two or
more folks selecting the same seat and wanting to purchase a ticket for it.
Essentially this is collision bound, unless it is being handled
carefully.
I see two solutions:
a) Use Flex Data Services and it's real-time features
of updating clients with the latest status on a specific room (in your
scenario). This will not completely eliminate the possibility that both
customers want to book the room at the exact same time. However, it will cut it
down quite significantly. Of course, there is some additional stuff going on
that we would have to take into consideration.
b) Use flags in the database records for each room as
to its availability and return a response to a customer when the booking is
committed. If someone else has beat them to it, then an error would be returned,
eventually halting the rest of the transaction based on the fact that the room
now is no longer available.
This is a very birds-eye view of what would need to
happen, at least in my mind. There may be other approaches and solutions to this
problem and I would be interested to hear them!
Jurgen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Thursday, September 14, 2006 9:11 AM To: flexcoders@yahoogroups.com Subject: {Disarmed} [flexcoders] Data synchronisation tip and tricks? Most of the traffic conversation here seems to revolve around
applications -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Data synchronisation tip and tricks? Mike Anderson
- RE: [flexcoders] Data synchronisation tip and tricks? Jurgen Beck
- Re: [flexcoders] Data synchronisation tip and trick... Tom Chiverton
- Re: [flexcoders] Data synchronisation tip and t... Paul Andrews