UUID Use Case

UUID Message ID

Message brokers can deliver twice. A UUID message ID lets the consumer remember what it already processed.

DedupeTraceablev4

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID Message ID?

How to generate

  1. Generate a v4 UUID when publishing.
  2. Stamp it on the message envelope.
  3. Track processed IDs within the dedupe window.

Use Cases

Code Examples

JavaScript
const id = crypto.randomUUID();
Python
import uuid
id = uuid.uuid4()

Frequently Asked Questions

Message ID vs idempotency key?
Often the same value; the message ID is the broker term, the idempotency key the business term.
How long to remember processed IDs?
Long enough to cover at-least-once redelivery, typically hours to a day.

Related tools