Tracking

From DarkWiki
Revision as of 10:18, 13 June 2017 by Apowney (talk | contribs) (Process)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Process

General process

  • Process tracking file
  • Send tracking updates to system
  • Process the tracking updates
  • Notify tracking updates
  • Process the updates to see if there are status changes
  • Notify status updates

Tracking updates processing

  • Parse the tracking updates file.
  • Add each tracking update to the database (using $addToSet, in MongoDB).
  • Signal updated parcelIds to queue

Status update processing

  • For each parcelId on the updated queue...
  • Analyse the tracking history to determine the parcel & consignment status
  • Signal updates statuses