Wholesale Order Handler Transfer Adapter Service¶
Overview¶
The Wholesale Order Transfer service is an ECS service which is continuously polling the Ready SQS. The order aggregator will put the transfer_id in ReadySqs once the aggregated json file is created in S3. The wait time of the task to poll the Ready sqs will be 5 min. Once the Transfer_id is available in SQS and wait time is over then OSP transfer task will poll all available transfer_id’s and fetch all the aggregated Json files associated with those Transfer_ids from WoS S3 bucket. Task would create a list using json data and do the processing in loop i.e. create Wholesale V1- Create Order Payload. The Transfer id which is available in Json will be unique and will be used as Wholesale Order Id. Once the Wholesale order is created the task will create payload for the ship order to Wholesale. Once the Ship order is successful the task will update the transfer Status in Order DB table as ‘Shipped’ and those transfer_ids will be removed from ReadySqs.
ComponentDiagram¶
Sequence Diagram¶