Automation · Event-Driven Automation
Event Consumers
Cheat sheet · https://pcornel.dk/topic.php?topic=5334
Answer
Event consumers subscribe to events or read from queues and process them, such as triggering automation. They should be idempotent, since events can be delivered more than once.
Remember
- Consumers must be idempotent because events can repeat.
- Acknowledge only after success.
- Handle poison messages.
First checks
- Consumer lag/backlog — processing speed
- Consumer error rate — health
- Scaling settings — capacity
Verify in this order
bus/queue → consumer → action
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5334