• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Transaction Rollback In Networked Mode

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

Do we have to worry about rolling back failed transactions? For example, if a user books a room, the transaction is completed on the server and the response cannot be sent back to the user. Therefore, the user gets an error message (something like "connecton lost") and he/she can't tell if the room has been booked until another search. In this case, are we supposed to keep the transaction result or roll it back?

Thanks
Kang
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't bother with rollbacks...especially in a situation like this.

Also, unless your instructions state otherwise you don't have to implement rollbacks. You can always describe why or why not in your choices.txt file.
 
Kang Wang
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Yevgeniy,

Thanks very much. My instructions don't explicitly ask for any rollback scheme. I guess I should just document my choice.

Kang
 
Hug your destiny! And hug this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic