One shared platform. Many delivery networks.
A working reference for product, engineering and operations: what we are building, how the system fits together, what belongs in each phase, and which decisions still need agreement.
| Document field | Value |
|---|---|
| Status | Working proposal — ready for team review. This document does not confirm that any capability has been implemented. |
| Version / prepared | v4.1 review draft · 29 September 2026 · Europe/Istanbul |
| Source | Combined architecture v2, updated 27 September 2026, incorporating Kamal’s Phase 1 and Phase 2 roadmap. |
| Document steward / engineering reviewer | Proposed: Ahmed / Kamal. Barış contributes customer, business-development and strategy context; pilot fleet operators validate real delivery workflows. See section 8.1 for working functional titles. |
| Launch market / primary customer | Turkey / delivery fleet companies. Each fleet company is a tenant. |
| Last team review | Pending. Record the date after the team reviews this version. |
| Trello reference | Add this page’s link to a regular “System Architecture — Current Version” card in the “Project Reference” list. |
Core design rule: keep order processing dependable while location updates, live screens and background jobs scale independently. PostgreSQL owns official business state; caches and live messages help clients display it.
How to read this document: sections 1–2 explain the platform and rollout for everyone. Sections 3–7 contain the engineering behavior and readiness checks. Sections 8–10 contain ownership, open decisions and the update process. Use the contents below to jump to a section; comment on the relevant passage to propose changes.
Status vocabulary: “Proposed” needs review; “Agreed” means the relevant owners have accepted the decision; “Implemented” requires linked delivery evidence. Phase labels describe planned timing, not approval or completion. Infrastructure vendors remain proposals: Kamal’s roadmap specified capabilities, not the AWS/.NET stack.
The fleet company is the customer and tenant. Its dispatchers, restaurants and couriers operate within that company’s permissions and settings. Multiple fleet brands use the same underlying platform.
| Architecture branch | Responsibilities | What this means for the team |
|---|---|---|
| Products people use | Fleet panel, restaurant panel, courier app, customer tracking link and Autonomy admin | Each participant has a focused interface for their work. |
| Delivery operations | Companies and permissions, orders, offers, assignments, courier/restaurant management, integrations and fee records | The backend decides which actions are allowed and records the official outcome. |
| Live delivery and background work | Location intake, location processing, live screen updates and retried jobs | Movement and slow external providers can be handled without overwhelming order processing. |
| Data, reporting and intelligence | Business records, current locations, files, operational events, reports and Phase 2 intelligence | Capture reliable evidence from launch; use it to improve operations later. |
| Hosting, security and reliability | Cloud hosting, tenant isolation, monitoring, deployment and recovery | Keep the platform observable, recoverable and safe to share across companies. |
These are responsibilities, not a requirement to build a separate microservice for every box. Start with a modular .NET application for core business functions and separate workloads for tracking, live connections and background jobs.
People use role-specific interfaces. Business commands go through the core API; courier movement follows a separate tracking path; live updates reach authorized viewers.
flowchart TD
panels["Fleet and restaurant panels · Delivery operations"]
courier["Courier app · Jobs, navigation and location"]
customer["Customer tracking link · One order; pilot timing open"]
api["Core API · .NET · Permissions, orders and dispatch"]
tracking["Location pipeline · IoT Core, Kinesis and workers"]
db["PostgreSQL · Official order and assignment state"]
live["Realtime gateway · SignalR · Authorized updates and freshness"]
panels -->|"Commands"| api
courier -->|"Accept / reject"| api
courier -->|"GPS"| tracking
api -->|"Commit business state"| db
api -->|"After-commit events"| live
tracking -->|"Location updates"| live
live -->|"Live view"| customer
live -->|"Live view"| panels
Conceptual view: the after-commit event path is expanded in the backend diagram. The customer tracking link remains an open Phase 1 decision. Autonomy admin uses the same permission-controlled API.
| Product | Who uses it / expected behavior | Planned scope |
|---|---|---|
| Fleet owner and dispatcher panel | Manage restaurants and couriers; see live fleet activity; inspect offers; assign or reassign work; handle exceptions; view basic reports. | Phase 1 |
| Restaurant panel | Create delivery requests manually; manage orders; track couriers; receive status updates; view basic reports. Capture food-ready status when available. | Phase 1 |
| Courier mobile app | Go online/offline; accept or reject offers; navigate; share on-duty location; confirm delivery; see pending actions during connection loss. | Phase 1 |
| Customer tracking link | View one delivery’s progress, estimated arrival and permitted courier location. | Intended product; Phase 1 inclusion open |
| Autonomy admin | Onboard fleet companies, configure branding and access, and investigate incidents with audited privileges. | Phase 1, minimal operational version |
Goal: validate that fleet operators can reliably run real deliveries for restaurants using available couriers. This combines Kamal’s restaurant-demand and courier-availability goal with the fleet-operator customer model.