Skip to content

Conversation

MauriceVanVeen
Copy link
Member

AllowAsyncFlush used to be an opt-in stream-level setting, which allows a replicated stream to asynchronously flush writes to the underlying JetStream stream. This is a safe operation as it's backed by a replicated log that is flushed, and we make sure to flush any remaining async writes before snapshotting and compacting the log. After upgrading to 2.12, you'll see improved performance by default, with no action required by users.

This setting is automatically enabled for streams with Replicas > 1 and with the SyncAlways server setting disabled (default).

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit e24d783 into main Aug 13, 2025
111 of 114 checks passed
@neilalexander neilalexander deleted the maurice/default-async-flush branch August 13, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants