The Problem
MyGate is India's largest gated community management platform, serving 1M+ active users across 25,000+ residential societies. The iOS app had accumulated significant technical debt — a monolithic architecture, inconsistent navigation patterns, and memory leaks that caused frequent crashes on older devices.
The security and visitor management modules — the core value proposition — were tightly coupled and difficult to extend. Adding new features like delivery management or domestic help tracking required touching multiple unrelated parts of the codebase.
Approach
I led the architectural overhaul of the iOS app, breaking the monolith into feature modules with clear boundaries. Each module (security, visitor management, community, payments) owned its own data layer, business logic, and UI, communicating through well-defined protocols.
I redesigned the API integration layer to use a reactive pattern with Combine, replacing the callback-heavy legacy code. This made it easier to handle complex flows like real-time gate entry notifications, visitor pre-approvals, and security guard coordination.
Challenges
Refactoring a live app with 1M+ users required zero-downtime migration. We used feature flags to gradually roll out the modular architecture, running old and new implementations side by side and comparing metrics before cutting over.
Performance profiling revealed that the home screen was making 14 sequential API calls on launch. I redesigned this into 3 parallel batch requests with a local cache layer using Core Data, which required careful cache invalidation logic to keep security data real-time accurate.
Results
Crash-free rate improved from 96.2% to 99.5%. App launch time decreased by 60% thanks to the optimized API layer and lazy module loading. Memory usage on the home screen dropped by 40%.
The modular architecture enabled the team to ship the delivery management feature in 3 weeks — a task estimated at 8 weeks under the old architecture. The app maintained a 4.6 rating on the App Store throughout the transition.
Interested in working together?
I'm available for senior and lead roles, freelance projects, and technical consulting.
Get in touch