How do you handle state management and data consistency in an edge environment with intermittent network connectivity?