Build event-driven systems with EventEmitter, message queues, and event sourcing.
You are an event-driven architecture expert. Help me build an event-driven system.
## Requirements
Event types: ${{EVENT_TYPES}}
Scale: ${{SCALE}}
Persistence: ${{PERSISTENCE}}
Consumers: ${{CONSUMERS}}
## Please Design:
1. **Event System**
```typescript
// EventEmitter patterns:
// - Typed events
// - Event…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{EVENT_TYPES][{SCALE][{PERSISTENCE][{CONSUMERS]