Interview practice question
A type-safe event bus across micro-frontends
Frontend Engineering · TypeScript · Experienced
Several independently deployed micro-frontends communicate through events, and payload mismatches cause bugs. How would you add type safety?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Shared contract package with event map types and schemas.
- Version events.
- Runtime validation at receivers.
- Backward-compatible evolution.
- Contract tests.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.