Skip to content

enhancement(aws_sqs sink): Batching Support#24689

Open
jlambatl wants to merge 11 commits intovectordotdev:masterfrom
jlambatl:SQS_adaptive_batching
Open

enhancement(aws_sqs sink): Batching Support#24689
jlambatl wants to merge 11 commits intovectordotdev:masterfrom
jlambatl:SQS_adaptive_batching

Conversation

@jlambatl
Copy link
Copy Markdown
Contributor

Summary

This change introduces batching to the SQS sink. If Vector is configured to use SQS as a sink, nothing will change; however, users who do use SQS will be able to configure a batch in the same way that they can with other sinks.

The batch logic conforms to other sinks, with max_events, max_bytes, and timeout.

The default max_bytes is 256 KB to be compatible with most existing SQS configurations; however, it can be set to 1 MB if users have higher limits.

This change allows Vector users to opt in to balance their SQS request costs and latency requirements. All other behaviours should remain the same, as this change introduces a parallel code path.

Vector configuration

Original Configuration

[sinks.my_sqs]
type = "aws_sqs"
queue_url = "..."

Batching

[sinks.my_sqs]
type = "aws_sqs"
queue_url = "..."

[sinks.my_sqs.batch]
max_events = 10      # SQS API limit
timeout_secs = 1.0
[sinks.my_sqs.batch]
max_events = 10
max_bytes = 1048576  # Explicit opt-in
timeout_secs = 1.0

How did you test this PR?

There are unit tests that are designed to test various edge cases to ensure the batching and error logic are correct. I've also added integration tests.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes
  • No. A maintainer will apply the no-changelog label to this PR.

References

@github-actions github-actions bot added domain: sinks Anything related to the Vector's sinks domain: external docs Anything related to Vector's external, public documentation labels Feb 19, 2026
@jlambatl jlambatl changed the title enhancement(aws_sqs sink) Batching Support enhancement(aws_sqs sink): Batching Support Feb 19, 2026
@jlambatl jlambatl marked this pull request as ready for review February 23, 2026 22:07
@jlambatl jlambatl requested review from a team as code owners February 23, 2026 22:07
brett0000FF
brett0000FF previously approved these changes Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: external docs Anything related to Vector's external, public documentation domain: sinks Anything related to the Vector's sinks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AWS SQS batch mode

2 participants