Designing Resilient Edge-First Smart Home Systems
summary
Edge-first smart home architecture that runs on Java 21 claims local availability even during large ISP or DDoS events (Cloudflare saw 23M attacks; Mirai/I Soro-scale botnets hit tens of Tbps). It shows a working hub: local state as the source of truth with monotonic versions, a transactional outbox for durable write-then-sync, idempotency keys plus jittered exponential backoff, sealed-rule types and pattern matching for offline automations, virtual threads for the outbox trainer, and NIO atomic write/rename for power-loss recovery.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 1:50Fallacies of distributed computing
- 3:42Real-world smart home failures
- 5:12Edge-first resilience approach
- 6:39Local state as source of truth
- 9:14Offline decision making
- 10:38Graceful degradation modes
- 13:53Store and forward sync
- 16:21Reconciliation during outages
- 17:46Power loss recovery techniques
- 19:31Autonomous edge hub architecture
- 20:57Tradeoffs of edge-first systems
- 21:41Key takeaways and next steps
