• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Rollback In Networked Mode

 
Kang Wang
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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
 
Yevgeniy Treyvus
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic