ScanCloud: a freight forwarding operations platform

A Django platform that has run a global freight forwarder's shipments, warehouses, purchase orders and document processing since 2019.

  • Freight
  • Warehouse
  • OCR
  • Integrations
  • AI assistant
Sector
Freight forwarding and logistics
Engagement
Lead developer and architect, 2019 to present
Technology
Python, Django, MySQL (primary and reporting databases), Memcached, AWS (EC2, RDS, S3, CloudFront, SQS, SNS, Lambda, EventBridge, SES, API Gateway WebSockets, Secrets Manager, GuardDuty), Microsoft Entra ID SSO, Azure OpenAI

The challenge

A global forwarder needed one place to book and track shipments, run warehouses, manage supplier purchase orders, and turn paper documents into structured data. Its operations spanned many customers and countries, each with its own processes, data-visibility rules and systems. Off-the-shelf tools covered pieces of this, but none fitted the customer-specific workflows or joined them up.

What we built

  • Shipment booking and tracking: bookings, containers, milestones and references, fed by carrier and tracking webhooks.
  • Supply chain management: purchase order workflows, critical paths, and dashboards tailored to each customer.
  • Warehouse management: receipts, stock, picking, dispatch, transfers and labels, with mobile-friendly scan workflows and PDF label generation.
  • OCR and document automation: uploads flow through S3, SNS and SQS to Lambda and Textract-based extraction of manifests, invoices and statements.
  • Customer-specific modules: Free Trade Zone processing, spare parts, work orders, transport, and aerospace and cinema logistics workflows.
  • Integrations: CargoWise, the forwarder's internal systems, vendor APIs, and a volumetric measurement device.
  • AI assistant: a chat assistant that uses Azure OpenAI to pick from a small set of pre-approved tools, run scoped queries and summarise the results. It cannot reach data the signed-in user could not already see.
  • Live updates: WebSocket push through AWS API Gateway, using the open-source django-aws-api-gateway-websockets library.

Engineering approach

  • Row-level data scoping: every query is filtered by a custom access layer that controls which customers, warehouses and shipments each user sees.
  • Security: Microsoft Entra ID single sign-on, closed self-signup, automated GuardDuty malware-scan response, WAF log forwarding, and regular code audits.
  • Reliability: scheduled and queue-driven background work, read-replica reporting routing, and caching for expensive lookups.
  • Delivery discipline: pre-commit linting, hundreds of test modules, documentation checked in CI, and a versioned changelog covering well over 500 releases since 2019.

The result

A single platform that operations, warehouse and customer users depend on daily. It has grown module by module for nearly seven years without a rewrite.