Skip to content

Docs batch example#2914

Open
musecollaboration wants to merge 3 commits into
ag2ai:mainfrom
musecollaboration:docs-batch-example
Open

Docs batch example#2914
musecollaboration wants to merge 3 commits into
ag2ai:mainfrom
musecollaboration:docs-batch-example

Conversation

@musecollaboration

Copy link
Copy Markdown

Description

This PR adds a working example of using batch=True with PullSub in NATS JetStream.
It demonstrates how to access native NATS messages via msg.raw_message and perform
per‑message ack() inside a batch.

This improves the documentation by providing a real, functional example for batch
processing, which was previously missing.

Fixes: none

Type of change

  • Documentation (code examples or documentation updates)

Checklist

  • I have reviewed my changes
  • I have updated the documentation accordingly
  • My changes do not introduce any warnings

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added documentation Improvements or additions to documentation NATS Issues related to `faststream.nats` module and NATS broker features labels Jun 14, 2026
@musecollaboration

Copy link
Copy Markdown
Author

Исправил

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

Labels

documentation Improvements or additions to documentation NATS Issues related to `faststream.nats` module and NATS broker features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants