Skip to content

Commit

Permalink
feat(guidelines): add new rule for sending durable event ids (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKlasser3000 authored Oct 7, 2024
1 parent 2997ff4 commit e545401
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ As these requirements impose quite a restriction on the producer, a separate [`s
::: references

- [MAY provide `sequence` context attribute](../../../format/cloudevents/rules/may-provide-sequence-context-attribute.md)
- [SHOULD send durable event IDs ](should-send-durable-event-ids.md)
- [You cannot have exactly-once delivery](https://bravenewgeek.com/you-cannot-have-exactly-once-delivery/)
- [Exactly-Once Semantics Are Possible: Here’s How Kafka Does It](https://www.confluent.io/de-de/blog/exactly-once-semantics-are-possible-heres-how-apache-kafka-does-it/)
- [Processing guarantees in kafka](https://medium.com/@andy.bryant/processing-guarantees-in-kafka-12dd2e30be0e)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
id: R000058
---

# SHOULD send durable event IDs

An event is a message that contains information about something factual that occurred in the past.
Each event must have an ID that identifies the event.
The event ID should be the same for retries or when sending via multiple channels. Consumers should assume that events with an identical source and ID are duplicates.

::: references

- [id message attribute in cloud event spec](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id)
:::

0 comments on commit e545401

Please sign in to comment.