Skip to content

Commit

Permalink
Transactional Session: Skip 7 and 8 when there are no outgoing operat…
Browse files Browse the repository at this point in the history
…ions (#6820)

* Transactional Session: Skip 7 and 8 when there are no outgoing operations

* Update index.md

* Update nservicebus/transactional-session/index.md
  • Loading branch information
danielmarbach authored Sep 2, 2024
1 parent 776b2f4 commit 436bfe0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nservicebus/transactional-session/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,14 @@ Internally, the transactional session doesn't use a single transaction that span
3. A transaction is started on the storage seam.
4. The user can execute any required message operations using the transactional session.
5. The user can store any data using the persistence-specific session, which is accessible through the transactional session.
6. When all operations are registered, the user calls ´Commit´ on the transactional session.
6. When all operations are registered, the user calls `Commit` on the transactional session.
7. A control message to complete the transaction is dispatched to the local queue. The control message is independent of the message operations and is not stored in the outbox record.
8. The message operations are converted and stored into an outbox record.
9. The transaction is committed, and the outbox record and business data modifications are stored atomically.

> [!NOTE]
> Steps 7 and 8 are skipped, and as a consequence Phase 2, when no message operations are executed in the transactional session to avoid wasting queue and database resources.
### Phase 2

The endpoint receives the control message and processes it as follows:
Expand Down

0 comments on commit 436bfe0

Please sign in to comment.