Wasey — Food Multi-Vendor Delivery Platform

An end-to-end multi-vendor food delivery ecosystem featuring three synchronized Flutter mobile applications (Customer, Courier, and Restaurant Partner) alongside a web administration portal, engineered with real-time Firebase state synchronization, Google Maps live routing, and automated dispatch workflows.

Project Overview

Wasey is an on-demand food delivery platform that unifies customers, restaurants, couriers, and platform administrators into a cohesive real-time operations engine.

Instead of treating each user touchpoint in isolation, the architecture models the full fulfillment lifecycle across four specialized interfaces: a consumer app for discovery, customization, and checkout; a restaurant partner app for kitchen order queueing and prep alerts; a courier app with turn-by-turn navigation and live telemetry; and a centralized web dashboard for platform governance, menu catalog management, and dispute handling.

My Engineering Role

Lead Flutter engineer responsible for the cross-platform mobile client architecture on Android and iOS, real-time Firebase state synchronization, Google Maps Platform integration (Directions, geocoding, and driver telemetry), push notification workflows (FCM), and end-to-end order lifecycle coordination across all three client applications.

The Challenge

On-demand food delivery involves distributed, asynchronous states where orders rapidly move through placement, kitchen acceptance, food preparation, courier dispatch, pickup, and transit.

Disparate network conditions, kitchen noise environments, courier battery constraints, and potential device disconnections required an architecture that guarantees zero duplicate orders, zero dropped state transitions, and sub-second live map tracking for customers.

The Solution

Engineered three specialized Flutter applications sharing a Clean Architecture domain layer with standardized Firebase and REST API contracts.

Realtime Database and Firestore handle sub-second status synchronization and driver coordinates, Google Maps Platform provides polyline routing and smooth marker interpolation, and high-priority FCM notifications with custom audible alarms ensure timely restaurant and courier responses.

High-Level Architecture

  • Three specialized Flutter clients (Customer, Courier, Vendor) sharing domain models, API repositories, and validation rules across iOS and Android.
  • Firebase Firestore and Realtime Database operate as the real-time event bus, streaming sub-second order lifecycle events and courier GPS coordinates.
  • Google Maps Platform integration with polyline decoding, marker interpolation, and bearing calculation for smooth real-time courier tracking without UI jank.
  • High-priority Firebase Cloud Messaging (FCM) push pipeline paired with localized persistent audio alerts for rapid kitchen order acceptance.
  • Centralized Web Admin portal managing multi-vendor onboarding, commission structures, catalog indexing, delivery zones, and customer support.
System Design & Engineering Proof

Synchronized Multi-Actor Real-Time Fulfillment Architecture

Production Architecture

How three dedicated Flutter mobile applications (Customer, Courier, Restaurant Partner) coordinate distributed order lifecycles and sub-second live GPS tracking.

End-to-End Architectural Pipeline
1
Presentation Layer

Triple Flutter Clients with BLoC State Machines

Multi-App Client

Distinct mobile clients for Customers, Couriers, and Kitchen Partners sharing a unified design system and emitting deterministic state transitions at 60 FPS.

Technology:Flutter (iOS/Android), BLoC, Impeller Rendering Engine
2
Domain & Contracts

Invariant Order Lifecycle Finite State Machine

Domain Engine

Enforces strict monotonic transitions (Placed → Kitchen Confirmed → Preparing → Out for Delivery → Completed) preventing race conditions across actors.

Technology:Pure Dart Domain Layer, Repository Abstractions
3
Real-Time Event Bus

Sub-Second Telemetry & Live State Synchronization

Real-Time Bus

Streams courier GPS coordinates, kitchen queue updates, and customer live positions with sub-second latency and exponential backoff retry policies.

Technology:Firebase Realtime DB, Firestore, GeoFire Streams
4
Mapping & Dispatch

Google Maps SDK & Bearing Interpolation

Telemetry & FCM

Decodes turn-by-turn route polylines, interpolates rider vehicle markers smoothly, and triggers high-priority persistent audio alerts for rapid kitchen pickup.

Technology:Google Maps API, Polyline Routing, High-Priority FCM
Verified Production Benchmarks
60 FPSUI Frame RateConsistent 60 FPS on Impeller engine during live map polyline rendering
< 850msTelemetry LatencySub-second rider GPS coordinate propagation to customer tracking screen
85%+Code SharingShared domain models, network repositories, and validation rules across 3 apps
0% LossOrder ResilienceZero dropped order state transitions during intermittent cellular handovers
Key Engineering Innovations
  • Battery-conscious background location broadcast throttling with bearing smoothing
  • Multi-actor concurrent race-condition prevention across kitchen and courier dispatch
  • High-priority acoustic FCM alerts that pierce background Android/iOS silent modes for kitchen staff
Founder & Engineering Consultation

Planning a high-throughput mobile application with similar architecture?

Direct engineering leadership from Syed Waleed Nawaz: clean domain architecture, automated CI/CD, and 60 FPS delivery.

Key Features & Workflows

  • Multi-Restaurant Discovery & Menus: Search local vendors, browse categorized digital menus with item customizations, modifiers, and cart validation.
  • Real-Time Courier Telemetry & Dynamic ETA: Live courier vehicle movement rendered on interactive Google Maps with route polylines and updated arrival estimates.
  • Courier Dispatch & Turn-by-Turn Navigation: Instant delivery offer broadcasting, one-tap accept/decline flows, and in-app navigation routes for pickup and drop-off.
  • Kitchen Partner Order Management: Visual order queue with acoustic alerts, adjustable preparation times, and instant dispatch triggers.
  • Synchronized Order State Machine: Strict status lifecycle (Placed → Accepted → Preparing → Out for Delivery → Completed) verified across all client apps.
  • Web Administration & Platform Operations: Merchant onboarding, commission management, menu moderation, and platform-wide order oversight.

Technical Challenges Overcome

  • Multi-Actor State Concurrency: Coordinated asynchronous state changes across three apps simultaneously, ensuring customer cancellations, kitchen delays, and courier reassignments never leave orphaned orders or inconsistent UI states.
  • Battery-Efficient Live GPS Telemetry: Designed background location streaming on Android and iOS that throttles coordinate broadcasts, smooths position jitter, and maintains accurate client-side bearing without draining courier device batteries.
  • Resilient Offline & Reconnection Handling: Implemented optimistic UI feedback and automatic exponential backoff retries so courier status updates and customer tracking survive intermittent cellular dead zones.
  • Audible Notification Guarantees: Configured high-priority FCM background channels with distinctive, repeating acoustic alerts to overcome noisy kitchen environments and ensure immediate merchant order acceptance.

Production Results & Impact

  • Production customer application launched on Google Play and Apple App Store, alongside dedicated live Driver application on Apple App Store.
  • Live brand and product web platform deployed at waseyapp.com.
  • Delivered three distinct mobile applications from a unified Flutter engineering strategy, significantly accelerating feature releases and code maintainability.
  • Built a resilient real-time foundation capable of synchronizing order states and live GPS location streams seamlessly across distributed actors.

Need a similar architecture shipped?

Let's translate your product workflows, real-time requirements, and cloud infrastructure into a dependable production app.