Skill 1.1.8
Implement event-driven patterns (for example, by using EventBridge, Amazon S3 Event Notifications, Amazon SQS, Amazon SNS).
Key Concepts
Applications publish their own events to a custom event bus with PutEvents, each with a source, a detail-type and a JSON detail. Rules match events by pattern, for example a specific source and a field value inside detail, and send them to up to five targets such as Lambda, SQS, Step Functions or API destinations for external HTTP endpoints.
Because publishers do not know who consumes their events, new consumers can be added by creating new rules without changing the publisher. Archives and replay help recover from consumer bugs, the Schema Registry documents event formats, and failed deliveries can be sent to a dead-letter queue. EventBridge Scheduler and Pipes extend the same model to scheduling and point-to-point integrations.
With Amazon SQS, producers call SendMessage or SendMessageBatch (up to 10 messages). Consumers call ReceiveMessage, ideally with long polling, process each message and then call DeleteMessage using the receipt handle. A message that is not deleted reappears after the visibility timeout. FIFO queues also require a MessageGroupId and a deduplication ID unless content-based deduplication is enabled.
With Amazon SNS, publishers call Publish on a topic, adding message attributes that subscription filter policies can match. Lambda can consume both services directly, and for SQS triggers you can report partial batch failures so that only failed messages are retried.