Replies: 1 comment
No. Or at least theoretically not.
You can try the brokerEntryMetadataInterceptors=org.apache.pulsar.common.intercept.AppendIndexMetadataInterceptorThen you can use the |
0 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.
One nice property of Pulsar is that all the messages on a topic have a total order that can be used by downstream systems (for example, as the "version" for data).
However, Pulsar's built in MessageIDs are a bit cumbersome. Unlike Kafka or some other systems, they aren't a single integer: they're a struct consisting of a Partition ID (
uint32), Ledger ID (uint64), Entry ID (uint64) and Batch ID (uint32).I have two questions about this:
Is it safe to rely on this internal undocumented structure of a MessageID? It seems like it should be safe, since changing it would break many things, but I wanted to double check.
Is there a better way to get a log sequence number? I guess we could create our own with a stateful Pulsar Function but that seems like it would add overhead and affect our throughput.
All reactions