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§
- InMemory
Broker - Production-ready sharded high-concurrency in-memory
MessageBrokerimplementation. - 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
MqPluginregistry storingMqConfig, anInMemoryBroker, and an optional customMessageBroker. - MqStats
- Point-in-time counters for one
(topic, group)queue.
Enums§
- MqError
- Errors returned by
crate::MessageBrokeroperations.
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§
- Message
Broker - Asynchronous message broker contract implemented by
InMemoryBrokerand external drivers.
Type Aliases§
- Broker
Future - Boxed
Sendfuture returned by asyncMessageBrokertrait methods.