[Info-vax] OT: Record locking for web transactions

Craig A. Berry craigberry at nospam.mac.com
Tue Feb 18 20:27:38 EST 2014


On 2/18/14, 4:43 PM, JF Mezei wrote:
> On 14-02-18 17:33, Jan-Erik Soderholm wrote:

>> But, *that* has little with the web to do. Any ordering application
>> could behave in the same way. :-)
>
> Yes it does because of the stateless web transaction model.

No, it doesn't, because the web isn't stateless in the 21st century.
Read Hoff's post in this thread, look up HTML5, websockets, etc. It's
certainly possible and sometimes preferable to use a simple get/post
model. But that's a web page, not a web app in the sense that's usually
used now. Consider the fact that even if your attempt to save a record
to the server fails, it may well still be available to you tomorrow or
next week if the app uses the local data store found in every modern
browser. And you may well have any number of opportunities to re-synch
your data with the server's version, which is one form of what is now
called "eventual consistency."




More information about the Info-vax mailing list