Skip to main content

Crate hyperlane_plugin_mq

Crate hyperlane_plugin_mq 

Source
Expand description

hyperlane-plugin-mq

High-concurrency pluggable message queue abstraction and sharded in-memory broker for Hyperlane with topics, consumer groups, bounded backpressure, TTL expiration, O(log N) min-heap visibility timeouts, retries, and dead-letter queues.

Structs§

InMemoryBroker
Production-ready sharded high-concurrency in-memory MessageBroker implementation.
MqConfig
Configuration controlling queue bounds, visibility timeouts, retries, and DLQ naming.
MqDelivery
Active delivery leased to a consumer until acknowledged, negatively acknowledged, or timed out.
MqMessage
A message published to and consumed from a MessageBroker.
MqPlugin
Process-wide MqPlugin registry storing MqConfig, an InMemoryBroker, and an optional custom MessageBroker.
MqStats
Point-in-time counters for one (topic, group) queue.

Enums§

MqError
Errors returned by crate::MessageBroker operations.

Constants§

DEFAULT_MQ_DLQ_SUFFIX
Default suffix appended to a topic name for its dead-letter queue.
DEFAULT_MQ_GROUP
Default consumer group name used when no explicit groups are subscribed.
DEFAULT_MQ_MAX_QUEUE_LEN
Default maximum pending messages allowed per topic consumer group.
DEFAULT_MQ_MAX_RETRIES
Default maximum delivery attempts before routing a message to the dead-letter queue.
DEFAULT_MQ_VISIBILITY_TIMEOUT_MS
Default unacknowledged delivery visibility timeout in milliseconds.

Traits§

MessageBroker
Asynchronous message broker contract implemented by InMemoryBroker and external drivers.

Type Aliases§

BrokerFuture
Boxed Send future returned by async MessageBroker trait methods.