Skip to content

Commit

Permalink
Improve recommendation for how to form transaction IDs (#1888)
Browse files Browse the repository at this point in the history
Fixes: #1706
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
  • Loading branch information
Johennes committed Jun 25, 2024
1 parent 7820771 commit 7eda6ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1888.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve recommendation for how to form transaction IDs.
7 changes: 4 additions & 3 deletions content/client-server-api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ the request idempotent.

The transaction ID should **only** be used for this purpose.

From the client perspective, after the request has finished, the `{txnId}`
value should be changed by for the next request (how is not specified; a
monotonically increasing integer is recommended).
After the request has finished, clients should change the `{txnId}` value for
the next request. How this is achieved, is left as an implementation detail.
It is recommended that clients use either version 4 UUIDs or a concatenation
of the current timestamp and a monotonically increasing integer.

The homeserver should identify a request as a retransmission if the
transaction ID is the same as a previous request, and the path of the
Expand Down

0 comments on commit 7eda6ad

Please sign in to comment.