Replies: 1 comment 2 replies
-
|
Yes we have been exploring and looking at ways to optimize costs for our customers for both stream ingest and consumption as you mentioned above. Nothing definite yet, but we are researching ideas. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
When running JetStream with R3 across availability zones, the same message payload can cross AZ
boundaries up to three times — Raft stream replication, consumer leader delivering to clients, and core
NATS routing to subscribers. At high throughput that adds up.
The data is already on the local replica. Kafka addressed this with KIP-392, letting consumers fetch
from the nearest broker holding a replica instead of always going to the partition leader.
JetStream already has a precedent — AllowDirect lets all stream replicas serve Direct Get requests,
trading read-after-write consistency for read distribution. For pull consumers, something similar could
work:
Is this something the team has considered? Are there architectural reasons it would be harder than it
sounds? Would mirrors be a better path than in-cluster replicas?
Happy to dig deeper into any aspect of this.
Beta Was this translation helpful? Give feedback.
All reactions