Skip to content

Commit 436bfe0

Browse files
Transactional Session: Skip 7 and 8 when there are no outgoing operations (#6820)
* Transactional Session: Skip 7 and 8 when there are no outgoing operations * Update index.md * Update nservicebus/transactional-session/index.md
1 parent 776b2f4 commit 436bfe0

File tree

1 file changed

+4
-1
lines changed
  • nservicebus/transactional-session

1 file changed

+4
-1
lines changed

nservicebus/transactional-session/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,14 @@ Internally, the transactional session doesn't use a single transaction that span
176176
3. A transaction is started on the storage seam.
177177
4. The user can execute any required message operations using the transactional session.
178178
5. The user can store any data using the persistence-specific session, which is accessible through the transactional session.
179-
6. When all operations are registered, the user calls ´Commit´ on the transactional session.
179+
6. When all operations are registered, the user calls `Commit` on the transactional session.
180180
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.
181181
8. The message operations are converted and stored into an outbox record.
182182
9. The transaction is committed, and the outbox record and business data modifications are stored atomically.
183183

184+
> [!NOTE]
185+
> 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.
186+
184187
### Phase 2
185188

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

0 commit comments

Comments
 (0)