Skip to main content

Crate autumn_plugin_aws_sqs

Crate autumn_plugin_aws_sqs 

Source
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§

AwsSqsPlugin
Amazon SQS plugin.
EnqueueOptions
Options for SqsJobClient::enqueue_with.
QueueCounters
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.
SqsJobClient
Sends #[job] work to SQS. Get it with SqsJobClient::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::shutdown to drain.

Enums§

ConsumerError
Handler failure.
SqsError
Errors from this crate.

Constants§

PLUGIN_NAME
Plugin name for duplicate detection.