Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

(2.14) Fast batch: initial fast ingest support#7412

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
MauriceVanVeen wants to merge10 commits intomain
base:main
Choose a base branch
Loading
frommaurice/batch-fast

Conversation

@MauriceVanVeen
Copy link
Member

This PR adds initial support for fast batch publish, currently being designed inADR-50. An update to the ADR is proposed here to include details contained in this PR:nats-io/nats-architecture-and-design#387.

Most requirements are already included:

  • AddAllowBatchPublish to theStreamConfig at API level 3
  • Support forNats-Fast-Batch-Id
  • Support forNats-Batch-Gap: fail/ok
  • Support forNats-Flow (only ack per N messages)
  • Support forNats-Batch-Commit: 1/eob
  • Only respond with aPubAck at the end, and use the flow control message throughout.

This should be sufficient for now to benchmark fast ingest, but will need to be followed up later with additional PRs for:

  • Automatic adjusting of flow rate based on server load, up to the max configuredNats-Flow
  • Returning errors due to per-message consistency/expected header checks.
  • etc.

Certain details can still be iterated upon as needed.

Signed-off-by: Maurice van Veengithub@mauricevanveen.com

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

The individual commits could be squashed down prior to merge. Have left them separate for now to ease reviewing.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@MauriceVanVeen

[8]ページ先頭

©2009-2025 Movatter.jp