Are long-living transactions acceptable?

后端 未结 5 694
孤街浪徒
孤街浪徒 2020-12-11 04:41

I am thinking about using transactions in 2-tier WPF (or windows forms) applications in following way:

We can begin new transaction when we open new form for editing

5条回答
  •  借酒劲吻你
    2020-12-11 05:06

    I agree with Mitch n Cheeso, but still there is one more way of putting Timeout on the window, you can notify a clock that if user does not press "OK" then the window will be closed automatically and everything will be cancelled.

    Majority of systems where transactions are critical like "Reservation" process on airline, movies etc, operators are supposed to close the transactions in limited time.

提交回复
热议问题