pushbased where JetStream will deliver the messages as fast as possible (while adhering to the rate limit policy) to a subject of your choice or
pullto have control by asking the server for messages. The rate of message delivery in both cases is subject to
ReplayInstantConsumer will receive all messages as fast as possible while a
ReplayOriginalConsumer will receive messages at the rate they were received, which is great for replaying production traffic in staging.
ORDERS.processed. The Stream consumes
ORDERS.*and this allows you to receive just what you need. The final Consumer receives all messages in a
StreamSeq), specific time (
StartTime), all (
DeliverAll) or last (
DeliverLast). This is the starting point and from there, they all behave the same - delivering all of the following messages with optional Acknowledgement.
AckExplicit- the only supported mode for pull-based Consumers - meaning every message requires a distinct acknowledgement. But for push-based Consumers, you can set
AckNonethat does not require any acknowledgement, or
AckAllwhich quite interestingly allows you to acknowledge a specific message, like message
100, which will also acknowledge messages
AckAllmode can be a great performance boost.
MaxDeliversetting allow you to set an upper bound to how many times a message may be delivered.
SampleFrequencywhich is a percentage of messages for which the system should sample and create events. These events will include delivery counts and ack waits.
DeliverPolicyand it's options are as follows:
OptStartSeq, the sequence number to start on. It will receive the closest available message moving forward in the sequence should the message specified have been removed based on the stream limit policy.
OptStartTime, the time in the stream to start at. It will receive the closest available message on or after that time.
DeliverByStartTimesince those deliver policies begin reading the stream at a position other than the end. If the policy is
ReplayOriginal, the messages in the stream will be pushed to the client at the same rate that they were originally received, simulating the original timing of messages. If the policy is
ReplayInstant(the default), the messages will be pushed to the client as fast as possible while adhering to the Ack Policy, Max Ack Pending and the client's ability to consume those messages.
30%as valid values.