Skip to content

Conversation

@oliverlambson
Copy link
Owner

@oliverlambson oliverlambson commented Sep 21, 2025

Important

needs support for priority groups in nats-py, see nats-io/nats.py#784

implemented in nats-io/nats.py#786 – this PR depends on that branch

port of partitioned consumer groups from orbit.go


pull consumer priority groups were added in ADR-42, they allow for partitioning of consumers into "consumer groups" with pinning to ensure ordered consumption within a partition without having to consume the entire stream sequentially.

e.g. in event sourcing you normally want to consume events sequentially within an aggregate, but can safely process multiple aggregates concurrently


todo:

  • static
  • test_static
  • elastic
  • test_elastic
  • integration tests?

@oliverlambson oliverlambson changed the title feat: jetstream partitioned consumer groups\ feat: jetstream partitioned consumer groups Sep 21, 2025
@oliverlambson oliverlambson force-pushed the feat/jetstreampcg branch 4 times, most recently from 0be47f7 to ddc6342 Compare September 21, 2025 20:57
@oliverlambson oliverlambson marked this pull request as ready for review November 15, 2025 17:27
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.

2 participants