litestar-events
Installation
SKILL.md
Events
Execution Workflow
- Decide whether the event bus is the right tool: decoupled in-process side effects, not app lifecycle or broker-backed messaging.
- Define stable event IDs and argument contracts before wiring emitters and listeners.
- Register listeners on the
Litestarapp withlisteners=[...]. - Emit events from handlers or services through
request.app.emit(...)or another app reference. - Keep listeners independent so multiple listeners can react to the same event safely.
- Replace the default emitter backend only when retry, persistence, or external infrastructure requirements justify it.