Transport · parcel tracking
The carrier publishes 1,200 tracking events.
The import must read them all, page after page.
Simulated carrier API
The problem
The API expects the next page in a header.
- Sent elsewhere, it is ignored.
- The API then returns the first page.
- It still says there is more.
What is not changed
The API stays as it is.
- A carrier token, stored with lm secret.
- No work on the carrier's side.
What had to be written
cursor_binding: header
cursor_param: X-Next-CursorSay where the cursor goes.
One 30-line connector.
Red
Cursor misplaced: the run fails.
- It says why, and which key to check.
- No partial read reported complete.
Green
1,200 events, 12 pages.
- 300 parcels, each at its latest status.
- The cursor goes in the header on every page.
The limit
The refusal relies on the API repeating its page.
- An API returning random pages would not be recognised.
- The count's witness is the total the API publishes, if it publishes one.
Try it
The scenario replays locally.
Every step is published with its output.