Home / Insights / Architecture and Modernization
Architecture and Modernization
Cloud Architecture for Logistics Platforms: Tracking, Events and Integrations That Scale
Logistics software has an unusual workload: bursts of location pings, status changes that many parties care about, integrations with partners of varying quality, and drivers who lose signal. The cloud architecture has to be designed around those realities.
TopicsArchitecture and ModernizationBusiness Operations and IntegrationMobile App Development
Key takeaways
- Separate high-volume location ingestion from business transactions; they have very different scaling, storage and consistency needs.
- Model shipments and jobs as a sequence of events; queues and pub/sub let notifications, billing and partner updates react independently.
- Expect partner integrations to fail and arrive late: idempotency, retries, dead-letter queues and reconciliation are core features.
- Design driver apps for poor connectivity with local storage and sync, and make the backend tolerate out-of-order updates.
- Plan for peaks such as seasonal volume and campaign days with load tests and autoscaling, and watch data storage and transfer costs.
On this page
Logistics platforms, whether for last-mile delivery, freight, field services or vehicle hire, share a recognisable set of technical challenges. Vehicles and drivers generate continuous location data. Each shipment moves through many statuses that customers, dispatchers, warehouses and finance all care about. Data arrives from carriers, marketplaces, ERPs and devices of varying reliability. And volumes can swing sharply with seasons and promotions.
This article sets out a reference cloud architecture for that kind of platform, the decisions that matter most and the failure modes to plan for. It is relevant whether you are building a new delivery or tracking product or modernising an older dispatch system. PoliteTech’s own portfolio includes an e-scooter hire platform built with a Singapore team on React Native, Node.js and AWS, which shares several of these concerns, but the guidance here is general rather than a description of that project.
What makes logistics workloads different
| Characteristic | Architectural consequence |
|---|---|
| Frequent location updates from many devices | High-write ingestion path, separate from transactional data |
| Long-running entities with many state changes | Event-driven status model and an auditable history |
| Many interested parties per event | Publish-subscribe fan-out to notifications, partners, billing and analytics |
| Unreliable partner systems and devices | Retries, idempotency, dead-letter handling and reconciliation |
| Intermittent mobile connectivity | Offline-first apps and tolerance for late, out-of-order data |
| Seasonal and daily peaks | Autoscaling, queue buffering and load testing |
| Geospatial queries | Databases or services with spatial indexing |
A reference architecture
A typical design separates the platform into layers, each using managed cloud services where sensible. The examples below use common AWS, Google Cloud and Azure services; equivalents exist on each provider.
1. Ingestion
Driver and device apps send location pings and status events to an API or ingestion endpoint. Rather than writing each ping straight to the main database, the endpoint places events on a queue or stream (for example SQS, Pub/Sub or a streaming service) so bursts are absorbed and processing scales independently.
2. Core domain services
Services for orders or jobs, dispatch and assignment, customers and pricing run on containers or serverless compute with a relational database such as PostgreSQL for transactional consistency. Status changes are written here as the authoritative record.
3. Event distribution
When a job changes status, the core service publishes a domain event (for example job.picked_up or job.delivered). Subscribers handle customer notifications, partner webhooks, billing triggers and analytics independently, so a slow SMS provider does not delay dispatch.
4. Location and tracking store
Recent positions go to a fast store optimised for “where is this vehicle now” queries, such as a key-value or in-memory store, while history is batched to cheaper storage for analytics, proof of route and dispute resolution.
5. Integration layer
Adapters for carriers, marketplaces, ERPs and e-commerce platforms translate external formats to internal events and back. Each adapter has its own retry and error handling so one partner’s outage stays contained.
6. Operations
Centralised logging, tracing across services, business-level dashboards (jobs late, integrations failing) and cost tracking. Our article on observability with OpenTelemetry covers tracing an event across services.
Designing integrations that survive real partners
Integrations are where logistics platforms spend much of their operational effort. Partners send duplicate messages, change formats without notice, go offline and deliver status updates hours late. Build for this from the start:
- Idempotency: every inbound message carries or is assigned a unique key, so duplicates are recognised and ignored.
- Ordering tolerance: accept that “delivered” may arrive before “out for delivery”; apply state transition rules rather than trusting arrival order.
- Retries with backoff for outbound calls, and dead-letter queues for messages that keep failing, with an admin view to inspect and replay them.
- Reconciliation jobs that periodically compare your records with partners’ and flag discrepancies.
- Contract tests for each partner format, so changes are caught before production.
Our article on event-driven APIs goes deeper on webhook and stream patterns.
Drivers, devices and offline operation
Drivers work in basements, rural areas and loading docks with poor signal. The mobile app and the backend share responsibility for coping:
- The app stores jobs, scans, photos and signatures locally and syncs when connectivity returns.
- Each event carries the device timestamp as well as the server receipt time, so the backend can reconstruct what happened when.
- Location sampling adapts to movement and battery, sending less when stationary.
- Large uploads such as proof-of-delivery photos go directly to object storage using short-lived signed URLs, not through the API servers.
- Conflict rules are defined for cases such as a dispatcher reassigning a job while the driver is offline.
Cross-platform frameworks such as React Native or Flutter are common choices for driver apps; see native or cross-platform for the trade-offs, especially around background location.
Handling peaks and keeping costs visible
Peaks
Queues between ingestion and processing let the system absorb bursts without dropping data. Autoscaling on queue depth, rather than only CPU, keeps processing close to real time. Load test the platform with realistic peak profiles, including partner bulk uploads and the morning dispatch rush; see load testing in practice.
Cost drivers to watch
- Location data volume: ping frequency multiplied by active devices multiplied by retention. Sample sensibly and move history to cheaper storage tiers.
- Messaging and notifications: SMS and push costs scale with shipments and status changes.
- Maps and geocoding APIs: often priced per request; cache results and avoid repeated lookups.
- Data transfer and logging: verbose logs from high-volume paths can become a significant line item.
Tag resources by service and environment from the start so costs can be attributed. Our guide to cloud cost optimisation covers setting up the review cycle.
Questions to settle before building
- How many active vehicles or devices at peak, and how often must locations update for the customer experience you want?
- Which statuses matter to which parties, and how quickly must each be notified?
- Which partners and systems must be integrated, and what formats and reliability do they offer?
- What must work offline in the driver app?
- How long must location and proof-of-delivery data be retained, and for what purposes?
- What availability does dispatch need compared with analytics or reporting?
- Which cloud provider and region suit your customers, data residency requirements and team?
PoliteTech’s cloud application development service covers event-driven backends, API platforms, data pipelines and mobile backends across AWS, Azure and Google Cloud, and logistics is one of the industries it serves.
Frequently asked questions
Do we need real-time streaming technology for vehicle tracking?
Not always. For many fleets, a managed queue with consumers that update a fast location store is enough. Dedicated streaming platforms make sense at very high event volumes or when several consumers need to replay the stream.
Should location data go in the same database as orders?
Usually not. Location pings are high-volume and append-only, while orders need transactional consistency. Separating them keeps the transactional database fast and lets each store be tuned and priced appropriately.
How do we stop customers receiving duplicate or out-of-order notifications?
Make notification consumers idempotent, keyed on the event ID, and apply state transition rules so a late ‘out for delivery’ event does not trigger a message after ‘delivered’.
Can we modernise our existing dispatch system gradually?
Yes. A common approach is to publish events from the existing system and build new capabilities, such as tracking pages or partner integrations, as separate services that consume them, then migrate core functions in stages.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- AWS Documentation: Lambda quotas — Supported the recommendation to send large uploads such as photos directly to object storage, given synchronous and asynchronous payload limits on serverless functions.
Related reading
Continue your research
Building or modernising a logistics platform?
We can help you design the ingestion, event and integration layers around your fleet size, partners and peaks.
