storage icon indicating copy to clipboard operation
storage copied to clipboard

Limitations on transactions?

Open fubar-coder opened this issue 3 years ago • 0 comments

Assume the following scenario for using Storage.Net in a server application:

  • Server uses an IBlobStorage registered as singleton
  • First request starts
  • First request: Opens a BLOB transaction
  • First request: Adds a BLOB (a)
  • Second request starts
  • Second request: Opens a BLOB transaction
  • Second request: Adds a BLOB (b)
  • First request: Adds a BLOB (c)
  • First request: BLOB rollback
  • Second request: Adds a BLOB (d)
  • Second request: BLOB commit
  • Second request ends
  • First request ends

What's the state of the created BLOBs/transactions when both requests use the same IBlobStorage instance (due to being a singleton)?

fubar-coder avatar Feb 06 '22 03:02 fubar-coder