src/dazzle_back/events/consumer.py¶
Generated: 2026-03-30T04:38:46.025127+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Idempotent Consumer Wrapper for Event Handlers.
This module provides decorators and wrappers that make event handlers idempotent by automatically checking the inbox before processing and marking events as processed after successful handling.
Rule 2: At-least-once delivery is assumed; consumers mus...
Key Exports¶
ConsumerConfigConsumerStatsIdempotentConsumeridempotentConsumerGroupstatsconsumer_nameconnectclosehandlerprocessget_statusdecoratorgroup_idaddgetstart_allstop_allget_statuswrapper
Dependencies¶
Imports¶
__future__.annotationsloggingcollections.abc.Awaitablecollections.abc.Callabledataclasses.dataclassdataclasses.fielddatetime.UTCdatetime.datetimefunctools.wrapstyping.Anytyping.TypeVardazzle_back.events.bus.EventBusdazzle_back.events.bus.NackReasondazzle_back.events.envelope.EventEnvelopedazzle_back.events.inbox.EventInboxdazzle_back.events.inbox.ProcessingResult
Event Interactions¶
None detected.
Invariants and Assumptions¶
- Validates: connect is required
- Assert: self._conn is not None
Tests¶
tests/unit/test_events.pytests/unit/test_events_api.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.