How do you handle real-time data synchronization between a physical device and a cloud-based backend?