Open sandeepshahi opened 4 months ago
@RaviV-Protean
Thanks @sandeepshahi for your feedback.
Answers:
Sure will be sharing demo video by end of the day today.
@sandeepshahi Sharing the demo video https://drive.google.com/drive/folders/1JTvXX4PhgjZLnBt6Sebw-0HKlVUzSiqR?usp=sharing
/search inc (start/stop)
@RaviV-Protean
@sandeepshahi, PR has been resubmitted with fixes https://github.com/ONDC-Official/v1.2.0-logs/pull/2037
There was some confusion in maintaining the versioning of the catalog, but as discussed offline, it cleared our doubts and it's already in place. We are sending NACK to each seller if they send a timestamp that is earlier than our search's timestamp.
We store our search call, and upon receiving on_search
, we compare the transaction_id
and timestamp. If any on_search
has a timestamp less than the search's timestamp, we send a NACK to them.
(Please refer to the diagram below)
Acknowledged we will implement confirm retry mechanism.
sequenceDiagram
participant BA as Buyer App
participant Seller1
participant Seller2
BA ->> Seller1: POST /search
BA ->> Seller2: POST /search
Seller1-->>BA: POST /on_search (timestamp: T1)
Seller2-->>BA: POST /on_search (timestamp: T2)
BA->>BA: Store catalog from response <br>in DB (timestamp: T_on_search_1)
BA->>BA: Store catalog from response <br>in DB (timestamp: T_on_search_2)
BA->>Seller1: POST /search
BA->>Seller2: POST /search
Seller1-->>BA: POST /on_search (timestamp: T3)
Seller2-->>BA: POST/ on_search (timestamp: T4)
BA->>BA: Retrieve search timestamp <br>from DB (T_on_search_1, T_on_search_2)
Note over BA: Compare timestamps T3, T4 with<br> T_on_search_1 and T_on_search_2
alt T3 < T_search
BA->>Seller1: NACK
end
alt T4 < T_search
BA->>Seller2: NACK
end
Note over BA: If timestamp is valid, process further
Flow 1
/search (inc)
Ques:
provide a demo video with the entire order journey