HomeLink is building a smart home platform that lets users control lights, thermostats, cameras, and locks from a single mobile app. Core requirements:
- Device registry - register and manage devices (add, remove, rename, group by room).•Real-time control - users tap a button and the device responds within 1 second (e.g., turn on a light).•Status updates - devices push their state (temperature, on/off, battery level) every 30 seconds. The app shows live status.•Scenes & automation - users create rules like "When I leave home, turn off all lights and lock the door."•Multi-user households - a home has multiple users with different permission levels (owner, adult, child).
HomeLink targets 50,000 households with an average of 12 devices each.
Build a smart home platform connecting 100 k devices with real-time control and status updates. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: IoT Devices -> API Gateway -> API Service -> Auth Service -> Primary NoSQL DB -> Realtime Bus