View Source API Reference rabbitmq_stream v0.4.0
Modules
Responsible for encoding and decoding messages, opening and maintaining a socket connection to a single node. It connects to the RabbitMQ, and authenticates, and mantains the connection open with heartbeats.
Defines the interface a Connection Module that interacts with the Streams Protocol TCP/TLS API.
Used to declare a Persistent Consumer module. Then the handle_message/1
callback will be invoked
for each message received.
Behavior for flow control strategies.
Message Count Strategy
Behavior for offset tracking strategies.
If you pass multiple strategies to the consumer, which will be executed in order, and
and halt after the first one that returns a :store
request.
Count Strategy
Interval Strategy
Struct that holds the data of a Osiris chunk, which is the format used by RabbitMQ Stream to store the stream data.
RabbitMQStream.Producer
allows you to define modules or processes that publish messages to a single stream.
Declares a SuperConsumer module, that subscribes to all the partitions of a SuperStream, and ensures there is only one active consumer per Partition.
A Superproducer spawns a Producer process for each partition of the stream,
and uses the routing_key/2
callback to forward a publish command to the
producer of the partition.