Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit resolution policy of the 'send' method in the 'Messages' interface #14

Open
coderabbitai bot opened this issue Sep 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@coderabbitai
Copy link

coderabbitai bot commented Sep 10, 2024

Task Description

The send method in the Messages interface currently exhibits non-deterministic behavior. Specifically, the suspending function may resolve either before or after the message is received from the realtime channel. This task involves revisiting the resolution policy to ensure deterministic behavior, where the suspending function resolves only after the message has been received and processed by the realtime channel.

Detailed Plan

  1. Current Behavior: The send method may resolve before or after the message is received.
  2. Desired Behavior: The method should resolve only after the message is received.
  3. Implementation Strategy: Modify the send method to include a confirmation step, update documentation, and test the new behavior.
  4. Testing and Validation: Perform unit, integration, and performance tests.
  5. Potential Challenges: Manage network latency and error handling.

References

┆Issue is synchronized with this Jira Task by Unito

@jamienewcomb jamienewcomb removed their assignment Sep 10, 2024
@ttypic ttypic added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants