src/dazzle_back/events/postgres_bus.py¶
Generated: 2026-03-30T04:38:46.175263+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
PostgreSQL-Backed Event Bus for Dazzle (Tier 1).
Provides a durable event bus using PostgreSQL with: - FOR UPDATE SKIP LOCKED for competing consumers - LISTEN/NOTIFY for low-latency wake-up - Full EventBus interface compliance - Transactional publish with domain writes
Ideal for Heroku deployments...
Key Exports¶
PostgresConfigPostgresBusconnectclosepublishpublish_with_connectionsubscribeacknackreplayget_consumer_statuslist_topicslist_consumer_groupsget_topic_infostart_consumer_looppoll_and_processget_dlq_eventsget_dlq_countclear_dlq
Dependencies¶
Imports¶
asynciojsonloggingcollections.abc.AsyncIteratordataclasses.dataclassdatetime.datetimetyping.Anyuuid.UUIDdazzle_back.events.base_event_bus.ActiveSubscriptiondazzle_back.events.base_event_bus.BaseEventBusdazzle_back.events.bus.ConsumerNotFoundErrordazzle_back.events.bus.ConsumerStatusdazzle_back.events.bus.EventHandlerdazzle_back.events.bus.EventNotFoundErrordazzle_back.events.bus.NackReasondazzle_back.events.bus.SubscriptionInfodazzle_back.events.envelope.EventEnvelopepsycopgpsycopg_poolpsycopg.rows.dict_row
Event Interactions¶
Emits: app.Order
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_events.pytests/unit/test_events_api.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.