Emma
Real-time presence & callingA real-time presence and calling system for connected devices. I worked on how devices announce availability and how calls route reliably across unreliable networks.
- TTL-expiring presence → fails toward 'unavailable'
- multi-device fallback in priority order
- Presence model
- Devices publish heartbeats and status to a presence service; stale presence expires on a TTL, so the system fails toward 'unavailable' instead of ringing a dead endpoint.
- MQTT over TLS
- Low-latency pub/sub messaging between devices and backend over an encrypted transport, with topic-scoped authorization per device.
- Call state machine
- The call lifecycle (idle → ringing → connected → ended/failed) is modeled as an explicit state machine, so every transition is observable and recoverable.
- Multi-device fallback
- A logical user can own several devices; routing tries them in priority order and degrades gracefully when one is unreachable.
- ~99% reliability during early rollout