-
Notifications
You must be signed in to change notification settings - Fork 42
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
[WEB-4194] Conflation ControlAPI #2416
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will suggest some text updates too, but the conflation properties are missing from create.
2fbb4d7
to
9f02730
Compare
9f02730
to
7ca7e40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested text updates for the properties 🙂
static/open-specs/control-v1.yaml
Outdated
batchingInterval: | ||
type: integer | ||
default: 20 | ||
description: If `true`, the batching interval, configurable from 20ms to 1s, temporarily holds and aggregates incoming messages. These messages are then combined and delivered as a single batch once the interval elapses or a size limit is reached (before the interval elapses). | ||
example: 20 | ||
conflationEnabled: | ||
default: false | ||
description: If `true`, enables conflation for channels within this namespace. Conflation reduces the number of messages sent to subscribers by combining multiple messages into a single message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: If `true`, enables conflation for channels within this namespace. Conflation reduces the number of messages sent to subscribers by combining multiple messages into a single message. | |
description: If `true`, enables <a href="https://ably.com/docs/messages#conflation">conflation</a> for channels within this namespace. Conflation will aggregate published messages for a set period of time and evaluate them against a conflation key. Only the most recent message that satisfies the key will be sent to subscribers at the end of the conflation interval. |
static/open-specs/control-v1.yaml
Outdated
example: false | ||
conflationInterval: | ||
type: integer | ||
description: The interval in milliseconds at which messages are conflated. This determines how frequently messages are combined into a single message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: The interval in milliseconds at which messages are conflated. This determines how frequently messages are combined into a single message. | |
description: The interval in milliseconds over which messages are held and evaluated for conflation. |
static/open-specs/control-v1.yaml
Outdated
example: 1000 | ||
conflationKey: | ||
type: string | ||
description: The key used to determine which messages should be conflated. Messages with the same conflation key will be combined into a single message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: The key used to determine which messages should be conflated. Messages with the same conflation key will be combined into a single message. | |
description: The <a href="https://ably.com/docs/messages#routing">key</a> used to determine which messages should be conflated. |
See WEB-4194 for more details
Add ControlAPI fields to namespaces for conflation, and clean up batching fields
This pull request includes changes to the
static/open-specs/control-v1.yaml
file to update the message batching and conflation configurations. The most important changes involve the removal of thebatchingPolicy
field and the addition of new fields related to message conflation.Changes to message batching and conflation configurations:
batchingPolicy
field from the configuration. [1] [2] [3]batchingInterval
description to clarify its role in determining the frequency of message batching.conflationEnabled
field to enable or disable message conflation.conflationInterval
field to specify the interval at which messages are conflated.conflationKey
field to determine which messages should be conflated based on a key.