Order Upload
The order upload flow defines the sequence used by the daemon to retrieve orders from the external system, transform them, and send them to Talk2Sync in pages.
The process continues until there are no additional orders to upload. Once all orders have been processed, the daemon finishes the order upload operation and then completes the overall push operation.
Upload Flow
flowchart TD
A([Push upstream orders]) --> B[Get timestamp to start buffering from]
B --> C[Query implementation and transformation]
C --> D[Push orders page to Talk2Sync]
D --> E{More orders to push?}
E -->|Yes| D
E -->|No| F[Set finish order push]
F --> G[Set finish push]
Process
The daemon follows these steps:
- Start the order upload process.
- Get the timestamp from which orders should start being buffered.
- Query and transform orders using the external system implementation.
- Push a page of orders to Talk2Sync.
- Check whether more orders remain.
- If more orders are available, push the next page.
- If no orders remain, finish the order upload operation.
- Finish the overall push operation.
Next Steps
- Review Push Orders Page to implement the order page operation.
- Review Set Finish Orders Push to complete the order upload operation.
- Review Set Finish All Pushes to complete the overall push operation.