refactoring real-time app