Expand description
Amazon SQS plugin for autumn-web.
- Jobs: send
#[job]work to SQS. Workers run the same handler. - Consumers: run a handler for each message on any queue.
- Producer: send messages to any queue.
- Operations: health indicator, Prometheus metrics, drain on shutdown.
See the README for setup.
Re-exports§
pub use config::SqsConfig;
Modules§
- config
[aws_sqs]configuration.- envelope
- Job message format.
- policy
- Pure retry, delay, and batch rules.
- transport
- SQS transport seam.
Structs§
- AwsSqs
Plugin - Amazon SQS plugin.
- Enqueue
Options - Options for
SqsJobClient::enqueue_with. - Queue
Counters - Counters for one queue label.
- SnsNotification
- SNS notification envelope (raw message delivery off).
- SqsConsumer
- A handler for one queue.
- SqsHealth
- Checks each queue with
GetQueueAttributes. - SqsJob
Client - Sends
#[job]work to SQS. Get it withSqsJobClient::from_state. - SqsMessage
- A message given to a consumer handler.
- SqsMetrics
- Metrics for all queues. Also a
MetricsSource. - SqsProducer
- Sends messages. Get it with
SqsProducer::from_state. - SqsRuntime
- A started plugin. Call
SqsRuntime::shutdownto drain.
Enums§
- Consumer
Error - Handler failure.
- SqsError
- Errors from this crate.
Constants§
- PLUGIN_
NAME - Plugin name for duplicate detection.