Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Event Driven Messaging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-event-driven-messaging)
---
description: Build reliable producers and consumers on Kafka, SQS, RabbitMQ or Pub/Sub with outbox, ordering and dead letters
profile: full
tags: messaging, kafka, queues, events, backend
---
# Event-driven messaging
Messages will be duplicated, delayed and reordered. Design for it.
## Producing
- Transactional outbox: write the event to an outbox table in the same DB transaction as the state change; a relay publishes it.
- Events are facts in past tense with a schema, version and unique id.
## Consuming
- Idempotent handlers (dedupe by event id); commit offsets/ack only after success.
- Ordering only where needed, via partition/message-group keys; don't assume global order.
- Bounded retries with backoff, then a dead-letter queue with alerts and a replay tool.
## Schemas
- Schema registry or versioned contracts; consumers tolerate unknown fields.
## Verify
A test publishes the same event twice and out of order and asserts the consumer's final state is correct; a poison message lands in the DLQ.