Duplicate lease holds and out-of-order checks

The situation
You are the lead analyst at HomeNest, a rental platform. When a tenant signs a lease in the NestLease app, the system publishes a LeaseSigned event; PayFlow holds the deposit, ScreenPro starts the background check, and Mailer sends a welcome email. Ops reported duplicate deposit holds and background-check triggers arriving before the lease event.
Your task
- List all domain events with name, payload fields, producer, and main consumer.
- For each consumer, state how it ensures idempotency and proper ordering using lease_id/event_id.
- Propose a handling method for ScreenCompleted events that arrive before LeaseSigned, and state why it is preferred.
What this event-driven design (events & consumers) exercise trains for ba + sas
Define domain events, their payloads, producers and consumers, ordering and duplicate delivery handling. The setting is real estate / rental platform: listings, viewings, contracts, deposits, tenant screening, maintenance requests.
Typical deliverables for this kind of task:
- event list with payloads
- consumers and their reactions
- ordering/duplicates/out-of-order handling
Senior level: ambiguity or conflicting constraints, cross-system impact, needs a decision with justification; still one focused slice, not the whole project. Budget 45–90 minutes.
#event_driven#real_estate#rentals