Skip to content

Commit 02e9a5d

Browse files
EDU-1469: Update idempotent publishing section for clarity
1 parent 2c7beb4 commit 02e9a5d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

content/channels/index.textile

-10
Original file line numberDiff line numberDiff line change
@@ -755,15 +755,6 @@ h3(#idempotency). Idempotent publish
755755

756756
Idempotent publishing ensures that multiple attempts to publish the same message do not result in duplicate messages. This feature is essential when network issues may cause a client to reattempt message publication without knowing if the initial attempt succeeded.
757757

758-
<<<<<<< HEAD
759-
It is possible that a client publishing a message using the REST interface may not receive acknowledgement of receipt from Ably, due to issues such as network failure outside of Ably's control. Clients will internally attempt to re-publish messages in these instances.
760-
761-
When idempotent publishing is enabled, the Ably SDK will internally assign a unique ID to each message which ensures that subsequent retry attempts cannot result in duplicate messages. Idempotent publishing is enabled by default in all latest Ably SDKs. It can be disabled by setting the @idempotentRestPublishing@ "@ClientOptions@":/api/rest-sdk#client-options to @false@.
762-
763-
Note that Ably can only detect duplicate messages within a 2-minute window after the original message, with the same ID, is published. If a message with the same ID is published after this 2-minute window, it will be treated as a new message.
764-
765-
You can also specify message IDs externally. The following is an example of how you might do this:
766-
=======
767758
h4. Automatic idempotency
768759

769760
For versions 1.2 and later of the Ably library, idempotent publishing is enabled by default. This means the Ably SDK automatically assigns a unique ID to each message to prevent duplicates during retries. This functionality applies to both REST and realtime publishing.
@@ -853,7 +844,6 @@ message := &ably.Message{
853844
ID: "unique123",
854845
}
855846
```
856-
>>>>>>> 4bfa4c08 (EDU-1469: Re-writes idempotent publishing section to improve clarity to the reader)
857847

858848
```[rest_javascript]
859849
const rest = new Ably.Rest = '{{API_KEY}}';

0 commit comments

Comments
 (0)